summaryrefslogtreecommitdiff
path: root/src/camera/ImportPage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/camera/ImportPage.c')
-rw-r--r--src/camera/ImportPage.c13894
1 files changed, 0 insertions, 13894 deletions
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;
-}
-
-
-