summaryrefslogtreecommitdiff
path: root/src/Commands.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-06-25 20:55:59 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-06-25 20:55:59 +0200
commitab841afa5cb39058d9ab2cebb67cfe6369443f6e (patch)
tree64961342a79003ee865b3f9f8f41f99f09f37a2e /src/Commands.c
parent49120f48474fc8fdc2448c75d961bc238213cfac (diff)
New upstream version 0.28.3upstream/0.28.3
Diffstat (limited to 'src/Commands.c')
-rw-r--r--src/Commands.c16019
1 files changed, 8212 insertions, 7807 deletions
diff --git a/src/Commands.c b/src/Commands.c
index 9abf048..9bbd51a 100644
--- a/src/Commands.c
+++ b/src/Commands.c
@@ -1,4 +1,4 @@
-/* Commands.c generated by valac 0.36.6, the Vala compiler
+/* Commands.c generated by valac 0.40.4, the Vala compiler
* generated from Commands.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -9,6 +9,7 @@
/* PageCommand stores the current page when a Command is created. Subclasses can call return_to_page()*/
/* if it's appropriate to return to that page when executing an undo() or redo().*/
+
#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
@@ -153,6 +154,11 @@ typedef struct _MediaPageClass MediaPageClass;
typedef struct _CollectionPage CollectionPage;
typedef struct _CollectionPageClass CollectionPageClass;
+enum {
+ PAGE_COMMAND_0_PROPERTY,
+ PAGE_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* page_command_properties[PAGE_COMMAND_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define TYPE_PAGE_WINDOW (page_window_get_type ())
@@ -296,6 +302,11 @@ typedef struct _LibraryWindowClass LibraryWindowClass;
typedef struct _SingleDataSourceCommand SingleDataSourceCommand;
typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass;
typedef struct _SingleDataSourceCommandPrivate SingleDataSourceCommandPrivate;
+enum {
+ SINGLE_DATA_SOURCE_COMMAND_0_PROPERTY,
+ SINGLE_DATA_SOURCE_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* single_data_source_command_properties[SINGLE_DATA_SOURCE_COMMAND_NUM_PROPERTIES];
#define TYPE_COMMAND_MANAGER (command_manager_get_type ())
#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager))
@@ -328,6 +339,11 @@ typedef struct _SimpleProxyableCommandPrivate SimpleProxyableCommandPrivate;
typedef struct _SourceProxy SourceProxy;
typedef struct _SourceProxyClass SourceProxyClass;
+enum {
+ SIMPLE_PROXYABLE_COMMAND_0_PROPERTY,
+ SIMPLE_PROXYABLE_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* simple_proxyable_command_properties[SIMPLE_PROXYABLE_COMMAND_NUM_PROPERTIES];
#define _source_proxy_unref0(var) ((var == NULL) ? NULL : (var = (source_proxy_unref (var), NULL)))
#define TYPE_PROXYABLE (proxyable_get_type ())
@@ -358,6 +374,11 @@ typedef struct _SinglePhotoTransformationCommandPrivate SinglePhotoTransformatio
typedef struct _PhotoTransformationState PhotoTransformationState;
typedef struct _PhotoTransformationStateClass PhotoTransformationStateClass;
+enum {
+ SINGLE_PHOTO_TRANSFORMATION_COMMAND_0_PROPERTY,
+ SINGLE_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* single_photo_transformation_command_properties[SINGLE_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES];
#define TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND (generic_photo_transformation_command_get_type ())
#define GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand))
@@ -369,6 +390,11 @@ typedef struct _PhotoTransformationStateClass PhotoTransformationStateClass;
typedef struct _GenericPhotoTransformationCommand GenericPhotoTransformationCommand;
typedef struct _GenericPhotoTransformationCommandClass GenericPhotoTransformationCommandClass;
typedef struct _GenericPhotoTransformationCommandPrivate GenericPhotoTransformationCommandPrivate;
+enum {
+ GENERIC_PHOTO_TRANSFORMATION_COMMAND_0_PROPERTY,
+ GENERIC_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* generic_photo_transformation_command_properties[GENERIC_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES];
#define TYPE_MULTIPLE_DATA_SOURCE_COMMAND (multiple_data_source_command_get_type ())
#define MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand))
@@ -390,6 +416,11 @@ typedef struct _MultipleDataSourceCommandPrivate MultipleDataSourceCommandPrivat
typedef struct _SourceCollection SourceCollection;
typedef struct _SourceCollectionClass SourceCollectionClass;
+enum {
+ MULTIPLE_DATA_SOURCE_COMMAND_0_PROPERTY,
+ MULTIPLE_DATA_SOURCE_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* multiple_data_source_command_properties[MULTIPLE_DATA_SOURCE_COMMAND_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))
#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
@@ -442,6 +473,11 @@ typedef struct _ProgressDialogClass ProgressDialogClass;
typedef struct _MultipleDataSourceAtOnceCommand MultipleDataSourceAtOnceCommand;
typedef struct _MultipleDataSourceAtOnceCommandClass MultipleDataSourceAtOnceCommandClass;
typedef struct _MultipleDataSourceAtOnceCommandPrivate MultipleDataSourceAtOnceCommandPrivate;
+enum {
+ MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_0_PROPERTY,
+ MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* multiple_data_source_at_once_command_properties[MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_NUM_PROPERTIES];
#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ())
#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry))
@@ -465,6 +501,11 @@ typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass;
typedef struct _MultiplePhotoTransformationCommand MultiplePhotoTransformationCommand;
typedef struct _MultiplePhotoTransformationCommandClass MultiplePhotoTransformationCommandClass;
typedef struct _MultiplePhotoTransformationCommandPrivate MultiplePhotoTransformationCommandPrivate;
+enum {
+ MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_0_PROPERTY,
+ MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* multiple_photo_transformation_command_properties[MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES];
#define TYPE_ROTATE_SINGLE_COMMAND (rotate_single_command_get_type ())
#define ROTATE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommand))
@@ -478,6 +519,11 @@ typedef struct _RotateSingleCommandClass RotateSingleCommandClass;
typedef struct _RotateSingleCommandPrivate RotateSingleCommandPrivate;
#define TYPE_ROTATION (rotation_get_type ())
+enum {
+ ROTATE_SINGLE_COMMAND_0_PROPERTY,
+ ROTATE_SINGLE_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* rotate_single_command_properties[ROTATE_SINGLE_COMMAND_NUM_PROPERTIES];
#define TYPE_ROTATE_MULTIPLE_COMMAND (rotate_multiple_command_get_type ())
#define ROTATE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommand))
@@ -489,6 +535,11 @@ typedef struct _RotateSingleCommandPrivate RotateSingleCommandPrivate;
typedef struct _RotateMultipleCommand RotateMultipleCommand;
typedef struct _RotateMultipleCommandClass RotateMultipleCommandClass;
typedef struct _RotateMultipleCommandPrivate RotateMultipleCommandPrivate;
+enum {
+ ROTATE_MULTIPLE_COMMAND_0_PROPERTY,
+ ROTATE_MULTIPLE_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* rotate_multiple_command_properties[ROTATE_MULTIPLE_COMMAND_NUM_PROPERTIES];
#define TYPE_EDIT_TITLE_COMMAND (edit_title_command_get_type ())
#define EDIT_TITLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_TITLE_COMMAND, EditTitleCommand))
@@ -500,6 +551,11 @@ typedef struct _RotateMultipleCommandPrivate RotateMultipleCommandPrivate;
typedef struct _EditTitleCommand EditTitleCommand;
typedef struct _EditTitleCommandClass EditTitleCommandClass;
typedef struct _EditTitleCommandPrivate EditTitleCommandPrivate;
+enum {
+ EDIT_TITLE_COMMAND_0_PROPERTY,
+ EDIT_TITLE_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* edit_title_command_properties[EDIT_TITLE_COMMAND_NUM_PROPERTIES];
#define TYPE_EDIT_COMMENT_COMMAND (edit_comment_command_get_type ())
#define EDIT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_COMMENT_COMMAND, EditCommentCommand))
@@ -511,6 +567,11 @@ typedef struct _EditTitleCommandPrivate EditTitleCommandPrivate;
typedef struct _EditCommentCommand EditCommentCommand;
typedef struct _EditCommentCommandClass EditCommentCommandClass;
typedef struct _EditCommentCommandPrivate EditCommentCommandPrivate;
+enum {
+ EDIT_COMMENT_COMMAND_0_PROPERTY,
+ EDIT_COMMENT_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* edit_comment_command_properties[EDIT_COMMENT_COMMAND_NUM_PROPERTIES];
#define TYPE_EDIT_MULTIPLE_TITLES_COMMAND (edit_multiple_titles_command_get_type ())
#define EDIT_MULTIPLE_TITLES_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommand))
@@ -522,6 +583,11 @@ typedef struct _EditCommentCommandPrivate EditCommentCommandPrivate;
typedef struct _EditMultipleTitlesCommand EditMultipleTitlesCommand;
typedef struct _EditMultipleTitlesCommandClass EditMultipleTitlesCommandClass;
typedef struct _EditMultipleTitlesCommandPrivate EditMultipleTitlesCommandPrivate;
+enum {
+ EDIT_MULTIPLE_TITLES_COMMAND_0_PROPERTY,
+ EDIT_MULTIPLE_TITLES_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* edit_multiple_titles_command_properties[EDIT_MULTIPLE_TITLES_COMMAND_NUM_PROPERTIES];
#define TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND (edit_multiple_comments_command_get_type ())
#define EDIT_MULTIPLE_COMMENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommand))
@@ -533,6 +599,11 @@ typedef struct _EditMultipleTitlesCommandPrivate EditMultipleTitlesCommandPrivat
typedef struct _EditMultipleCommentsCommand EditMultipleCommentsCommand;
typedef struct _EditMultipleCommentsCommandClass EditMultipleCommentsCommandClass;
typedef struct _EditMultipleCommentsCommandPrivate EditMultipleCommentsCommandPrivate;
+enum {
+ EDIT_MULTIPLE_COMMENTS_COMMAND_0_PROPERTY,
+ EDIT_MULTIPLE_COMMENTS_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* edit_multiple_comments_command_properties[EDIT_MULTIPLE_COMMENTS_COMMAND_NUM_PROPERTIES];
#define TYPE_RENAME_EVENT_COMMAND (rename_event_command_get_type ())
#define RENAME_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_EVENT_COMMAND, RenameEventCommand))
@@ -544,6 +615,11 @@ typedef struct _EditMultipleCommentsCommandPrivate EditMultipleCommentsCommandPr
typedef struct _RenameEventCommand RenameEventCommand;
typedef struct _RenameEventCommandClass RenameEventCommandClass;
typedef struct _RenameEventCommandPrivate RenameEventCommandPrivate;
+enum {
+ RENAME_EVENT_COMMAND_0_PROPERTY,
+ RENAME_EVENT_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* rename_event_command_properties[RENAME_EVENT_COMMAND_NUM_PROPERTIES];
#define TYPE_EVENT_SOURCE (event_source_get_type ())
#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
@@ -575,6 +651,11 @@ typedef struct _EventClass EventClass;
typedef struct _EditEventCommentCommand EditEventCommentCommand;
typedef struct _EditEventCommentCommandClass EditEventCommentCommandClass;
typedef struct _EditEventCommentCommandPrivate EditEventCommentCommandPrivate;
+enum {
+ EDIT_EVENT_COMMENT_COMMAND_0_PROPERTY,
+ EDIT_EVENT_COMMENT_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* edit_event_comment_command_properties[EDIT_EVENT_COMMENT_COMMAND_NUM_PROPERTIES];
#define TYPE_SET_KEY_PHOTO_COMMAND (set_key_photo_command_get_type ())
#define SET_KEY_PHOTO_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommand))
@@ -586,6 +667,11 @@ typedef struct _EditEventCommentCommandPrivate EditEventCommentCommandPrivate;
typedef struct _SetKeyPhotoCommand SetKeyPhotoCommand;
typedef struct _SetKeyPhotoCommandClass SetKeyPhotoCommandClass;
typedef struct _SetKeyPhotoCommandPrivate SetKeyPhotoCommandPrivate;
+enum {
+ SET_KEY_PHOTO_COMMAND_0_PROPERTY,
+ SET_KEY_PHOTO_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* set_key_photo_command_properties[SET_KEY_PHOTO_COMMAND_NUM_PROPERTIES];
#define TYPE_REVERT_SINGLE_COMMAND (revert_single_command_get_type ())
#define REVERT_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommand))
@@ -597,6 +683,11 @@ typedef struct _SetKeyPhotoCommandPrivate SetKeyPhotoCommandPrivate;
typedef struct _RevertSingleCommand RevertSingleCommand;
typedef struct _RevertSingleCommandClass RevertSingleCommandClass;
typedef struct _RevertSingleCommandPrivate RevertSingleCommandPrivate;
+enum {
+ REVERT_SINGLE_COMMAND_0_PROPERTY,
+ REVERT_SINGLE_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* revert_single_command_properties[REVERT_SINGLE_COMMAND_NUM_PROPERTIES];
#define TYPE_REVERT_MULTIPLE_COMMAND (revert_multiple_command_get_type ())
#define REVERT_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommand))
@@ -608,6 +699,11 @@ typedef struct _RevertSingleCommandPrivate RevertSingleCommandPrivate;
typedef struct _RevertMultipleCommand RevertMultipleCommand;
typedef struct _RevertMultipleCommandClass RevertMultipleCommandClass;
typedef struct _RevertMultipleCommandPrivate RevertMultipleCommandPrivate;
+enum {
+ REVERT_MULTIPLE_COMMAND_0_PROPERTY,
+ REVERT_MULTIPLE_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* revert_multiple_command_properties[REVERT_MULTIPLE_COMMAND_NUM_PROPERTIES];
#define TYPE_ENHANCE_SINGLE_COMMAND (enhance_single_command_get_type ())
#define ENHANCE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommand))
@@ -619,6 +715,11 @@ typedef struct _RevertMultipleCommandPrivate RevertMultipleCommandPrivate;
typedef struct _EnhanceSingleCommand EnhanceSingleCommand;
typedef struct _EnhanceSingleCommandClass EnhanceSingleCommandClass;
typedef struct _EnhanceSingleCommandPrivate EnhanceSingleCommandPrivate;
+enum {
+ ENHANCE_SINGLE_COMMAND_0_PROPERTY,
+ ENHANCE_SINGLE_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* enhance_single_command_properties[ENHANCE_SINGLE_COMMAND_NUM_PROPERTIES];
#define TYPE_ENHANCE_MULTIPLE_COMMAND (enhance_multiple_command_get_type ())
#define ENHANCE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommand))
@@ -630,6 +731,11 @@ typedef struct _EnhanceSingleCommandPrivate EnhanceSingleCommandPrivate;
typedef struct _EnhanceMultipleCommand EnhanceMultipleCommand;
typedef struct _EnhanceMultipleCommandClass EnhanceMultipleCommandClass;
typedef struct _EnhanceMultipleCommandPrivate EnhanceMultipleCommandPrivate;
+enum {
+ ENHANCE_MULTIPLE_COMMAND_0_PROPERTY,
+ ENHANCE_MULTIPLE_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* enhance_multiple_command_properties[ENHANCE_MULTIPLE_COMMAND_NUM_PROPERTIES];
#define TYPE_STRAIGHTEN_COMMAND (straighten_command_get_type ())
#define STRAIGHTEN_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRAIGHTEN_COMMAND, StraightenCommand))
@@ -644,6 +750,11 @@ typedef struct _StraightenCommandPrivate StraightenCommandPrivate;
#define TYPE_BOX (box_get_type ())
typedef struct _Box Box;
+enum {
+ STRAIGHTEN_COMMAND_0_PROPERTY,
+ STRAIGHTEN_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* straighten_command_properties[STRAIGHTEN_COMMAND_NUM_PROPERTIES];
#define TYPE_CROP_COMMAND (crop_command_get_type ())
#define CROP_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CROP_COMMAND, CropCommand))
@@ -655,6 +766,11 @@ typedef struct _Box Box;
typedef struct _CropCommand CropCommand;
typedef struct _CropCommandClass CropCommandClass;
typedef struct _CropCommandPrivate CropCommandPrivate;
+enum {
+ CROP_COMMAND_0_PROPERTY,
+ CROP_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* crop_command_properties[CROP_COMMAND_NUM_PROPERTIES];
#define TYPE_ADJUST_COLORS_SINGLE_COMMAND (adjust_colors_single_command_get_type ())
#define ADJUST_COLORS_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommand))
@@ -666,6 +782,11 @@ typedef struct _CropCommandPrivate CropCommandPrivate;
typedef struct _AdjustColorsSingleCommand AdjustColorsSingleCommand;
typedef struct _AdjustColorsSingleCommandClass AdjustColorsSingleCommandClass;
typedef struct _AdjustColorsSingleCommandPrivate AdjustColorsSingleCommandPrivate;
+enum {
+ ADJUST_COLORS_SINGLE_COMMAND_0_PROPERTY,
+ ADJUST_COLORS_SINGLE_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* adjust_colors_single_command_properties[ADJUST_COLORS_SINGLE_COMMAND_NUM_PROPERTIES];
#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL)))
#define TYPE_ADJUST_COLORS_MULTIPLE_COMMAND (adjust_colors_multiple_command_get_type ())
@@ -678,6 +799,11 @@ typedef struct _AdjustColorsSingleCommandPrivate AdjustColorsSingleCommandPrivat
typedef struct _AdjustColorsMultipleCommand AdjustColorsMultipleCommand;
typedef struct _AdjustColorsMultipleCommandClass AdjustColorsMultipleCommandClass;
typedef struct _AdjustColorsMultipleCommandPrivate AdjustColorsMultipleCommandPrivate;
+enum {
+ ADJUST_COLORS_MULTIPLE_COMMAND_0_PROPERTY,
+ ADJUST_COLORS_MULTIPLE_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* adjust_colors_multiple_command_properties[ADJUST_COLORS_MULTIPLE_COMMAND_NUM_PROPERTIES];
#define TYPE_REDEYE_COMMAND (redeye_command_get_type ())
#define REDEYE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REDEYE_COMMAND, RedeyeCommand))
@@ -692,6 +818,11 @@ typedef struct _RedeyeCommandPrivate RedeyeCommandPrivate;
#define EDITING_TOOLS_TYPE_REDEYE_INSTANCE (editing_tools_redeye_instance_get_type ())
typedef struct _EditingToolsRedeyeInstance EditingToolsRedeyeInstance;
+enum {
+ REDEYE_COMMAND_0_PROPERTY,
+ REDEYE_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* redeye_command_properties[REDEYE_COMMAND_NUM_PROPERTIES];
#define TYPE_MOVE_PHOTOS_COMMAND (move_photos_command_get_type ())
#define MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand))
@@ -713,7 +844,17 @@ typedef struct _MovePhotosCommandPrivate MovePhotosCommandPrivate;
typedef struct _MovePhotosCommandRealMovePhotosCommand MovePhotosCommandRealMovePhotosCommand;
typedef struct _MovePhotosCommandRealMovePhotosCommandClass MovePhotosCommandRealMovePhotosCommandClass;
+enum {
+ MOVE_PHOTOS_COMMAND_0_PROPERTY,
+ MOVE_PHOTOS_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* move_photos_command_properties[MOVE_PHOTOS_COMMAND_NUM_PROPERTIES];
typedef struct _MovePhotosCommandRealMovePhotosCommandPrivate MovePhotosCommandRealMovePhotosCommandPrivate;
+enum {
+ MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_0_PROPERTY,
+ MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* move_photos_command_real_move_photos_command_properties[MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_NUM_PROPERTIES];
#define TYPE_EVENT_PAGE (event_page_get_type ())
#define EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_PAGE, EventPage))
@@ -735,6 +876,11 @@ typedef struct _EventPageClass EventPageClass;
typedef struct _NewEventCommand NewEventCommand;
typedef struct _NewEventCommandClass NewEventCommandClass;
typedef struct _NewEventCommandPrivate NewEventCommandPrivate;
+enum {
+ NEW_EVENT_COMMAND_0_PROPERTY,
+ NEW_EVENT_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* new_event_command_properties[NEW_EVENT_COMMAND_NUM_PROPERTIES];
#define TYPE_SET_EVENT_COMMAND (set_event_command_get_type ())
#define SET_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_EVENT_COMMAND, SetEventCommand))
@@ -746,6 +892,11 @@ typedef struct _NewEventCommandPrivate NewEventCommandPrivate;
typedef struct _SetEventCommand SetEventCommand;
typedef struct _SetEventCommandClass SetEventCommandClass;
typedef struct _SetEventCommandPrivate SetEventCommandPrivate;
+enum {
+ SET_EVENT_COMMAND_0_PROPERTY,
+ SET_EVENT_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* set_event_command_properties[SET_EVENT_COMMAND_NUM_PROPERTIES];
#define TYPE_MERGE_EVENTS_COMMAND (merge_events_command_get_type ())
#define MERGE_EVENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MERGE_EVENTS_COMMAND, MergeEventsCommand))
@@ -757,6 +908,11 @@ typedef struct _SetEventCommandPrivate SetEventCommandPrivate;
typedef struct _MergeEventsCommand MergeEventsCommand;
typedef struct _MergeEventsCommandClass MergeEventsCommandClass;
typedef struct _MergeEventsCommandPrivate MergeEventsCommandPrivate;
+enum {
+ MERGE_EVENTS_COMMAND_0_PROPERTY,
+ MERGE_EVENTS_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* merge_events_command_properties[MERGE_EVENTS_COMMAND_NUM_PROPERTIES];
#define TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND (duplicate_multiple_photos_command_get_type ())
#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand))
@@ -778,6 +934,11 @@ typedef struct _DuplicateMultiplePhotosCommandPrivate DuplicateMultiplePhotosCom
typedef struct _LibraryPhoto LibraryPhoto;
typedef struct _LibraryPhotoClass LibraryPhotoClass;
+enum {
+ DUPLICATE_MULTIPLE_PHOTOS_COMMAND_0_PROPERTY,
+ DUPLICATE_MULTIPLE_PHOTOS_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* duplicate_multiple_photos_command_properties[DUPLICATE_MULTIPLE_PHOTOS_COMMAND_NUM_PROPERTIES];
#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
@@ -809,6 +970,11 @@ typedef struct _SetRatingSingleCommandClass SetRatingSingleCommandClass;
typedef struct _SetRatingSingleCommandPrivate SetRatingSingleCommandPrivate;
#define TYPE_RATING (rating_get_type ())
+enum {
+ SET_RATING_SINGLE_COMMAND_0_PROPERTY,
+ SET_RATING_SINGLE_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* set_rating_single_command_properties[SET_RATING_SINGLE_COMMAND_NUM_PROPERTIES];
#define TYPE_SET_RATING_COMMAND (set_rating_command_get_type ())
#define SET_RATING_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RATING_COMMAND, SetRatingCommand))
@@ -820,6 +986,11 @@ typedef struct _SetRatingSingleCommandPrivate SetRatingSingleCommandPrivate;
typedef struct _SetRatingCommand SetRatingCommand;
typedef struct _SetRatingCommandClass SetRatingCommandClass;
typedef struct _SetRatingCommandPrivate SetRatingCommandPrivate;
+enum {
+ SET_RATING_COMMAND_0_PROPERTY,
+ SET_RATING_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* set_rating_command_properties[SET_RATING_COMMAND_NUM_PROPERTIES];
#define TYPE_SET_RAW_DEVELOPER_COMMAND (set_raw_developer_command_get_type ())
#define SET_RAW_DEVELOPER_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand))
@@ -833,6 +1004,11 @@ typedef struct _SetRawDeveloperCommandClass SetRawDeveloperCommandClass;
typedef struct _SetRawDeveloperCommandPrivate SetRawDeveloperCommandPrivate;
#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
+enum {
+ SET_RAW_DEVELOPER_COMMAND_0_PROPERTY,
+ SET_RAW_DEVELOPER_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* set_raw_developer_command_properties[SET_RAW_DEVELOPER_COMMAND_NUM_PROPERTIES];
#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
@@ -854,6 +1030,11 @@ typedef struct _AdjustDateTimePhotoCommandPrivate AdjustDateTimePhotoCommandPriv
typedef struct _Dateable Dateable;
typedef struct _DateableIface DateableIface;
+enum {
+ ADJUST_DATE_TIME_PHOTO_COMMAND_0_PROPERTY,
+ ADJUST_DATE_TIME_PHOTO_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* adjust_date_time_photo_command_properties[ADJUST_DATE_TIME_PHOTO_COMMAND_NUM_PROPERTIES];
#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
@@ -895,6 +1076,11 @@ typedef struct _EventViewClass EventViewClass;
typedef struct _AdjustDateTimePhotosCommand AdjustDateTimePhotosCommand;
typedef struct _AdjustDateTimePhotosCommandClass AdjustDateTimePhotosCommandClass;
typedef struct _AdjustDateTimePhotosCommandPrivate AdjustDateTimePhotosCommandPrivate;
+enum {
+ ADJUST_DATE_TIME_PHOTOS_COMMAND_0_PROPERTY,
+ ADJUST_DATE_TIME_PHOTOS_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* adjust_date_time_photos_command_properties[ADJUST_DATE_TIME_PHOTOS_COMMAND_NUM_PROPERTIES];
#define TYPE_ADD_TAGS_COMMAND (add_tags_command_get_type ())
#define ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommand))
@@ -906,6 +1092,11 @@ typedef struct _AdjustDateTimePhotosCommandPrivate AdjustDateTimePhotosCommandPr
typedef struct _AddTagsCommand AddTagsCommand;
typedef struct _AddTagsCommandClass AddTagsCommandClass;
typedef struct _AddTagsCommandPrivate AddTagsCommandPrivate;
+enum {
+ ADD_TAGS_COMMAND_0_PROPERTY,
+ ADD_TAGS_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* add_tags_command_properties[ADD_TAGS_COMMAND_NUM_PROPERTIES];
#define TYPE_VIDEO_SOURCE_COLLECTION (video_source_collection_get_type ())
#define VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection))
@@ -937,6 +1128,11 @@ typedef struct _TagClass TagClass;
typedef struct _RenameTagCommand RenameTagCommand;
typedef struct _RenameTagCommandClass RenameTagCommandClass;
typedef struct _RenameTagCommandPrivate RenameTagCommandPrivate;
+enum {
+ RENAME_TAG_COMMAND_0_PROPERTY,
+ RENAME_TAG_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* rename_tag_command_properties[RENAME_TAG_COMMAND_NUM_PROPERTIES];
#define TYPE_DELETE_TAG_COMMAND (delete_tag_command_get_type ())
#define DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommand))
@@ -948,6 +1144,11 @@ typedef struct _RenameTagCommandPrivate RenameTagCommandPrivate;
typedef struct _DeleteTagCommand DeleteTagCommand;
typedef struct _DeleteTagCommandClass DeleteTagCommandClass;
typedef struct _DeleteTagCommandPrivate DeleteTagCommandPrivate;
+enum {
+ DELETE_TAG_COMMAND_0_PROPERTY,
+ DELETE_TAG_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* delete_tag_command_properties[DELETE_TAG_COMMAND_NUM_PROPERTIES];
#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
@@ -969,6 +1170,11 @@ typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
typedef struct _NewChildTagCommand NewChildTagCommand;
typedef struct _NewChildTagCommandClass NewChildTagCommandClass;
typedef struct _NewChildTagCommandPrivate NewChildTagCommandPrivate;
+enum {
+ NEW_CHILD_TAG_COMMAND_0_PROPERTY,
+ NEW_CHILD_TAG_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* new_child_tag_command_properties[NEW_CHILD_TAG_COMMAND_NUM_PROPERTIES];
#define TYPE_NEW_ROOT_TAG_COMMAND (new_root_tag_command_get_type ())
#define NEW_ROOT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommand))
@@ -980,6 +1186,11 @@ typedef struct _NewChildTagCommandPrivate NewChildTagCommandPrivate;
typedef struct _NewRootTagCommand NewRootTagCommand;
typedef struct _NewRootTagCommandClass NewRootTagCommandClass;
typedef struct _NewRootTagCommandPrivate NewRootTagCommandPrivate;
+enum {
+ NEW_ROOT_TAG_COMMAND_0_PROPERTY,
+ NEW_ROOT_TAG_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* new_root_tag_command_properties[NEW_ROOT_TAG_COMMAND_NUM_PROPERTIES];
#define TYPE_REPARENT_TAG_COMMAND (reparent_tag_command_get_type ())
#define REPARENT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommand))
@@ -991,6 +1202,11 @@ typedef struct _NewRootTagCommandPrivate NewRootTagCommandPrivate;
typedef struct _ReparentTagCommand ReparentTagCommand;
typedef struct _ReparentTagCommandClass ReparentTagCommandClass;
typedef struct _ReparentTagCommandPrivate ReparentTagCommandPrivate;
+enum {
+ REPARENT_TAG_COMMAND_0_PROPERTY,
+ REPARENT_TAG_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* reparent_tag_command_properties[REPARENT_TAG_COMMAND_NUM_PROPERTIES];
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
#define TYPE_MODIFY_TAGS_COMMAND (modify_tags_command_get_type ())
@@ -1003,6 +1219,11 @@ typedef struct _ReparentTagCommandPrivate ReparentTagCommandPrivate;
typedef struct _ModifyTagsCommand ModifyTagsCommand;
typedef struct _ModifyTagsCommandClass ModifyTagsCommandClass;
typedef struct _ModifyTagsCommandPrivate ModifyTagsCommandPrivate;
+enum {
+ MODIFY_TAGS_COMMAND_0_PROPERTY,
+ MODIFY_TAGS_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* modify_tags_command_properties[MODIFY_TAGS_COMMAND_NUM_PROPERTIES];
#define TYPE_TAG_UNTAG_PHOTOS_COMMAND (tag_untag_photos_command_get_type ())
#define TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommand))
@@ -1014,6 +1235,11 @@ typedef struct _ModifyTagsCommandPrivate ModifyTagsCommandPrivate;
typedef struct _TagUntagPhotosCommand TagUntagPhotosCommand;
typedef struct _TagUntagPhotosCommandClass TagUntagPhotosCommandClass;
typedef struct _TagUntagPhotosCommandPrivate TagUntagPhotosCommandPrivate;
+enum {
+ TAG_UNTAG_PHOTOS_COMMAND_0_PROPERTY,
+ TAG_UNTAG_PHOTOS_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* tag_untag_photos_command_properties[TAG_UNTAG_PHOTOS_COMMAND_NUM_PROPERTIES];
#define TYPE_RENAME_SAVED_SEARCH_COMMAND (rename_saved_search_command_get_type ())
#define RENAME_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommand))
@@ -1035,6 +1261,11 @@ typedef struct _RenameSavedSearchCommandPrivate RenameSavedSearchCommandPrivate;
typedef struct _SavedSearch SavedSearch;
typedef struct _SavedSearchClass SavedSearchClass;
+enum {
+ RENAME_SAVED_SEARCH_COMMAND_0_PROPERTY,
+ RENAME_SAVED_SEARCH_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* rename_saved_search_command_properties[RENAME_SAVED_SEARCH_COMMAND_NUM_PROPERTIES];
#define TYPE_DELETE_SAVED_SEARCH_COMMAND (delete_saved_search_command_get_type ())
#define DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommand))
@@ -1046,6 +1277,11 @@ typedef struct _SavedSearchClass SavedSearchClass;
typedef struct _DeleteSavedSearchCommand DeleteSavedSearchCommand;
typedef struct _DeleteSavedSearchCommandClass DeleteSavedSearchCommandClass;
typedef struct _DeleteSavedSearchCommandPrivate DeleteSavedSearchCommandPrivate;
+enum {
+ DELETE_SAVED_SEARCH_COMMAND_0_PROPERTY,
+ DELETE_SAVED_SEARCH_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* delete_saved_search_command_properties[DELETE_SAVED_SEARCH_COMMAND_NUM_PROPERTIES];
#define TYPE_SAVED_SEARCH_TABLE (saved_search_table_get_type ())
#define SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTable))
@@ -1068,6 +1304,11 @@ typedef struct _SavedSearchTableClass SavedSearchTableClass;
typedef struct _TrashUntrashPhotosCommand TrashUntrashPhotosCommand;
typedef struct _TrashUntrashPhotosCommandClass TrashUntrashPhotosCommandClass;
typedef struct _TrashUntrashPhotosCommandPrivate TrashUntrashPhotosCommandPrivate;
+enum {
+ TRASH_UNTRASH_PHOTOS_COMMAND_0_PROPERTY,
+ TRASH_UNTRASH_PHOTOS_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* trash_untrash_photos_command_properties[TRASH_UNTRASH_PHOTOS_COMMAND_NUM_PROPERTIES];
#define TYPE_FLAG_UNFLAG_COMMAND (flag_unflag_command_get_type ())
#define FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand))
@@ -1079,6 +1320,11 @@ typedef struct _TrashUntrashPhotosCommandPrivate TrashUntrashPhotosCommandPrivat
typedef struct _FlagUnflagCommand FlagUnflagCommand;
typedef struct _FlagUnflagCommandClass FlagUnflagCommandClass;
typedef struct _FlagUnflagCommandPrivate FlagUnflagCommandPrivate;
+enum {
+ FLAG_UNFLAG_COMMAND_0_PROPERTY,
+ FLAG_UNFLAG_COMMAND_NUM_PROPERTIES
+};
+static GParamSpec* flag_unflag_command_properties[FLAG_UNFLAG_COMMAND_NUM_PROPERTIES];
#define TYPE_FLAGGABLE (flaggable_get_type ())
#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable))
@@ -1932,17 +2178,21 @@ GType checkerboard_page_get_type (void) G_GNUC_CONST;
GType media_page_get_type (void) G_GNUC_CONST;
GType collection_page_get_type (void) G_GNUC_CONST;
#define PAGE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PAGE_COMMAND, PageCommandPrivate))
-enum {
- PAGE_COMMAND_DUMMY_PROPERTY
-};
static void page_command_on_page_destroyed (PageCommand* self);
-static void _page_command_on_page_destroyed_gtk_widget_destroy (GtkWidget* _sender, gpointer self);
+static void _page_command_on_page_destroyed_gtk_widget_destroy (GtkWidget* _sender,
+ gpointer self);
static void page_command_on_photo_destroyed (PageCommand* self);
-static void _page_command_on_photo_destroyed_data_source_destroyed (DataSource* _sender, gpointer self);
+static void _page_command_on_photo_destroyed_data_source_destroyed (DataSource* _sender,
+ gpointer self);
static void page_command_on_controller_destroyed (PageCommand* self);
-static void _page_command_on_controller_destroyed_gtk_widget_destroy (GtkWidget* _sender, gpointer self);
-PageCommand* page_command_construct (GType object_type, const gchar* name, const gchar* explanation);
-Command* command_construct (GType object_type, const gchar* name, const gchar* explanation);
+static void _page_command_on_controller_destroyed_gtk_widget_destroy (GtkWidget* _sender,
+ gpointer self);
+PageCommand* page_command_construct (GType object_type,
+ const gchar* name,
+ const gchar* explanation);
+Command* command_construct (GType object_type,
+ const gchar* name,
+ const gchar* explanation);
GType page_window_get_type (void) G_GNUC_CONST;
GType app_window_get_type (void) G_GNUC_CONST;
AppWindow* app_window_get_instance (void);
@@ -1952,21 +2202,29 @@ GType editing_host_page_get_type (void) G_GNUC_CONST;
GType library_photo_page_get_type (void) G_GNUC_CONST;
Photo* editing_host_page_get_photo (EditingHostPage* self);
CollectionPage* library_photo_page_get_controller_page (LibraryPhotoPage* self);
-void page_command_set_auto_return_to_page (PageCommand* self, gboolean auto_return);
+void page_command_set_auto_return_to_page (PageCommand* self,
+ gboolean auto_return);
static void page_command_real_prepare (Command* base);
void page_command_return_to_page (PageCommand* self);
void command_prepare (Command* self);
gpointer data_collection_ref (gpointer instance);
void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_data_collection (GValue* value, gpointer v_object);
-void value_take_data_collection (GValue* value, gpointer v_object);
+GParamSpec* param_spec_data_collection (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_data_collection (GValue* value,
+ gpointer v_object);
+void value_take_data_collection (GValue* value,
+ gpointer v_object);
gpointer value_get_data_collection (const GValue* value);
GType data_collection_get_type (void) G_GNUC_CONST;
GType view_collection_get_type (void) G_GNUC_CONST;
ViewCollection* page_get_view (Page* self);
gint data_collection_get_count (DataCollection* self);
-DataObject* data_collection_get_at (DataCollection* self, gint index);
+DataObject* data_collection_get_at (DataCollection* self,
+ gint index);
GType data_view_get_type (void) G_GNUC_CONST;
GType thumbnail_view_get_type (void) G_GNUC_CONST;
GType checkerboard_item_get_type (void) G_GNUC_CONST;
@@ -1975,22 +2233,32 @@ GType thumbnail_get_type (void) G_GNUC_CONST;
MediaSource* thumbnail_get_media_source (Thumbnail* self);
GType library_window_get_type (void) G_GNUC_CONST;
LibraryWindow* library_window_get_app (void);
-void library_window_switch_to_photo_page (LibraryWindow* self, CollectionPage* controller, Photo* current);
-void page_window_set_current_page (PageWindow* self, Page* page);
+void library_window_switch_to_photo_page (LibraryWindow* self,
+ CollectionPage* controller,
+ Photo* current);
+void page_window_set_current_page (PageWindow* self,
+ Page* page);
static void page_command_finalize (GObject * obj);
GType single_data_source_command_get_type (void) G_GNUC_CONST;
-enum {
- SINGLE_DATA_SOURCE_COMMAND_DUMMY_PROPERTY
-};
static void single_data_source_command_on_source_destroyed (SingleDataSourceCommand* self);
-static void _single_data_source_command_on_source_destroyed_data_source_destroyed (DataSource* _sender, gpointer self);
-SingleDataSourceCommand* single_data_source_command_construct (GType object_type, DataSource* source, const gchar* name, const gchar* explanation);
+static void _single_data_source_command_on_source_destroyed_data_source_destroyed (DataSource* _sender,
+ gpointer self);
+SingleDataSourceCommand* single_data_source_command_construct (GType object_type,
+ DataSource* source,
+ const gchar* name,
+ const gchar* explanation);
DataSource* single_data_source_command_get_source (SingleDataSourceCommand* self);
gpointer command_manager_ref (gpointer instance);
void command_manager_unref (gpointer instance);
-GParamSpec* param_spec_command_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_command_manager (GValue* value, gpointer v_object);
-void value_take_command_manager (GValue* value, gpointer v_object);
+GParamSpec* param_spec_command_manager (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_command_manager (GValue* value,
+ gpointer v_object);
+void value_take_command_manager (GValue* value,
+ gpointer v_object);
gpointer value_get_command_manager (const GValue* value);
GType command_manager_get_type (void) G_GNUC_CONST;
CommandManager* command_get_command_manager (Command* self);
@@ -1999,91 +2267,130 @@ static void single_data_source_command_finalize (GObject * obj);
GType simple_proxyable_command_get_type (void) G_GNUC_CONST;
gpointer source_proxy_ref (gpointer instance);
void source_proxy_unref (gpointer instance);
-GParamSpec* param_spec_source_proxy (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_source_proxy (GValue* value, gpointer v_object);
-void value_take_source_proxy (GValue* value, gpointer v_object);
+GParamSpec* param_spec_source_proxy (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_source_proxy (GValue* value,
+ gpointer v_object);
+void value_take_source_proxy (GValue* value,
+ gpointer v_object);
gpointer value_get_source_proxy (const GValue* value);
GType source_proxy_get_type (void) G_GNUC_CONST;
#define SIMPLE_PROXYABLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandPrivate))
-enum {
- SIMPLE_PROXYABLE_COMMAND_DUMMY_PROPERTY
-};
static void simple_proxyable_command_on_proxy_broken (SimpleProxyableCommand* self);
-static void _simple_proxyable_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, gpointer self);
+static void _simple_proxyable_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
+ gpointer self);
void simple_proxyable_command_clear_added_proxies (SimpleProxyableCommand* self);
GType proxyable_get_type (void) G_GNUC_CONST;
-SimpleProxyableCommand* simple_proxyable_command_construct (GType object_type, Proxyable* proxyable, const gchar* name, const gchar* explanation);
+SimpleProxyableCommand* simple_proxyable_command_construct (GType object_type,
+ Proxyable* proxyable,
+ const gchar* name,
+ const gchar* explanation);
SourceProxy* proxyable_get_proxy (Proxyable* self);
static void simple_proxyable_command_real_execute (Command* base);
-void simple_proxyable_command_execute_on_source (SimpleProxyableCommand* self, DataSource* source);
+void simple_proxyable_command_execute_on_source (SimpleProxyableCommand* self,
+ DataSource* source);
DataSource* source_proxy_get_source (SourceProxy* self);
-static void simple_proxyable_command_real_execute_on_source (SimpleProxyableCommand* self, DataSource* source);
+static void simple_proxyable_command_real_execute_on_source (SimpleProxyableCommand* self,
+ DataSource* source);
static void simple_proxyable_command_real_undo (Command* base);
-void simple_proxyable_command_undo_on_source (SimpleProxyableCommand* self, DataSource* source);
-static void simple_proxyable_command_real_undo_on_source (SimpleProxyableCommand* self, DataSource* source);
-void simple_proxyable_command_add_proxyables (SimpleProxyableCommand* self, GeeCollection* proxyables);
+void simple_proxyable_command_undo_on_source (SimpleProxyableCommand* self,
+ DataSource* source);
+static void simple_proxyable_command_real_undo_on_source (SimpleProxyableCommand* self,
+ DataSource* source);
+void simple_proxyable_command_add_proxyables (SimpleProxyableCommand* self,
+ GeeCollection* proxyables);
static void simple_proxyable_command_finalize (GObject * obj);
GType single_photo_transformation_command_get_type (void) G_GNUC_CONST;
GType photo_transformation_state_get_type (void) G_GNUC_CONST;
#define SINGLE_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND, SinglePhotoTransformationCommandPrivate))
-enum {
- SINGLE_PHOTO_TRANSFORMATION_COMMAND_DUMMY_PROPERTY
-};
static void single_photo_transformation_command_on_state_broken (SinglePhotoTransformationCommand* self);
-static void _single_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender, gpointer self);
-SinglePhotoTransformationCommand* single_photo_transformation_command_construct (GType object_type, Photo* photo, const gchar* name, const gchar* explanation);
+static void _single_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender,
+ gpointer self);
+SinglePhotoTransformationCommand* single_photo_transformation_command_construct (GType object_type,
+ Photo* photo,
+ const gchar* name,
+ const gchar* explanation);
PhotoTransformationState* photo_save_transformation_state (Photo* self);
static void single_photo_transformation_command_real_undo (Command* base);
-gboolean photo_load_transformation_state (Photo* self, PhotoTransformationState* state);
+gboolean photo_load_transformation_state (Photo* self,
+ PhotoTransformationState* state);
static void single_photo_transformation_command_finalize (GObject * obj);
GType generic_photo_transformation_command_get_type (void) G_GNUC_CONST;
#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandPrivate))
-enum {
- GENERIC_PHOTO_TRANSFORMATION_COMMAND_DUMMY_PROPERTY
-};
static void generic_photo_transformation_command_on_state_broken (GenericPhotoTransformationCommand* self);
-static void _generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender, gpointer self);
-GenericPhotoTransformationCommand* generic_photo_transformation_command_construct (GType object_type, Photo* photo, const gchar* name, const gchar* explanation);
+static void _generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender,
+ gpointer self);
+GenericPhotoTransformationCommand* generic_photo_transformation_command_construct (GType object_type,
+ Photo* photo,
+ const gchar* name,
+ const gchar* explanation);
static void generic_photo_transformation_command_real_execute (Command* base);
-void generic_photo_transformation_command_execute_on_photo (GenericPhotoTransformationCommand* self, Photo* photo);
-static void generic_photo_transformation_command_real_execute_on_photo (GenericPhotoTransformationCommand* self, Photo* photo);
+void generic_photo_transformation_command_execute_on_photo (GenericPhotoTransformationCommand* self,
+ Photo* photo);
+static void generic_photo_transformation_command_real_execute_on_photo (GenericPhotoTransformationCommand* self,
+ Photo* photo);
static void generic_photo_transformation_command_real_undo (Command* base);
static void generic_photo_transformation_command_real_redo (Command* base);
-gboolean generic_photo_transformation_command_can_compress (GenericPhotoTransformationCommand* self, Command* command);
-static gboolean generic_photo_transformation_command_real_can_compress (GenericPhotoTransformationCommand* self, Command* command);
-static gboolean generic_photo_transformation_command_real_compress (Command* base, Command* command);
+gboolean generic_photo_transformation_command_can_compress (GenericPhotoTransformationCommand* self,
+ Command* command);
+static gboolean generic_photo_transformation_command_real_can_compress (GenericPhotoTransformationCommand* self,
+ Command* command);
+static gboolean generic_photo_transformation_command_real_compress (Command* base,
+ Command* command);
void command_execute (Command* self);
static void generic_photo_transformation_command_finalize (GObject * obj);
GType multiple_data_source_command_get_type (void) G_GNUC_CONST;
GType source_collection_get_type (void) G_GNUC_CONST;
#define MULTIPLE_DATA_SOURCE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandPrivate))
-enum {
- MULTIPLE_DATA_SOURCE_COMMAND_DUMMY_PROPERTY
-};
-static void multiple_data_source_command_on_source_destroyed (MultipleDataSourceCommand* self, DataSource* source);
-static void _multiple_data_source_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, DataSource* source, gpointer self);
+static void multiple_data_source_command_on_source_destroyed (MultipleDataSourceCommand* self,
+ DataSource* source);
+static void _multiple_data_source_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
+ DataSource* source,
+ gpointer self);
#define MULTIPLE_DATA_SOURCE_COMMAND_MIN_OPS_FOR_PROGRESS_WINDOW 5
-MultipleDataSourceCommand* multiple_data_source_command_construct (GType object_type, GeeIterable* iter, const gchar* progress_text, const gchar* undo_progress_text, const gchar* name, const gchar* explanation);
+MultipleDataSourceCommand* multiple_data_source_command_construct (GType object_type,
+ GeeIterable* iter,
+ const gchar* progress_text,
+ const gchar* undo_progress_text,
+ const gchar* name,
+ const gchar* explanation);
DataSource* data_view_get_source (DataView* self);
DataCollection* data_object_get_membership (DataObject* self);
GeeIterable* multiple_data_source_command_get_sources (MultipleDataSourceCommand* self);
gint multiple_data_source_command_get_source_count (MultipleDataSourceCommand* self);
static void multiple_data_source_command_real_execute (Command* base);
static void multiple_data_source_command_start_transaction (MultipleDataSourceCommand* self);
-static void multiple_data_source_command_execute_all (MultipleDataSourceCommand* self, gboolean exec, gboolean can_cancel, GeeArrayList* todo, GeeArrayList* completed);
+static void multiple_data_source_command_execute_all (MultipleDataSourceCommand* self,
+ gboolean exec,
+ gboolean can_cancel,
+ GeeArrayList* todo,
+ GeeArrayList* completed);
static void multiple_data_source_command_commit_transaction (MultipleDataSourceCommand* self);
-void multiple_data_source_command_execute_on_source (MultipleDataSourceCommand* self, DataSource* source);
-static void multiple_data_source_command_real_execute_on_source (MultipleDataSourceCommand* self, DataSource* source);
+void multiple_data_source_command_execute_on_source (MultipleDataSourceCommand* self,
+ DataSource* source);
+static void multiple_data_source_command_real_execute_on_source (MultipleDataSourceCommand* self,
+ DataSource* source);
static void multiple_data_source_command_real_undo (Command* base);
-void multiple_data_source_command_undo_on_source (MultipleDataSourceCommand* self, DataSource* source);
-static void multiple_data_source_command_real_undo_on_source (MultipleDataSourceCommand* self, DataSource* source);
+void multiple_data_source_command_undo_on_source (MultipleDataSourceCommand* self,
+ DataSource* source);
+static void multiple_data_source_command_real_undo_on_source (MultipleDataSourceCommand* self,
+ DataSource* source);
GType database_source_collection_get_type (void) G_GNUC_CONST;
GType media_source_collection_get_type (void) G_GNUC_CONST;
gpointer transaction_controller_ref (gpointer instance);
void transaction_controller_unref (gpointer instance);
-GParamSpec* param_spec_transaction_controller (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_transaction_controller (GValue* value, gpointer v_object);
-void value_take_transaction_controller (GValue* value, gpointer v_object);
+GParamSpec* param_spec_transaction_controller (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_transaction_controller (GValue* value,
+ gpointer v_object);
+void value_take_transaction_controller (GValue* value,
+ gpointer v_object);
gpointer value_get_transaction_controller (const GValue* value);
GType transaction_controller_get_type (void) G_GNUC_CONST;
TransactionController* media_source_collection_get_transaction_controller (MediaSourceCollection* self);
@@ -2091,498 +2398,651 @@ void transaction_controller_begin (TransactionController* self);
void transaction_controller_commit (TransactionController* self);
void page_window_set_busy_cursor (PageWindow* self);
GType progress_dialog_get_type (void) G_GNUC_CONST;
-ProgressDialog* progress_dialog_new (GtkWindow* owner, const gchar* text, GCancellable* cancellable);
-ProgressDialog* progress_dialog_construct (GType object_type, GtkWindow* owner, const gchar* text, GCancellable* cancellable);
-void progress_dialog_set_fraction (ProgressDialog* self, gint current, gint total);
+ProgressDialog* progress_dialog_new (GtkWindow* owner,
+ const gchar* text,
+ GCancellable* cancellable);
+ProgressDialog* progress_dialog_construct (GType object_type,
+ GtkWindow* owner,
+ const gchar* text,
+ GCancellable* cancellable);
+void progress_dialog_set_fraction (ProgressDialog* self,
+ gint current,
+ gint total);
void spin_event_loop (void);
void progress_dialog_close (ProgressDialog* self);
void page_window_set_normal_cursor (PageWindow* self);
static void multiple_data_source_command_finalize (GObject * obj);
GType multiple_data_source_at_once_command_get_type (void) G_GNUC_CONST;
#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandPrivate))
-enum {
- MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_DUMMY_PROPERTY
-};
-static void multiple_data_source_at_once_command_on_sources_destroyed (MultipleDataSourceAtOnceCommand* self, GeeCollection* destroyed);
-static void _multiple_data_source_at_once_command_on_sources_destroyed_source_collection_items_destroyed (SourceCollection* _sender, GeeCollection* destroyed, gpointer self);
-MultipleDataSourceAtOnceCommand* multiple_data_source_at_once_command_construct (GType object_type, GeeCollection* sources, const gchar* name, const gchar* explanation);
+static void multiple_data_source_at_once_command_on_sources_destroyed (MultipleDataSourceAtOnceCommand* self,
+ GeeCollection* destroyed);
+static void _multiple_data_source_at_once_command_on_sources_destroyed_source_collection_items_destroyed (SourceCollection* _sender,
+ GeeCollection* destroyed,
+ gpointer self);
+MultipleDataSourceAtOnceCommand* multiple_data_source_at_once_command_construct (GType object_type,
+ GeeCollection* sources,
+ const gchar* name,
+ const gchar* explanation);
static void multiple_data_source_at_once_command_real_execute (Command* base);
void database_table_begin_transaction (void);
gpointer media_collection_registry_ref (gpointer instance);
void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_media_collection_registry (GValue* value, gpointer v_object);
-void value_take_media_collection_registry (GValue* value, gpointer v_object);
+GParamSpec* param_spec_media_collection_registry (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_media_collection_registry (GValue* value,
+ gpointer v_object);
+void value_take_media_collection_registry (GValue* value,
+ gpointer v_object);
gpointer value_get_media_collection_registry (const GValue* value);
GType media_collection_registry_get_type (void) G_GNUC_CONST;
MediaCollectionRegistry* media_collection_registry_get_instance (void);
void media_collection_registry_freeze_all (MediaCollectionRegistry* self);
-void multiple_data_source_at_once_command_execute_on_all (MultipleDataSourceAtOnceCommand* self, GeeCollection* sources);
+void multiple_data_source_at_once_command_execute_on_all (MultipleDataSourceAtOnceCommand* self,
+ GeeCollection* sources);
void media_collection_registry_thaw_all (MediaCollectionRegistry* self);
GQuark database_error_quark (void);
void database_table_commit_transaction (GError** error);
void app_window_database_error (GError* err);
-static void multiple_data_source_at_once_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* self, GeeCollection* sources);
+static void multiple_data_source_at_once_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* self,
+ GeeCollection* sources);
static void multiple_data_source_at_once_command_real_undo (Command* base);
-void multiple_data_source_at_once_command_undo_on_all (MultipleDataSourceAtOnceCommand* self, GeeCollection* sources);
-static void multiple_data_source_at_once_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* self, GeeCollection* sources);
+void multiple_data_source_at_once_command_undo_on_all (MultipleDataSourceAtOnceCommand* self,
+ GeeCollection* sources);
+static void multiple_data_source_at_once_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* self,
+ GeeCollection* sources);
static void multiple_data_source_at_once_command_finalize (GObject * obj);
GType multiple_photo_transformation_command_get_type (void) G_GNUC_CONST;
#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommandPrivate))
-enum {
- MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_DUMMY_PROPERTY
-};
static void multiple_photo_transformation_command_on_state_broken (MultiplePhotoTransformationCommand* self);
-static void _multiple_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender, gpointer self);
-MultiplePhotoTransformationCommand* multiple_photo_transformation_command_construct (GType object_type, GeeIterable* iter, const gchar* progress_text, const gchar* undo_progress_text, const gchar* name, const gchar* explanation);
-static void multiple_photo_transformation_command_real_undo_on_source (MultipleDataSourceCommand* base, DataSource* source);
+static void _multiple_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender,
+ gpointer self);
+MultiplePhotoTransformationCommand* multiple_photo_transformation_command_construct (GType object_type,
+ GeeIterable* iter,
+ const gchar* progress_text,
+ const gchar* undo_progress_text,
+ const gchar* name,
+ const gchar* explanation);
+static void multiple_photo_transformation_command_real_undo_on_source (MultipleDataSourceCommand* base,
+ DataSource* source);
static void multiple_photo_transformation_command_finalize (GObject * obj);
GType rotate_single_command_get_type (void) G_GNUC_CONST;
GType rotation_get_type (void) G_GNUC_CONST;
#define ROTATE_SINGLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommandPrivate))
-enum {
- ROTATE_SINGLE_COMMAND_DUMMY_PROPERTY
-};
-RotateSingleCommand* rotate_single_command_new (Photo* photo, Rotation rotation, const gchar* name, const gchar* explanation);
-RotateSingleCommand* rotate_single_command_construct (GType object_type, Photo* photo, Rotation rotation, const gchar* name, const gchar* explanation);
+RotateSingleCommand* rotate_single_command_new (Photo* photo,
+ Rotation rotation,
+ const gchar* name,
+ const gchar* explanation);
+RotateSingleCommand* rotate_single_command_construct (GType object_type,
+ Photo* photo,
+ Rotation rotation,
+ const gchar* name,
+ const gchar* explanation);
static void rotate_single_command_real_execute (Command* base);
-void photo_rotate (Photo* self, Rotation rotation);
+void photo_rotate (Photo* self,
+ Rotation rotation);
static void rotate_single_command_real_undo (Command* base);
Rotation rotation_opposite (Rotation self);
static void rotate_single_command_finalize (GObject * obj);
GType rotate_multiple_command_get_type (void) G_GNUC_CONST;
#define ROTATE_MULTIPLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommandPrivate))
-enum {
- ROTATE_MULTIPLE_COMMAND_DUMMY_PROPERTY
-};
-RotateMultipleCommand* rotate_multiple_command_new (GeeIterable* iter, Rotation rotation, const gchar* name, const gchar* explanation, const gchar* progress_text, const gchar* undo_progress_text);
-RotateMultipleCommand* rotate_multiple_command_construct (GType object_type, GeeIterable* iter, Rotation rotation, const gchar* name, const gchar* explanation, const gchar* progress_text, const gchar* undo_progress_text);
-static void rotate_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source);
-static void rotate_multiple_command_real_undo_on_source (MultipleDataSourceCommand* base, DataSource* source);
+RotateMultipleCommand* rotate_multiple_command_new (GeeIterable* iter,
+ Rotation rotation,
+ const gchar* name,
+ const gchar* explanation,
+ const gchar* progress_text,
+ const gchar* undo_progress_text);
+RotateMultipleCommand* rotate_multiple_command_construct (GType object_type,
+ GeeIterable* iter,
+ Rotation rotation,
+ const gchar* name,
+ const gchar* explanation,
+ const gchar* progress_text,
+ const gchar* undo_progress_text);
+static void rotate_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source);
+static void rotate_multiple_command_real_undo_on_source (MultipleDataSourceCommand* base,
+ DataSource* source);
static void rotate_multiple_command_finalize (GObject * obj);
GType edit_title_command_get_type (void) G_GNUC_CONST;
#define EDIT_TITLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EDIT_TITLE_COMMAND, EditTitleCommandPrivate))
-enum {
- EDIT_TITLE_COMMAND_DUMMY_PROPERTY
-};
-EditTitleCommand* edit_title_command_new (MediaSource* source, const gchar* new_title);
-EditTitleCommand* edit_title_command_construct (GType object_type, MediaSource* source, const gchar* new_title);
+EditTitleCommand* edit_title_command_new (MediaSource* source,
+ const gchar* new_title);
+EditTitleCommand* edit_title_command_construct (GType object_type,
+ MediaSource* source,
+ const gchar* new_title);
#define RESOURCES_EDIT_TITLE_LABEL NC_ ("Button Label", "Edit Title")
gchar* media_source_get_title (MediaSource* self);
static void edit_title_command_real_execute (Command* base);
-void media_source_set_title (MediaSource* self, const gchar* title);
+void media_source_set_title (MediaSource* self,
+ const gchar* title);
static void edit_title_command_real_undo (Command* base);
static void edit_title_command_finalize (GObject * obj);
GType edit_comment_command_get_type (void) G_GNUC_CONST;
#define EDIT_COMMENT_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EDIT_COMMENT_COMMAND, EditCommentCommandPrivate))
-enum {
- EDIT_COMMENT_COMMAND_DUMMY_PROPERTY
-};
-EditCommentCommand* edit_comment_command_new (MediaSource* source, const gchar* new_comment);
-EditCommentCommand* edit_comment_command_construct (GType object_type, MediaSource* source, const gchar* new_comment);
+EditCommentCommand* edit_comment_command_new (MediaSource* source,
+ const gchar* new_comment);
+EditCommentCommand* edit_comment_command_construct (GType object_type,
+ MediaSource* source,
+ const gchar* new_comment);
#define RESOURCES_EDIT_COMMENT_LABEL _ ("Edit Comment")
gchar* media_source_get_comment (MediaSource* self);
static void edit_comment_command_real_execute (Command* base);
-gboolean media_source_set_comment (MediaSource* self, const gchar* comment);
+gboolean media_source_set_comment (MediaSource* self,
+ const gchar* comment);
static void edit_comment_command_real_undo (Command* base);
static void edit_comment_command_finalize (GObject * obj);
GType edit_multiple_titles_command_get_type (void) G_GNUC_CONST;
-enum {
- EDIT_MULTIPLE_TITLES_COMMAND_DUMMY_PROPERTY
-};
-EditMultipleTitlesCommand* edit_multiple_titles_command_new (GeeCollection* media_sources, const gchar* new_title);
-EditMultipleTitlesCommand* edit_multiple_titles_command_construct (GType object_type, GeeCollection* media_sources, const gchar* new_title);
-static void edit_multiple_titles_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base, GeeCollection* sources);
-static void edit_multiple_titles_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base, GeeCollection* sources);
+EditMultipleTitlesCommand* edit_multiple_titles_command_new (GeeCollection* media_sources,
+ const gchar* new_title);
+EditMultipleTitlesCommand* edit_multiple_titles_command_construct (GType object_type,
+ GeeCollection* media_sources,
+ const gchar* new_title);
+static void edit_multiple_titles_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base,
+ GeeCollection* sources);
+static void edit_multiple_titles_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base,
+ GeeCollection* sources);
static void edit_multiple_titles_command_finalize (GObject * obj);
GType edit_multiple_comments_command_get_type (void) G_GNUC_CONST;
-enum {
- EDIT_MULTIPLE_COMMENTS_COMMAND_DUMMY_PROPERTY
-};
-EditMultipleCommentsCommand* edit_multiple_comments_command_new (GeeCollection* media_sources, const gchar* new_comment);
-EditMultipleCommentsCommand* edit_multiple_comments_command_construct (GType object_type, GeeCollection* media_sources, const gchar* new_comment);
-static void edit_multiple_comments_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base, GeeCollection* sources);
-static void edit_multiple_comments_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base, GeeCollection* sources);
+EditMultipleCommentsCommand* edit_multiple_comments_command_new (GeeCollection* media_sources,
+ const gchar* new_comment);
+EditMultipleCommentsCommand* edit_multiple_comments_command_construct (GType object_type,
+ GeeCollection* media_sources,
+ const gchar* new_comment);
+static void edit_multiple_comments_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base,
+ GeeCollection* sources);
+static void edit_multiple_comments_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base,
+ GeeCollection* sources);
static void edit_multiple_comments_command_finalize (GObject * obj);
GType rename_event_command_get_type (void) G_GNUC_CONST;
#define RENAME_EVENT_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_RENAME_EVENT_COMMAND, RenameEventCommandPrivate))
-enum {
- RENAME_EVENT_COMMAND_DUMMY_PROPERTY
-};
GType event_source_get_type (void) G_GNUC_CONST;
GType event_get_type (void) G_GNUC_CONST;
-RenameEventCommand* rename_event_command_new (Event* event, const gchar* new_name);
-RenameEventCommand* rename_event_command_construct (GType object_type, Event* event, const gchar* new_name);
+RenameEventCommand* rename_event_command_new (Event* event,
+ const gchar* new_name);
+RenameEventCommand* rename_event_command_construct (GType object_type,
+ Event* event,
+ const gchar* new_name);
#define RESOURCES_RENAME_EVENT_LABEL _ ("Rename Event")
gchar* event_get_raw_name (Event* self);
-static void rename_event_command_real_execute_on_source (SimpleProxyableCommand* base, DataSource* source);
-gboolean event_rename (Event* self, const gchar* name);
-static void rename_event_command_real_undo_on_source (SimpleProxyableCommand* base, DataSource* source);
+static void rename_event_command_real_execute_on_source (SimpleProxyableCommand* base,
+ DataSource* source);
+gboolean event_rename (Event* self,
+ const gchar* name);
+static void rename_event_command_real_undo_on_source (SimpleProxyableCommand* base,
+ DataSource* source);
static void rename_event_command_finalize (GObject * obj);
GType edit_event_comment_command_get_type (void) G_GNUC_CONST;
#define EDIT_EVENT_COMMENT_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommandPrivate))
-enum {
- EDIT_EVENT_COMMENT_COMMAND_DUMMY_PROPERTY
-};
-EditEventCommentCommand* edit_event_comment_command_new (Event* event, const gchar* new_comment);
-EditEventCommentCommand* edit_event_comment_command_construct (GType object_type, Event* event, const gchar* new_comment);
+EditEventCommentCommand* edit_event_comment_command_new (Event* event,
+ const gchar* new_comment);
+EditEventCommentCommand* edit_event_comment_command_construct (GType object_type,
+ Event* event,
+ const gchar* new_comment);
gchar* event_source_get_comment (EventSource* self);
-static void edit_event_comment_command_real_execute_on_source (SimpleProxyableCommand* base, DataSource* source);
-gboolean event_source_set_comment (EventSource* self, const gchar* comment);
-static void edit_event_comment_command_real_undo_on_source (SimpleProxyableCommand* base, DataSource* source);
+static void edit_event_comment_command_real_execute_on_source (SimpleProxyableCommand* base,
+ DataSource* source);
+gboolean event_source_set_comment (EventSource* self,
+ const gchar* comment);
+static void edit_event_comment_command_real_undo_on_source (SimpleProxyableCommand* base,
+ DataSource* source);
static void edit_event_comment_command_finalize (GObject * obj);
GType set_key_photo_command_get_type (void) G_GNUC_CONST;
#define SET_KEY_PHOTO_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommandPrivate))
-enum {
- SET_KEY_PHOTO_COMMAND_DUMMY_PROPERTY
-};
-SetKeyPhotoCommand* set_key_photo_command_new (Event* event, MediaSource* new_primary_source);
-SetKeyPhotoCommand* set_key_photo_command_construct (GType object_type, Event* event, MediaSource* new_primary_source);
+SetKeyPhotoCommand* set_key_photo_command_new (Event* event,
+ MediaSource* new_primary_source);
+SetKeyPhotoCommand* set_key_photo_command_construct (GType object_type,
+ Event* event,
+ MediaSource* new_primary_source);
#define RESOURCES_MAKE_KEY_PHOTO_LABEL _ ("Make Key Photo for Event")
MediaSource* event_get_primary_source (Event* self);
static void set_key_photo_command_real_execute (Command* base);
-gboolean event_set_primary_source (Event* self, MediaSource* source);
+gboolean event_set_primary_source (Event* self,
+ MediaSource* source);
static void set_key_photo_command_real_undo (Command* base);
static void set_key_photo_command_finalize (GObject * obj);
GType revert_single_command_get_type (void) G_GNUC_CONST;
-enum {
- REVERT_SINGLE_COMMAND_DUMMY_PROPERTY
-};
RevertSingleCommand* revert_single_command_new (Photo* photo);
-RevertSingleCommand* revert_single_command_construct (GType object_type, Photo* photo);
+RevertSingleCommand* revert_single_command_construct (GType object_type,
+ Photo* photo);
#define RESOURCES_REVERT_LABEL _ ("Revert to Original")
-static void revert_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, Photo* photo);
+static void revert_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
+ Photo* photo);
void photo_remove_all_transformations (Photo* self);
-static gboolean revert_single_command_real_compress (Command* base, Command* command);
+static gboolean revert_single_command_real_compress (Command* base,
+ Command* command);
GType revert_multiple_command_get_type (void) G_GNUC_CONST;
-enum {
- REVERT_MULTIPLE_COMMAND_DUMMY_PROPERTY
-};
RevertMultipleCommand* revert_multiple_command_new (GeeIterable* iter);
-RevertMultipleCommand* revert_multiple_command_construct (GType object_type, GeeIterable* iter);
-static void revert_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source);
+RevertMultipleCommand* revert_multiple_command_construct (GType object_type,
+ GeeIterable* iter);
+static void revert_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source);
GType enhance_single_command_get_type (void) G_GNUC_CONST;
-enum {
- ENHANCE_SINGLE_COMMAND_DUMMY_PROPERTY
-};
EnhanceSingleCommand* enhance_single_command_new (Photo* photo);
-EnhanceSingleCommand* enhance_single_command_construct (GType object_type, Photo* photo);
+EnhanceSingleCommand* enhance_single_command_construct (GType object_type,
+ Photo* photo);
#define RESOURCES_ENHANCE_LABEL _ ("Enhance")
#define RESOURCES_ENHANCE_TOOLTIP _ ("Automatically improve the photo’s appearance")
-static void enhance_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, Photo* photo);
+static void enhance_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
+ Photo* photo);
gboolean photo_enhance (Photo* self);
-static gboolean enhance_single_command_real_compress (Command* base, Command* command);
+static gboolean enhance_single_command_real_compress (Command* base,
+ Command* command);
GType enhance_multiple_command_get_type (void) G_GNUC_CONST;
-enum {
- ENHANCE_MULTIPLE_COMMAND_DUMMY_PROPERTY
-};
EnhanceMultipleCommand* enhance_multiple_command_new (GeeIterable* iter);
-EnhanceMultipleCommand* enhance_multiple_command_construct (GType object_type, GeeIterable* iter);
-static void enhance_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source);
+EnhanceMultipleCommand* enhance_multiple_command_construct (GType object_type,
+ GeeIterable* iter);
+static void enhance_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source);
GType straighten_command_get_type (void) G_GNUC_CONST;
GType box_get_type (void) G_GNUC_CONST;
Box* box_dup (const Box* self);
void box_free (Box* self);
#define STRAIGHTEN_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_STRAIGHTEN_COMMAND, StraightenCommandPrivate))
-enum {
- STRAIGHTEN_COMMAND_DUMMY_PROPERTY
-};
-StraightenCommand* straighten_command_new (Photo* photo, gdouble theta, Box* crop, const gchar* name, const gchar* explanation);
-StraightenCommand* straighten_command_construct (GType object_type, Photo* photo, gdouble theta, Box* crop, const gchar* name, const gchar* explanation);
-static void straighten_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, Photo* photo);
+StraightenCommand* straighten_command_new (Photo* photo,
+ gdouble theta,
+ Box* crop,
+ const gchar* name,
+ const gchar* explanation);
+StraightenCommand* straighten_command_construct (GType object_type,
+ Photo* photo,
+ gdouble theta,
+ Box* crop,
+ const gchar* name,
+ const gchar* explanation);
+static void straighten_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
+ Photo* photo);
void data_collection_freeze_notifications (DataCollection* self);
-void photo_set_straighten (Photo* self, gdouble theta);
-void photo_set_crop (Photo* self, Box* crop);
+void photo_set_straighten (Photo* self,
+ gdouble theta);
+void photo_set_crop (Photo* self,
+ Box* crop);
void data_collection_thaw_notifications (DataCollection* self);
static void straighten_command_finalize (GObject * obj);
GType crop_command_get_type (void) G_GNUC_CONST;
#define CROP_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CROP_COMMAND, CropCommandPrivate))
-enum {
- CROP_COMMAND_DUMMY_PROPERTY
-};
-CropCommand* crop_command_new (Photo* photo, Box* crop, const gchar* name, const gchar* explanation);
-CropCommand* crop_command_construct (GType object_type, Photo* photo, Box* crop, const gchar* name, const gchar* explanation);
-static void crop_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, Photo* photo);
+CropCommand* crop_command_new (Photo* photo,
+ Box* crop,
+ const gchar* name,
+ const gchar* explanation);
+CropCommand* crop_command_construct (GType object_type,
+ Photo* photo,
+ Box* crop,
+ const gchar* name,
+ const gchar* explanation);
+static void crop_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
+ Photo* photo);
static void crop_command_finalize (GObject * obj);
GType adjust_colors_single_command_get_type (void) G_GNUC_CONST;
#define ADJUST_COLORS_SINGLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommandPrivate))
-enum {
- ADJUST_COLORS_SINGLE_COMMAND_DUMMY_PROPERTY
-};
-AdjustColorsSingleCommand* adjust_colors_single_command_new (Photo* photo, PixelTransformationBundle* transformations, const gchar* name, const gchar* explanation);
-AdjustColorsSingleCommand* adjust_colors_single_command_construct (GType object_type, Photo* photo, PixelTransformationBundle* transformations, const gchar* name, const gchar* explanation);
-static void adjust_colors_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, Photo* photo);
-void photo_set_color_adjustments (Photo* self, PixelTransformationBundle* new_adjustments);
-static gboolean adjust_colors_single_command_real_can_compress (GenericPhotoTransformationCommand* base, Command* command);
+AdjustColorsSingleCommand* adjust_colors_single_command_new (Photo* photo,
+ PixelTransformationBundle* transformations,
+ const gchar* name,
+ const gchar* explanation);
+AdjustColorsSingleCommand* adjust_colors_single_command_construct (GType object_type,
+ Photo* photo,
+ PixelTransformationBundle* transformations,
+ const gchar* name,
+ const gchar* explanation);
+static void adjust_colors_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
+ Photo* photo);
+void photo_set_color_adjustments (Photo* self,
+ PixelTransformationBundle* new_adjustments);
+static gboolean adjust_colors_single_command_real_can_compress (GenericPhotoTransformationCommand* base,
+ Command* command);
static void adjust_colors_single_command_finalize (GObject * obj);
GType adjust_colors_multiple_command_get_type (void) G_GNUC_CONST;
#define ADJUST_COLORS_MULTIPLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommandPrivate))
-enum {
- ADJUST_COLORS_MULTIPLE_COMMAND_DUMMY_PROPERTY
-};
-AdjustColorsMultipleCommand* adjust_colors_multiple_command_new (GeeIterable* iter, PixelTransformationBundle* transformations, const gchar* name, const gchar* explanation);
-AdjustColorsMultipleCommand* adjust_colors_multiple_command_construct (GType object_type, GeeIterable* iter, PixelTransformationBundle* transformations, const gchar* name, const gchar* explanation);
-static void adjust_colors_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source);
+AdjustColorsMultipleCommand* adjust_colors_multiple_command_new (GeeIterable* iter,
+ PixelTransformationBundle* transformations,
+ const gchar* name,
+ const gchar* explanation);
+AdjustColorsMultipleCommand* adjust_colors_multiple_command_construct (GType object_type,
+ GeeIterable* iter,
+ PixelTransformationBundle* transformations,
+ const gchar* name,
+ const gchar* explanation);
+static void adjust_colors_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source);
static void adjust_colors_multiple_command_finalize (GObject * obj);
GType redeye_command_get_type (void) G_GNUC_CONST;
GType editing_tools_redeye_instance_get_type (void) G_GNUC_CONST;
EditingToolsRedeyeInstance* editing_tools_redeye_instance_dup (const EditingToolsRedeyeInstance* self);
void editing_tools_redeye_instance_free (EditingToolsRedeyeInstance* self);
#define REDEYE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_REDEYE_COMMAND, RedeyeCommandPrivate))
-enum {
- REDEYE_COMMAND_DUMMY_PROPERTY
-};
-RedeyeCommand* redeye_command_new (Photo* photo, EditingToolsRedeyeInstance* redeye_instance, const gchar* name, const gchar* explanation);
-RedeyeCommand* redeye_command_construct (GType object_type, Photo* photo, EditingToolsRedeyeInstance* redeye_instance, const gchar* name, const gchar* explanation);
-static void redeye_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, Photo* photo);
-void photo_add_redeye_instance (Photo* self, EditingToolsRedeyeInstance* redeye);
+RedeyeCommand* redeye_command_new (Photo* photo,
+ EditingToolsRedeyeInstance* redeye_instance,
+ const gchar* name,
+ const gchar* explanation);
+RedeyeCommand* redeye_command_construct (GType object_type,
+ Photo* photo,
+ EditingToolsRedeyeInstance* redeye_instance,
+ const gchar* name,
+ const gchar* explanation);
+static void redeye_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
+ Photo* photo);
+void photo_add_redeye_instance (Photo* self,
+ EditingToolsRedeyeInstance* redeye);
static void redeye_command_finalize (GObject * obj);
GType move_photos_command_get_type (void) G_GNUC_CONST;
GType move_photos_command_real_move_photos_command_get_type (void) G_GNUC_CONST;
-enum {
- MOVE_PHOTOS_COMMAND_DUMMY_PROPERTY
-};
-MovePhotosCommand* move_photos_command_construct (GType object_type, const gchar* name, const gchar* explanation);
+MovePhotosCommand* move_photos_command_construct (GType object_type,
+ const gchar* name,
+ const gchar* explanation);
static void move_photos_command_real_prepare (Command* base);
static void move_photos_command_real_execute (Command* base);
static void move_photos_command_real_undo (Command* base);
void command_undo (Command* self);
#define MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommandPrivate))
-enum {
- MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_DUMMY_PROPERTY
-};
static void move_photos_command_real_move_photos_command_on_proxy_broken (MovePhotosCommandRealMovePhotosCommand* self);
-static void _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, gpointer self);
-MovePhotosCommandRealMovePhotosCommand* move_photos_command_real_move_photos_command_new (Event* new_event, GeeIterable* source_views, const gchar* progress_text, const gchar* undo_progress_text, const gchar* name, const gchar* explanation);
-MovePhotosCommandRealMovePhotosCommand* move_photos_command_real_move_photos_command_construct (GType object_type, Event* new_event, GeeIterable* source_views, const gchar* progress_text, const gchar* undo_progress_text, const gchar* name, const gchar* explanation);
+static void _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
+ gpointer self);
+MovePhotosCommandRealMovePhotosCommand* move_photos_command_real_move_photos_command_new (Event* new_event,
+ GeeIterable* source_views,
+ const gchar* progress_text,
+ const gchar* undo_progress_text,
+ const gchar* name,
+ const gchar* explanation);
+MovePhotosCommandRealMovePhotosCommand* move_photos_command_real_move_photos_command_construct (GType object_type,
+ Event* new_event,
+ GeeIterable* source_views,
+ const gchar* progress_text,
+ const gchar* undo_progress_text,
+ const gchar* name,
+ const gchar* explanation);
Event* media_source_get_event (MediaSource* self);
static void move_photos_command_real_move_photos_command_real_execute (Command* base);
GType event_page_get_type (void) G_GNUC_CONST;
Event* event_page_get_event (EventPage* self);
gint event_source_get_media_count (EventSource* self);
-void library_window_switch_to_event (LibraryWindow* self, Event* event);
-static void move_photos_command_real_move_photos_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source);
-gboolean media_source_set_event (MediaSource* self, Event* new_event);
-static void move_photos_command_real_move_photos_command_real_undo_on_source (MultipleDataSourceCommand* base, DataSource* source);
+void library_window_switch_to_event (LibraryWindow* self,
+ Event* event);
+static void move_photos_command_real_move_photos_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source);
+gboolean media_source_set_event (MediaSource* self,
+ Event* new_event);
+static void move_photos_command_real_move_photos_command_real_undo_on_source (MultipleDataSourceCommand* base,
+ DataSource* source);
static void move_photos_command_real_move_photos_command_finalize (GObject * obj);
static void move_photos_command_finalize (GObject * obj);
GType new_event_command_get_type (void) G_GNUC_CONST;
-enum {
- NEW_EVENT_COMMAND_DUMMY_PROPERTY
-};
NewEventCommand* new_event_command_new (GeeIterable* iter);
-NewEventCommand* new_event_command_construct (GType object_type, GeeIterable* iter);
+NewEventCommand* new_event_command_construct (GType object_type,
+ GeeIterable* iter);
#define RESOURCES_NEW_EVENT_LABEL _ ("New Event")
Event* event_create_empty_event (MediaSource* source);
GType set_event_command_get_type (void) G_GNUC_CONST;
-enum {
- SET_EVENT_COMMAND_DUMMY_PROPERTY
-};
-SetEventCommand* set_event_command_new (GeeIterable* iter, Event* new_event);
-SetEventCommand* set_event_command_construct (GType object_type, GeeIterable* iter, Event* new_event);
+SetEventCommand* set_event_command_new (GeeIterable* iter,
+ Event* new_event);
+SetEventCommand* set_event_command_construct (GType object_type,
+ GeeIterable* iter,
+ Event* new_event);
#define RESOURCES_SET_PHOTO_EVENT_LABEL _ ("Move Photos")
#define RESOURCES_SET_PHOTO_EVENT_TOOLTIP _ ("Move photos to an event")
GType merge_events_command_get_type (void) G_GNUC_CONST;
-enum {
- MERGE_EVENTS_COMMAND_DUMMY_PROPERTY
-};
MergeEventsCommand* merge_events_command_new (GeeIterable* iter);
-MergeEventsCommand* merge_events_command_construct (GType object_type, GeeIterable* iter);
+MergeEventsCommand* merge_events_command_construct (GType object_type,
+ GeeIterable* iter);
#define RESOURCES_MERGE_LABEL _ ("Merge")
gboolean event_has_name (Event* self);
GeeCollection* event_source_get_media (EventSource* self);
ThumbnailView* thumbnail_view_new (ThumbnailSource* source);
-ThumbnailView* thumbnail_view_construct (GType object_type, ThumbnailSource* source);
+ThumbnailView* thumbnail_view_construct (GType object_type,
+ ThumbnailSource* source);
GType duplicate_multiple_photos_command_get_type (void) G_GNUC_CONST;
GType library_photo_get_type (void) G_GNUC_CONST;
#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommandPrivate))
-enum {
- DUPLICATE_MULTIPLE_PHOTOS_COMMAND_DUMMY_PROPERTY
-};
GType library_photo_source_collection_get_type (void) G_GNUC_CONST;
-static void duplicate_multiple_photos_command_on_photo_destroyed (DuplicateMultiplePhotosCommand* self, DataSource* source);
-static void _duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender, DataSource* source, gpointer self);
+static void duplicate_multiple_photos_command_on_photo_destroyed (DuplicateMultiplePhotosCommand* self,
+ DataSource* source);
+static void _duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
+ DataSource* source,
+ gpointer self);
DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_new (GeeIterable* iter);
-DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_construct (GType object_type, GeeIterable* iter);
+DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_construct (GType object_type,
+ GeeIterable* iter);
#define RESOURCES_DUPLICATE_PHOTO_LABEL _ ("Duplicate")
#define RESOURCES_DUPLICATE_PHOTO_TOOLTIP _ ("Make a duplicate of the photo")
static void duplicate_multiple_photos_command_real_execute (Command* base);
-void app_window_error_message (const gchar* message, GtkWindow* parent);
-static void duplicate_multiple_photos_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source);
-LibraryPhoto* library_photo_duplicate (LibraryPhoto* self, GError** error);
+void app_window_error_message (const gchar* message,
+ GtkWindow* parent);
+static void duplicate_multiple_photos_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source);
+LibraryPhoto* library_photo_duplicate (LibraryPhoto* self,
+ GError** error);
GFile* media_source_get_file (MediaSource* self);
static void duplicate_multiple_photos_command_real_undo (Command* base);
-static void duplicate_multiple_photos_command_real_undo_on_source (MultipleDataSourceCommand* base, DataSource* source);
+static void duplicate_multiple_photos_command_real_undo_on_source (MultipleDataSourceCommand* base,
+ DataSource* source);
GType marker_get_type (void) G_GNUC_CONST;
-Marker* data_collection_mark (DataCollection* self, DataObject* object);
-gint source_collection_destroy_marked (SourceCollection* self, Marker* marker, gboolean delete_backing, ProgressMonitor monitor, void* monitor_target, GeeList* not_removed);
+Marker* data_collection_mark (DataCollection* self,
+ DataObject* object);
+gint source_collection_destroy_marked (SourceCollection* self,
+ Marker* marker,
+ gboolean delete_backing,
+ ProgressMonitor monitor,
+ void* monitor_target,
+ GeeList* not_removed);
static void duplicate_multiple_photos_command_finalize (GObject * obj);
GType set_rating_single_command_get_type (void) G_GNUC_CONST;
GType rating_get_type (void) G_GNUC_CONST;
#define SET_RATING_SINGLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommandPrivate))
-enum {
- SET_RATING_SINGLE_COMMAND_DUMMY_PROPERTY
-};
-SetRatingSingleCommand* set_rating_single_command_new (DataSource* source, Rating rating);
-SetRatingSingleCommand* set_rating_single_command_construct (GType object_type, DataSource* source, Rating rating);
+SetRatingSingleCommand* set_rating_single_command_new (DataSource* source,
+ Rating rating);
+SetRatingSingleCommand* set_rating_single_command_construct (GType object_type,
+ DataSource* source,
+ Rating rating);
const gchar* resources_rating_label (Rating rating);
Rating media_source_get_rating (MediaSource* self);
-SetRatingSingleCommand* set_rating_single_command_new_inc_dec (DataSource* source, gboolean is_incrementing);
-SetRatingSingleCommand* set_rating_single_command_construct_inc_dec (GType object_type, DataSource* source, gboolean is_incrementing);
+SetRatingSingleCommand* set_rating_single_command_new_inc_dec (DataSource* source,
+ gboolean is_incrementing);
+SetRatingSingleCommand* set_rating_single_command_construct_inc_dec (GType object_type,
+ DataSource* source,
+ gboolean is_incrementing);
#define RESOURCES_INCREASE_RATING_LABEL _ ("Increase Rating")
#define RESOURCES_DECREASE_RATING_LABEL _ ("Decrease Rating")
static void set_rating_single_command_real_execute (Command* base);
-void media_source_set_rating (MediaSource* self, Rating rating);
+void media_source_set_rating (MediaSource* self,
+ Rating rating);
void media_source_increase_rating (MediaSource* self);
void media_source_decrease_rating (MediaSource* self);
static void set_rating_single_command_real_undo (Command* base);
static void set_rating_single_command_finalize (GObject * obj);
GType set_rating_command_get_type (void) G_GNUC_CONST;
#define SET_RATING_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_RATING_COMMAND, SetRatingCommandPrivate))
-enum {
- SET_RATING_COMMAND_DUMMY_PROPERTY
-};
-SetRatingCommand* set_rating_command_new (GeeIterable* iter, Rating rating);
-SetRatingCommand* set_rating_command_construct (GType object_type, GeeIterable* iter, Rating rating);
+SetRatingCommand* set_rating_command_new (GeeIterable* iter,
+ Rating rating);
+SetRatingCommand* set_rating_command_construct (GType object_type,
+ GeeIterable* iter,
+ Rating rating);
gchar* resources_rating_progress (Rating rating);
-static void set_rating_command_save_source_states (SetRatingCommand* self, GeeIterable* iter);
-SetRatingCommand* set_rating_command_new_inc_dec (GeeIterable* iter, gboolean is_incrementing);
-SetRatingCommand* set_rating_command_construct_inc_dec (GType object_type, GeeIterable* iter, gboolean is_incrementing);
+static void set_rating_command_save_source_states (SetRatingCommand* self,
+ GeeIterable* iter);
+SetRatingCommand* set_rating_command_new_inc_dec (GeeIterable* iter,
+ gboolean is_incrementing);
+SetRatingCommand* set_rating_command_construct_inc_dec (GType object_type,
+ GeeIterable* iter,
+ gboolean is_incrementing);
static void set_rating_command_real_execute (Command* base);
static void set_rating_command_real_undo (Command* base);
-static void set_rating_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source);
-static void set_rating_command_real_undo_on_source (MultipleDataSourceCommand* base, DataSource* source);
+static void set_rating_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source);
+static void set_rating_command_real_undo_on_source (MultipleDataSourceCommand* base,
+ DataSource* source);
static void set_rating_command_finalize (GObject * obj);
GType set_raw_developer_command_get_type (void) G_GNUC_CONST;
GType raw_developer_get_type (void) G_GNUC_CONST;
#define SET_RAW_DEVELOPER_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandPrivate))
-enum {
- SET_RAW_DEVELOPER_COMMAND_DUMMY_PROPERTY
-};
-SetRawDeveloperCommand* set_raw_developer_command_new (GeeIterable* iter, RawDeveloper developer);
-SetRawDeveloperCommand* set_raw_developer_command_construct (GType object_type, GeeIterable* iter, RawDeveloper developer);
-static void set_raw_developer_command_save_source_states (SetRawDeveloperCommand* self, GeeIterable* iter);
-static gboolean set_raw_developer_command_is_raw_photo (SetRawDeveloperCommand* self, Photo* photo);
+SetRawDeveloperCommand* set_raw_developer_command_new (GeeIterable* iter,
+ RawDeveloper developer);
+SetRawDeveloperCommand* set_raw_developer_command_construct (GType object_type,
+ GeeIterable* iter,
+ RawDeveloper developer);
+static void set_raw_developer_command_save_source_states (SetRawDeveloperCommand* self,
+ GeeIterable* iter);
+static gboolean set_raw_developer_command_is_raw_photo (SetRawDeveloperCommand* self,
+ Photo* photo);
RawDeveloper photo_get_raw_developer (Photo* self);
static void set_raw_developer_command_real_execute (Command* base);
static void set_raw_developer_command_real_undo (Command* base);
-static void set_raw_developer_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source);
-gboolean photo_is_raw_developer_available (Photo* self, RawDeveloper d);
-void photo_set_raw_developer (Photo* self, RawDeveloper d, gboolean notify);
-static void set_raw_developer_command_real_undo_on_source (MultipleDataSourceCommand* base, DataSource* source);
+static void set_raw_developer_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source);
+gboolean photo_is_raw_developer_available (Photo* self,
+ RawDeveloper d);
+void photo_set_raw_developer (Photo* self,
+ RawDeveloper d,
+ gboolean notify);
+static void set_raw_developer_command_real_undo_on_source (MultipleDataSourceCommand* base,
+ DataSource* source);
GType photo_file_format_get_type (void) G_GNUC_CONST;
PhotoFileFormat photo_get_master_file_format (Photo* self);
static void set_raw_developer_command_finalize (GObject * obj);
GType adjust_date_time_photo_command_get_type (void) G_GNUC_CONST;
GType dateable_get_type (void) G_GNUC_CONST;
#define ADJUST_DATE_TIME_PHOTO_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommandPrivate))
-enum {
- ADJUST_DATE_TIME_PHOTO_COMMAND_DUMMY_PROPERTY
-};
-AdjustDateTimePhotoCommand* adjust_date_time_photo_command_new (Dateable* dateable, gint64 time_shift, gboolean modify_original);
-AdjustDateTimePhotoCommand* adjust_date_time_photo_command_construct (GType object_type, Dateable* dateable, gint64 time_shift, gboolean modify_original);
+AdjustDateTimePhotoCommand* adjust_date_time_photo_command_new (Dateable* dateable,
+ gint64 time_shift,
+ gboolean modify_original);
+AdjustDateTimePhotoCommand* adjust_date_time_photo_command_construct (GType object_type,
+ Dateable* dateable,
+ gint64 time_shift,
+ gboolean modify_original);
#define RESOURCES_ADJUST_DATE_TIME_LABEL _ ("Adjust Date and Time")
static void adjust_date_time_photo_command_real_execute (Command* base);
-static void adjust_date_time_photo_command_set_time (AdjustDateTimePhotoCommand* self, Dateable* dateable, time_t exposure_time);
+static void adjust_date_time_photo_command_set_time (AdjustDateTimePhotoCommand* self,
+ Dateable* dateable,
+ time_t exposure_time);
time_t dateable_get_exposure_time (Dateable* self);
ViewCollection* view_collection_new (const gchar* name);
-ViewCollection* view_collection_construct (GType object_type, const gchar* name);
+ViewCollection* view_collection_construct (GType object_type,
+ const gchar* name);
GType container_source_collection_get_type (void) G_GNUC_CONST;
GType event_source_collection_get_type (void) G_GNUC_CONST;
GeeCollection* data_collection_get_all (DataCollection* self);
-gboolean data_collection_add (DataCollection* self, DataObject* object);
+gboolean data_collection_add (DataCollection* self,
+ DataObject* object);
EventView* event_view_new (EventSource* source);
-EventView* event_view_construct (GType object_type, EventSource* source);
+EventView* event_view_construct (GType object_type,
+ EventSource* source);
GType event_view_get_type (void) G_GNUC_CONST;
-void event_generate_single_event (MediaSource* media, ViewCollection* events_so_far, const gchar* event_name);
+void event_generate_single_event (MediaSource* media,
+ ViewCollection* events_so_far,
+ const gchar* event_name);
static void adjust_date_time_photo_command_real_undo (Command* base);
-void photo_set_exposure_time_persistent (Photo* self, time_t time, GError** error);
-void dateable_set_exposure_time (Dateable* self, time_t target_time);
+void photo_set_exposure_time_persistent (Photo* self,
+ time_t time,
+ GError** error);
+void dateable_set_exposure_time (Dateable* self,
+ time_t target_time);
static void adjust_date_time_photo_command_finalize (GObject * obj);
GType adjust_date_time_photos_command_get_type (void) G_GNUC_CONST;
#define ADJUST_DATE_TIME_PHOTOS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommandPrivate))
-enum {
- ADJUST_DATE_TIME_PHOTOS_COMMAND_DUMMY_PROPERTY
-};
-AdjustDateTimePhotosCommand* adjust_date_time_photos_command_new (GeeIterable* iter, gint64 time_shift, gboolean keep_relativity, gboolean modify_originals);
-AdjustDateTimePhotosCommand* adjust_date_time_photos_command_construct (GType object_type, GeeIterable* iter, gint64 time_shift, gboolean keep_relativity, gboolean modify_originals);
+AdjustDateTimePhotosCommand* adjust_date_time_photos_command_new (GeeIterable* iter,
+ gint64 time_shift,
+ gboolean keep_relativity,
+ gboolean modify_originals);
+AdjustDateTimePhotosCommand* adjust_date_time_photos_command_construct (GType object_type,
+ GeeIterable* iter,
+ gint64 time_shift,
+ gboolean keep_relativity,
+ gboolean modify_originals);
static time_t* _time_t_dup (time_t* self);
static void adjust_date_time_photos_command_real_execute (Command* base);
-void multiple_object_error_dialog (GeeArrayList* objects, const gchar* message, const gchar* title);
+void multiple_object_error_dialog (GeeArrayList* objects,
+ const gchar* message,
+ const gchar* title);
static void adjust_date_time_photos_command_real_undo (Command* base);
-static void adjust_date_time_photos_command_set_time (AdjustDateTimePhotosCommand* self, Dateable* dateable, time_t exposure_time);
-static void adjust_date_time_photos_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source);
-static void adjust_date_time_photos_command_real_undo_on_source (MultipleDataSourceCommand* base, DataSource* source);
+static void adjust_date_time_photos_command_set_time (AdjustDateTimePhotosCommand* self,
+ Dateable* dateable,
+ time_t exposure_time);
+static void adjust_date_time_photos_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source);
+static void adjust_date_time_photos_command_real_undo_on_source (MultipleDataSourceCommand* base,
+ DataSource* source);
static void adjust_date_time_photos_command_finalize (GObject * obj);
GType add_tags_command_get_type (void) G_GNUC_CONST;
#define ADD_TAGS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADD_TAGS_COMMAND, AddTagsCommandPrivate))
-enum {
- ADD_TAGS_COMMAND_DUMMY_PROPERTY
-};
static void add_tags_command_on_proxy_broken (AddTagsCommand* self);
-static void _add_tags_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, gpointer self);
-static void add_tags_command_on_source_destroyed (AddTagsCommand* self, DataSource* source);
-static void _add_tags_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, DataSource* source, gpointer self);
+static void _add_tags_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
+ gpointer self);
+static void add_tags_command_on_source_destroyed (AddTagsCommand* self,
+ DataSource* source);
+static void _add_tags_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
+ DataSource* source,
+ gpointer self);
GType video_source_collection_get_type (void) G_GNUC_CONST;
-AddTagsCommand* add_tags_command_new (gchar** paths, int paths_length1, GeeCollection* sources);
-AddTagsCommand* add_tags_command_construct (GType object_type, gchar** paths, int paths_length1, GeeCollection* sources);
-gchar* resources_add_tags_label (gchar** names, int names_length1);
+AddTagsCommand* add_tags_command_new (gchar** paths,
+ int paths_length1,
+ GeeCollection* sources);
+AddTagsCommand* add_tags_command_construct (GType object_type,
+ gchar** paths,
+ int paths_length1,
+ GeeCollection* sources);
+gchar* resources_add_tags_label (gchar** names,
+ int names_length1);
GeeList* hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path);
GType tag_get_type (void) G_GNUC_CONST;
Tag* tag_for_path (const gchar* name);
-gboolean tag_contains (Tag* self, MediaSource* source);
+gboolean tag_contains (Tag* self,
+ MediaSource* source);
static void add_tags_command_real_execute (Command* base);
-void tag_attach_many (Tag* self, GeeCollection* sources);
+void tag_attach_many (Tag* self,
+ GeeCollection* sources);
static void add_tags_command_real_undo (Command* base);
-GeeMultiMap* tag_detach_many (Tag* self, GeeCollection* sources);
+GeeMultiMap* tag_detach_many (Tag* self,
+ GeeCollection* sources);
static void add_tags_command_finalize (GObject * obj);
GType rename_tag_command_get_type (void) G_GNUC_CONST;
#define RENAME_TAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_RENAME_TAG_COMMAND, RenameTagCommandPrivate))
-enum {
- RENAME_TAG_COMMAND_DUMMY_PROPERTY
-};
-RenameTagCommand* rename_tag_command_new (Tag* tag, const gchar* new_name);
-RenameTagCommand* rename_tag_command_construct (GType object_type, Tag* tag, const gchar* new_name);
-gchar* resources_rename_tag_label (const gchar* old_name, const gchar* new_name);
+RenameTagCommand* rename_tag_command_new (Tag* tag,
+ const gchar* new_name);
+RenameTagCommand* rename_tag_command_construct (GType object_type,
+ Tag* tag,
+ const gchar* new_name);
+gchar* resources_rename_tag_label (const gchar* old_name,
+ const gchar* new_name);
gchar* tag_get_user_visible_name (Tag* self);
gchar* data_object_get_name (DataObject* self);
-static void rename_tag_command_real_execute_on_source (SimpleProxyableCommand* base, DataSource* source);
-gboolean tag_rename (Tag* self, const gchar* name);
+static void rename_tag_command_real_execute_on_source (SimpleProxyableCommand* base,
+ DataSource* source);
+gboolean tag_rename (Tag* self,
+ const gchar* name);
gchar* resources_rename_tag_exists_message (const gchar* name);
-static void rename_tag_command_real_undo_on_source (SimpleProxyableCommand* base, DataSource* source);
+static void rename_tag_command_real_undo_on_source (SimpleProxyableCommand* base,
+ DataSource* source);
static void rename_tag_command_finalize (GObject * obj);
GType delete_tag_command_get_type (void) G_GNUC_CONST;
#define DELETE_TAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandPrivate))
-enum {
- DELETE_TAG_COMMAND_DUMMY_PROPERTY
-};
DeleteTagCommand* delete_tag_command_new (Tag* tag);
-DeleteTagCommand* delete_tag_command_construct (GType object_type, Tag* tag);
+DeleteTagCommand* delete_tag_command_construct (GType object_type,
+ Tag* tag);
gchar* resources_delete_tag_label (const gchar* name);
-static void delete_tag_command_real_execute_on_source (SimpleProxyableCommand* base, DataSource* source);
+static void delete_tag_command_real_execute_on_source (SimpleProxyableCommand* base,
+ DataSource* source);
GeeList* tag_get_hierarchical_children (Tag* self);
static void delete_tag_command_on_proxy_broken (DeleteTagCommand* self);
-static void _delete_tag_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, gpointer self);
+static void _delete_tag_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
+ gpointer self);
GType tag_source_collection_get_type (void) G_GNUC_CONST;
-static void delete_tag_command_real_undo_on_source (SimpleProxyableCommand* base, DataSource* source);
+static void delete_tag_command_real_undo_on_source (SimpleProxyableCommand* base,
+ DataSource* source);
static void delete_tag_command_finalize (GObject * obj);
GType new_child_tag_command_get_type (void) G_GNUC_CONST;
#define NEW_CHILD_TAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommandPrivate))
-enum {
- NEW_CHILD_TAG_COMMAND_DUMMY_PROPERTY
-};
NewChildTagCommand* new_child_tag_command_new (Tag* tag);
-NewChildTagCommand* new_child_tag_command_construct (GType object_type, Tag* tag);
-static void new_child_tag_command_real_execute_on_source (SimpleProxyableCommand* base, DataSource* source);
+NewChildTagCommand* new_child_tag_command_construct (GType object_type,
+ Tag* tag);
+static void new_child_tag_command_real_execute_on_source (SimpleProxyableCommand* base,
+ DataSource* source);
Tag* tag_create_new_child (Tag* self);
-static void new_child_tag_command_real_undo_on_source (SimpleProxyableCommand* base, DataSource* source);
+static void new_child_tag_command_real_undo_on_source (SimpleProxyableCommand* base,
+ DataSource* source);
Tag* new_child_tag_command_get_created_child (NewChildTagCommand* self);
static void new_child_tag_command_finalize (GObject * obj);
GType new_root_tag_command_get_type (void) G_GNUC_CONST;
#define NEW_ROOT_TAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommandPrivate))
-enum {
- NEW_ROOT_TAG_COMMAND_DUMMY_PROPERTY
-};
NewRootTagCommand* new_root_tag_command_new (void);
NewRootTagCommand* new_root_tag_command_construct (GType object_type);
static void new_root_tag_command_real_execute (Command* base);
@@ -2592,283 +3052,349 @@ Tag* new_root_tag_command_get_created_tag (NewRootTagCommand* self);
static void new_root_tag_command_finalize (GObject * obj);
GType reparent_tag_command_get_type (void) G_GNUC_CONST;
#define REPARENT_TAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommandPrivate))
-enum {
- REPARENT_TAG_COMMAND_DUMMY_PROPERTY
-};
-static void reparent_tag_command_on_items_destroyed (ReparentTagCommand* self, GeeCollection* destroyed);
-static void _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed (SourceCollection* _sender, GeeCollection* destroyed, gpointer self);
-ReparentTagCommand* reparent_tag_command_new (Tag* tag, const gchar* new_parent_path);
-ReparentTagCommand* reparent_tag_command_construct (GType object_type, Tag* tag, const gchar* new_parent_path);
+static void reparent_tag_command_on_items_destroyed (ReparentTagCommand* self,
+ GeeCollection* destroyed);
+static void _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed (SourceCollection* _sender,
+ GeeCollection* destroyed,
+ gpointer self);
+ReparentTagCommand* reparent_tag_command_new (Tag* tag,
+ const gchar* new_parent_path);
+ReparentTagCommand* reparent_tag_command_construct (GType object_type,
+ Tag* tag,
+ const gchar* new_parent_path);
gchar* tag_get_path (Tag* self);
#define TAG_PATH_SEPARATOR_STRING "/"
gchar* hierarchical_tag_utilities_get_root_path_form (const gchar* client_path);
-gboolean tag_source_collection_exists (TagSourceCollection* self, const gchar* name, gboolean treat_htags_as_root);
+gboolean tag_source_collection_exists (TagSourceCollection* self,
+ const gchar* name,
+ gboolean treat_htags_as_root);
GeeCollection* tag_get_sources (Tag* self);
-static GeeMap* reparent_tag_command_get_child_structure_at (ReparentTagCommand* self, const gchar* client_path);
-static void reparent_tag_command_restore_child_attachments_at (ReparentTagCommand* self, const gchar* client_path, GeeMap* child_structure);
+static GeeMap* reparent_tag_command_get_child_structure_at (ReparentTagCommand* self,
+ const gchar* client_path);
+static void reparent_tag_command_restore_child_attachments_at (ReparentTagCommand* self,
+ const gchar* client_path,
+ GeeMap* child_structure);
void tag_promote (Tag* self);
-void tag_attach (Tag* self, MediaSource* source);
-static void reparent_tag_command_reattach_in_play_sources_at (ReparentTagCommand* self, const gchar* client_path);
+void tag_attach (Tag* self,
+ MediaSource* source);
+static void reparent_tag_command_reattach_in_play_sources_at (ReparentTagCommand* self,
+ const gchar* client_path);
static void reparent_tag_command_save_before_state (ReparentTagCommand* self);
static void reparent_tag_command_restore_before_state (ReparentTagCommand* self);
-GeeList* tag_detach (Tag* self, MediaSource* source);
+GeeList* tag_detach (Tag* self,
+ MediaSource* source);
static void reparent_tag_command_save_after_state (ReparentTagCommand* self);
static void reparent_tag_command_restore_after_state (ReparentTagCommand* self);
-static void reparent_tag_command_prepare_parent (ReparentTagCommand* self, const gchar* path);
+static void reparent_tag_command_prepare_parent (ReparentTagCommand* self,
+ const gchar* path);
static void reparent_tag_command_do_source_parent_detachments (ReparentTagCommand* self);
Tag* tag_get_hierarchical_parent (Tag* self);
-gint tag_get_attachment_count (Tag* self, MediaSource* source);
+gint tag_get_attachment_count (Tag* self,
+ MediaSource* source);
static void reparent_tag_command_do_source_parent_reattachments (ReparentTagCommand* self);
static void reparent_tag_command_do_destination_parent_detachments (ReparentTagCommand* self);
static void reparent_tag_command_do_destination_parent_reattachments (ReparentTagCommand* self);
-static void reparent_tag_command_copy_subtree (ReparentTagCommand* self, const gchar* from, const gchar* to);
-static void reparent_tag_command_destroy_subtree (ReparentTagCommand* self, const gchar* client_path);
+static void reparent_tag_command_copy_subtree (ReparentTagCommand* self,
+ const gchar* from,
+ const gchar* to);
+static void reparent_tag_command_destroy_subtree (ReparentTagCommand* self,
+ const gchar* client_path);
static void reparent_tag_command_real_execute (Command* base);
static void reparent_tag_command_real_undo (Command* base);
void hierarchical_tag_utilities_cleanup_root_path (const gchar* path);
static void reparent_tag_command_finalize (GObject * obj);
GType modify_tags_command_get_type (void) G_GNUC_CONST;
#define MODIFY_TAGS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandPrivate))
-enum {
- MODIFY_TAGS_COMMAND_DUMMY_PROPERTY
-};
static void modify_tags_command_on_proxy_broken (ModifyTagsCommand* self);
-static void _modify_tags_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, gpointer self);
-ModifyTagsCommand* modify_tags_command_new (MediaSource* media, GeeCollection* new_tag_list);
-ModifyTagsCommand* modify_tags_command_construct (GType object_type, MediaSource* media, GeeCollection* new_tag_list);
+static void _modify_tags_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
+ gpointer self);
+ModifyTagsCommand* modify_tags_command_new (MediaSource* media,
+ GeeCollection* new_tag_list);
+ModifyTagsCommand* modify_tags_command_construct (GType object_type,
+ MediaSource* media,
+ GeeCollection* new_tag_list);
#define RESOURCES_MODIFY_TAGS_LABEL _ ("Modify Tags")
-GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self, MediaSource* source);
+GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self,
+ MediaSource* source);
static void modify_tags_command_real_execute (Command* base);
static void modify_tags_command_real_undo (Command* base);
static void modify_tags_command_finalize (GObject * obj);
GType tag_untag_photos_command_get_type (void) G_GNUC_CONST;
#define TAG_UNTAG_PHOTOS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandPrivate))
-enum {
- TAG_UNTAG_PHOTOS_COMMAND_DUMMY_PROPERTY
-};
-static void tag_untag_photos_command_on_source_destroyed (TagUntagPhotosCommand* self, DataSource* source);
-static void _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, DataSource* source, gpointer self);
-TagUntagPhotosCommand* tag_untag_photos_command_new (Tag* tag, GeeCollection* sources, gint count, gboolean attach);
-TagUntagPhotosCommand* tag_untag_photos_command_construct (GType object_type, Tag* tag, GeeCollection* sources, gint count, gboolean attach);
-gchar* resources_tag_photos_label (const gchar* name, gint count);
-gchar* resources_untag_photos_label (const gchar* name, gint count);
-static void tag_untag_photos_command_real_execute_on_source (SimpleProxyableCommand* base, DataSource* source);
-static void tag_untag_photos_command_do_attach (TagUntagPhotosCommand* self, Tag* tag);
-static void tag_untag_photos_command_do_detach (TagUntagPhotosCommand* self, Tag* tag);
-static void tag_untag_photos_command_real_undo_on_source (SimpleProxyableCommand* base, DataSource* source);
+static void tag_untag_photos_command_on_source_destroyed (TagUntagPhotosCommand* self,
+ DataSource* source);
+static void _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
+ DataSource* source,
+ gpointer self);
+TagUntagPhotosCommand* tag_untag_photos_command_new (Tag* tag,
+ GeeCollection* sources,
+ gint count,
+ gboolean attach);
+TagUntagPhotosCommand* tag_untag_photos_command_construct (GType object_type,
+ Tag* tag,
+ GeeCollection* sources,
+ gint count,
+ gboolean attach);
+gchar* resources_tag_photos_label (const gchar* name,
+ gint count);
+gchar* resources_untag_photos_label (const gchar* name,
+ gint count);
+static void tag_untag_photos_command_real_execute_on_source (SimpleProxyableCommand* base,
+ DataSource* source);
+static void tag_untag_photos_command_do_attach (TagUntagPhotosCommand* self,
+ Tag* tag);
+static void tag_untag_photos_command_do_detach (TagUntagPhotosCommand* self,
+ Tag* tag);
+static void tag_untag_photos_command_real_undo_on_source (SimpleProxyableCommand* base,
+ DataSource* source);
gchar* data_object_to_string (DataObject* self);
static void tag_untag_photos_command_finalize (GObject * obj);
GType rename_saved_search_command_get_type (void) G_GNUC_CONST;
GType saved_search_get_type (void) G_GNUC_CONST;
#define RENAME_SAVED_SEARCH_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommandPrivate))
-enum {
- RENAME_SAVED_SEARCH_COMMAND_DUMMY_PROPERTY
-};
-RenameSavedSearchCommand* rename_saved_search_command_new (SavedSearch* search, const gchar* new_name);
-RenameSavedSearchCommand* rename_saved_search_command_construct (GType object_type, SavedSearch* search, const gchar* new_name);
-gchar* resources_rename_search_label (const gchar* old_name, const gchar* new_name);
+RenameSavedSearchCommand* rename_saved_search_command_new (SavedSearch* search,
+ const gchar* new_name);
+RenameSavedSearchCommand* rename_saved_search_command_construct (GType object_type,
+ SavedSearch* search,
+ const gchar* new_name);
+gchar* resources_rename_search_label (const gchar* old_name,
+ const gchar* new_name);
static void rename_saved_search_command_real_execute (Command* base);
-gboolean saved_search_rename (SavedSearch* self, const gchar* new_name);
+gboolean saved_search_rename (SavedSearch* self,
+ const gchar* new_name);
gchar* resources_rename_search_exists_message (const gchar* name);
static void rename_saved_search_command_real_undo (Command* base);
static void rename_saved_search_command_finalize (GObject * obj);
GType delete_saved_search_command_get_type (void) G_GNUC_CONST;
#define DELETE_SAVED_SEARCH_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandPrivate))
-enum {
- DELETE_SAVED_SEARCH_COMMAND_DUMMY_PROPERTY
-};
DeleteSavedSearchCommand* delete_saved_search_command_new (SavedSearch* search);
-DeleteSavedSearchCommand* delete_saved_search_command_construct (GType object_type, SavedSearch* search);
+DeleteSavedSearchCommand* delete_saved_search_command_construct (GType object_type,
+ SavedSearch* search);
gchar* resources_delete_search_label (const gchar* name);
static void delete_saved_search_command_real_execute (Command* base);
gpointer saved_search_table_ref (gpointer instance);
void saved_search_table_unref (gpointer instance);
-GParamSpec* param_spec_saved_search_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_saved_search_table (GValue* value, gpointer v_object);
-void value_take_saved_search_table (GValue* value, gpointer v_object);
+GParamSpec* param_spec_saved_search_table (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_saved_search_table (GValue* value,
+ gpointer v_object);
+void value_take_saved_search_table (GValue* value,
+ gpointer v_object);
gpointer value_get_saved_search_table (const GValue* value);
GType saved_search_table_get_type (void) G_GNUC_CONST;
SavedSearchTable* saved_search_table_get_instance (void);
-void saved_search_table_remove (SavedSearchTable* self, SavedSearch* search);
+void saved_search_table_remove (SavedSearchTable* self,
+ SavedSearch* search);
static void delete_saved_search_command_real_undo (Command* base);
void saved_search_reconstitute (SavedSearch* self);
static void delete_saved_search_command_finalize (GObject * obj);
GType trash_untrash_photos_command_get_type (void) G_GNUC_CONST;
#define TRASH_UNTRASH_PHOTOS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandPrivate))
-enum {
- TRASH_UNTRASH_PHOTOS_COMMAND_DUMMY_PROPERTY
-};
-static void trash_untrash_photos_command_on_photo_destroyed (TrashUntrashPhotosCommand* self, DataSource* source);
-static void _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender, DataSource* source, gpointer self);
-TrashUntrashPhotosCommand* trash_untrash_photos_command_new (GeeCollection* sources, gboolean to_trash);
-TrashUntrashPhotosCommand* trash_untrash_photos_command_construct (GType object_type, GeeCollection* sources, gboolean to_trash);
-static ProgressDialog* trash_untrash_photos_command_get_progress_dialog (TrashUntrashPhotosCommand* self, gboolean to_trash);
-void progress_dialog_update_display_every (ProgressDialog* self, gint update_every);
+static void trash_untrash_photos_command_on_photo_destroyed (TrashUntrashPhotosCommand* self,
+ DataSource* source);
+static void _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
+ DataSource* source,
+ gpointer self);
+TrashUntrashPhotosCommand* trash_untrash_photos_command_new (GeeCollection* sources,
+ gboolean to_trash);
+TrashUntrashPhotosCommand* trash_untrash_photos_command_construct (GType object_type,
+ GeeCollection* sources,
+ gboolean to_trash);
+static ProgressDialog* trash_untrash_photos_command_get_progress_dialog (TrashUntrashPhotosCommand* self,
+ gboolean to_trash);
+void progress_dialog_update_display_every (ProgressDialog* self,
+ gint update_every);
static void trash_untrash_photos_command_real_execute (Command* base);
-gboolean progress_dialog_monitor (ProgressDialog* self, guint64 count, guint64 total, gboolean do_event_loop);
-static gboolean _progress_dialog_monitor_progress_monitor (guint64 current, guint64 total, gboolean do_event_loop, gpointer self);
-static void trash_untrash_photos_command_trash (TrashUntrashPhotosCommand* self, ProgressMonitor monitor, void* monitor_target);
-static void trash_untrash_photos_command_untrash (TrashUntrashPhotosCommand* self, ProgressMonitor monitor, void* monitor_target);
+gboolean progress_dialog_monitor (ProgressDialog* self,
+ guint64 count,
+ guint64 total,
+ gboolean do_event_loop);
+static gboolean _progress_dialog_monitor_progress_monitor (guint64 current,
+ guint64 total,
+ gboolean do_event_loop,
+ gpointer self);
+static void trash_untrash_photos_command_trash (TrashUntrashPhotosCommand* self,
+ ProgressMonitor monitor,
+ void* monitor_target);
+static void trash_untrash_photos_command_untrash (TrashUntrashPhotosCommand* self,
+ ProgressMonitor monitor,
+ void* monitor_target);
static void trash_untrash_photos_command_real_undo (Command* base);
void media_source_trash (MediaSource* self);
void media_source_untrash (MediaSource* self);
static void trash_untrash_photos_command_finalize (GObject * obj);
GType flag_unflag_command_get_type (void) G_GNUC_CONST;
#define FLAG_UNFLAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandPrivate))
-enum {
- FLAG_UNFLAG_COMMAND_DUMMY_PROPERTY
-};
#define FLAG_UNFLAG_COMMAND_MIN_PROGRESS_BAR_THRESHOLD 1000
#define FLAG_UNFLAG_COMMAND_FLAG_SELECTED_STRING _ ("Flag selected photos")
#define FLAG_UNFLAG_COMMAND_UNFLAG_SELECTED_STRING _ ("Unflag selected photos")
#define FLAG_UNFLAG_COMMAND_FLAG_PROGRESS _ ("Flagging selected photos")
#define FLAG_UNFLAG_COMMAND_UNFLAG_PROGRESS _ ("Unflagging selected photos")
-FlagUnflagCommand* flag_unflag_command_new (GeeCollection* sources, gboolean flag);
-FlagUnflagCommand* flag_unflag_command_construct (GType object_type, GeeCollection* sources, gboolean flag);
-static void flag_unflag_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base, GeeCollection* sources);
-static void flag_unflag_command_flag_unflag (FlagUnflagCommand* self, DataSource* source, gboolean flag);
-static void flag_unflag_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base, GeeCollection* sources);
+FlagUnflagCommand* flag_unflag_command_new (GeeCollection* sources,
+ gboolean flag);
+FlagUnflagCommand* flag_unflag_command_construct (GType object_type,
+ GeeCollection* sources,
+ gboolean flag);
+static void flag_unflag_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base,
+ GeeCollection* sources);
+static void flag_unflag_command_flag_unflag (FlagUnflagCommand* self,
+ DataSource* source,
+ gboolean flag);
+static void flag_unflag_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base,
+ GeeCollection* sources);
GType flaggable_get_type (void) G_GNUC_CONST;
void flaggable_mark_flagged (Flaggable* self);
void flaggable_mark_unflagged (Flaggable* self);
static void flag_unflag_command_finalize (GObject * obj);
-static void _page_command_on_page_destroyed_gtk_widget_destroy (GtkWidget* _sender, gpointer self) {
+static void
+_page_command_on_page_destroyed_gtk_widget_destroy (GtkWidget* _sender,
+ gpointer self)
+{
#line 45 "/home/jens/Source/shotwell/src/Commands.vala"
page_command_on_page_destroyed ((PageCommand*) self);
-#line 2741 "Commands.c"
+#line 3261 "Commands.c"
}
-static void _page_command_on_photo_destroyed_data_source_destroyed (DataSource* _sender, gpointer self) {
+static void
+_page_command_on_photo_destroyed_data_source_destroyed (DataSource* _sender,
+ gpointer self)
+{
#line 48 "/home/jens/Source/shotwell/src/Commands.vala"
page_command_on_photo_destroyed ((PageCommand*) self);
-#line 2748 "Commands.c"
+#line 3271 "Commands.c"
}
-static void _page_command_on_controller_destroyed_gtk_widget_destroy (GtkWidget* _sender, gpointer self) {
+static void
+_page_command_on_controller_destroyed_gtk_widget_destroy (GtkWidget* _sender,
+ gpointer self)
+{
#line 51 "/home/jens/Source/shotwell/src/Commands.vala"
page_command_on_controller_destroyed ((PageCommand*) self);
-#line 2755 "Commands.c"
+#line 3281 "Commands.c"
}
-static gpointer _g_object_ref0 (gpointer self) {
+static gpointer
+_g_object_ref0 (gpointer self)
+{
#line 27 "/home/jens/Source/shotwell/src/Commands.vala"
return self ? g_object_ref (self) : NULL;
-#line 2762 "Commands.c"
+#line 3290 "Commands.c"
}
-PageCommand* page_command_construct (GType object_type, const gchar* name, const gchar* explanation) {
+PageCommand*
+page_command_construct (GType object_type,
+ const gchar* name,
+ const gchar* explanation)
+{
PageCommand * self = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- AppWindow* _tmp2_;
- AppWindow* _tmp3_;
- Page* _tmp4_;
- Page* _tmp5_;
+ AppWindow* _tmp0_;
+ AppWindow* _tmp1_;
+ Page* _tmp2_;
+ Page* _tmp3_;
#line 15 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (name != NULL, NULL);
#line 15 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (explanation != NULL, NULL);
#line 16 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = name;
-#line 16 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = explanation;
-#line 16 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (PageCommand*) command_construct (object_type, _tmp0_, _tmp1_);
+ self = (PageCommand*) command_construct (object_type, name, explanation);
#line 18 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = app_window_get_instance ();
+ _tmp0_ = app_window_get_instance ();
#line 18 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
+ _tmp1_ = _tmp0_;
#line 18 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PAGE_WINDOW, PageWindow));
+ _tmp2_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow));
#line 18 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->page);
#line 18 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->page = _tmp4_;
+ self->priv->page = _tmp2_;
#line 18 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp3_);
+ _g_object_unref0 (_tmp1_);
#line 20 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->page;
+ _tmp3_ = self->priv->page;
#line 20 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp5_ != NULL) {
-#line 2800 "Commands.c"
- Page* _tmp6_;
+ if (_tmp3_ != NULL) {
+#line 3326 "Commands.c"
+ Page* _tmp4_;
LibraryPhotoPage* photo_page = NULL;
- Page* _tmp7_;
- LibraryPhotoPage* _tmp8_;
- LibraryPhotoPage* _tmp9_;
+ Page* _tmp5_;
+ LibraryPhotoPage* _tmp6_;
+ LibraryPhotoPage* _tmp7_;
#line 21 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = self->priv->page;
+ _tmp4_ = self->priv->page;
#line 21 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), "destroy", (GCallback) _page_command_on_page_destroyed_gtk_widget_destroy, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), "destroy", (GCallback) _page_command_on_page_destroyed_gtk_widget_destroy, self, 0);
#line 27 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->page;
+ _tmp5_ = self->priv->page;
#line 27 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_LIBRARY_PHOTO_PAGE) ? ((LibraryPhotoPage*) _tmp7_) : NULL);
+ _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_LIBRARY_PHOTO_PAGE) ? ((LibraryPhotoPage*) _tmp5_) : NULL);
#line 27 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_page = _tmp8_;
+ photo_page = _tmp6_;
#line 28 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = photo_page;
+ _tmp7_ = photo_page;
#line 28 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp9_ != NULL) {
-#line 2820 "Commands.c"
+ if (_tmp7_ != NULL) {
+#line 3346 "Commands.c"
+ LibraryPhotoPage* _tmp8_;
+ Photo* _tmp9_;
LibraryPhotoPage* _tmp10_;
- Photo* _tmp11_;
- LibraryPhotoPage* _tmp12_;
- CollectionPage* _tmp13_;
- gboolean _tmp14_ = FALSE;
- Photo* _tmp15_;
+ CollectionPage* _tmp11_;
+ gboolean _tmp12_ = FALSE;
+ Photo* _tmp13_;
#line 29 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = photo_page;
+ _tmp8_ = photo_page;
#line 29 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_EDITING_HOST_PAGE, EditingHostPage));
+ _tmp9_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_EDITING_HOST_PAGE, EditingHostPage));
#line 29 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->library_photo);
#line 29 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->library_photo = _tmp11_;
+ self->priv->library_photo = _tmp9_;
#line 30 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = photo_page;
+ _tmp10_ = photo_page;
#line 30 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = library_photo_page_get_controller_page (_tmp12_);
+ _tmp11_ = library_photo_page_get_controller_page (_tmp10_);
#line 30 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->collection_page);
#line 30 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->collection_page = _tmp13_;
+ self->priv->collection_page = _tmp11_;
#line 32 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = self->priv->library_photo;
+ _tmp13_ = self->priv->library_photo;
#line 32 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp15_ != NULL) {
-#line 2847 "Commands.c"
- CollectionPage* _tmp16_;
+ if (_tmp13_ != NULL) {
+#line 3373 "Commands.c"
+ CollectionPage* _tmp14_;
#line 32 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = self->priv->collection_page;
+ _tmp14_ = self->priv->collection_page;
#line 32 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _tmp16_ != NULL;
-#line 2853 "Commands.c"
+ _tmp12_ = _tmp14_ != NULL;
+#line 3379 "Commands.c"
} else {
#line 32 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = FALSE;
-#line 2857 "Commands.c"
+ _tmp12_ = FALSE;
+#line 3383 "Commands.c"
}
#line 32 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp14_) {
-#line 2861 "Commands.c"
- Photo* _tmp17_;
- CollectionPage* _tmp18_;
+ if (_tmp12_) {
+#line 3387 "Commands.c"
+ Photo* _tmp15_;
+ CollectionPage* _tmp16_;
#line 33 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = self->priv->library_photo;
+ _tmp15_ = self->priv->library_photo;
#line 33 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_SOURCE, DataSource), "destroyed", (GCallback) _page_command_on_photo_destroyed_data_source_destroyed, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_SOURCE, DataSource), "destroyed", (GCallback) _page_command_on_photo_destroyed_data_source_destroyed, self, 0);
#line 34 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = self->priv->collection_page;
+ _tmp16_ = self->priv->collection_page;
#line 34 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), "destroy", (GCallback) _page_command_on_controller_destroyed_gtk_widget_destroy, self, 0);
-#line 2872 "Commands.c"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), "destroy", (GCallback) _page_command_on_controller_destroyed_gtk_widget_destroy, self, 0);
+#line 3398 "Commands.c"
} else {
#line 36 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->library_photo);
@@ -2878,32 +3404,34 @@ PageCommand* page_command_construct (GType object_type, const gchar* name, const
_g_object_unref0 (self->priv->collection_page);
#line 37 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->collection_page = NULL;
-#line 2882 "Commands.c"
+#line 3408 "Commands.c"
}
}
#line 20 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (photo_page);
-#line 2887 "Commands.c"
+#line 3413 "Commands.c"
}
#line 15 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 2891 "Commands.c"
+#line 3417 "Commands.c"
}
-void page_command_set_auto_return_to_page (PageCommand* self, gboolean auto_return) {
- gboolean _tmp0_;
+void
+page_command_set_auto_return_to_page (PageCommand* self,
+ gboolean auto_return)
+{
#line 54 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_PAGE_COMMAND (self));
#line 55 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = auto_return;
-#line 55 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->auto_return = _tmp0_;
-#line 2903 "Commands.c"
+ self->priv->auto_return = auto_return;
+#line 3429 "Commands.c"
}
-static void page_command_real_prepare (Command* base) {
+static void
+page_command_real_prepare (Command* base)
+{
PageCommand * self;
gboolean _tmp0_;
#line 58 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -2914,15 +3442,17 @@ static void page_command_real_prepare (Command* base) {
if (_tmp0_) {
#line 60 "/home/jens/Source/shotwell/src/Commands.vala"
page_command_return_to_page (self);
-#line 2918 "Commands.c"
+#line 3446 "Commands.c"
}
#line 62 "/home/jens/Source/shotwell/src/Commands.vala"
COMMAND_CLASS (page_command_parent_class)->prepare (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
-#line 2922 "Commands.c"
+#line 3450 "Commands.c"
}
-void page_command_return_to_page (PageCommand* self) {
+void
+page_command_return_to_page (PageCommand* self)
+{
LibraryPhotoPage* photo_page = NULL;
Page* _tmp0_;
LibraryPhotoPage* _tmp1_;
@@ -2939,36 +3469,35 @@ void page_command_return_to_page (PageCommand* self) {
_tmp2_ = photo_page;
#line 68 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp2_ != NULL) {
-#line 2943 "Commands.c"
+#line 3473 "Commands.c"
gboolean _tmp3_ = FALSE;
Photo* _tmp4_;
#line 69 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp4_ = self->priv->library_photo;
#line 69 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp4_ != NULL) {
-#line 2950 "Commands.c"
+#line 3480 "Commands.c"
CollectionPage* _tmp5_;
#line 69 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp5_ = self->priv->collection_page;
#line 69 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp3_ = _tmp5_ != NULL;
-#line 2956 "Commands.c"
+#line 3486 "Commands.c"
} else {
#line 69 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp3_ = FALSE;
-#line 2960 "Commands.c"
+#line 3490 "Commands.c"
}
#line 69 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp3_) {
-#line 2964 "Commands.c"
+#line 3494 "Commands.c"
gboolean photo_in_collection = FALSE;
gint count = 0;
CollectionPage* _tmp6_;
ViewCollection* _tmp7_;
ViewCollection* _tmp8_;
gint _tmp9_;
- gint _tmp10_;
- gboolean _tmp25_;
+ gboolean _tmp24_;
#line 70 "/home/jens/Source/shotwell/src/Commands.vala"
photo_in_collection = FALSE;
#line 71 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -2980,149 +3509,149 @@ void page_command_return_to_page (PageCommand* self) {
#line 71 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp9_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection));
#line 71 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tmp9_;
-#line 71 "/home/jens/Source/shotwell/src/Commands.vala"
_data_collection_unref0 (_tmp8_);
#line 71 "/home/jens/Source/shotwell/src/Commands.vala"
- count = _tmp10_;
-#line 2989 "Commands.c"
+ count = _tmp9_;
+#line 3516 "Commands.c"
{
gint i = 0;
#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
i = 0;
-#line 2994 "Commands.c"
+#line 3521 "Commands.c"
{
- gboolean _tmp11_ = FALSE;
+ gboolean _tmp10_ = FALSE;
#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = TRUE;
+ _tmp10_ = TRUE;
#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 3001 "Commands.c"
+#line 3528 "Commands.c"
+ gint _tmp12_;
gint _tmp13_;
- gint _tmp14_;
- CollectionPage* _tmp15_;
+ CollectionPage* _tmp14_;
+ ViewCollection* _tmp15_;
ViewCollection* _tmp16_;
- ViewCollection* _tmp17_;
- gint _tmp18_;
- DataObject* _tmp19_;
- Thumbnail* _tmp20_;
+ gint _tmp17_;
+ DataObject* _tmp18_;
+ Thumbnail* _tmp19_;
+ MediaSource* _tmp20_;
MediaSource* _tmp21_;
- MediaSource* _tmp22_;
- Photo* _tmp23_;
- gboolean _tmp24_;
+ Photo* _tmp22_;
+ gboolean _tmp23_;
#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp11_) {
-#line 3016 "Commands.c"
- gint _tmp12_;
+ if (!_tmp10_) {
+#line 3543 "Commands.c"
+ gint _tmp11_;
#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = i;
+ _tmp11_ = i;
#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp12_ + 1;
-#line 3022 "Commands.c"
+ i = _tmp11_ + 1;
+#line 3549 "Commands.c"
}
#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = FALSE;
+ _tmp10_ = FALSE;
#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = i;
+ _tmp12_ = i;
#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = count;
+ _tmp13_ = count;
#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp13_ < _tmp14_)) {
+ if (!(_tmp12_ < _tmp13_)) {
#line 72 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 3034 "Commands.c"
+#line 3561 "Commands.c"
}
#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = self->priv->collection_page;
+ _tmp14_ = self->priv->collection_page;
#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PAGE, Page));
+ _tmp15_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PAGE, Page));
#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _tmp16_;
+ _tmp16_ = _tmp15_;
#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = i;
+ _tmp17_ = i;
#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_COLLECTION, DataCollection), _tmp18_);
+ _tmp18_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection), _tmp17_);
#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_THUMBNAIL, Thumbnail);
+ _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_THUMBNAIL, Thumbnail);
#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = thumbnail_get_media_source (_tmp20_);
+ _tmp20_ = thumbnail_get_media_source (_tmp19_);
#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = _tmp21_;
+ _tmp21_ = _tmp20_;
#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = self->priv->library_photo;
+ _tmp22_ = self->priv->library_photo;
#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _tmp22_ == G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_MEDIA_SOURCE, MediaSource);
+ _tmp23_ = _tmp21_ == G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_MEDIA_SOURCE, MediaSource);
#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp22_);
+ _g_object_unref0 (_tmp21_);
#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp20_);
+ _g_object_unref0 (_tmp19_);
#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (_tmp17_);
+ _data_collection_unref0 (_tmp16_);
#line 73 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp24_) {
+ if (_tmp23_) {
#line 74 "/home/jens/Source/shotwell/src/Commands.vala"
photo_in_collection = TRUE;
#line 75 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 3068 "Commands.c"
+#line 3595 "Commands.c"
}
}
}
}
#line 79 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = photo_in_collection;
+ _tmp24_ = photo_in_collection;
#line 79 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp25_) {
-#line 3077 "Commands.c"
+ if (_tmp24_) {
+#line 3604 "Commands.c"
+ LibraryWindow* _tmp25_;
LibraryWindow* _tmp26_;
- LibraryWindow* _tmp27_;
- CollectionPage* _tmp28_;
- Photo* _tmp29_;
+ CollectionPage* _tmp27_;
+ Photo* _tmp28_;
#line 80 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = library_window_get_app ();
+ _tmp25_ = library_window_get_app ();
#line 80 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = _tmp26_;
+ _tmp26_ = _tmp25_;
#line 80 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = self->priv->collection_page;
+ _tmp27_ = self->priv->collection_page;
#line 80 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = self->priv->library_photo;
+ _tmp28_ = self->priv->library_photo;
#line 80 "/home/jens/Source/shotwell/src/Commands.vala"
- library_window_switch_to_photo_page (_tmp27_, _tmp28_, _tmp29_);
+ library_window_switch_to_photo_page (_tmp26_, _tmp27_, _tmp28_);
#line 80 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp27_);
-#line 3094 "Commands.c"
+ _g_object_unref0 (_tmp26_);
+#line 3621 "Commands.c"
}
}
} else {
- Page* _tmp30_;
+ Page* _tmp29_;
#line 82 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = self->priv->page;
+ _tmp29_ = self->priv->page;
#line 82 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp30_ != NULL) {
-#line 3103 "Commands.c"
+ if (_tmp29_ != NULL) {
+#line 3630 "Commands.c"
+ AppWindow* _tmp30_;
AppWindow* _tmp31_;
- AppWindow* _tmp32_;
- Page* _tmp33_;
+ Page* _tmp32_;
#line 83 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = app_window_get_instance ();
+ _tmp30_ = app_window_get_instance ();
#line 83 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = _tmp31_;
+ _tmp31_ = _tmp30_;
#line 83 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = self->priv->page;
+ _tmp32_ = self->priv->page;
#line 83 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_PAGE_WINDOW, PageWindow), _tmp33_);
+ page_window_set_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_PAGE_WINDOW, PageWindow), _tmp32_);
#line 83 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp32_);
-#line 3117 "Commands.c"
+ _g_object_unref0 (_tmp31_);
+#line 3644 "Commands.c"
}
}
#line 65 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (photo_page);
-#line 3122 "Commands.c"
+#line 3649 "Commands.c"
}
-static void page_command_on_page_destroyed (PageCommand* self) {
+static void
+page_command_on_page_destroyed (PageCommand* self)
+{
Page* _tmp0_;
guint _tmp1_;
#line 86 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3137,11 +3666,13 @@ static void page_command_on_page_destroyed (PageCommand* self) {
_g_object_unref0 (self->priv->page);
#line 88 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->page = NULL;
-#line 3141 "Commands.c"
+#line 3670 "Commands.c"
}
-static void page_command_on_photo_destroyed (PageCommand* self) {
+static void
+page_command_on_photo_destroyed (PageCommand* self)
+{
Photo* _tmp0_;
guint _tmp1_;
#line 91 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3156,11 +3687,13 @@ static void page_command_on_photo_destroyed (PageCommand* self) {
_g_object_unref0 (self->priv->library_photo);
#line 93 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->library_photo = NULL;
-#line 3160 "Commands.c"
+#line 3691 "Commands.c"
}
-static void page_command_on_controller_destroyed (PageCommand* self) {
+static void
+page_command_on_controller_destroyed (PageCommand* self)
+{
CollectionPage* _tmp0_;
guint _tmp1_;
#line 96 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3175,11 +3708,13 @@ static void page_command_on_controller_destroyed (PageCommand* self) {
_g_object_unref0 (self->priv->collection_page);
#line 98 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->collection_page = NULL;
-#line 3179 "Commands.c"
+#line 3712 "Commands.c"
}
-static void page_command_class_init (PageCommandClass * klass) {
+static void
+page_command_class_init (PageCommandClass * klass)
+{
#line 9 "/home/jens/Source/shotwell/src/Commands.vala"
page_command_parent_class = g_type_class_peek_parent (klass);
#line 9 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3188,11 +3723,13 @@ static void page_command_class_init (PageCommandClass * klass) {
((CommandClass *) klass)->prepare = (void (*) (Command *)) page_command_real_prepare;
#line 9 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = page_command_finalize;
-#line 3192 "Commands.c"
+#line 3727 "Commands.c"
}
-static void page_command_instance_init (PageCommand * self) {
+static void
+page_command_instance_init (PageCommand * self)
+{
#line 9 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = PAGE_COMMAND_GET_PRIVATE (self);
#line 11 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3201,11 +3738,13 @@ static void page_command_instance_init (PageCommand * self) {
self->priv->library_photo = NULL;
#line 13 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->collection_page = NULL;
-#line 3205 "Commands.c"
+#line 3742 "Commands.c"
}
-static void page_command_finalize (GObject * obj) {
+static void
+page_command_finalize (GObject * obj)
+{
PageCommand * self;
Page* _tmp0_;
Photo* _tmp3_;
@@ -3216,7 +3755,7 @@ static void page_command_finalize (GObject * obj) {
_tmp0_ = self->priv->page;
#line 44 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp0_ != NULL) {
-#line 3220 "Commands.c"
+#line 3759 "Commands.c"
Page* _tmp1_;
guint _tmp2_;
#line 45 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3225,13 +3764,13 @@ static void page_command_finalize (GObject * obj) {
g_signal_parse_name ("destroy", gtk_widget_get_type (), &_tmp2_, NULL, FALSE);
#line 45 "/home/jens/Source/shotwell/src/Commands.vala"
g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _page_command_on_page_destroyed_gtk_widget_destroy, self);
-#line 3229 "Commands.c"
+#line 3768 "Commands.c"
}
#line 47 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp3_ = self->priv->library_photo;
#line 47 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp3_ != NULL) {
-#line 3235 "Commands.c"
+#line 3774 "Commands.c"
Photo* _tmp4_;
guint _tmp5_;
#line 48 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3240,13 +3779,13 @@ static void page_command_finalize (GObject * obj) {
g_signal_parse_name ("destroyed", TYPE_DATA_SOURCE, &_tmp5_, NULL, FALSE);
#line 48 "/home/jens/Source/shotwell/src/Commands.vala"
g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _page_command_on_photo_destroyed_data_source_destroyed, self);
-#line 3244 "Commands.c"
+#line 3783 "Commands.c"
}
#line 50 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp6_ = self->priv->collection_page;
#line 50 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp6_ != NULL) {
-#line 3250 "Commands.c"
+#line 3789 "Commands.c"
CollectionPage* _tmp7_;
guint _tmp8_;
#line 51 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3255,7 +3794,7 @@ static void page_command_finalize (GObject * obj) {
g_signal_parse_name ("destroy", gtk_widget_get_type (), &_tmp8_, NULL, FALSE);
#line 51 "/home/jens/Source/shotwell/src/Commands.vala"
g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _page_command_on_controller_destroyed_gtk_widget_destroy, self);
-#line 3259 "Commands.c"
+#line 3798 "Commands.c"
}
#line 10 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->page);
@@ -3265,11 +3804,13 @@ static void page_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->collection_page);
#line 9 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (page_command_parent_class)->finalize (obj);
-#line 3269 "Commands.c"
+#line 3808 "Commands.c"
}
-GType page_command_get_type (void) {
+GType
+page_command_get_type (void)
+{
static volatile gsize page_command_type_id__volatile = 0;
if (g_once_init_enter (&page_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (PageCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) page_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PageCommand), 0, (GInstanceInitFunc) page_command_instance_init, NULL };
@@ -3281,20 +3822,24 @@ GType page_command_get_type (void) {
}
-static void _single_data_source_command_on_source_destroyed_data_source_destroyed (DataSource* _sender, gpointer self) {
+static void
+_single_data_source_command_on_source_destroyed_data_source_destroyed (DataSource* _sender,
+ gpointer self)
+{
#line 115 "/home/jens/Source/shotwell/src/Commands.vala"
single_data_source_command_on_source_destroyed ((SingleDataSourceCommand*) self);
-#line 3288 "Commands.c"
+#line 3832 "Commands.c"
}
-SingleDataSourceCommand* single_data_source_command_construct (GType object_type, DataSource* source, const gchar* name, const gchar* explanation) {
+SingleDataSourceCommand*
+single_data_source_command_construct (GType object_type,
+ DataSource* source,
+ const gchar* name,
+ const gchar* explanation)
+{
SingleDataSourceCommand * self = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- DataSource* _tmp2_;
- DataSource* _tmp3_;
- DataSource* _tmp4_;
+ DataSource* _tmp0_;
#line 106 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
#line 106 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3302,30 +3847,24 @@ SingleDataSourceCommand* single_data_source_command_construct (GType object_type
#line 106 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (explanation != NULL, NULL);
#line 107 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = name;
-#line 107 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = explanation;
-#line 107 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SingleDataSourceCommand*) page_command_construct (object_type, _tmp0_, _tmp1_);
+ self = (SingleDataSourceCommand*) page_command_construct (object_type, name, explanation);
#line 109 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = source;
-#line 109 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
+ _tmp0_ = _g_object_ref0 (source);
#line 109 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->source);
#line 109 "/home/jens/Source/shotwell/src/Commands.vala"
- self->source = _tmp3_;
-#line 111 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = source;
+ self->source = _tmp0_;
#line 111 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp4_, "destroyed", (GCallback) _single_data_source_command_on_source_destroyed_data_source_destroyed, self, 0);
+ g_signal_connect_object (source, "destroyed", (GCallback) _single_data_source_command_on_source_destroyed_data_source_destroyed, self, 0);
#line 106 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 3325 "Commands.c"
+#line 3862 "Commands.c"
}
-DataSource* single_data_source_command_get_source (SingleDataSourceCommand* self) {
+DataSource*
+single_data_source_command_get_source (SingleDataSourceCommand* self)
+{
DataSource* result = NULL;
DataSource* _tmp0_;
DataSource* _tmp1_;
@@ -3339,11 +3878,13 @@ DataSource* single_data_source_command_get_source (SingleDataSourceCommand* self
result = _tmp1_;
#line 119 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 3343 "Commands.c"
+#line 3882 "Commands.c"
}
-static void single_data_source_command_on_source_destroyed (SingleDataSourceCommand* self) {
+static void
+single_data_source_command_on_source_destroyed (SingleDataSourceCommand* self)
+{
CommandManager* _tmp0_;
CommandManager* _tmp1_;
#line 122 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3356,24 +3897,30 @@ static void single_data_source_command_on_source_destroyed (SingleDataSourceComm
command_manager_reset (_tmp1_);
#line 125 "/home/jens/Source/shotwell/src/Commands.vala"
_command_manager_unref0 (_tmp1_);
-#line 3360 "Commands.c"
+#line 3901 "Commands.c"
}
-static void single_data_source_command_class_init (SingleDataSourceCommandClass * klass) {
+static void
+single_data_source_command_class_init (SingleDataSourceCommandClass * klass)
+{
#line 103 "/home/jens/Source/shotwell/src/Commands.vala"
single_data_source_command_parent_class = g_type_class_peek_parent (klass);
#line 103 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = single_data_source_command_finalize;
-#line 3369 "Commands.c"
+#line 3912 "Commands.c"
}
-static void single_data_source_command_instance_init (SingleDataSourceCommand * self) {
+static void
+single_data_source_command_instance_init (SingleDataSourceCommand * self)
+{
}
-static void single_data_source_command_finalize (GObject * obj) {
+static void
+single_data_source_command_finalize (GObject * obj)
+{
SingleDataSourceCommand * self;
DataSource* _tmp0_;
guint _tmp1_;
@@ -3389,11 +3936,13 @@ static void single_data_source_command_finalize (GObject * obj) {
_g_object_unref0 (self->source);
#line 103 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (single_data_source_command_parent_class)->finalize (obj);
-#line 3393 "Commands.c"
+#line 3940 "Commands.c"
}
-GType single_data_source_command_get_type (void) {
+GType
+single_data_source_command_get_type (void)
+{
static volatile gsize single_data_source_command_type_id__volatile = 0;
if (g_once_init_enter (&single_data_source_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (SingleDataSourceCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) single_data_source_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SingleDataSourceCommand), 0, (GInstanceInitFunc) single_data_source_command_instance_init, NULL };
@@ -3405,20 +3954,25 @@ GType single_data_source_command_get_type (void) {
}
-static void _simple_proxyable_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, gpointer self) {
+static void
+_simple_proxyable_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
+ gpointer self)
+{
#line 141 "/home/jens/Source/shotwell/src/Commands.vala"
simple_proxyable_command_on_proxy_broken ((SimpleProxyableCommand*) self);
-#line 3412 "Commands.c"
+#line 3964 "Commands.c"
}
-SimpleProxyableCommand* simple_proxyable_command_construct (GType object_type, Proxyable* proxyable, const gchar* name, const gchar* explanation) {
+SimpleProxyableCommand*
+simple_proxyable_command_construct (GType object_type,
+ Proxyable* proxyable,
+ const gchar* name,
+ const gchar* explanation)
+{
SimpleProxyableCommand * self = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- Proxyable* _tmp2_;
- SourceProxy* _tmp3_;
- SourceProxy* _tmp4_;
+ SourceProxy* _tmp0_;
+ SourceProxy* _tmp1_;
#line 133 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_PROXYABLE (proxyable), NULL);
#line 133 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3426,30 +3980,26 @@ SimpleProxyableCommand* simple_proxyable_command_construct (GType object_type, P
#line 133 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (explanation != NULL, NULL);
#line 134 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = name;
-#line 134 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = explanation;
-#line 134 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SimpleProxyableCommand*) page_command_construct (object_type, _tmp0_, _tmp1_);
-#line 136 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = proxyable;
+ self = (SimpleProxyableCommand*) page_command_construct (object_type, name, explanation);
#line 136 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = proxyable_get_proxy (_tmp2_);
+ _tmp0_ = proxyable_get_proxy (proxyable);
#line 136 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (self->priv->proxy);
#line 136 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->proxy = _tmp3_;
+ self->priv->proxy = _tmp0_;
#line 137 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->proxy;
+ _tmp1_ = self->priv->proxy;
#line 137 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp4_, "broken", (GCallback) _simple_proxyable_command_on_proxy_broken_source_proxy_broken, self, 0);
+ g_signal_connect_object (_tmp1_, "broken", (GCallback) _simple_proxyable_command_on_proxy_broken_source_proxy_broken, self, 0);
#line 133 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 3449 "Commands.c"
+#line 3997 "Commands.c"
}
-static void simple_proxyable_command_real_execute (Command* base) {
+static void
+simple_proxyable_command_real_execute (Command* base)
+{
SimpleProxyableCommand * self;
SourceProxy* _tmp0_;
DataSource* _tmp1_;
@@ -3466,29 +4016,37 @@ static void simple_proxyable_command_real_execute (Command* base) {
simple_proxyable_command_execute_on_source (self, _tmp2_);
#line 146 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tmp2_);
-#line 3470 "Commands.c"
+#line 4020 "Commands.c"
}
-static void simple_proxyable_command_real_execute_on_source (SimpleProxyableCommand* self, DataSource* source) {
+static void
+simple_proxyable_command_real_execute_on_source (SimpleProxyableCommand* self,
+ DataSource* source)
+{
#line 149 "/home/jens/Source/shotwell/src/Commands.vala"
g_critical ("Type `%s' does not implement abstract method `simple_proxyable_command_execute_on_source'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 149 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 3479 "Commands.c"
+#line 4032 "Commands.c"
}
-void simple_proxyable_command_execute_on_source (SimpleProxyableCommand* self, DataSource* source) {
+void
+simple_proxyable_command_execute_on_source (SimpleProxyableCommand* self,
+ DataSource* source)
+{
#line 149 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_SIMPLE_PROXYABLE_COMMAND (self));
#line 149 "/home/jens/Source/shotwell/src/Commands.vala"
SIMPLE_PROXYABLE_COMMAND_GET_CLASS (self)->execute_on_source (self, source);
-#line 3488 "Commands.c"
+#line 4044 "Commands.c"
}
-static void simple_proxyable_command_real_undo (Command* base) {
+static void
+simple_proxyable_command_real_undo (Command* base)
+{
SimpleProxyableCommand * self;
SourceProxy* _tmp0_;
DataSource* _tmp1_;
@@ -3505,108 +4063,113 @@ static void simple_proxyable_command_real_undo (Command* base) {
simple_proxyable_command_undo_on_source (self, _tmp2_);
#line 152 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tmp2_);
-#line 3509 "Commands.c"
+#line 4067 "Commands.c"
}
-static void simple_proxyable_command_real_undo_on_source (SimpleProxyableCommand* self, DataSource* source) {
+static void
+simple_proxyable_command_real_undo_on_source (SimpleProxyableCommand* self,
+ DataSource* source)
+{
#line 155 "/home/jens/Source/shotwell/src/Commands.vala"
g_critical ("Type `%s' does not implement abstract method `simple_proxyable_command_undo_on_source'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 155 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 3518 "Commands.c"
+#line 4079 "Commands.c"
}
-void simple_proxyable_command_undo_on_source (SimpleProxyableCommand* self, DataSource* source) {
+void
+simple_proxyable_command_undo_on_source (SimpleProxyableCommand* self,
+ DataSource* source)
+{
#line 155 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_SIMPLE_PROXYABLE_COMMAND (self));
#line 155 "/home/jens/Source/shotwell/src/Commands.vala"
SIMPLE_PROXYABLE_COMMAND_GET_CLASS (self)->undo_on_source (self, source);
-#line 3527 "Commands.c"
+#line 4091 "Commands.c"
}
-void simple_proxyable_command_add_proxyables (SimpleProxyableCommand* self, GeeCollection* proxyables) {
+void
+simple_proxyable_command_add_proxyables (SimpleProxyableCommand* self,
+ GeeCollection* proxyables)
+{
#line 161 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_SIMPLE_PROXYABLE_COMMAND (self));
#line 161 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (GEE_IS_COLLECTION (proxyables));
-#line 3536 "Commands.c"
+#line 4103 "Commands.c"
{
GeeIterator* _proxyable_it = NULL;
- GeeCollection* _tmp0_;
- GeeIterator* _tmp1_;
-#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = proxyables;
+ GeeIterator* _tmp0_;
#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (proxyables, GEE_TYPE_ITERABLE, GeeIterable));
#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- _proxyable_it = _tmp1_;
+ _proxyable_it = _tmp0_;
#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 3549 "Commands.c"
- GeeIterator* _tmp2_;
- gboolean _tmp3_;
+#line 4113 "Commands.c"
+ GeeIterator* _tmp1_;
Proxyable* proxyable = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
+ GeeIterator* _tmp2_;
+ gpointer _tmp3_;
SourceProxy* added_proxy = NULL;
- Proxyable* _tmp6_;
- SourceProxy* _tmp7_;
+ Proxyable* _tmp4_;
+ SourceProxy* _tmp5_;
+ SourceProxy* _tmp6_;
+ GeeHashSet* _tmp7_;
SourceProxy* _tmp8_;
- GeeHashSet* _tmp9_;
- SourceProxy* _tmp10_;
#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _proxyable_it;
-#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
+ _tmp1_ = _proxyable_it;
#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp1_)) {
#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 3569 "Commands.c"
+#line 4130 "Commands.c"
}
#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _proxyable_it;
+ _tmp2_ = _proxyable_it;
#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp3_ = gee_iterator_get (_tmp2_);
#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
- proxyable = (Proxyable*) _tmp5_;
+ proxyable = (Proxyable*) _tmp3_;
#line 163 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = proxyable;
+ _tmp4_ = proxyable;
#line 163 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = proxyable_get_proxy (_tmp6_);
+ _tmp5_ = proxyable_get_proxy (_tmp4_);
#line 163 "/home/jens/Source/shotwell/src/Commands.vala"
- added_proxy = _tmp7_;
+ added_proxy = _tmp5_;
#line 164 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = added_proxy;
+ _tmp6_ = added_proxy;
#line 164 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp8_, "broken", (GCallback) _simple_proxyable_command_on_proxy_broken_source_proxy_broken, self, 0);
+ g_signal_connect_object (_tmp6_, "broken", (GCallback) _simple_proxyable_command_on_proxy_broken_source_proxy_broken, self, 0);
#line 165 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->priv->proxies;
+ _tmp7_ = self->priv->proxies;
#line 165 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = added_proxy;
+ _tmp8_ = added_proxy;
#line 165 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp10_);
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp8_);
#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (added_proxy);
#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (proxyable);
-#line 3597 "Commands.c"
+#line 4158 "Commands.c"
}
#line 162 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_proxyable_it);
-#line 3601 "Commands.c"
+#line 4162 "Commands.c"
}
}
-void simple_proxyable_command_clear_added_proxies (SimpleProxyableCommand* self) {
- GeeHashSet* _tmp8_;
+void
+simple_proxyable_command_clear_added_proxies (SimpleProxyableCommand* self)
+{
+ GeeHashSet* _tmp7_;
#line 170 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_SIMPLE_PROXYABLE_COMMAND (self));
-#line 3610 "Commands.c"
+#line 4173 "Commands.c"
{
GeeIterator* _added_proxy_it = NULL;
GeeHashSet* _tmp0_;
@@ -3619,53 +4182,52 @@ void simple_proxyable_command_clear_added_proxies (SimpleProxyableCommand* self)
_added_proxy_it = _tmp1_;
#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 3623 "Commands.c"
+#line 4186 "Commands.c"
GeeIterator* _tmp2_;
- gboolean _tmp3_;
SourceProxy* added_proxy = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- SourceProxy* _tmp6_;
- guint _tmp7_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
+ SourceProxy* _tmp5_;
+ guint _tmp6_;
#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp2_ = _added_proxy_it;
#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
-#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 3639 "Commands.c"
+#line 4199 "Commands.c"
}
#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _added_proxy_it;
+ _tmp3_ = _added_proxy_it;
#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
- added_proxy = (SourceProxy*) _tmp5_;
+ added_proxy = (SourceProxy*) _tmp4_;
#line 172 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = added_proxy;
+ _tmp5_ = added_proxy;
#line 172 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp7_, NULL, FALSE);
+ g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp6_, NULL, FALSE);
#line 172 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _simple_proxyable_command_on_proxy_broken_source_proxy_broken, self);
+ g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _simple_proxyable_command_on_proxy_broken_source_proxy_broken, self);
#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (added_proxy);
-#line 3655 "Commands.c"
+#line 4215 "Commands.c"
}
#line 171 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_added_proxy_it);
-#line 3659 "Commands.c"
+#line 4219 "Commands.c"
}
#line 174 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = self->priv->proxies;
+ _tmp7_ = self->priv->proxies;
#line 174 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 3665 "Commands.c"
+ gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+#line 4225 "Commands.c"
}
-static void simple_proxyable_command_on_proxy_broken (SimpleProxyableCommand* self) {
+static void
+simple_proxyable_command_on_proxy_broken (SimpleProxyableCommand* self)
+{
CommandManager* _tmp0_;
CommandManager* _tmp1_;
#line 177 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3680,11 +4242,13 @@ static void simple_proxyable_command_on_proxy_broken (SimpleProxyableCommand* se
command_manager_reset (_tmp1_);
#line 179 "/home/jens/Source/shotwell/src/Commands.vala"
_command_manager_unref0 (_tmp1_);
-#line 3684 "Commands.c"
+#line 4246 "Commands.c"
}
-static void simple_proxyable_command_class_init (SimpleProxyableCommandClass * klass) {
+static void
+simple_proxyable_command_class_init (SimpleProxyableCommandClass * klass)
+{
#line 129 "/home/jens/Source/shotwell/src/Commands.vala"
simple_proxyable_command_parent_class = g_type_class_peek_parent (klass);
#line 129 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3699,11 +4263,13 @@ static void simple_proxyable_command_class_init (SimpleProxyableCommandClass * k
((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) simple_proxyable_command_real_undo_on_source;
#line 129 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = simple_proxyable_command_finalize;
-#line 3703 "Commands.c"
+#line 4267 "Commands.c"
}
-static void simple_proxyable_command_instance_init (SimpleProxyableCommand * self) {
+static void
+simple_proxyable_command_instance_init (SimpleProxyableCommand * self)
+{
GeeHashSet* _tmp0_;
#line 129 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = SIMPLE_PROXYABLE_COMMAND_GET_PRIVATE (self);
@@ -3711,11 +4277,13 @@ static void simple_proxyable_command_instance_init (SimpleProxyableCommand * sel
_tmp0_ = gee_hash_set_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL, NULL, NULL, NULL);
#line 131 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->proxies = _tmp0_;
-#line 3715 "Commands.c"
+#line 4281 "Commands.c"
}
-static void simple_proxyable_command_finalize (GObject * obj) {
+static void
+simple_proxyable_command_finalize (GObject * obj)
+{
SimpleProxyableCommand * self;
SourceProxy* _tmp0_;
guint _tmp1_;
@@ -3735,11 +4303,13 @@ static void simple_proxyable_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->proxies);
#line 129 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (simple_proxyable_command_parent_class)->finalize (obj);
-#line 3739 "Commands.c"
+#line 4307 "Commands.c"
}
-GType simple_proxyable_command_get_type (void) {
+GType
+simple_proxyable_command_get_type (void)
+{
static volatile gsize simple_proxyable_command_type_id__volatile = 0;
if (g_once_init_enter (&simple_proxyable_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (SimpleProxyableCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) simple_proxyable_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SimpleProxyableCommand), 0, (GInstanceInitFunc) simple_proxyable_command_instance_init, NULL };
@@ -3751,21 +4321,25 @@ GType simple_proxyable_command_get_type (void) {
}
-static void _single_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender, gpointer self) {
+static void
+_single_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender,
+ gpointer self)
+{
#line 194 "/home/jens/Source/shotwell/src/Commands.vala"
single_photo_transformation_command_on_state_broken ((SinglePhotoTransformationCommand*) self);
-#line 3758 "Commands.c"
+#line 4331 "Commands.c"
}
-SinglePhotoTransformationCommand* single_photo_transformation_command_construct (GType object_type, Photo* photo, const gchar* name, const gchar* explanation) {
+SinglePhotoTransformationCommand*
+single_photo_transformation_command_construct (GType object_type,
+ Photo* photo,
+ const gchar* name,
+ const gchar* explanation)
+{
SinglePhotoTransformationCommand * self = NULL;
- Photo* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- Photo* _tmp3_;
- PhotoTransformationState* _tmp4_;
- PhotoTransformationState* _tmp5_;
+ PhotoTransformationState* _tmp0_;
+ PhotoTransformationState* _tmp1_;
#line 186 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_PHOTO (photo), NULL);
#line 186 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3773,32 +4347,26 @@ SinglePhotoTransformationCommand* single_photo_transformation_command_construct
#line 186 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (explanation != NULL, NULL);
#line 187 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = photo;
-#line 187 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = name;
-#line 187 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = explanation;
-#line 187 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SinglePhotoTransformationCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_SOURCE, DataSource), _tmp1_, _tmp2_);
+ self = (SinglePhotoTransformationCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), name, explanation);
#line 189 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = photo;
-#line 189 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = photo_save_transformation_state (_tmp3_);
+ _tmp0_ = photo_save_transformation_state (photo);
#line 189 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->state);
#line 189 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->state = _tmp4_;
+ self->priv->state = _tmp0_;
#line 190 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->state;
+ _tmp1_ = self->priv->state;
#line 190 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp5_, "broken", (GCallback) _single_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self, 0);
+ g_signal_connect_object (_tmp1_, "broken", (GCallback) _single_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self, 0);
#line 186 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 3798 "Commands.c"
+#line 4364 "Commands.c"
}
-static void single_photo_transformation_command_real_undo (Command* base) {
+static void
+single_photo_transformation_command_real_undo (Command* base)
+{
SinglePhotoTransformationCommand * self;
DataSource* _tmp0_;
PhotoTransformationState* _tmp1_;
@@ -3810,11 +4378,13 @@ static void single_photo_transformation_command_real_undo (Command* base) {
_tmp1_ = self->priv->state;
#line 198 "/home/jens/Source/shotwell/src/Commands.vala"
photo_load_transformation_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), _tmp1_);
-#line 3814 "Commands.c"
+#line 4382 "Commands.c"
}
-static void single_photo_transformation_command_on_state_broken (SinglePhotoTransformationCommand* self) {
+static void
+single_photo_transformation_command_on_state_broken (SinglePhotoTransformationCommand* self)
+{
CommandManager* _tmp0_;
CommandManager* _tmp1_;
#line 201 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3827,11 +4397,13 @@ static void single_photo_transformation_command_on_state_broken (SinglePhotoTran
command_manager_reset (_tmp1_);
#line 202 "/home/jens/Source/shotwell/src/Commands.vala"
_command_manager_unref0 (_tmp1_);
-#line 3831 "Commands.c"
+#line 4401 "Commands.c"
}
-static void single_photo_transformation_command_class_init (SinglePhotoTransformationCommandClass * klass) {
+static void
+single_photo_transformation_command_class_init (SinglePhotoTransformationCommandClass * klass)
+{
#line 183 "/home/jens/Source/shotwell/src/Commands.vala"
single_photo_transformation_command_parent_class = g_type_class_peek_parent (klass);
#line 183 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3840,18 +4412,22 @@ static void single_photo_transformation_command_class_init (SinglePhotoTransform
((CommandClass *) klass)->undo = (void (*) (Command *)) single_photo_transformation_command_real_undo;
#line 183 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = single_photo_transformation_command_finalize;
-#line 3844 "Commands.c"
+#line 4416 "Commands.c"
}
-static void single_photo_transformation_command_instance_init (SinglePhotoTransformationCommand * self) {
+static void
+single_photo_transformation_command_instance_init (SinglePhotoTransformationCommand * self)
+{
#line 183 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = SINGLE_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE (self);
-#line 3851 "Commands.c"
+#line 4425 "Commands.c"
}
-static void single_photo_transformation_command_finalize (GObject * obj) {
+static void
+single_photo_transformation_command_finalize (GObject * obj)
+{
SinglePhotoTransformationCommand * self;
PhotoTransformationState* _tmp0_;
guint _tmp1_;
@@ -3867,11 +4443,13 @@ static void single_photo_transformation_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->state);
#line 183 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (single_photo_transformation_command_parent_class)->finalize (obj);
-#line 3871 "Commands.c"
+#line 4447 "Commands.c"
}
-GType single_photo_transformation_command_get_type (void) {
+GType
+single_photo_transformation_command_get_type (void)
+{
static volatile gsize single_photo_transformation_command_type_id__volatile = 0;
if (g_once_init_enter (&single_photo_transformation_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (SinglePhotoTransformationCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) single_photo_transformation_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SinglePhotoTransformationCommand), 0, (GInstanceInitFunc) single_photo_transformation_command_instance_init, NULL };
@@ -3883,18 +4461,23 @@ GType single_photo_transformation_command_get_type (void) {
}
-static void _generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender, gpointer self) {
+static void
+_generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender,
+ gpointer self)
+{
#line 216 "/home/jens/Source/shotwell/src/Commands.vala"
generic_photo_transformation_command_on_state_broken ((GenericPhotoTransformationCommand*) self);
-#line 3890 "Commands.c"
+#line 4471 "Commands.c"
}
-GenericPhotoTransformationCommand* generic_photo_transformation_command_construct (GType object_type, Photo* photo, const gchar* name, const gchar* explanation) {
+GenericPhotoTransformationCommand*
+generic_photo_transformation_command_construct (GType object_type,
+ Photo* photo,
+ const gchar* name,
+ const gchar* explanation)
+{
GenericPhotoTransformationCommand * self = NULL;
- Photo* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
#line 210 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_PHOTO (photo), NULL);
#line 210 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -3902,20 +4485,16 @@ GenericPhotoTransformationCommand* generic_photo_transformation_command_construc
#line 210 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (explanation != NULL, NULL);
#line 211 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = photo;
-#line 211 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = name;
-#line 211 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = explanation;
-#line 211 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (GenericPhotoTransformationCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_SOURCE, DataSource), _tmp1_, _tmp2_);
+ self = (GenericPhotoTransformationCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), name, explanation);
#line 210 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 3915 "Commands.c"
+#line 4492 "Commands.c"
}
-static void generic_photo_transformation_command_real_execute (Command* base) {
+static void
+generic_photo_transformation_command_real_execute (Command* base)
+{
GenericPhotoTransformationCommand * self;
Photo* photo = NULL;
DataSource* _tmp0_;
@@ -3956,29 +4535,37 @@ static void generic_photo_transformation_command_real_execute (Command* base) {
g_signal_connect_object (_tmp5_, "broken", (GCallback) _generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self, 0);
#line 222 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (photo);
-#line 3960 "Commands.c"
+#line 4539 "Commands.c"
}
-static void generic_photo_transformation_command_real_execute_on_photo (GenericPhotoTransformationCommand* self, Photo* photo) {
+static void
+generic_photo_transformation_command_real_execute_on_photo (GenericPhotoTransformationCommand* self,
+ Photo* photo)
+{
#line 234 "/home/jens/Source/shotwell/src/Commands.vala"
g_critical ("Type `%s' does not implement abstract method `generic_photo_transformation_command_execute_on_photo'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 234 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 3969 "Commands.c"
+#line 4551 "Commands.c"
}
-void generic_photo_transformation_command_execute_on_photo (GenericPhotoTransformationCommand* self, Photo* photo) {
+void
+generic_photo_transformation_command_execute_on_photo (GenericPhotoTransformationCommand* self,
+ Photo* photo)
+{
#line 234 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND (self));
#line 234 "/home/jens/Source/shotwell/src/Commands.vala"
GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS (self)->execute_on_photo (self, photo);
-#line 3978 "Commands.c"
+#line 4563 "Commands.c"
}
-static void generic_photo_transformation_command_real_undo (Command* base) {
+static void
+generic_photo_transformation_command_real_undo (Command* base)
+{
GenericPhotoTransformationCommand * self;
DataSource* _tmp0_;
PhotoTransformationState* _tmp1_;
@@ -3990,11 +4577,13 @@ static void generic_photo_transformation_command_real_undo (Command* base) {
_tmp1_ = self->priv->original_state;
#line 238 "/home/jens/Source/shotwell/src/Commands.vala"
photo_load_transformation_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), _tmp1_);
-#line 3994 "Commands.c"
+#line 4581 "Commands.c"
}
-static void generic_photo_transformation_command_real_redo (Command* base) {
+static void
+generic_photo_transformation_command_real_redo (Command* base)
+{
GenericPhotoTransformationCommand * self;
DataSource* _tmp0_;
PhotoTransformationState* _tmp1_;
@@ -4006,11 +4595,14 @@ static void generic_photo_transformation_command_real_redo (Command* base) {
_tmp1_ = self->priv->transformed_state;
#line 243 "/home/jens/Source/shotwell/src/Commands.vala"
photo_load_transformation_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), _tmp1_);
-#line 4010 "Commands.c"
+#line 4599 "Commands.c"
}
-static gboolean generic_photo_transformation_command_real_can_compress (GenericPhotoTransformationCommand* self, Command* command) {
+static gboolean
+generic_photo_transformation_command_real_can_compress (GenericPhotoTransformationCommand* self,
+ Command* command)
+{
gboolean result = FALSE;
#line 246 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_COMMAND (command), FALSE);
@@ -4018,110 +4610,109 @@ static gboolean generic_photo_transformation_command_real_can_compress (GenericP
result = FALSE;
#line 247 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 4022 "Commands.c"
+#line 4614 "Commands.c"
}
-gboolean generic_photo_transformation_command_can_compress (GenericPhotoTransformationCommand* self, Command* command) {
+gboolean
+generic_photo_transformation_command_can_compress (GenericPhotoTransformationCommand* self,
+ Command* command)
+{
#line 246 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND (self), FALSE);
#line 246 "/home/jens/Source/shotwell/src/Commands.vala"
return GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS (self)->can_compress (self, command);
-#line 4031 "Commands.c"
+#line 4626 "Commands.c"
}
-static gboolean generic_photo_transformation_command_real_compress (Command* base, Command* command) {
+static gboolean
+generic_photo_transformation_command_real_compress (Command* base,
+ Command* command)
+{
GenericPhotoTransformationCommand * self;
gboolean result = FALSE;
- Command* _tmp0_;
- gboolean _tmp1_;
GenericPhotoTransformationCommand* generic = NULL;
- Command* _tmp2_;
- GenericPhotoTransformationCommand* _tmp3_;
- GenericPhotoTransformationCommand* _tmp4_;
+ GenericPhotoTransformationCommand* _tmp0_;
+ GenericPhotoTransformationCommand* _tmp1_;
+ GenericPhotoTransformationCommand* _tmp2_;
+ DataSource* _tmp3_;
+ DataSource* _tmp4_;
GenericPhotoTransformationCommand* _tmp5_;
- DataSource* _tmp6_;
- DataSource* _tmp7_;
- GenericPhotoTransformationCommand* _tmp8_;
- GenericPhotoTransformationCommand* _tmp9_;
- PhotoTransformationState* _tmp10_;
- PhotoTransformationState* _tmp11_;
+ GenericPhotoTransformationCommand* _tmp6_;
+ PhotoTransformationState* _tmp7_;
+ PhotoTransformationState* _tmp8_;
#line 250 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand);
#line 250 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_COMMAND (command), FALSE);
#line 251 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = command;
-#line 251 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = generic_photo_transformation_command_can_compress (self, _tmp0_);
-#line 251 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp1_) {
+ if (!generic_photo_transformation_command_can_compress (self, command)) {
#line 252 "/home/jens/Source/shotwell/src/Commands.vala"
result = FALSE;
#line 252 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 4065 "Commands.c"
+#line 4656 "Commands.c"
}
#line 254 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = command;
-#line 254 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND) ? ((GenericPhotoTransformationCommand*) _tmp2_) : NULL);
+ _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND) ? ((GenericPhotoTransformationCommand*) command) : NULL);
#line 254 "/home/jens/Source/shotwell/src/Commands.vala"
- generic = _tmp3_;
+ generic = _tmp0_;
#line 255 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = generic;
+ _tmp1_ = generic;
#line 255 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp4_ == NULL) {
+ if (_tmp1_ == NULL) {
#line 256 "/home/jens/Source/shotwell/src/Commands.vala"
result = FALSE;
#line 256 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (generic);
#line 256 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 4083 "Commands.c"
+#line 4672 "Commands.c"
}
#line 258 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = generic;
+ _tmp2_ = generic;
#line 258 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
+ _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
#line 258 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
+ _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
#line 258 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp6_ != _tmp7_) {
+ if (_tmp3_ != _tmp4_) {
#line 259 "/home/jens/Source/shotwell/src/Commands.vala"
result = FALSE;
#line 259 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (generic);
#line 259 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 4099 "Commands.c"
+#line 4688 "Commands.c"
}
#line 262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = generic;
+ _tmp5_ = generic;
#line 262 "/home/jens/Source/shotwell/src/Commands.vala"
- command_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_COMMAND, Command));
+ command_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_COMMAND, Command));
#line 265 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = generic;
+ _tmp6_ = generic;
#line 265 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tmp9_->priv->transformed_state;
+ _tmp7_ = _tmp6_->priv->transformed_state;
#line 265 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _g_object_ref0 (_tmp10_);
+ _tmp8_ = _g_object_ref0 (_tmp7_);
#line 265 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->transformed_state);
#line 265 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->transformed_state = _tmp11_;
+ self->priv->transformed_state = _tmp8_;
#line 267 "/home/jens/Source/shotwell/src/Commands.vala"
result = TRUE;
#line 267 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (generic);
#line 267 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 4121 "Commands.c"
+#line 4710 "Commands.c"
}
-static void generic_photo_transformation_command_on_state_broken (GenericPhotoTransformationCommand* self) {
+static void
+generic_photo_transformation_command_on_state_broken (GenericPhotoTransformationCommand* self)
+{
CommandManager* _tmp0_;
CommandManager* _tmp1_;
#line 270 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -4134,11 +4725,13 @@ static void generic_photo_transformation_command_on_state_broken (GenericPhotoTr
command_manager_reset (_tmp1_);
#line 271 "/home/jens/Source/shotwell/src/Commands.vala"
_command_manager_unref0 (_tmp1_);
-#line 4138 "Commands.c"
+#line 4729 "Commands.c"
}
-static void generic_photo_transformation_command_class_init (GenericPhotoTransformationCommandClass * klass) {
+static void
+generic_photo_transformation_command_class_init (GenericPhotoTransformationCommandClass * klass)
+{
#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
generic_photo_transformation_command_parent_class = g_type_class_peek_parent (klass);
#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -4157,22 +4750,26 @@ static void generic_photo_transformation_command_class_init (GenericPhotoTransfo
((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) generic_photo_transformation_command_real_compress;
#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = generic_photo_transformation_command_finalize;
-#line 4161 "Commands.c"
+#line 4754 "Commands.c"
}
-static void generic_photo_transformation_command_instance_init (GenericPhotoTransformationCommand * self) {
+static void
+generic_photo_transformation_command_instance_init (GenericPhotoTransformationCommand * self)
+{
#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE (self);
#line 207 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->original_state = NULL;
#line 208 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->transformed_state = NULL;
-#line 4172 "Commands.c"
+#line 4767 "Commands.c"
}
-static void generic_photo_transformation_command_finalize (GObject * obj) {
+static void
+generic_photo_transformation_command_finalize (GObject * obj)
+{
GenericPhotoTransformationCommand * self;
PhotoTransformationState* _tmp0_;
PhotoTransformationState* _tmp3_;
@@ -4182,7 +4779,7 @@ static void generic_photo_transformation_command_finalize (GObject * obj) {
_tmp0_ = self->priv->original_state;
#line 215 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp0_ != NULL) {
-#line 4186 "Commands.c"
+#line 4783 "Commands.c"
PhotoTransformationState* _tmp1_;
guint _tmp2_;
#line 216 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -4191,13 +4788,13 @@ static void generic_photo_transformation_command_finalize (GObject * obj) {
g_signal_parse_name ("broken", TYPE_PHOTO_TRANSFORMATION_STATE, &_tmp2_, NULL, FALSE);
#line 216 "/home/jens/Source/shotwell/src/Commands.vala"
g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self);
-#line 4195 "Commands.c"
+#line 4792 "Commands.c"
}
#line 218 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp3_ = self->priv->transformed_state;
#line 218 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp3_ != NULL) {
-#line 4201 "Commands.c"
+#line 4798 "Commands.c"
PhotoTransformationState* _tmp4_;
guint _tmp5_;
#line 219 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -4206,7 +4803,7 @@ static void generic_photo_transformation_command_finalize (GObject * obj) {
g_signal_parse_name ("broken", TYPE_PHOTO_TRANSFORMATION_STATE, &_tmp5_, NULL, FALSE);
#line 219 "/home/jens/Source/shotwell/src/Commands.vala"
g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self);
-#line 4210 "Commands.c"
+#line 4807 "Commands.c"
}
#line 207 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->original_state);
@@ -4214,11 +4811,13 @@ static void generic_photo_transformation_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->transformed_state);
#line 206 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (generic_photo_transformation_command_parent_class)->finalize (obj);
-#line 4218 "Commands.c"
+#line 4815 "Commands.c"
}
-GType generic_photo_transformation_command_get_type (void) {
+GType
+generic_photo_transformation_command_get_type (void)
+{
static volatile gsize generic_photo_transformation_command_type_id__volatile = 0;
if (g_once_init_enter (&generic_photo_transformation_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (GenericPhotoTransformationCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) generic_photo_transformation_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GenericPhotoTransformationCommand), 0, (GInstanceInitFunc) generic_photo_transformation_command_instance_init, NULL };
@@ -4230,21 +4829,28 @@ GType generic_photo_transformation_command_get_type (void) {
}
-static void _multiple_data_source_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, DataSource* source, gpointer self) {
+static void
+_multiple_data_source_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
+ DataSource* source,
+ gpointer self)
+{
#line 309 "/home/jens/Source/shotwell/src/Commands.vala"
multiple_data_source_command_on_source_destroyed ((MultipleDataSourceCommand*) self, source);
-#line 4237 "Commands.c"
+#line 4840 "Commands.c"
}
-MultipleDataSourceCommand* multiple_data_source_command_construct (GType object_type, GeeIterable* iter, const gchar* progress_text, const gchar* undo_progress_text, const gchar* name, const gchar* explanation) {
+MultipleDataSourceCommand*
+multiple_data_source_command_construct (GType object_type,
+ GeeIterable* iter,
+ const gchar* progress_text,
+ const gchar* undo_progress_text,
+ const gchar* name,
+ const gchar* explanation)
+{
MultipleDataSourceCommand * self = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_;
- gchar* _tmp5_;
+ gchar* _tmp0_;
+ gchar* _tmp1_;
#line 285 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
#line 285 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -4256,170 +4862,155 @@ MultipleDataSourceCommand* multiple_data_source_command_construct (GType object_
#line 285 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (explanation != NULL, NULL);
#line 287 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = name;
-#line 287 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = explanation;
-#line 287 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (MultipleDataSourceCommand*) page_command_construct (object_type, _tmp0_, _tmp1_);
-#line 289 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = progress_text;
+ self = (MultipleDataSourceCommand*) page_command_construct (object_type, name, explanation);
#line 289 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = g_strdup (_tmp2_);
+ _tmp0_ = g_strdup (progress_text);
#line 289 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->progress_text);
#line 289 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->progress_text = _tmp3_;
+ self->priv->progress_text = _tmp0_;
#line 290 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = undo_progress_text;
-#line 290 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = g_strdup (_tmp4_);
+ _tmp1_ = g_strdup (undo_progress_text);
#line 290 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->undo_progress_text);
#line 290 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->undo_progress_text = _tmp5_;
-#line 4281 "Commands.c"
+ self->priv->undo_progress_text = _tmp1_;
+#line 4879 "Commands.c"
{
GeeIterator* _view_it = NULL;
- GeeIterable* _tmp6_;
- GeeIterator* _tmp7_;
-#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = iter;
+ GeeIterator* _tmp2_;
#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_iterable_iterator (_tmp6_);
+ _tmp2_ = gee_iterable_iterator (iter);
#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- _view_it = _tmp7_;
+ _view_it = _tmp2_;
#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 4294 "Commands.c"
- GeeIterator* _tmp8_;
- gboolean _tmp9_;
+#line 4889 "Commands.c"
+ GeeIterator* _tmp3_;
DataView* view = NULL;
- GeeIterator* _tmp10_;
- gpointer _tmp11_;
+ GeeIterator* _tmp4_;
+ gpointer _tmp5_;
DataSource* source = NULL;
- DataView* _tmp12_;
- DataSource* _tmp13_;
+ DataView* _tmp6_;
+ DataSource* _tmp7_;
SourceCollection* collection = NULL;
+ DataSource* _tmp8_;
+ DataCollection* _tmp9_;
+ SourceCollection* _tmp10_;
+ GeeArrayList* _tmp13_;
DataSource* _tmp14_;
- DataCollection* _tmp15_;
- SourceCollection* _tmp16_;
- GeeArrayList* _tmp19_;
- DataSource* _tmp20_;
#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _view_it;
-#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_iterator_next (_tmp8_);
+ _tmp3_ = _view_it;
#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp9_) {
+ if (!gee_iterator_next (_tmp3_)) {
#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 4317 "Commands.c"
+#line 4909 "Commands.c"
}
#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _view_it;
+ _tmp4_ = _view_it;
#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = gee_iterator_get (_tmp10_);
+ _tmp5_ = gee_iterator_get (_tmp4_);
#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
- view = (DataView*) _tmp11_;
+ view = (DataView*) _tmp5_;
#line 293 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = view;
+ _tmp6_ = view;
#line 293 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = data_view_get_source (_tmp12_);
+ _tmp7_ = data_view_get_source (_tmp6_);
#line 293 "/home/jens/Source/shotwell/src/Commands.vala"
- source = _tmp13_;
+ source = _tmp7_;
#line 294 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = source;
+ _tmp8_ = source;
#line 294 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_OBJECT, DataObject));
+ _tmp9_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject));
#line 294 "/home/jens/Source/shotwell/src/Commands.vala"
- collection = G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_SOURCE_COLLECTION, SourceCollection);
+ collection = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_SOURCE_COLLECTION, SourceCollection);
#line 296 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = collection;
+ _tmp10_ = collection;
#line 296 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp16_ != NULL) {
-#line 4341 "Commands.c"
- GeeHashSet* _tmp17_;
- SourceCollection* _tmp18_;
+ if (_tmp10_ != NULL) {
+#line 4933 "Commands.c"
+ GeeHashSet* _tmp11_;
+ SourceCollection* _tmp12_;
#line 297 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = self->priv->hooked_collections;
+ _tmp11_ = self->priv->hooked_collections;
#line 297 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = collection;
+ _tmp12_ = collection;
#line 297 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp18_);
-#line 4350 "Commands.c"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp12_);
+#line 4942 "Commands.c"
}
#line 299 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = self->source_list;
+ _tmp13_ = self->source_list;
#line 299 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = source;
+ _tmp14_ = source;
#line 299 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp20_);
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_);
#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
_data_collection_unref0 (collection);
#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (view);
-#line 4364 "Commands.c"
+#line 4956 "Commands.c"
}
#line 292 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_view_it);
-#line 4368 "Commands.c"
+#line 4960 "Commands.c"
}
{
GeeIterator* _current_collection_it = NULL;
- GeeHashSet* _tmp21_;
- GeeIterator* _tmp22_;
+ GeeHashSet* _tmp15_;
+ GeeIterator* _tmp16_;
#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = self->priv->hooked_collections;
+ _tmp15_ = self->priv->hooked_collections;
#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp16_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- _current_collection_it = _tmp22_;
+ _current_collection_it = _tmp16_;
#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 4382 "Commands.c"
- GeeIterator* _tmp23_;
- gboolean _tmp24_;
+#line 4974 "Commands.c"
+ GeeIterator* _tmp17_;
SourceCollection* current_collection = NULL;
- GeeIterator* _tmp25_;
- gpointer _tmp26_;
- SourceCollection* _tmp27_;
-#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _current_collection_it;
+ GeeIterator* _tmp18_;
+ gpointer _tmp19_;
+ SourceCollection* _tmp20_;
#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = gee_iterator_next (_tmp23_);
+ _tmp17_ = _current_collection_it;
#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp24_) {
+ if (!gee_iterator_next (_tmp17_)) {
#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 4397 "Commands.c"
+#line 4986 "Commands.c"
}
#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = _current_collection_it;
+ _tmp18_ = _current_collection_it;
#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = gee_iterator_get (_tmp25_);
+ _tmp19_ = gee_iterator_get (_tmp18_);
#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
- current_collection = (SourceCollection*) _tmp26_;
+ current_collection = (SourceCollection*) _tmp19_;
#line 303 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = current_collection;
+ _tmp20_ = current_collection;
#line 303 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp27_, "item-destroyed", (GCallback) _multiple_data_source_command_on_source_destroyed_source_collection_item_destroyed, self, 0);
+ g_signal_connect_object (_tmp20_, "item-destroyed", (GCallback) _multiple_data_source_command_on_source_destroyed_source_collection_item_destroyed, self, 0);
#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
_data_collection_unref0 (current_collection);
-#line 4411 "Commands.c"
+#line 5000 "Commands.c"
}
#line 302 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_current_collection_it);
-#line 4415 "Commands.c"
+#line 5004 "Commands.c"
}
#line 285 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 4419 "Commands.c"
+#line 5008 "Commands.c"
}
-GeeIterable* multiple_data_source_command_get_sources (MultipleDataSourceCommand* self) {
+GeeIterable*
+multiple_data_source_command_get_sources (MultipleDataSourceCommand* self)
+{
GeeIterable* result = NULL;
GeeArrayList* _tmp0_;
GeeIterable* _tmp1_;
@@ -4433,11 +5024,13 @@ GeeIterable* multiple_data_source_command_get_sources (MultipleDataSourceCommand
result = _tmp1_;
#line 314 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 4437 "Commands.c"
+#line 5028 "Commands.c"
}
-gint multiple_data_source_command_get_source_count (MultipleDataSourceCommand* self) {
+gint
+multiple_data_source_command_get_source_count (MultipleDataSourceCommand* self)
+{
gint result = 0;
GeeArrayList* _tmp0_;
gint _tmp1_;
@@ -4454,14 +5047,15 @@ gint multiple_data_source_command_get_source_count (MultipleDataSourceCommand* s
result = _tmp2_;
#line 318 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 4458 "Commands.c"
+#line 5051 "Commands.c"
}
-static void multiple_data_source_command_on_source_destroyed (MultipleDataSourceCommand* self, DataSource* source) {
+static void
+multiple_data_source_command_on_source_destroyed (MultipleDataSourceCommand* self,
+ DataSource* source)
+{
GeeArrayList* _tmp0_;
- DataSource* _tmp1_;
- gboolean _tmp2_;
#line 321 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self));
#line 321 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -4469,28 +5063,26 @@ static void multiple_data_source_command_on_source_destroyed (MultipleDataSource
#line 324 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp0_ = self->source_list;
#line 324 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = source;
-#line 324 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp1_);
-#line 324 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_) {
-#line 4478 "Commands.c"
- CommandManager* _tmp3_;
- CommandManager* _tmp4_;
+ if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), source)) {
+#line 5068 "Commands.c"
+ CommandManager* _tmp1_;
+ CommandManager* _tmp2_;
#line 325 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
+ _tmp1_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
#line 325 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
+ _tmp2_ = _tmp1_;
#line 325 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp4_);
+ command_manager_reset (_tmp2_);
#line 325 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp4_);
-#line 4489 "Commands.c"
+ _command_manager_unref0 (_tmp2_);
+#line 5079 "Commands.c"
}
}
-static void multiple_data_source_command_real_execute (Command* base) {
+static void
+multiple_data_source_command_real_execute (Command* base)
+{
MultipleDataSourceCommand * self;
GeeArrayList* _tmp0_;
GeeArrayList* _tmp1_;
@@ -4511,29 +5103,37 @@ static void multiple_data_source_command_real_execute (Command* base) {
multiple_data_source_command_execute_all (self, TRUE, TRUE, _tmp1_, _tmp2_);
#line 333 "/home/jens/Source/shotwell/src/Commands.vala"
multiple_data_source_command_commit_transaction (self);
-#line 4515 "Commands.c"
+#line 5107 "Commands.c"
}
-static void multiple_data_source_command_real_execute_on_source (MultipleDataSourceCommand* self, DataSource* source) {
+static void
+multiple_data_source_command_real_execute_on_source (MultipleDataSourceCommand* self,
+ DataSource* source)
+{
#line 336 "/home/jens/Source/shotwell/src/Commands.vala"
g_critical ("Type `%s' does not implement abstract method `multiple_data_source_command_execute_on_source'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 336 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 4524 "Commands.c"
+#line 5119 "Commands.c"
}
-void multiple_data_source_command_execute_on_source (MultipleDataSourceCommand* self, DataSource* source) {
+void
+multiple_data_source_command_execute_on_source (MultipleDataSourceCommand* self,
+ DataSource* source)
+{
#line 336 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self));
#line 336 "/home/jens/Source/shotwell/src/Commands.vala"
MULTIPLE_DATA_SOURCE_COMMAND_GET_CLASS (self)->execute_on_source (self, source);
-#line 4533 "Commands.c"
+#line 5131 "Commands.c"
}
-static void multiple_data_source_command_real_undo (Command* base) {
+static void
+multiple_data_source_command_real_undo (Command* base)
+{
MultipleDataSourceCommand * self;
GeeArrayList* _tmp0_;
gint _tmp1_;
@@ -4548,7 +5148,7 @@ static void multiple_data_source_command_real_undo (Command* base) {
_tmp2_ = _tmp1_;
#line 339 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp2_ > 0) {
-#line 4552 "Commands.c"
+#line 5152 "Commands.c"
GeeArrayList* _tmp3_;
GeeArrayList* _tmp4_;
#line 340 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -4563,40 +5163,50 @@ static void multiple_data_source_command_real_undo (Command* base) {
_tmp4_ = self->priv->acted_upon;
#line 344 "/home/jens/Source/shotwell/src/Commands.vala"
gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 4567 "Commands.c"
+#line 5167 "Commands.c"
}
}
-static void multiple_data_source_command_real_undo_on_source (MultipleDataSourceCommand* self, DataSource* source) {
+static void
+multiple_data_source_command_real_undo_on_source (MultipleDataSourceCommand* self,
+ DataSource* source)
+{
#line 348 "/home/jens/Source/shotwell/src/Commands.vala"
g_critical ("Type `%s' does not implement abstract method `multiple_data_source_command_undo_on_source'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 348 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 4577 "Commands.c"
+#line 5180 "Commands.c"
}
-void multiple_data_source_command_undo_on_source (MultipleDataSourceCommand* self, DataSource* source) {
+void
+multiple_data_source_command_undo_on_source (MultipleDataSourceCommand* self,
+ DataSource* source)
+{
#line 348 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self));
#line 348 "/home/jens/Source/shotwell/src/Commands.vala"
MULTIPLE_DATA_SOURCE_COMMAND_GET_CLASS (self)->undo_on_source (self, source);
-#line 4586 "Commands.c"
+#line 5192 "Commands.c"
}
-static gpointer _data_collection_ref0 (gpointer self) {
+static gpointer
+_data_collection_ref0 (gpointer self)
+{
#line 352 "/home/jens/Source/shotwell/src/Commands.vala"
return self ? data_collection_ref (self) : NULL;
-#line 4593 "Commands.c"
+#line 5201 "Commands.c"
}
-static void multiple_data_source_command_start_transaction (MultipleDataSourceCommand* self) {
+static void
+multiple_data_source_command_start_transaction (MultipleDataSourceCommand* self)
+{
#line 350 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self));
-#line 4600 "Commands.c"
+#line 5210 "Commands.c"
{
GeeIterator* _sources_it = NULL;
GeeHashSet* _tmp0_;
@@ -4609,73 +5219,72 @@ static void multiple_data_source_command_start_transaction (MultipleDataSourceCo
_sources_it = _tmp1_;
#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 4613 "Commands.c"
+#line 5223 "Commands.c"
GeeIterator* _tmp2_;
- gboolean _tmp3_;
SourceCollection* sources = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
MediaSourceCollection* media_collection = NULL;
- SourceCollection* _tmp6_;
+ SourceCollection* _tmp5_;
+ MediaSourceCollection* _tmp6_;
MediaSourceCollection* _tmp7_;
- MediaSourceCollection* _tmp8_;
#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp2_ = _sources_it;
#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
-#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 4631 "Commands.c"
+#line 5238 "Commands.c"
}
#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _sources_it;
+ _tmp3_ = _sources_it;
#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
- sources = (SourceCollection*) _tmp5_;
+ sources = (SourceCollection*) _tmp4_;
#line 352 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = sources;
+ _tmp5_ = sources;
#line 352 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _data_collection_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_MEDIA_SOURCE_COLLECTION) ? ((MediaSourceCollection*) _tmp6_) : NULL);
+ _tmp6_ = _data_collection_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_MEDIA_SOURCE_COLLECTION) ? ((MediaSourceCollection*) _tmp5_) : NULL);
#line 352 "/home/jens/Source/shotwell/src/Commands.vala"
- media_collection = _tmp7_;
+ media_collection = _tmp6_;
#line 353 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = media_collection;
+ _tmp7_ = media_collection;
#line 353 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp8_ != NULL) {
-#line 4649 "Commands.c"
- MediaSourceCollection* _tmp9_;
+ if (_tmp7_ != NULL) {
+#line 5256 "Commands.c"
+ MediaSourceCollection* _tmp8_;
+ TransactionController* _tmp9_;
TransactionController* _tmp10_;
- TransactionController* _tmp11_;
#line 354 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = media_collection;
+ _tmp8_ = media_collection;
#line 354 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = media_source_collection_get_transaction_controller (_tmp9_);
+ _tmp9_ = media_source_collection_get_transaction_controller (_tmp8_);
#line 354 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
+ _tmp10_ = _tmp9_;
#line 354 "/home/jens/Source/shotwell/src/Commands.vala"
- transaction_controller_begin (_tmp11_);
-#line 4661 "Commands.c"
+ transaction_controller_begin (_tmp10_);
+#line 5268 "Commands.c"
}
#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
_data_collection_unref0 (media_collection);
#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
_data_collection_unref0 (sources);
-#line 4667 "Commands.c"
+#line 5274 "Commands.c"
}
#line 351 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_sources_it);
-#line 4671 "Commands.c"
+#line 5278 "Commands.c"
}
}
-static void multiple_data_source_command_commit_transaction (MultipleDataSourceCommand* self) {
+static void
+multiple_data_source_command_commit_transaction (MultipleDataSourceCommand* self)
+{
#line 358 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self));
-#line 4679 "Commands.c"
+#line 5288 "Commands.c"
{
GeeIterator* _sources_it = NULL;
GeeHashSet* _tmp0_;
@@ -4688,90 +5297,91 @@ static void multiple_data_source_command_commit_transaction (MultipleDataSourceC
_sources_it = _tmp1_;
#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 4692 "Commands.c"
+#line 5301 "Commands.c"
GeeIterator* _tmp2_;
- gboolean _tmp3_;
SourceCollection* sources = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
MediaSourceCollection* media_collection = NULL;
- SourceCollection* _tmp6_;
+ SourceCollection* _tmp5_;
+ MediaSourceCollection* _tmp6_;
MediaSourceCollection* _tmp7_;
- MediaSourceCollection* _tmp8_;
#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp2_ = _sources_it;
#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
-#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 4710 "Commands.c"
+#line 5316 "Commands.c"
}
#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _sources_it;
+ _tmp3_ = _sources_it;
#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
- sources = (SourceCollection*) _tmp5_;
+ sources = (SourceCollection*) _tmp4_;
#line 360 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = sources;
+ _tmp5_ = sources;
#line 360 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _data_collection_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_MEDIA_SOURCE_COLLECTION) ? ((MediaSourceCollection*) _tmp6_) : NULL);
+ _tmp6_ = _data_collection_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_MEDIA_SOURCE_COLLECTION) ? ((MediaSourceCollection*) _tmp5_) : NULL);
#line 360 "/home/jens/Source/shotwell/src/Commands.vala"
- media_collection = _tmp7_;
+ media_collection = _tmp6_;
#line 361 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = media_collection;
+ _tmp7_ = media_collection;
#line 361 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp8_ != NULL) {
-#line 4728 "Commands.c"
- MediaSourceCollection* _tmp9_;
+ if (_tmp7_ != NULL) {
+#line 5334 "Commands.c"
+ MediaSourceCollection* _tmp8_;
+ TransactionController* _tmp9_;
TransactionController* _tmp10_;
- TransactionController* _tmp11_;
#line 362 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = media_collection;
+ _tmp8_ = media_collection;
#line 362 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = media_source_collection_get_transaction_controller (_tmp9_);
+ _tmp9_ = media_source_collection_get_transaction_controller (_tmp8_);
#line 362 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
+ _tmp10_ = _tmp9_;
#line 362 "/home/jens/Source/shotwell/src/Commands.vala"
- transaction_controller_commit (_tmp11_);
-#line 4740 "Commands.c"
+ transaction_controller_commit (_tmp10_);
+#line 5346 "Commands.c"
}
#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
_data_collection_unref0 (media_collection);
#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
_data_collection_unref0 (sources);
-#line 4746 "Commands.c"
+#line 5352 "Commands.c"
}
#line 359 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_sources_it);
-#line 4750 "Commands.c"
+#line 5356 "Commands.c"
}
}
-static void multiple_data_source_command_execute_all (MultipleDataSourceCommand* self, gboolean exec, gboolean can_cancel, GeeArrayList* todo, GeeArrayList* completed) {
+static void
+multiple_data_source_command_execute_all (MultipleDataSourceCommand* self,
+ gboolean exec,
+ gboolean can_cancel,
+ GeeArrayList* todo,
+ GeeArrayList* completed)
+{
AppWindow* _tmp0_;
AppWindow* _tmp1_;
gint count = 0;
gint total = 0;
- GeeArrayList* _tmp2_;
+ gint _tmp2_;
gint _tmp3_;
- gint _tmp4_;
gint two_percent = 0;
+ gint _tmp4_;
gint _tmp5_;
- gint _tmp6_;
- const gchar* _tmp7_ = NULL;
- gboolean _tmp8_;
+ const gchar* _tmp6_ = NULL;
gchar* text = NULL;
- gchar* _tmp11_;
+ gchar* _tmp9_;
GCancellable* cancellable = NULL;
ProgressDialog* progress = NULL;
- gint _tmp12_;
- ProgressDialog* _tmp50_;
- AppWindow* _tmp52_;
- AppWindow* _tmp53_;
+ gint _tmp10_;
+ ProgressDialog* _tmp42_;
+ AppWindow* _tmp44_;
+ AppWindow* _tmp45_;
#line 366 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self));
#line 366 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -4789,310 +5399,290 @@ static void multiple_data_source_command_execute_all (MultipleDataSourceCommand*
#line 370 "/home/jens/Source/shotwell/src/Commands.vala"
count = 0;
#line 371 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = todo;
+ _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (todo, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 371 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 371 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
+ _tmp3_ = _tmp2_;
#line 371 "/home/jens/Source/shotwell/src/Commands.vala"
- total = _tmp4_;
+ total = _tmp3_;
#line 372 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = total;
+ _tmp4_ = total;
#line 372 "/home/jens/Source/shotwell/src/Commands.vala"
- two_percent = (gint) (((gdouble) _tmp5_) / 50.0);
+ two_percent = (gint) (((gdouble) _tmp4_) / 50.0);
#line 373 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = two_percent;
+ _tmp5_ = two_percent;
#line 373 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp6_ <= 0) {
+ if (_tmp5_ <= 0) {
#line 374 "/home/jens/Source/shotwell/src/Commands.vala"
two_percent = 1;
-#line 4810 "Commands.c"
+#line 5418 "Commands.c"
}
#line 376 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = exec;
+ if (exec) {
+#line 5422 "Commands.c"
+ const gchar* _tmp7_;
#line 376 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp8_) {
-#line 4816 "Commands.c"
- const gchar* _tmp9_;
-#line 376 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->priv->progress_text;
+ _tmp7_ = self->priv->progress_text;
#line 376 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _tmp9_;
-#line 4822 "Commands.c"
+ _tmp6_ = _tmp7_;
+#line 5428 "Commands.c"
} else {
- const gchar* _tmp10_;
+ const gchar* _tmp8_;
#line 376 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = self->priv->undo_progress_text;
+ _tmp8_ = self->priv->undo_progress_text;
#line 376 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _tmp10_;
-#line 4829 "Commands.c"
+ _tmp6_ = _tmp8_;
+#line 5435 "Commands.c"
}
#line 376 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = g_strdup (_tmp7_);
+ _tmp9_ = g_strdup (_tmp6_);
#line 376 "/home/jens/Source/shotwell/src/Commands.vala"
- text = _tmp11_;
+ text = _tmp9_;
#line 378 "/home/jens/Source/shotwell/src/Commands.vala"
cancellable = NULL;
#line 379 "/home/jens/Source/shotwell/src/Commands.vala"
progress = NULL;
#line 380 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = total;
+ _tmp10_ = total;
#line 380 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp12_ >= MULTIPLE_DATA_SOURCE_COMMAND_MIN_OPS_FOR_PROGRESS_WINDOW) {
-#line 4843 "Commands.c"
- GCancellable* _tmp13_ = NULL;
- gboolean _tmp14_;
- GCancellable* _tmp16_;
- AppWindow* _tmp17_;
- AppWindow* _tmp18_;
- const gchar* _tmp19_;
- GCancellable* _tmp20_;
- ProgressDialog* _tmp21_;
+ if (_tmp10_ >= MULTIPLE_DATA_SOURCE_COMMAND_MIN_OPS_FOR_PROGRESS_WINDOW) {
+#line 5449 "Commands.c"
+ GCancellable* _tmp11_ = NULL;
+ GCancellable* _tmp13_;
+ AppWindow* _tmp14_;
+ AppWindow* _tmp15_;
+ const gchar* _tmp16_;
+ GCancellable* _tmp17_;
+ ProgressDialog* _tmp18_;
#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = can_cancel;
+ if (can_cancel) {
+#line 5459 "Commands.c"
+ GCancellable* _tmp12_;
#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp14_) {
-#line 4856 "Commands.c"
- GCancellable* _tmp15_;
+ _tmp12_ = g_cancellable_new ();
#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = g_cancellable_new ();
+ _g_object_unref0 (_tmp11_);
#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp13_);
-#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _tmp15_;
-#line 4864 "Commands.c"
+ _tmp11_ = _tmp12_;
+#line 5467 "Commands.c"
} else {
#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp13_);
+ _g_object_unref0 (_tmp11_);
#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = NULL;
-#line 4870 "Commands.c"
+ _tmp11_ = NULL;
+#line 5473 "Commands.c"
}
#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _g_object_ref0 (_tmp13_);
+ _tmp13_ = _g_object_ref0 (_tmp11_);
#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (cancellable);
#line 381 "/home/jens/Source/shotwell/src/Commands.vala"
- cancellable = _tmp16_;
+ cancellable = _tmp13_;
#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = app_window_get_instance ();
+ _tmp14_ = app_window_get_instance ();
#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = _tmp17_;
+ _tmp15_ = _tmp14_;
#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = text;
+ _tmp16_ = text;
#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = cancellable;
+ _tmp17_ = cancellable;
#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_window_get_type (), GtkWindow), _tmp19_, _tmp20_);
+ _tmp18_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_window_get_type (), GtkWindow), _tmp16_, _tmp17_);
#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- g_object_ref_sink (_tmp21_);
+ g_object_ref_sink (_tmp18_);
#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (progress);
#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- progress = _tmp21_;
+ progress = _tmp18_;
#line 382 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp18_);
+ _g_object_unref0 (_tmp15_);
#line 380 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp13_);
-#line 4898 "Commands.c"
+ _g_object_unref0 (_tmp11_);
+#line 5501 "Commands.c"
}
{
GeeArrayList* _source_list = NULL;
- GeeArrayList* _tmp22_;
- GeeArrayList* _tmp23_;
+ GeeArrayList* _tmp19_;
gint _source_size = 0;
- GeeArrayList* _tmp24_;
- gint _tmp25_;
- gint _tmp26_;
+ GeeArrayList* _tmp20_;
+ gint _tmp21_;
+ gint _tmp22_;
gint _source_index = 0;
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = todo;
-#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _g_object_ref0 (_tmp22_);
+ _tmp19_ = _g_object_ref0 (todo);
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_list = _tmp23_;
+ _source_list = _tmp19_;
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _source_list;
+ _tmp20_ = _source_list;
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp21_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = _tmp25_;
+ _tmp22_ = _tmp21_;
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_size = _tmp26_;
+ _source_size = _tmp22_;
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
_source_index = -1;
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 4927 "Commands.c"
- gint _tmp27_;
- gint _tmp28_;
- gint _tmp29_;
+#line 5527 "Commands.c"
+ gint _tmp23_;
+ gint _tmp24_;
+ gint _tmp25_;
DataSource* source = NULL;
- GeeArrayList* _tmp30_;
- gint _tmp31_;
- gpointer _tmp32_;
- gboolean _tmp33_;
- GeeArrayList* _tmp36_;
- ProgressDialog* _tmp39_;
+ GeeArrayList* _tmp26_;
+ gint _tmp27_;
+ gpointer _tmp28_;
+ ProgressDialog* _tmp32_;
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = _source_index;
+ _tmp23_ = _source_index;
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_index = _tmp27_ + 1;
+ _source_index = _tmp23_ + 1;
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = _source_index;
+ _tmp24_ = _source_index;
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = _source_size;
+ _tmp25_ = _source_size;
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp28_ < _tmp29_)) {
+ if (!(_tmp24_ < _tmp25_)) {
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 4950 "Commands.c"
+#line 5548 "Commands.c"
}
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = _source_list;
+ _tmp26_ = _source_list;
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = _source_index;
+ _tmp27_ = _source_index;
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp31_);
+ _tmp28_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp27_);
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp32_;
-#line 386 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = exec;
+ source = (DataSource*) _tmp28_;
#line 386 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp33_) {
-#line 4964 "Commands.c"
- DataSource* _tmp34_;
+ if (exec) {
+#line 5560 "Commands.c"
+ DataSource* _tmp29_;
#line 387 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = source;
+ _tmp29_ = source;
#line 387 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_data_source_command_execute_on_source (self, _tmp34_);
-#line 4970 "Commands.c"
+ multiple_data_source_command_execute_on_source (self, _tmp29_);
+#line 5566 "Commands.c"
} else {
- DataSource* _tmp35_;
+ DataSource* _tmp30_;
#line 389 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = source;
+ _tmp30_ = source;
#line 389 "/home/jens/Source/shotwell/src/Commands.vala"
- multiple_data_source_command_undo_on_source (self, _tmp35_);
-#line 4977 "Commands.c"
+ multiple_data_source_command_undo_on_source (self, _tmp30_);
+#line 5573 "Commands.c"
}
#line 391 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = completed;
-#line 391 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp36_ != NULL) {
-#line 4983 "Commands.c"
- GeeArrayList* _tmp37_;
- DataSource* _tmp38_;
-#line 392 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = completed;
+ if (completed != NULL) {
+#line 5577 "Commands.c"
+ DataSource* _tmp31_;
#line 392 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = source;
+ _tmp31_ = source;
#line 392 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp38_);
-#line 4992 "Commands.c"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (completed, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp31_);
+#line 5583 "Commands.c"
}
#line 394 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = progress;
+ _tmp32_ = progress;
#line 394 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp39_ != NULL) {
-#line 4998 "Commands.c"
- gint _tmp40_;
- gint _tmp41_;
- gint _tmp42_;
- gboolean _tmp46_ = FALSE;
- GCancellable* _tmp47_;
+ if (_tmp32_ != NULL) {
+#line 5589 "Commands.c"
+ gint _tmp33_;
+ gint _tmp34_;
+ gint _tmp35_;
+ gboolean _tmp39_ = FALSE;
+ GCancellable* _tmp40_;
#line 395 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = count;
+ _tmp33_ = count;
#line 395 "/home/jens/Source/shotwell/src/Commands.vala"
- count = _tmp40_ + 1;
+ count = _tmp33_ + 1;
#line 395 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = count;
+ _tmp34_ = count;
#line 395 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = two_percent;
+ _tmp35_ = two_percent;
#line 395 "/home/jens/Source/shotwell/src/Commands.vala"
- if ((_tmp41_ % _tmp42_) == 0) {
-#line 5014 "Commands.c"
- ProgressDialog* _tmp43_;
- gint _tmp44_;
- gint _tmp45_;
+ if ((_tmp34_ % _tmp35_) == 0) {
+#line 5605 "Commands.c"
+ ProgressDialog* _tmp36_;
+ gint _tmp37_;
+ gint _tmp38_;
#line 396 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = progress;
+ _tmp36_ = progress;
#line 396 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = count;
+ _tmp37_ = count;
#line 396 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = total;
+ _tmp38_ = total;
#line 396 "/home/jens/Source/shotwell/src/Commands.vala"
- progress_dialog_set_fraction (_tmp43_, _tmp44_, _tmp45_);
+ progress_dialog_set_fraction (_tmp36_, _tmp37_, _tmp38_);
#line 397 "/home/jens/Source/shotwell/src/Commands.vala"
spin_event_loop ();
-#line 5028 "Commands.c"
+#line 5619 "Commands.c"
}
#line 400 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp47_ = cancellable;
-#line 400 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp47_ != NULL) {
-#line 5034 "Commands.c"
- GCancellable* _tmp48_;
- gboolean _tmp49_;
+ _tmp40_ = cancellable;
#line 400 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp48_ = cancellable;
+ if (_tmp40_ != NULL) {
+#line 5625 "Commands.c"
+ GCancellable* _tmp41_;
#line 400 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp49_ = g_cancellable_is_cancelled (_tmp48_);
+ _tmp41_ = cancellable;
#line 400 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp46_ = _tmp49_;
-#line 5043 "Commands.c"
+ _tmp39_ = g_cancellable_is_cancelled (_tmp41_);
+#line 5631 "Commands.c"
} else {
#line 400 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp46_ = FALSE;
-#line 5047 "Commands.c"
+ _tmp39_ = FALSE;
+#line 5635 "Commands.c"
}
#line 400 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp46_) {
+ if (_tmp39_) {
#line 401 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
#line 401 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 5055 "Commands.c"
+#line 5643 "Commands.c"
}
}
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 5060 "Commands.c"
+#line 5648 "Commands.c"
}
#line 385 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_list);
-#line 5064 "Commands.c"
+#line 5652 "Commands.c"
}
#line 405 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp50_ = progress;
+ _tmp42_ = progress;
#line 405 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp50_ != NULL) {
-#line 5070 "Commands.c"
- ProgressDialog* _tmp51_;
+ if (_tmp42_ != NULL) {
+#line 5658 "Commands.c"
+ ProgressDialog* _tmp43_;
#line 406 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp51_ = progress;
+ _tmp43_ = progress;
#line 406 "/home/jens/Source/shotwell/src/Commands.vala"
- progress_dialog_close (_tmp51_);
-#line 5076 "Commands.c"
+ progress_dialog_close (_tmp43_);
+#line 5664 "Commands.c"
}
#line 408 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp52_ = app_window_get_instance ();
+ _tmp44_ = app_window_get_instance ();
#line 408 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp53_ = _tmp52_;
+ _tmp45_ = _tmp44_;
#line 408 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, TYPE_PAGE_WINDOW, PageWindow));
+ page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_PAGE_WINDOW, PageWindow));
#line 408 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp53_);
+ _g_object_unref0 (_tmp45_);
#line 366 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (progress);
#line 366 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (cancellable);
#line 366 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (text);
-#line 5092 "Commands.c"
+#line 5680 "Commands.c"
}
-static void multiple_data_source_command_class_init (MultipleDataSourceCommandClass * klass) {
+static void
+multiple_data_source_command_class_init (MultipleDataSourceCommandClass * klass)
+{
#line 275 "/home/jens/Source/shotwell/src/Commands.vala"
multiple_data_source_command_parent_class = g_type_class_peek_parent (klass);
#line 275 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -5107,11 +5697,13 @@ static void multiple_data_source_command_class_init (MultipleDataSourceCommandCl
((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) multiple_data_source_command_real_undo_on_source;
#line 275 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = multiple_data_source_command_finalize;
-#line 5111 "Commands.c"
+#line 5701 "Commands.c"
}
-static void multiple_data_source_command_instance_init (MultipleDataSourceCommand * self) {
+static void
+multiple_data_source_command_instance_init (MultipleDataSourceCommand * self)
+{
GeeArrayList* _tmp0_;
GeeArrayList* _tmp1_;
GeeHashSet* _tmp2_;
@@ -5129,15 +5721,17 @@ static void multiple_data_source_command_instance_init (MultipleDataSourceComman
_tmp2_ = gee_hash_set_new (TYPE_SOURCE_COLLECTION, (GBoxedCopyFunc) data_collection_ref, (GDestroyNotify) data_collection_unref, NULL, NULL, NULL, NULL, NULL, NULL);
#line 283 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->hooked_collections = _tmp2_;
-#line 5133 "Commands.c"
+#line 5725 "Commands.c"
}
-static void multiple_data_source_command_finalize (GObject * obj) {
+static void
+multiple_data_source_command_finalize (GObject * obj)
+{
MultipleDataSourceCommand * self;
#line 275 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand);
-#line 5141 "Commands.c"
+#line 5735 "Commands.c"
{
GeeIterator* _current_collection_it = NULL;
GeeHashSet* _tmp0_;
@@ -5150,43 +5744,40 @@ static void multiple_data_source_command_finalize (GObject * obj) {
_current_collection_it = _tmp1_;
#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 5154 "Commands.c"
+#line 5748 "Commands.c"
GeeIterator* _tmp2_;
- gboolean _tmp3_;
SourceCollection* current_collection = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- SourceCollection* _tmp6_;
- guint _tmp7_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
+ SourceCollection* _tmp5_;
+ guint _tmp6_;
#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp2_ = _current_collection_it;
#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
-#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 5170 "Commands.c"
+#line 5761 "Commands.c"
}
#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _current_collection_it;
+ _tmp3_ = _current_collection_it;
#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
- current_collection = (SourceCollection*) _tmp5_;
+ current_collection = (SourceCollection*) _tmp4_;
#line 309 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = current_collection;
+ _tmp5_ = current_collection;
#line 309 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp7_, NULL, FALSE);
+ g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp6_, NULL, FALSE);
#line 309 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _multiple_data_source_command_on_source_destroyed_source_collection_item_destroyed, self);
+ g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _multiple_data_source_command_on_source_destroyed_source_collection_item_destroyed, self);
#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
_data_collection_unref0 (current_collection);
-#line 5186 "Commands.c"
+#line 5777 "Commands.c"
}
#line 308 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_current_collection_it);
-#line 5190 "Commands.c"
+#line 5781 "Commands.c"
}
#line 278 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->source_list);
@@ -5200,11 +5791,13 @@ static void multiple_data_source_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->hooked_collections);
#line 275 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (multiple_data_source_command_parent_class)->finalize (obj);
-#line 5204 "Commands.c"
+#line 5795 "Commands.c"
}
-GType multiple_data_source_command_get_type (void) {
+GType
+multiple_data_source_command_get_type (void)
+{
static volatile gsize multiple_data_source_command_type_id__volatile = 0;
if (g_once_init_enter (&multiple_data_source_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (MultipleDataSourceCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) multiple_data_source_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MultipleDataSourceCommand), 0, (GInstanceInitFunc) multiple_data_source_command_instance_init, NULL };
@@ -5216,19 +5809,25 @@ GType multiple_data_source_command_get_type (void) {
}
-static void _multiple_data_source_at_once_command_on_sources_destroyed_source_collection_items_destroyed (SourceCollection* _sender, GeeCollection* destroyed, gpointer self) {
+static void
+_multiple_data_source_at_once_command_on_sources_destroyed_source_collection_items_destroyed (SourceCollection* _sender,
+ GeeCollection* destroyed,
+ gpointer self)
+{
#line 435 "/home/jens/Source/shotwell/src/Commands.vala"
multiple_data_source_at_once_command_on_sources_destroyed ((MultipleDataSourceAtOnceCommand*) self, destroyed);
-#line 5223 "Commands.c"
+#line 5820 "Commands.c"
}
-MultipleDataSourceAtOnceCommand* multiple_data_source_at_once_command_construct (GType object_type, GeeCollection* sources, const gchar* name, const gchar* explanation) {
+MultipleDataSourceAtOnceCommand*
+multiple_data_source_at_once_command_construct (GType object_type,
+ GeeCollection* sources,
+ const gchar* name,
+ const gchar* explanation)
+{
MultipleDataSourceAtOnceCommand * self = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- GeeHashSet* _tmp2_;
- GeeCollection* _tmp3_;
+ GeeHashSet* _tmp0_;
#line 417 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL);
#line 417 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -5236,150 +5835,140 @@ MultipleDataSourceAtOnceCommand* multiple_data_source_at_once_command_construct
#line 417 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (explanation != NULL, NULL);
#line 419 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = name;
-#line 419 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = explanation;
-#line 419 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (MultipleDataSourceAtOnceCommand*) page_command_construct (object_type, _tmp0_, _tmp1_);
-#line 421 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->sources;
+ self = (MultipleDataSourceAtOnceCommand*) page_command_construct (object_type, name, explanation);
#line 421 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = sources;
+ _tmp0_ = self->priv->sources;
#line 421 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), _tmp3_);
-#line 5251 "Commands.c"
+ gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), sources);
+#line 5844 "Commands.c"
{
GeeIterator* _source_it = NULL;
- GeeHashSet* _tmp4_;
- GeeIterator* _tmp5_;
+ GeeHashSet* _tmp1_;
+ GeeIterator* _tmp2_;
#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->sources;
+ _tmp1_ = self->priv->sources;
#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp2_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp5_;
+ _source_it = _tmp2_;
#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 5264 "Commands.c"
- GeeIterator* _tmp6_;
- gboolean _tmp7_;
+#line 5857 "Commands.c"
+ GeeIterator* _tmp3_;
DataSource* source = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
+ GeeIterator* _tmp4_;
+ gpointer _tmp5_;
SourceCollection* membership = NULL;
- DataSource* _tmp10_;
- DataCollection* _tmp11_;
- SourceCollection* _tmp12_;
- SourceCollection* _tmp13_;
-#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _source_it;
+ DataSource* _tmp6_;
+ DataCollection* _tmp7_;
+ SourceCollection* _tmp8_;
+ SourceCollection* _tmp9_;
#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_iterator_next (_tmp6_);
+ _tmp3_ = _source_it;
#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp7_) {
+ if (!gee_iterator_next (_tmp3_)) {
#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 5283 "Commands.c"
+#line 5873 "Commands.c"
}
#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _source_it;
+ _tmp4_ = _source_it;
#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
+ _tmp5_ = gee_iterator_get (_tmp4_);
#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp9_;
+ source = (DataSource*) _tmp5_;
#line 424 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = source;
+ _tmp6_ = source;
#line 424 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_OBJECT, DataObject));
+ _tmp7_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_OBJECT, DataObject));
#line 424 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_SOURCE_COLLECTION) ? ((SourceCollection*) _tmp11_) : NULL;
+ _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_SOURCE_COLLECTION) ? ((SourceCollection*) _tmp7_) : NULL;
#line 424 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp12_ == NULL) {
+ if (_tmp8_ == NULL) {
#line 424 "/home/jens/Source/shotwell/src/Commands.vala"
- _data_collection_unref0 (_tmp11_);
-#line 5301 "Commands.c"
+ _data_collection_unref0 (_tmp7_);
+#line 5891 "Commands.c"
}
#line 424 "/home/jens/Source/shotwell/src/Commands.vala"
- membership = _tmp12_;
+ membership = _tmp8_;
#line 425 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = membership;
+ _tmp9_ = membership;
#line 425 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp13_ != NULL) {
-#line 5309 "Commands.c"
- GeeHashSet* _tmp14_;
- SourceCollection* _tmp15_;
+ if (_tmp9_ != NULL) {
+#line 5899 "Commands.c"
+ GeeHashSet* _tmp10_;
+ SourceCollection* _tmp11_;
#line 426 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = self->priv->hooked_collections;
+ _tmp10_ = self->priv->hooked_collections;
#line 426 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = membership;
+ _tmp11_ = membership;
#line 426 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_);
-#line 5318 "Commands.c"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp11_);
+#line 5908 "Commands.c"
}
#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
_data_collection_unref0 (membership);
#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 5324 "Commands.c"
+#line 5914 "Commands.c"
}
#line 423 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 5328 "Commands.c"
+#line 5918 "Commands.c"
}
{
GeeIterator* _source_collection_it = NULL;
- GeeHashSet* _tmp16_;
- GeeIterator* _tmp17_;
+ GeeHashSet* _tmp12_;
+ GeeIterator* _tmp13_;
#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = self->priv->hooked_collections;
+ _tmp12_ = self->priv->hooked_collections;
#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp13_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_collection_it = _tmp17_;
+ _source_collection_it = _tmp13_;
#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 5342 "Commands.c"
- GeeIterator* _tmp18_;
- gboolean _tmp19_;
+#line 5932 "Commands.c"
+ GeeIterator* _tmp14_;
SourceCollection* source_collection = NULL;
- GeeIterator* _tmp20_;
- gpointer _tmp21_;
- SourceCollection* _tmp22_;
-#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = _source_collection_it;
+ GeeIterator* _tmp15_;
+ gpointer _tmp16_;
+ SourceCollection* _tmp17_;
#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = gee_iterator_next (_tmp18_);
+ _tmp14_ = _source_collection_it;
#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp19_) {
+ if (!gee_iterator_next (_tmp14_)) {
#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 5357 "Commands.c"
+#line 5944 "Commands.c"
}
#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _source_collection_it;
+ _tmp15_ = _source_collection_it;
#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = gee_iterator_get (_tmp20_);
+ _tmp16_ = gee_iterator_get (_tmp15_);
#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection = (SourceCollection*) _tmp21_;
+ source_collection = (SourceCollection*) _tmp16_;
#line 430 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = source_collection;
+ _tmp17_ = source_collection;
#line 430 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp22_, "items-destroyed", (GCallback) _multiple_data_source_at_once_command_on_sources_destroyed_source_collection_items_destroyed, self, 0);
+ g_signal_connect_object (_tmp17_, "items-destroyed", (GCallback) _multiple_data_source_at_once_command_on_sources_destroyed_source_collection_items_destroyed, self, 0);
#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
_data_collection_unref0 (source_collection);
-#line 5371 "Commands.c"
+#line 5958 "Commands.c"
}
#line 429 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_collection_it);
-#line 5375 "Commands.c"
+#line 5962 "Commands.c"
}
#line 417 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 5379 "Commands.c"
+#line 5966 "Commands.c"
}
-static void multiple_data_source_at_once_command_real_execute (Command* base) {
+static void
+multiple_data_source_at_once_command_real_execute (Command* base)
+{
MultipleDataSourceAtOnceCommand * self;
AppWindow* _tmp0_;
AppWindow* _tmp1_;
@@ -5421,7 +6010,7 @@ static void multiple_data_source_at_once_command_real_execute (Command* base) {
media_collection_registry_thaw_all (_tmp6_);
#line 446 "/home/jens/Source/shotwell/src/Commands.vala"
_media_collection_registry_unref0 (_tmp6_);
-#line 5425 "Commands.c"
+#line 6014 "Commands.c"
{
#line 448 "/home/jens/Source/shotwell/src/Commands.vala"
database_table_commit_transaction (&_inner_error_);
@@ -5429,7 +6018,7 @@ static void multiple_data_source_at_once_command_real_execute (Command* base) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 448 "/home/jens/Source/shotwell/src/Commands.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5433 "Commands.c"
+#line 6022 "Commands.c"
goto __catch464_database_error;
}
{
@@ -5443,7 +6032,7 @@ static void multiple_data_source_at_once_command_real_execute (Command* base) {
page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PAGE_WINDOW, PageWindow));
#line 452 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tmp8_);
-#line 5447 "Commands.c"
+#line 6036 "Commands.c"
}
#line 448 "/home/jens/Source/shotwell/src/Commands.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -5451,7 +6040,7 @@ static void multiple_data_source_at_once_command_real_execute (Command* base) {
g_clear_error (&_inner_error_);
#line 448 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 5455 "Commands.c"
+#line 6044 "Commands.c"
}
}
goto __finally464;
@@ -5469,7 +6058,7 @@ static void multiple_data_source_at_once_command_real_execute (Command* base) {
app_window_database_error (_tmp9_);
#line 447 "/home/jens/Source/shotwell/src/Commands.vala"
_g_error_free0 (err);
-#line 5473 "Commands.c"
+#line 6062 "Commands.c"
}
__finally464:
{
@@ -5483,7 +6072,7 @@ static void multiple_data_source_at_once_command_real_execute (Command* base) {
page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PAGE_WINDOW, PageWindow));
#line 452 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tmp11_);
-#line 5487 "Commands.c"
+#line 6076 "Commands.c"
}
#line 447 "/home/jens/Source/shotwell/src/Commands.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
@@ -5493,30 +6082,38 @@ static void multiple_data_source_at_once_command_real_execute (Command* base) {
g_clear_error (&_inner_error_);
#line 447 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 5497 "Commands.c"
+#line 6086 "Commands.c"
}
}
-static void multiple_data_source_at_once_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* self, GeeCollection* sources) {
+static void
+multiple_data_source_at_once_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* self,
+ GeeCollection* sources)
+{
#line 456 "/home/jens/Source/shotwell/src/Commands.vala"
g_critical ("Type `%s' does not implement abstract method `multiple_data_source_at_once_command_execute_on_all'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 456 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 5507 "Commands.c"
+#line 6099 "Commands.c"
}
-void multiple_data_source_at_once_command_execute_on_all (MultipleDataSourceAtOnceCommand* self, GeeCollection* sources) {
+void
+multiple_data_source_at_once_command_execute_on_all (MultipleDataSourceAtOnceCommand* self,
+ GeeCollection* sources)
+{
#line 456 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (self));
#line 456 "/home/jens/Source/shotwell/src/Commands.vala"
MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_CLASS (self)->execute_on_all (self, sources);
-#line 5516 "Commands.c"
+#line 6111 "Commands.c"
}
-static void multiple_data_source_at_once_command_real_undo (Command* base) {
+static void
+multiple_data_source_at_once_command_real_undo (Command* base)
+{
MultipleDataSourceAtOnceCommand * self;
AppWindow* _tmp0_;
AppWindow* _tmp1_;
@@ -5558,7 +6155,7 @@ static void multiple_data_source_at_once_command_real_undo (Command* base) {
media_collection_registry_thaw_all (_tmp6_);
#line 466 "/home/jens/Source/shotwell/src/Commands.vala"
_media_collection_registry_unref0 (_tmp6_);
-#line 5562 "Commands.c"
+#line 6159 "Commands.c"
{
#line 468 "/home/jens/Source/shotwell/src/Commands.vala"
database_table_commit_transaction (&_inner_error_);
@@ -5566,7 +6163,7 @@ static void multiple_data_source_at_once_command_real_undo (Command* base) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 468 "/home/jens/Source/shotwell/src/Commands.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5570 "Commands.c"
+#line 6167 "Commands.c"
goto __catch465_database_error;
}
{
@@ -5580,7 +6177,7 @@ static void multiple_data_source_at_once_command_real_undo (Command* base) {
page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PAGE_WINDOW, PageWindow));
#line 472 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tmp8_);
-#line 5584 "Commands.c"
+#line 6181 "Commands.c"
}
#line 468 "/home/jens/Source/shotwell/src/Commands.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -5588,7 +6185,7 @@ static void multiple_data_source_at_once_command_real_undo (Command* base) {
g_clear_error (&_inner_error_);
#line 468 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 5592 "Commands.c"
+#line 6189 "Commands.c"
}
}
goto __finally465;
@@ -5606,7 +6203,7 @@ static void multiple_data_source_at_once_command_real_undo (Command* base) {
app_window_database_error (_tmp9_);
#line 467 "/home/jens/Source/shotwell/src/Commands.vala"
_g_error_free0 (err);
-#line 5610 "Commands.c"
+#line 6207 "Commands.c"
}
__finally465:
{
@@ -5620,7 +6217,7 @@ static void multiple_data_source_at_once_command_real_undo (Command* base) {
page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PAGE_WINDOW, PageWindow));
#line 472 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tmp11_);
-#line 5624 "Commands.c"
+#line 6221 "Commands.c"
}
#line 467 "/home/jens/Source/shotwell/src/Commands.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
@@ -5630,109 +6227,111 @@ static void multiple_data_source_at_once_command_real_undo (Command* base) {
g_clear_error (&_inner_error_);
#line 467 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 5634 "Commands.c"
+#line 6231 "Commands.c"
}
}
-static void multiple_data_source_at_once_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* self, GeeCollection* sources) {
+static void
+multiple_data_source_at_once_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* self,
+ GeeCollection* sources)
+{
#line 476 "/home/jens/Source/shotwell/src/Commands.vala"
g_critical ("Type `%s' does not implement abstract method `multiple_data_source_at_once_command_undo_on_all'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 476 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 5644 "Commands.c"
+#line 6244 "Commands.c"
}
-void multiple_data_source_at_once_command_undo_on_all (MultipleDataSourceAtOnceCommand* self, GeeCollection* sources) {
+void
+multiple_data_source_at_once_command_undo_on_all (MultipleDataSourceAtOnceCommand* self,
+ GeeCollection* sources)
+{
#line 476 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (self));
#line 476 "/home/jens/Source/shotwell/src/Commands.vala"
MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_CLASS (self)->undo_on_all (self, sources);
-#line 5653 "Commands.c"
+#line 6256 "Commands.c"
}
-static void multiple_data_source_at_once_command_on_sources_destroyed (MultipleDataSourceAtOnceCommand* self, GeeCollection* destroyed) {
+static void
+multiple_data_source_at_once_command_on_sources_destroyed (MultipleDataSourceAtOnceCommand* self,
+ GeeCollection* destroyed)
+{
#line 478 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (self));
#line 478 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (GEE_IS_COLLECTION (destroyed));
-#line 5662 "Commands.c"
+#line 6268 "Commands.c"
{
GeeIterator* _source_it = NULL;
- GeeCollection* _tmp0_;
- GeeIterator* _tmp1_;
-#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = destroyed;
+ GeeIterator* _tmp0_;
#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (destroyed, GEE_TYPE_ITERABLE, GeeIterable));
#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp1_;
+ _source_it = _tmp0_;
#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 5675 "Commands.c"
- GeeIterator* _tmp2_;
- gboolean _tmp3_;
+#line 6278 "Commands.c"
+ GeeIterator* _tmp1_;
DataSource* source = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- GeeHashSet* _tmp6_;
- DataSource* _tmp7_;
- gboolean _tmp8_;
-#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_it;
+ GeeIterator* _tmp2_;
+ gpointer _tmp3_;
+ GeeHashSet* _tmp4_;
+ DataSource* _tmp5_;
#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
+ _tmp1_ = _source_it;
#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp1_)) {
#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 5692 "Commands.c"
+#line 6291 "Commands.c"
}
#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _source_it;
+ _tmp2_ = _source_it;
#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp3_ = gee_iterator_get (_tmp2_);
#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp5_;
-#line 480 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = self->priv->sources;
+ source = (DataSource*) _tmp3_;
#line 480 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = source;
+ _tmp4_ = self->priv->sources;
#line 480 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp7_);
+ _tmp5_ = source;
#line 480 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp8_) {
-#line 5708 "Commands.c"
- CommandManager* _tmp9_;
- CommandManager* _tmp10_;
+ if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp5_)) {
+#line 6305 "Commands.c"
+ CommandManager* _tmp6_;
+ CommandManager* _tmp7_;
#line 481 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
+ _tmp6_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
#line 481 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tmp9_;
+ _tmp7_ = _tmp6_;
#line 481 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp10_);
+ command_manager_reset (_tmp7_);
#line 481 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp10_);
+ _command_manager_unref0 (_tmp7_);
#line 483 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
#line 483 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 5723 "Commands.c"
+#line 6320 "Commands.c"
}
#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 5727 "Commands.c"
+#line 6324 "Commands.c"
}
#line 479 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 5731 "Commands.c"
+#line 6328 "Commands.c"
}
}
-static void multiple_data_source_at_once_command_class_init (MultipleDataSourceAtOnceCommandClass * klass) {
+static void
+multiple_data_source_at_once_command_class_init (MultipleDataSourceAtOnceCommandClass * klass)
+{
#line 413 "/home/jens/Source/shotwell/src/Commands.vala"
multiple_data_source_at_once_command_parent_class = g_type_class_peek_parent (klass);
#line 413 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -5747,11 +6346,13 @@ static void multiple_data_source_at_once_command_class_init (MultipleDataSourceA
((MultipleDataSourceAtOnceCommandClass *) klass)->undo_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) multiple_data_source_at_once_command_real_undo_on_all;
#line 413 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = multiple_data_source_at_once_command_finalize;
-#line 5751 "Commands.c"
+#line 6350 "Commands.c"
}
-static void multiple_data_source_at_once_command_instance_init (MultipleDataSourceAtOnceCommand * self) {
+static void
+multiple_data_source_at_once_command_instance_init (MultipleDataSourceAtOnceCommand * self)
+{
GeeHashSet* _tmp0_;
GeeHashSet* _tmp1_;
#line 413 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -5764,15 +6365,17 @@ static void multiple_data_source_at_once_command_instance_init (MultipleDataSour
_tmp1_ = gee_hash_set_new (TYPE_SOURCE_COLLECTION, (GBoxedCopyFunc) data_collection_ref, (GDestroyNotify) data_collection_unref, NULL, NULL, NULL, NULL, NULL, NULL);
#line 415 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->hooked_collections = _tmp1_;
-#line 5768 "Commands.c"
+#line 6369 "Commands.c"
}
-static void multiple_data_source_at_once_command_finalize (GObject * obj) {
+static void
+multiple_data_source_at_once_command_finalize (GObject * obj)
+{
MultipleDataSourceAtOnceCommand * self;
#line 413 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommand);
-#line 5776 "Commands.c"
+#line 6379 "Commands.c"
{
GeeIterator* _source_collection_it = NULL;
GeeHashSet* _tmp0_;
@@ -5785,43 +6388,40 @@ static void multiple_data_source_at_once_command_finalize (GObject * obj) {
_source_collection_it = _tmp1_;
#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 5789 "Commands.c"
+#line 6392 "Commands.c"
GeeIterator* _tmp2_;
- gboolean _tmp3_;
SourceCollection* source_collection = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- SourceCollection* _tmp6_;
- guint _tmp7_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
+ SourceCollection* _tmp5_;
+ guint _tmp6_;
#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp2_ = _source_collection_it;
#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
-#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 5805 "Commands.c"
+#line 6405 "Commands.c"
}
#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _source_collection_it;
+ _tmp3_ = _source_collection_it;
#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection = (SourceCollection*) _tmp5_;
+ source_collection = (SourceCollection*) _tmp4_;
#line 435 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = source_collection;
+ _tmp5_ = source_collection;
#line 435 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("items-destroyed", TYPE_SOURCE_COLLECTION, &_tmp7_, NULL, FALSE);
+ g_signal_parse_name ("items-destroyed", TYPE_SOURCE_COLLECTION, &_tmp6_, NULL, FALSE);
#line 435 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _multiple_data_source_at_once_command_on_sources_destroyed_source_collection_items_destroyed, self);
+ g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _multiple_data_source_at_once_command_on_sources_destroyed_source_collection_items_destroyed, self);
#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
_data_collection_unref0 (source_collection);
-#line 5821 "Commands.c"
+#line 6421 "Commands.c"
}
#line 434 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_collection_it);
-#line 5825 "Commands.c"
+#line 6425 "Commands.c"
}
#line 414 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->sources);
@@ -5829,11 +6429,13 @@ static void multiple_data_source_at_once_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->hooked_collections);
#line 413 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (multiple_data_source_at_once_command_parent_class)->finalize (obj);
-#line 5833 "Commands.c"
+#line 6433 "Commands.c"
}
-GType multiple_data_source_at_once_command_get_type (void) {
+GType
+multiple_data_source_at_once_command_get_type (void)
+{
static volatile gsize multiple_data_source_at_once_command_type_id__volatile = 0;
if (g_once_init_enter (&multiple_data_source_at_once_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (MultipleDataSourceAtOnceCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) multiple_data_source_at_once_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MultipleDataSourceAtOnceCommand), 0, (GInstanceInitFunc) multiple_data_source_at_once_command_instance_init, NULL };
@@ -5845,20 +6447,25 @@ GType multiple_data_source_at_once_command_get_type (void) {
}
-static void _multiple_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender, gpointer self) {
+static void
+_multiple_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender,
+ gpointer self)
+{
#line 508 "/home/jens/Source/shotwell/src/Commands.vala"
multiple_photo_transformation_command_on_state_broken ((MultiplePhotoTransformationCommand*) self);
-#line 5852 "Commands.c"
+#line 6457 "Commands.c"
}
-MultiplePhotoTransformationCommand* multiple_photo_transformation_command_construct (GType object_type, GeeIterable* iter, const gchar* progress_text, const gchar* undo_progress_text, const gchar* name, const gchar* explanation) {
+MultiplePhotoTransformationCommand*
+multiple_photo_transformation_command_construct (GType object_type,
+ GeeIterable* iter,
+ const gchar* progress_text,
+ const gchar* undo_progress_text,
+ const gchar* name,
+ const gchar* explanation)
+{
MultiplePhotoTransformationCommand * self = NULL;
- GeeIterable* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- const gchar* _tmp4_;
#line 493 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
#line 493 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -5870,151 +6477,141 @@ MultiplePhotoTransformationCommand* multiple_photo_transformation_command_constr
#line 493 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (explanation != NULL, NULL);
#line 495 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = iter;
-#line 495 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = progress_text;
-#line 495 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = undo_progress_text;
-#line 495 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = name;
-#line 495 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = explanation;
-#line 495 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (MultiplePhotoTransformationCommand*) multiple_data_source_command_construct (object_type, _tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp4_);
-#line 5885 "Commands.c"
+ self = (MultiplePhotoTransformationCommand*) multiple_data_source_command_construct (object_type, iter, progress_text, undo_progress_text, name, explanation);
+#line 6482 "Commands.c"
{
GeeArrayList* _source_list = NULL;
- GeeArrayList* _tmp5_;
- GeeArrayList* _tmp6_;
+ GeeArrayList* _tmp0_;
+ GeeArrayList* _tmp1_;
gint _source_size = 0;
- GeeArrayList* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
+ GeeArrayList* _tmp2_;
+ gint _tmp3_;
+ gint _tmp4_;
gint _source_index = 0;
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)->source_list;
+ _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)->source_list;
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _g_object_ref0 (_tmp5_);
+ _tmp1_ = _g_object_ref0 (_tmp0_);
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_list = _tmp6_;
+ _source_list = _tmp1_;
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _source_list;
+ _tmp2_ = _source_list;
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _tmp8_;
+ _tmp4_ = _tmp3_;
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_size = _tmp9_;
+ _source_size = _tmp4_;
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
_source_index = -1;
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 5913 "Commands.c"
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
+#line 6510 "Commands.c"
+ gint _tmp5_;
+ gint _tmp6_;
+ gint _tmp7_;
DataSource* source = NULL;
- GeeArrayList* _tmp13_;
- gint _tmp14_;
- gpointer _tmp15_;
+ GeeArrayList* _tmp8_;
+ gint _tmp9_;
+ gpointer _tmp10_;
Photo* photo = NULL;
- DataSource* _tmp16_;
- Photo* _tmp17_;
+ DataSource* _tmp11_;
+ Photo* _tmp12_;
PhotoTransformationState* state = NULL;
- Photo* _tmp18_;
- PhotoTransformationState* _tmp19_;
- PhotoTransformationState* _tmp20_;
- GeeHashMap* _tmp21_;
- Photo* _tmp22_;
- PhotoTransformationState* _tmp23_;
+ Photo* _tmp13_;
+ PhotoTransformationState* _tmp14_;
+ PhotoTransformationState* _tmp15_;
+ GeeHashMap* _tmp16_;
+ Photo* _tmp17_;
+ PhotoTransformationState* _tmp18_;
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _source_index;
+ _tmp5_ = _source_index;
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_index = _tmp10_ + 1;
+ _source_index = _tmp5_ + 1;
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _source_index;
+ _tmp6_ = _source_index;
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _source_size;
+ _tmp7_ = _source_size;
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp11_ < _tmp12_)) {
+ if (!(_tmp6_ < _tmp7_)) {
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 5943 "Commands.c"
+#line 6540 "Commands.c"
}
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _source_list;
+ _tmp8_ = _source_list;
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _source_index;
+ _tmp9_ = _source_index;
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp14_);
+ _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_);
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp15_;
+ source = (DataSource*) _tmp10_;
#line 498 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = source;
+ _tmp11_ = source;
#line 498 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PHOTO, Photo));
+ _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PHOTO, Photo));
#line 498 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp17_;
+ photo = _tmp12_;
#line 499 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = photo;
+ _tmp13_ = photo;
#line 499 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = photo_save_transformation_state (_tmp18_);
+ _tmp14_ = photo_save_transformation_state (_tmp13_);
#line 499 "/home/jens/Source/shotwell/src/Commands.vala"
- state = _tmp19_;
+ state = _tmp14_;
#line 500 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = state;
+ _tmp15_ = state;
#line 500 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp20_, "broken", (GCallback) _multiple_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self, 0);
+ g_signal_connect_object (_tmp15_, "broken", (GCallback) _multiple_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self, 0);
#line 502 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = self->priv->map;
+ _tmp16_ = self->priv->map;
#line 502 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = photo;
+ _tmp17_ = photo;
#line 502 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = state;
+ _tmp18_ = state;
#line 502 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp22_, _tmp23_);
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp17_, _tmp18_);
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (state);
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (photo);
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 5983 "Commands.c"
+#line 6580 "Commands.c"
}
#line 497 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_list);
-#line 5987 "Commands.c"
+#line 6584 "Commands.c"
}
#line 493 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 5991 "Commands.c"
+#line 6588 "Commands.c"
}
-static void multiple_photo_transformation_command_real_undo_on_source (MultipleDataSourceCommand* base, DataSource* source) {
+static void
+multiple_photo_transformation_command_real_undo_on_source (MultipleDataSourceCommand* base,
+ DataSource* source)
+{
MultiplePhotoTransformationCommand * self;
Photo* photo = NULL;
- DataSource* _tmp0_;
- Photo* _tmp1_;
+ Photo* _tmp0_;
PhotoTransformationState* state = NULL;
- GeeHashMap* _tmp2_;
- gpointer _tmp3_;
+ GeeHashMap* _tmp1_;
+ gpointer _tmp2_;
#line 511 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommand);
#line 511 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 512 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
+ _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo));
#line 512 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo));
-#line 512 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp1_;
+ photo = _tmp0_;
#line 514 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->map;
+ _tmp1_ = self->priv->map;
#line 514 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
+ _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
#line 514 "/home/jens/Source/shotwell/src/Commands.vala"
- state = (PhotoTransformationState*) _tmp3_;
+ state = (PhotoTransformationState*) _tmp2_;
#line 515 "/home/jens/Source/shotwell/src/Commands.vala"
_vala_assert (state != NULL, "state != null");
#line 517 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -6023,11 +6620,13 @@ static void multiple_photo_transformation_command_real_undo_on_source (MultipleD
_g_object_unref0 (state);
#line 511 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (photo);
-#line 6027 "Commands.c"
+#line 6624 "Commands.c"
}
-static void multiple_photo_transformation_command_on_state_broken (MultiplePhotoTransformationCommand* self) {
+static void
+multiple_photo_transformation_command_on_state_broken (MultiplePhotoTransformationCommand* self)
+{
CommandManager* _tmp0_;
CommandManager* _tmp1_;
#line 520 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -6040,11 +6639,13 @@ static void multiple_photo_transformation_command_on_state_broken (MultiplePhoto
command_manager_reset (_tmp1_);
#line 521 "/home/jens/Source/shotwell/src/Commands.vala"
_command_manager_unref0 (_tmp1_);
-#line 6044 "Commands.c"
+#line 6643 "Commands.c"
}
-static void multiple_photo_transformation_command_class_init (MultiplePhotoTransformationCommandClass * klass) {
+static void
+multiple_photo_transformation_command_class_init (MultiplePhotoTransformationCommandClass * klass)
+{
#line 489 "/home/jens/Source/shotwell/src/Commands.vala"
multiple_photo_transformation_command_parent_class = g_type_class_peek_parent (klass);
#line 489 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -6053,11 +6654,13 @@ static void multiple_photo_transformation_command_class_init (MultiplePhotoTrans
((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) multiple_photo_transformation_command_real_undo_on_source;
#line 489 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = multiple_photo_transformation_command_finalize;
-#line 6057 "Commands.c"
+#line 6658 "Commands.c"
}
-static void multiple_photo_transformation_command_instance_init (MultiplePhotoTransformationCommand * self) {
+static void
+multiple_photo_transformation_command_instance_init (MultiplePhotoTransformationCommand * self)
+{
GeeHashMap* _tmp0_;
#line 489 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE (self);
@@ -6065,15 +6668,17 @@ static void multiple_photo_transformation_command_instance_init (MultiplePhotoTr
_tmp0_ = gee_hash_map_new (TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_PHOTO_TRANSFORMATION_STATE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 490 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->map = _tmp0_;
-#line 6069 "Commands.c"
+#line 6672 "Commands.c"
}
-static void multiple_photo_transformation_command_finalize (GObject * obj) {
+static void
+multiple_photo_transformation_command_finalize (GObject * obj)
+{
MultiplePhotoTransformationCommand * self;
#line 489 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommand);
-#line 6077 "Commands.c"
+#line 6682 "Commands.c"
{
GeeIterator* _state_it = NULL;
GeeHashMap* _tmp0_;
@@ -6100,53 +6705,52 @@ static void multiple_photo_transformation_command_finalize (GObject * obj) {
_state_it = _tmp5_;
#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 6104 "Commands.c"
+#line 6709 "Commands.c"
GeeIterator* _tmp6_;
- gboolean _tmp7_;
PhotoTransformationState* state = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
- PhotoTransformationState* _tmp10_;
- guint _tmp11_;
+ GeeIterator* _tmp7_;
+ gpointer _tmp8_;
+ PhotoTransformationState* _tmp9_;
+ guint _tmp10_;
#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp6_ = _state_it;
#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_iterator_next (_tmp6_);
-#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp7_) {
+ if (!gee_iterator_next (_tmp6_)) {
#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 6120 "Commands.c"
+#line 6722 "Commands.c"
}
#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _state_it;
+ _tmp7_ = _state_it;
#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
+ _tmp8_ = gee_iterator_get (_tmp7_);
#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
- state = (PhotoTransformationState*) _tmp9_;
+ state = (PhotoTransformationState*) _tmp8_;
#line 508 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = state;
+ _tmp9_ = state;
#line 508 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_PHOTO_TRANSFORMATION_STATE, &_tmp11_, NULL, FALSE);
+ g_signal_parse_name ("broken", TYPE_PHOTO_TRANSFORMATION_STATE, &_tmp10_, NULL, FALSE);
#line 508 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp10_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _multiple_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self);
+ g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _multiple_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self);
#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (state);
-#line 6136 "Commands.c"
+#line 6738 "Commands.c"
}
#line 507 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_state_it);
-#line 6140 "Commands.c"
+#line 6742 "Commands.c"
}
#line 490 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->map);
#line 489 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (multiple_photo_transformation_command_parent_class)->finalize (obj);
-#line 6146 "Commands.c"
+#line 6748 "Commands.c"
}
-GType multiple_photo_transformation_command_get_type (void) {
+GType
+multiple_photo_transformation_command_get_type (void)
+{
static volatile gsize multiple_photo_transformation_command_type_id__volatile = 0;
if (g_once_init_enter (&multiple_photo_transformation_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (MultiplePhotoTransformationCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) multiple_photo_transformation_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MultiplePhotoTransformationCommand), 0, (GInstanceInitFunc) multiple_photo_transformation_command_instance_init, NULL };
@@ -6158,12 +6762,14 @@ GType multiple_photo_transformation_command_get_type (void) {
}
-RotateSingleCommand* rotate_single_command_construct (GType object_type, Photo* photo, Rotation rotation, const gchar* name, const gchar* explanation) {
+RotateSingleCommand*
+rotate_single_command_construct (GType object_type,
+ Photo* photo,
+ Rotation rotation,
+ const gchar* name,
+ const gchar* explanation)
+{
RotateSingleCommand * self = NULL;
- Photo* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- Rotation _tmp3_;
#line 528 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_PHOTO (photo), NULL);
#line 528 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -6171,31 +6777,30 @@ RotateSingleCommand* rotate_single_command_construct (GType object_type, Photo*
#line 528 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (explanation != NULL, NULL);
#line 529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = photo;
-#line 529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = name;
-#line 529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = explanation;
-#line 529 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (RotateSingleCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_SOURCE, DataSource), _tmp1_, _tmp2_);
-#line 531 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = rotation;
+ self = (RotateSingleCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), name, explanation);
#line 531 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->rotation = _tmp3_;
+ self->priv->rotation = rotation;
#line 528 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 6188 "Commands.c"
+#line 6786 "Commands.c"
}
-RotateSingleCommand* rotate_single_command_new (Photo* photo, Rotation rotation, const gchar* name, const gchar* explanation) {
+RotateSingleCommand*
+rotate_single_command_new (Photo* photo,
+ Rotation rotation,
+ const gchar* name,
+ const gchar* explanation)
+{
#line 528 "/home/jens/Source/shotwell/src/Commands.vala"
return rotate_single_command_construct (TYPE_ROTATE_SINGLE_COMMAND, photo, rotation, name, explanation);
-#line 6195 "Commands.c"
+#line 6798 "Commands.c"
}
-static void rotate_single_command_real_execute (Command* base) {
+static void
+rotate_single_command_real_execute (Command* base)
+{
RotateSingleCommand * self;
DataSource* _tmp0_;
Rotation _tmp1_;
@@ -6207,15 +6812,16 @@ static void rotate_single_command_real_execute (Command* base) {
_tmp1_ = self->priv->rotation;
#line 535 "/home/jens/Source/shotwell/src/Commands.vala"
photo_rotate (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), _tmp1_);
-#line 6211 "Commands.c"
+#line 6816 "Commands.c"
}
-static void rotate_single_command_real_undo (Command* base) {
+static void
+rotate_single_command_real_undo (Command* base)
+{
RotateSingleCommand * self;
DataSource* _tmp0_;
Rotation _tmp1_;
- Rotation _tmp2_;
#line 538 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommand);
#line 539 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -6223,14 +6829,14 @@ static void rotate_single_command_real_undo (Command* base) {
#line 539 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp1_ = self->priv->rotation;
#line 539 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = rotation_opposite (_tmp1_);
-#line 539 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_rotate (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), _tmp2_);
-#line 6230 "Commands.c"
+ photo_rotate (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), rotation_opposite (_tmp1_));
+#line 6834 "Commands.c"
}
-static void rotate_single_command_class_init (RotateSingleCommandClass * klass) {
+static void
+rotate_single_command_class_init (RotateSingleCommandClass * klass)
+{
#line 525 "/home/jens/Source/shotwell/src/Commands.vala"
rotate_single_command_parent_class = g_type_class_peek_parent (klass);
#line 525 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -6241,28 +6847,34 @@ static void rotate_single_command_class_init (RotateSingleCommandClass * klass)
((CommandClass *) klass)->undo = (void (*) (Command *)) rotate_single_command_real_undo;
#line 525 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = rotate_single_command_finalize;
-#line 6245 "Commands.c"
+#line 6851 "Commands.c"
}
-static void rotate_single_command_instance_init (RotateSingleCommand * self) {
+static void
+rotate_single_command_instance_init (RotateSingleCommand * self)
+{
#line 525 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = ROTATE_SINGLE_COMMAND_GET_PRIVATE (self);
-#line 6252 "Commands.c"
+#line 6860 "Commands.c"
}
-static void rotate_single_command_finalize (GObject * obj) {
+static void
+rotate_single_command_finalize (GObject * obj)
+{
RotateSingleCommand * self;
#line 525 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommand);
#line 525 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (rotate_single_command_parent_class)->finalize (obj);
-#line 6262 "Commands.c"
+#line 6872 "Commands.c"
}
-GType rotate_single_command_get_type (void) {
+GType
+rotate_single_command_get_type (void)
+{
static volatile gsize rotate_single_command_type_id__volatile = 0;
if (g_once_init_enter (&rotate_single_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (RotateSingleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rotate_single_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RotateSingleCommand), 0, (GInstanceInitFunc) rotate_single_command_instance_init, NULL };
@@ -6274,14 +6886,16 @@ GType rotate_single_command_get_type (void) {
}
-RotateMultipleCommand* rotate_multiple_command_construct (GType object_type, GeeIterable* iter, Rotation rotation, const gchar* name, const gchar* explanation, const gchar* progress_text, const gchar* undo_progress_text) {
+RotateMultipleCommand*
+rotate_multiple_command_construct (GType object_type,
+ GeeIterable* iter,
+ Rotation rotation,
+ const gchar* name,
+ const gchar* explanation,
+ const gchar* progress_text,
+ const gchar* undo_progress_text)
+{
RotateMultipleCommand * self = NULL;
- GeeIterable* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- const gchar* _tmp4_;
- Rotation _tmp5_;
#line 546 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
#line 546 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -6293,74 +6907,68 @@ RotateMultipleCommand* rotate_multiple_command_construct (GType object_type, Gee
#line 546 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (undo_progress_text != NULL, NULL);
#line 548 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = iter;
-#line 548 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = progress_text;
-#line 548 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = undo_progress_text;
-#line 548 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = name;
-#line 548 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = explanation;
-#line 548 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (RotateMultipleCommand*) multiple_data_source_command_construct (object_type, _tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp4_);
-#line 550 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = rotation;
+ self = (RotateMultipleCommand*) multiple_data_source_command_construct (object_type, iter, progress_text, undo_progress_text, name, explanation);
#line 550 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->rotation = _tmp5_;
+ self->priv->rotation = rotation;
#line 546 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 6314 "Commands.c"
+#line 6916 "Commands.c"
}
-RotateMultipleCommand* rotate_multiple_command_new (GeeIterable* iter, Rotation rotation, const gchar* name, const gchar* explanation, const gchar* progress_text, const gchar* undo_progress_text) {
+RotateMultipleCommand*
+rotate_multiple_command_new (GeeIterable* iter,
+ Rotation rotation,
+ const gchar* name,
+ const gchar* explanation,
+ const gchar* progress_text,
+ const gchar* undo_progress_text)
+{
#line 546 "/home/jens/Source/shotwell/src/Commands.vala"
return rotate_multiple_command_construct (TYPE_ROTATE_MULTIPLE_COMMAND, iter, rotation, name, explanation, progress_text, undo_progress_text);
-#line 6321 "Commands.c"
+#line 6930 "Commands.c"
}
-static void rotate_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source) {
+static void
+rotate_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source)
+{
RotateMultipleCommand * self;
- DataSource* _tmp0_;
- Rotation _tmp1_;
+ Rotation _tmp0_;
#line 553 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommand);
#line 553 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 554 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
+ _tmp0_ = self->priv->rotation;
#line 554 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->rotation;
-#line 554 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_rotate (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), _tmp1_);
-#line 6339 "Commands.c"
+ photo_rotate (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo), _tmp0_);
+#line 6948 "Commands.c"
}
-static void rotate_multiple_command_real_undo_on_source (MultipleDataSourceCommand* base, DataSource* source) {
+static void
+rotate_multiple_command_real_undo_on_source (MultipleDataSourceCommand* base,
+ DataSource* source)
+{
RotateMultipleCommand * self;
- DataSource* _tmp0_;
- Rotation _tmp1_;
- Rotation _tmp2_;
+ Rotation _tmp0_;
#line 557 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommand);
#line 557 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 558 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 558 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->rotation;
-#line 558 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = rotation_opposite (_tmp1_);
+ _tmp0_ = self->priv->rotation;
#line 558 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_rotate (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), _tmp2_);
-#line 6360 "Commands.c"
+ photo_rotate (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo), rotation_opposite (_tmp0_));
+#line 6966 "Commands.c"
}
-static void rotate_multiple_command_class_init (RotateMultipleCommandClass * klass) {
+static void
+rotate_multiple_command_class_init (RotateMultipleCommandClass * klass)
+{
#line 543 "/home/jens/Source/shotwell/src/Commands.vala"
rotate_multiple_command_parent_class = g_type_class_peek_parent (klass);
#line 543 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -6371,28 +6979,34 @@ static void rotate_multiple_command_class_init (RotateMultipleCommandClass * kla
((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) rotate_multiple_command_real_undo_on_source;
#line 543 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = rotate_multiple_command_finalize;
-#line 6375 "Commands.c"
+#line 6983 "Commands.c"
}
-static void rotate_multiple_command_instance_init (RotateMultipleCommand * self) {
+static void
+rotate_multiple_command_instance_init (RotateMultipleCommand * self)
+{
#line 543 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = ROTATE_MULTIPLE_COMMAND_GET_PRIVATE (self);
-#line 6382 "Commands.c"
+#line 6992 "Commands.c"
}
-static void rotate_multiple_command_finalize (GObject * obj) {
+static void
+rotate_multiple_command_finalize (GObject * obj)
+{
RotateMultipleCommand * self;
#line 543 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommand);
#line 543 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (rotate_multiple_command_parent_class)->finalize (obj);
-#line 6392 "Commands.c"
+#line 7004 "Commands.c"
}
-GType rotate_multiple_command_get_type (void) {
+GType
+rotate_multiple_command_get_type (void)
+{
static volatile gsize rotate_multiple_command_type_id__volatile = 0;
if (g_once_init_enter (&rotate_multiple_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (RotateMultipleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rotate_multiple_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RotateMultipleCommand), 0, (GInstanceInitFunc) rotate_multiple_command_instance_init, NULL };
@@ -6404,15 +7018,16 @@ GType rotate_multiple_command_get_type (void) {
}
-EditTitleCommand* edit_title_command_construct (GType object_type, MediaSource* source, const gchar* new_title) {
+EditTitleCommand*
+edit_title_command_construct (GType object_type,
+ MediaSource* source,
+ const gchar* new_title)
+{
EditTitleCommand * self = NULL;
gchar* title = NULL;
gchar* _tmp0_;
- MediaSource* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- MediaSource* _tmp4_;
- gchar* _tmp5_;
+ gchar* _tmp1_;
+ gchar* _tmp2_;
#line 566 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL);
#line 566 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -6422,41 +7037,40 @@ EditTitleCommand* edit_title_command_construct (GType object_type, MediaSource*
#line 567 "/home/jens/Source/shotwell/src/Commands.vala"
title = _tmp0_;
#line 569 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = source;
-#line 569 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (EditTitleCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_SOURCE, DataSource), title, "");
+ self = (EditTitleCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource), title, "");
#line 571 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = new_title;
-#line 571 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = g_strdup (_tmp2_);
+ _tmp1_ = g_strdup (new_title);
#line 571 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->new_title);
#line 571 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_title = _tmp3_;
-#line 572 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = source;
+ self->priv->new_title = _tmp1_;
#line 572 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = media_source_get_title (_tmp4_);
+ _tmp2_ = media_source_get_title (source);
#line 572 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->old_title);
#line 572 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_title = _tmp5_;
+ self->priv->old_title = _tmp2_;
#line 566 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (title);
#line 566 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 6449 "Commands.c"
+#line 7058 "Commands.c"
}
-EditTitleCommand* edit_title_command_new (MediaSource* source, const gchar* new_title) {
+EditTitleCommand*
+edit_title_command_new (MediaSource* source,
+ const gchar* new_title)
+{
#line 566 "/home/jens/Source/shotwell/src/Commands.vala"
return edit_title_command_construct (TYPE_EDIT_TITLE_COMMAND, source, new_title);
-#line 6456 "Commands.c"
+#line 7068 "Commands.c"
}
-static void edit_title_command_real_execute (Command* base) {
+static void
+edit_title_command_real_execute (Command* base)
+{
EditTitleCommand * self;
DataSource* _tmp0_;
const gchar* _tmp1_;
@@ -6468,11 +7082,13 @@ static void edit_title_command_real_execute (Command* base) {
_tmp1_ = self->priv->new_title;
#line 576 "/home/jens/Source/shotwell/src/Commands.vala"
media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_);
-#line 6472 "Commands.c"
+#line 7086 "Commands.c"
}
-static void edit_title_command_real_undo (Command* base) {
+static void
+edit_title_command_real_undo (Command* base)
+{
EditTitleCommand * self;
DataSource* _tmp0_;
const gchar* _tmp1_;
@@ -6484,11 +7100,13 @@ static void edit_title_command_real_undo (Command* base) {
_tmp1_ = self->priv->old_title;
#line 580 "/home/jens/Source/shotwell/src/Commands.vala"
media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_);
-#line 6488 "Commands.c"
+#line 7104 "Commands.c"
}
-static void edit_title_command_class_init (EditTitleCommandClass * klass) {
+static void
+edit_title_command_class_init (EditTitleCommandClass * klass)
+{
#line 562 "/home/jens/Source/shotwell/src/Commands.vala"
edit_title_command_parent_class = g_type_class_peek_parent (klass);
#line 562 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -6499,18 +7117,22 @@ static void edit_title_command_class_init (EditTitleCommandClass * klass) {
((CommandClass *) klass)->undo = (void (*) (Command *)) edit_title_command_real_undo;
#line 562 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = edit_title_command_finalize;
-#line 6503 "Commands.c"
+#line 7121 "Commands.c"
}
-static void edit_title_command_instance_init (EditTitleCommand * self) {
+static void
+edit_title_command_instance_init (EditTitleCommand * self)
+{
#line 562 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = EDIT_TITLE_COMMAND_GET_PRIVATE (self);
-#line 6510 "Commands.c"
+#line 7130 "Commands.c"
}
-static void edit_title_command_finalize (GObject * obj) {
+static void
+edit_title_command_finalize (GObject * obj)
+{
EditTitleCommand * self;
#line 562 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDIT_TITLE_COMMAND, EditTitleCommand);
@@ -6520,11 +7142,13 @@ static void edit_title_command_finalize (GObject * obj) {
_g_free0 (self->priv->old_title);
#line 562 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (edit_title_command_parent_class)->finalize (obj);
-#line 6524 "Commands.c"
+#line 7146 "Commands.c"
}
-GType edit_title_command_get_type (void) {
+GType
+edit_title_command_get_type (void)
+{
static volatile gsize edit_title_command_type_id__volatile = 0;
if (g_once_init_enter (&edit_title_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (EditTitleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_title_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditTitleCommand), 0, (GInstanceInitFunc) edit_title_command_instance_init, NULL };
@@ -6536,51 +7160,51 @@ GType edit_title_command_get_type (void) {
}
-EditCommentCommand* edit_comment_command_construct (GType object_type, MediaSource* source, const gchar* new_comment) {
+EditCommentCommand*
+edit_comment_command_construct (GType object_type,
+ MediaSource* source,
+ const gchar* new_comment)
+{
EditCommentCommand * self = NULL;
- MediaSource* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- MediaSource* _tmp3_;
- gchar* _tmp4_;
+ gchar* _tmp0_;
+ gchar* _tmp1_;
#line 588 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL);
#line 588 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (new_comment != NULL, NULL);
#line 589 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 589 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (EditCommentCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_SOURCE, DataSource), RESOURCES_EDIT_COMMENT_LABEL, "");
-#line 591 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = new_comment;
+ self = (EditCommentCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource), RESOURCES_EDIT_COMMENT_LABEL, "");
#line 591 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = g_strdup (_tmp1_);
+ _tmp0_ = g_strdup (new_comment);
#line 591 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->new_comment);
#line 591 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_comment = _tmp2_;
+ self->priv->new_comment = _tmp0_;
#line 592 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = source;
-#line 592 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = media_source_get_comment (_tmp3_);
+ _tmp1_ = media_source_get_comment (source);
#line 592 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->old_comment);
#line 592 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_comment = _tmp4_;
+ self->priv->old_comment = _tmp1_;
#line 588 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 6573 "Commands.c"
+#line 7192 "Commands.c"
}
-EditCommentCommand* edit_comment_command_new (MediaSource* source, const gchar* new_comment) {
+EditCommentCommand*
+edit_comment_command_new (MediaSource* source,
+ const gchar* new_comment)
+{
#line 588 "/home/jens/Source/shotwell/src/Commands.vala"
return edit_comment_command_construct (TYPE_EDIT_COMMENT_COMMAND, source, new_comment);
-#line 6580 "Commands.c"
+#line 7202 "Commands.c"
}
-static void edit_comment_command_real_execute (Command* base) {
+static void
+edit_comment_command_real_execute (Command* base)
+{
EditCommentCommand * self;
DataSource* _tmp0_;
const gchar* _tmp1_;
@@ -6592,11 +7216,13 @@ static void edit_comment_command_real_execute (Command* base) {
_tmp1_ = self->priv->new_comment;
#line 596 "/home/jens/Source/shotwell/src/Commands.vala"
media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_);
-#line 6596 "Commands.c"
+#line 7220 "Commands.c"
}
-static void edit_comment_command_real_undo (Command* base) {
+static void
+edit_comment_command_real_undo (Command* base)
+{
EditCommentCommand * self;
DataSource* _tmp0_;
const gchar* _tmp1_;
@@ -6608,11 +7234,13 @@ static void edit_comment_command_real_undo (Command* base) {
_tmp1_ = self->priv->old_comment;
#line 600 "/home/jens/Source/shotwell/src/Commands.vala"
media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_);
-#line 6612 "Commands.c"
+#line 7238 "Commands.c"
}
-static void edit_comment_command_class_init (EditCommentCommandClass * klass) {
+static void
+edit_comment_command_class_init (EditCommentCommandClass * klass)
+{
#line 584 "/home/jens/Source/shotwell/src/Commands.vala"
edit_comment_command_parent_class = g_type_class_peek_parent (klass);
#line 584 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -6623,18 +7251,22 @@ static void edit_comment_command_class_init (EditCommentCommandClass * klass) {
((CommandClass *) klass)->undo = (void (*) (Command *)) edit_comment_command_real_undo;
#line 584 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = edit_comment_command_finalize;
-#line 6627 "Commands.c"
+#line 7255 "Commands.c"
}
-static void edit_comment_command_instance_init (EditCommentCommand * self) {
+static void
+edit_comment_command_instance_init (EditCommentCommand * self)
+{
#line 584 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = EDIT_COMMENT_COMMAND_GET_PRIVATE (self);
-#line 6634 "Commands.c"
+#line 7264 "Commands.c"
}
-static void edit_comment_command_finalize (GObject * obj) {
+static void
+edit_comment_command_finalize (GObject * obj)
+{
EditCommentCommand * self;
#line 584 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDIT_COMMENT_COMMAND, EditCommentCommand);
@@ -6644,11 +7276,13 @@ static void edit_comment_command_finalize (GObject * obj) {
_g_free0 (self->priv->old_comment);
#line 584 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (edit_comment_command_parent_class)->finalize (obj);
-#line 6648 "Commands.c"
+#line 7280 "Commands.c"
}
-GType edit_comment_command_get_type (void) {
+GType
+edit_comment_command_get_type (void)
+{
static volatile gsize edit_comment_command_type_id__volatile = 0;
if (g_once_init_enter (&edit_comment_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (EditCommentCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_comment_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditCommentCommand), 0, (GInstanceInitFunc) edit_comment_command_instance_init, NULL };
@@ -6660,14 +7294,16 @@ GType edit_comment_command_get_type (void) {
}
-EditMultipleTitlesCommand* edit_multiple_titles_command_construct (GType object_type, GeeCollection* media_sources, const gchar* new_title) {
+EditMultipleTitlesCommand*
+edit_multiple_titles_command_construct (GType object_type,
+ GeeCollection* media_sources,
+ const gchar* new_title)
+{
EditMultipleTitlesCommand * self = NULL;
gchar* title = NULL;
gchar* _tmp0_;
- GeeCollection* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
+ const gchar* _tmp1_;
+ gchar* _tmp2_;
#line 608 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_COLLECTION (media_sources), NULL);
#line 608 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -6677,228 +7313,217 @@ EditMultipleTitlesCommand* edit_multiple_titles_command_construct (GType object_
#line 609 "/home/jens/Source/shotwell/src/Commands.vala"
title = _tmp0_;
#line 611 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = media_sources;
-#line 611 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = title;
+ _tmp1_ = title;
#line 611 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (EditMultipleTitlesCommand*) multiple_data_source_at_once_command_construct (object_type, _tmp1_, _tmp2_, "");
+ self = (EditMultipleTitlesCommand*) multiple_data_source_at_once_command_construct (object_type, media_sources, _tmp1_, "");
#line 613 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = new_title;
-#line 613 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = g_strdup (_tmp3_);
+ _tmp2_ = g_strdup (new_title);
#line 613 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->new_title);
#line 613 "/home/jens/Source/shotwell/src/Commands.vala"
- self->new_title = _tmp4_;
-#line 6694 "Commands.c"
+ self->new_title = _tmp2_;
+#line 7326 "Commands.c"
{
GeeIterator* _media_it = NULL;
- GeeCollection* _tmp5_;
- GeeIterator* _tmp6_;
-#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = media_sources;
+ GeeIterator* _tmp3_;
#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_ITERABLE, GeeIterable));
#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- _media_it = _tmp6_;
+ _media_it = _tmp3_;
#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 6707 "Commands.c"
- GeeIterator* _tmp7_;
- gboolean _tmp8_;
+#line 7336 "Commands.c"
+ GeeIterator* _tmp4_;
MediaSource* media = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
- GeeHashMap* _tmp11_;
- MediaSource* _tmp12_;
- MediaSource* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
-#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _media_it;
+ GeeIterator* _tmp5_;
+ gpointer _tmp6_;
+ GeeHashMap* _tmp7_;
+ MediaSource* _tmp8_;
+ MediaSource* _tmp9_;
+ gchar* _tmp10_;
+ gchar* _tmp11_;
#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_iterator_next (_tmp7_);
+ _tmp4_ = _media_it;
#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp8_) {
+ if (!gee_iterator_next (_tmp4_)) {
#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 6726 "Commands.c"
+#line 7352 "Commands.c"
}
#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _media_it;
+ _tmp5_ = _media_it;
#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
+ _tmp6_ = gee_iterator_get (_tmp5_);
#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
- media = (MediaSource*) _tmp10_;
+ media = (MediaSource*) _tmp6_;
#line 615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = self->old_titles;
+ _tmp7_ = self->old_titles;
#line 615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = media;
+ _tmp8_ = media;
#line 615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = media;
+ _tmp9_ = media;
#line 615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = media_source_get_title (_tmp13_);
+ _tmp10_ = media_source_get_title (_tmp9_);
#line 615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _tmp14_;
+ _tmp11_ = _tmp10_;
#line 615 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp12_, _tmp15_);
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_, _tmp11_);
#line 615 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp15_);
+ _g_free0 (_tmp11_);
#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (media);
-#line 6750 "Commands.c"
+#line 7376 "Commands.c"
}
#line 614 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_media_it);
-#line 6754 "Commands.c"
+#line 7380 "Commands.c"
}
#line 608 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (title);
#line 608 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 6760 "Commands.c"
+#line 7386 "Commands.c"
}
-EditMultipleTitlesCommand* edit_multiple_titles_command_new (GeeCollection* media_sources, const gchar* new_title) {
+EditMultipleTitlesCommand*
+edit_multiple_titles_command_new (GeeCollection* media_sources,
+ const gchar* new_title)
+{
#line 608 "/home/jens/Source/shotwell/src/Commands.vala"
return edit_multiple_titles_command_construct (TYPE_EDIT_MULTIPLE_TITLES_COMMAND, media_sources, new_title);
-#line 6767 "Commands.c"
+#line 7396 "Commands.c"
}
-static void edit_multiple_titles_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base, GeeCollection* sources) {
+static void
+edit_multiple_titles_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base,
+ GeeCollection* sources)
+{
EditMultipleTitlesCommand * self;
#line 618 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommand);
#line 618 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 6777 "Commands.c"
+#line 7409 "Commands.c"
{
GeeIterator* _source_it = NULL;
- GeeCollection* _tmp0_;
- GeeIterator* _tmp1_;
-#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = sources;
+ GeeIterator* _tmp0_;
#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp1_;
+ _source_it = _tmp0_;
#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 6790 "Commands.c"
- GeeIterator* _tmp2_;
- gboolean _tmp3_;
+#line 7419 "Commands.c"
+ GeeIterator* _tmp1_;
DataSource* source = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- DataSource* _tmp6_;
- const gchar* _tmp7_;
-#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_it;
+ GeeIterator* _tmp2_;
+ gpointer _tmp3_;
+ DataSource* _tmp4_;
+ const gchar* _tmp5_;
#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
+ _tmp1_ = _source_it;
#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp1_)) {
#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 6806 "Commands.c"
+#line 7432 "Commands.c"
}
#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _source_it;
+ _tmp2_ = _source_it;
#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp3_ = gee_iterator_get (_tmp2_);
#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp5_;
+ source = (DataSource*) _tmp3_;
#line 620 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = source;
+ _tmp4_ = source;
#line 620 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->new_title;
+ _tmp5_ = self->new_title;
#line 620 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource), _tmp7_);
+ media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource), _tmp5_);
#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 6822 "Commands.c"
+#line 7448 "Commands.c"
}
#line 619 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 6826 "Commands.c"
+#line 7452 "Commands.c"
}
}
-static void edit_multiple_titles_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base, GeeCollection* sources) {
+static void
+edit_multiple_titles_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base,
+ GeeCollection* sources)
+{
EditMultipleTitlesCommand * self;
#line 623 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommand);
#line 623 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 6837 "Commands.c"
+#line 7466 "Commands.c"
{
GeeIterator* _source_it = NULL;
- GeeCollection* _tmp0_;
- GeeIterator* _tmp1_;
-#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = sources;
+ GeeIterator* _tmp0_;
#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp1_;
+ _source_it = _tmp0_;
#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 6850 "Commands.c"
- GeeIterator* _tmp2_;
- gboolean _tmp3_;
+#line 7476 "Commands.c"
+ GeeIterator* _tmp1_;
DataSource* source = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
+ GeeIterator* _tmp2_;
+ gpointer _tmp3_;
+ DataSource* _tmp4_;
+ GeeHashMap* _tmp5_;
DataSource* _tmp6_;
- GeeHashMap* _tmp7_;
- DataSource* _tmp8_;
- gpointer _tmp9_;
- gchar* _tmp10_;
-#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_it;
+ gpointer _tmp7_;
+ gchar* _tmp8_;
#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
+ _tmp1_ = _source_it;
#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp1_)) {
#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 6869 "Commands.c"
+#line 7492 "Commands.c"
}
#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _source_it;
+ _tmp2_ = _source_it;
#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp3_ = gee_iterator_get (_tmp2_);
#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp5_;
+ source = (DataSource*) _tmp3_;
#line 625 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = source;
+ _tmp4_ = source;
#line 625 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->old_titles;
+ _tmp5_ = self->old_titles;
#line 625 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = source;
+ _tmp6_ = source;
#line 625 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource));
+ _tmp7_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource));
#line 625 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = (gchar*) _tmp9_;
+ _tmp8_ = (gchar*) _tmp7_;
#line 625 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource), _tmp10_);
+ media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource), _tmp8_);
#line 625 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp10_);
+ _g_free0 (_tmp8_);
#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 6893 "Commands.c"
+#line 7516 "Commands.c"
}
#line 624 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 6897 "Commands.c"
+#line 7520 "Commands.c"
}
}
-static void edit_multiple_titles_command_class_init (EditMultipleTitlesCommandClass * klass) {
+static void
+edit_multiple_titles_command_class_init (EditMultipleTitlesCommandClass * klass)
+{
#line 604 "/home/jens/Source/shotwell/src/Commands.vala"
edit_multiple_titles_command_parent_class = g_type_class_peek_parent (klass);
#line 604 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -6907,21 +7532,25 @@ static void edit_multiple_titles_command_class_init (EditMultipleTitlesCommandCl
((MultipleDataSourceAtOnceCommandClass *) klass)->undo_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) edit_multiple_titles_command_real_undo_on_all;
#line 604 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = edit_multiple_titles_command_finalize;
-#line 6911 "Commands.c"
+#line 7536 "Commands.c"
}
-static void edit_multiple_titles_command_instance_init (EditMultipleTitlesCommand * self) {
+static void
+edit_multiple_titles_command_instance_init (EditMultipleTitlesCommand * self)
+{
GeeHashMap* _tmp0_;
#line 606 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp0_ = gee_hash_map_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 606 "/home/jens/Source/shotwell/src/Commands.vala"
self->old_titles = _tmp0_;
-#line 6921 "Commands.c"
+#line 7548 "Commands.c"
}
-static void edit_multiple_titles_command_finalize (GObject * obj) {
+static void
+edit_multiple_titles_command_finalize (GObject * obj)
+{
EditMultipleTitlesCommand * self;
#line 604 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommand);
@@ -6931,11 +7560,13 @@ static void edit_multiple_titles_command_finalize (GObject * obj) {
_g_object_unref0 (self->old_titles);
#line 604 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (edit_multiple_titles_command_parent_class)->finalize (obj);
-#line 6935 "Commands.c"
+#line 7564 "Commands.c"
}
-GType edit_multiple_titles_command_get_type (void) {
+GType
+edit_multiple_titles_command_get_type (void)
+{
static volatile gsize edit_multiple_titles_command_type_id__volatile = 0;
if (g_once_init_enter (&edit_multiple_titles_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (EditMultipleTitlesCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_multiple_titles_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditMultipleTitlesCommand), 0, (GInstanceInitFunc) edit_multiple_titles_command_instance_init, NULL };
@@ -6947,234 +7578,225 @@ GType edit_multiple_titles_command_get_type (void) {
}
-EditMultipleCommentsCommand* edit_multiple_comments_command_construct (GType object_type, GeeCollection* media_sources, const gchar* new_comment) {
+EditMultipleCommentsCommand*
+edit_multiple_comments_command_construct (GType object_type,
+ GeeCollection* media_sources,
+ const gchar* new_comment)
+{
EditMultipleCommentsCommand * self = NULL;
- GeeCollection* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
+ gchar* _tmp0_;
#line 633 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_COLLECTION (media_sources), NULL);
#line 633 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (new_comment != NULL, NULL);
#line 634 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = media_sources;
-#line 634 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (EditMultipleCommentsCommand*) multiple_data_source_at_once_command_construct (object_type, _tmp0_, RESOURCES_EDIT_COMMENT_LABEL, "");
-#line 636 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = new_comment;
+ self = (EditMultipleCommentsCommand*) multiple_data_source_at_once_command_construct (object_type, media_sources, RESOURCES_EDIT_COMMENT_LABEL, "");
#line 636 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = g_strdup (_tmp1_);
+ _tmp0_ = g_strdup (new_comment);
#line 636 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->new_comment);
#line 636 "/home/jens/Source/shotwell/src/Commands.vala"
- self->new_comment = _tmp2_;
-#line 6972 "Commands.c"
+ self->new_comment = _tmp0_;
+#line 7601 "Commands.c"
{
GeeIterator* _media_it = NULL;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
+ GeeIterator* _tmp1_;
#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = media_sources;
+ _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_ITERABLE, GeeIterable));
#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- _media_it = _tmp4_;
+ _media_it = _tmp1_;
#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 6985 "Commands.c"
- GeeIterator* _tmp5_;
- gboolean _tmp6_;
+#line 7611 "Commands.c"
+ GeeIterator* _tmp2_;
MediaSource* media = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- GeeHashMap* _tmp9_;
- MediaSource* _tmp10_;
- MediaSource* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
-#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _media_it;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
+ GeeHashMap* _tmp5_;
+ MediaSource* _tmp6_;
+ MediaSource* _tmp7_;
+ gchar* _tmp8_;
+ gchar* _tmp9_;
#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = gee_iterator_next (_tmp5_);
+ _tmp2_ = _media_it;
#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp6_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 7004 "Commands.c"
+#line 7627 "Commands.c"
}
#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _media_it;
+ _tmp3_ = _media_it;
#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
- media = (MediaSource*) _tmp8_;
+ media = (MediaSource*) _tmp4_;
#line 638 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->old_comments;
+ _tmp5_ = self->old_comments;
#line 638 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = media;
+ _tmp6_ = media;
#line 638 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = media;
+ _tmp7_ = media;
#line 638 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = media_source_get_comment (_tmp11_);
+ _tmp8_ = media_source_get_comment (_tmp7_);
#line 638 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _tmp12_;
+ _tmp9_ = _tmp8_;
#line 638 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp10_, _tmp13_);
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp6_, _tmp9_);
#line 638 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp13_);
+ _g_free0 (_tmp9_);
#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (media);
-#line 7028 "Commands.c"
+#line 7651 "Commands.c"
}
#line 637 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_media_it);
-#line 7032 "Commands.c"
+#line 7655 "Commands.c"
}
#line 633 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 7036 "Commands.c"
+#line 7659 "Commands.c"
}
-EditMultipleCommentsCommand* edit_multiple_comments_command_new (GeeCollection* media_sources, const gchar* new_comment) {
+EditMultipleCommentsCommand*
+edit_multiple_comments_command_new (GeeCollection* media_sources,
+ const gchar* new_comment)
+{
#line 633 "/home/jens/Source/shotwell/src/Commands.vala"
return edit_multiple_comments_command_construct (TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, media_sources, new_comment);
-#line 7043 "Commands.c"
+#line 7669 "Commands.c"
}
-static void edit_multiple_comments_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base, GeeCollection* sources) {
+static void
+edit_multiple_comments_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base,
+ GeeCollection* sources)
+{
EditMultipleCommentsCommand * self;
#line 641 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommand);
#line 641 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 7053 "Commands.c"
+#line 7682 "Commands.c"
{
GeeIterator* _source_it = NULL;
- GeeCollection* _tmp0_;
- GeeIterator* _tmp1_;
+ GeeIterator* _tmp0_;
#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = sources;
+ _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp1_;
+ _source_it = _tmp0_;
#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 7066 "Commands.c"
- GeeIterator* _tmp2_;
- gboolean _tmp3_;
+#line 7692 "Commands.c"
+ GeeIterator* _tmp1_;
DataSource* source = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- DataSource* _tmp6_;
- const gchar* _tmp7_;
-#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_it;
+ GeeIterator* _tmp2_;
+ gpointer _tmp3_;
+ DataSource* _tmp4_;
+ const gchar* _tmp5_;
#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
+ _tmp1_ = _source_it;
#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp1_)) {
#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 7082 "Commands.c"
+#line 7705 "Commands.c"
}
#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _source_it;
+ _tmp2_ = _source_it;
#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp3_ = gee_iterator_get (_tmp2_);
#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp5_;
+ source = (DataSource*) _tmp3_;
#line 643 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = source;
+ _tmp4_ = source;
#line 643 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->new_comment;
+ _tmp5_ = self->new_comment;
#line 643 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource), _tmp7_);
+ media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource), _tmp5_);
#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 7098 "Commands.c"
+#line 7721 "Commands.c"
}
#line 642 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 7102 "Commands.c"
+#line 7725 "Commands.c"
}
}
-static void edit_multiple_comments_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base, GeeCollection* sources) {
+static void
+edit_multiple_comments_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base,
+ GeeCollection* sources)
+{
EditMultipleCommentsCommand * self;
#line 646 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommand);
#line 646 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 7113 "Commands.c"
+#line 7739 "Commands.c"
{
GeeIterator* _source_it = NULL;
- GeeCollection* _tmp0_;
- GeeIterator* _tmp1_;
+ GeeIterator* _tmp0_;
#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = sources;
+ _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp1_;
+ _source_it = _tmp0_;
#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 7126 "Commands.c"
- GeeIterator* _tmp2_;
- gboolean _tmp3_;
+#line 7749 "Commands.c"
+ GeeIterator* _tmp1_;
DataSource* source = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
+ GeeIterator* _tmp2_;
+ gpointer _tmp3_;
+ DataSource* _tmp4_;
+ GeeHashMap* _tmp5_;
DataSource* _tmp6_;
- GeeHashMap* _tmp7_;
- DataSource* _tmp8_;
- gpointer _tmp9_;
- gchar* _tmp10_;
-#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_it;
+ gpointer _tmp7_;
+ gchar* _tmp8_;
#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
+ _tmp1_ = _source_it;
#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp1_)) {
#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 7145 "Commands.c"
+#line 7765 "Commands.c"
}
#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _source_it;
+ _tmp2_ = _source_it;
#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp3_ = gee_iterator_get (_tmp2_);
#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp5_;
+ source = (DataSource*) _tmp3_;
#line 648 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = source;
+ _tmp4_ = source;
#line 648 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->old_comments;
+ _tmp5_ = self->old_comments;
#line 648 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = source;
+ _tmp6_ = source;
#line 648 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource));
+ _tmp7_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource));
#line 648 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = (gchar*) _tmp9_;
+ _tmp8_ = (gchar*) _tmp7_;
#line 648 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource), _tmp10_);
+ media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource), _tmp8_);
#line 648 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp10_);
+ _g_free0 (_tmp8_);
#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 7169 "Commands.c"
+#line 7789 "Commands.c"
}
#line 647 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 7173 "Commands.c"
+#line 7793 "Commands.c"
}
}
-static void edit_multiple_comments_command_class_init (EditMultipleCommentsCommandClass * klass) {
+static void
+edit_multiple_comments_command_class_init (EditMultipleCommentsCommandClass * klass)
+{
#line 629 "/home/jens/Source/shotwell/src/Commands.vala"
edit_multiple_comments_command_parent_class = g_type_class_peek_parent (klass);
#line 629 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -7183,21 +7805,25 @@ static void edit_multiple_comments_command_class_init (EditMultipleCommentsComma
((MultipleDataSourceAtOnceCommandClass *) klass)->undo_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) edit_multiple_comments_command_real_undo_on_all;
#line 629 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = edit_multiple_comments_command_finalize;
-#line 7187 "Commands.c"
+#line 7809 "Commands.c"
}
-static void edit_multiple_comments_command_instance_init (EditMultipleCommentsCommand * self) {
+static void
+edit_multiple_comments_command_instance_init (EditMultipleCommentsCommand * self)
+{
GeeHashMap* _tmp0_;
#line 631 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp0_ = gee_hash_map_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 631 "/home/jens/Source/shotwell/src/Commands.vala"
self->old_comments = _tmp0_;
-#line 7197 "Commands.c"
+#line 7821 "Commands.c"
}
-static void edit_multiple_comments_command_finalize (GObject * obj) {
+static void
+edit_multiple_comments_command_finalize (GObject * obj)
+{
EditMultipleCommentsCommand * self;
#line 629 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommand);
@@ -7207,11 +7833,13 @@ static void edit_multiple_comments_command_finalize (GObject * obj) {
_g_object_unref0 (self->old_comments);
#line 629 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (edit_multiple_comments_command_parent_class)->finalize (obj);
-#line 7211 "Commands.c"
+#line 7837 "Commands.c"
}
-GType edit_multiple_comments_command_get_type (void) {
+GType
+edit_multiple_comments_command_get_type (void)
+{
static volatile gsize edit_multiple_comments_command_type_id__volatile = 0;
if (g_once_init_enter (&edit_multiple_comments_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (EditMultipleCommentsCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_multiple_comments_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditMultipleCommentsCommand), 0, (GInstanceInitFunc) edit_multiple_comments_command_instance_init, NULL };
@@ -7223,87 +7851,87 @@ GType edit_multiple_comments_command_get_type (void) {
}
-RenameEventCommand* rename_event_command_construct (GType object_type, Event* event, const gchar* new_name) {
+RenameEventCommand*
+rename_event_command_construct (GType object_type,
+ Event* event,
+ const gchar* new_name)
+{
RenameEventCommand * self = NULL;
- Event* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- Event* _tmp3_;
- gchar* _tmp4_;
+ gchar* _tmp0_;
+ gchar* _tmp1_;
#line 656 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_EVENT (event), NULL);
#line 656 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (new_name != NULL, NULL);
#line 657 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = event;
-#line 657 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (RenameEventCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PROXYABLE, Proxyable), RESOURCES_RENAME_EVENT_LABEL, "");
-#line 659 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = new_name;
+ self = (RenameEventCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_PROXYABLE, Proxyable), RESOURCES_RENAME_EVENT_LABEL, "");
#line 659 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = g_strdup (_tmp1_);
+ _tmp0_ = g_strdup (new_name);
#line 659 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->new_name);
#line 659 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_name = _tmp2_;
-#line 660 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = event;
+ self->priv->new_name = _tmp0_;
#line 660 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = event_get_raw_name (_tmp3_);
+ _tmp1_ = event_get_raw_name (event);
#line 660 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->old_name);
#line 660 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_name = _tmp4_;
+ self->priv->old_name = _tmp1_;
#line 656 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 7260 "Commands.c"
+#line 7883 "Commands.c"
}
-RenameEventCommand* rename_event_command_new (Event* event, const gchar* new_name) {
+RenameEventCommand*
+rename_event_command_new (Event* event,
+ const gchar* new_name)
+{
#line 656 "/home/jens/Source/shotwell/src/Commands.vala"
return rename_event_command_construct (TYPE_RENAME_EVENT_COMMAND, event, new_name);
-#line 7267 "Commands.c"
+#line 7893 "Commands.c"
}
-static void rename_event_command_real_execute_on_source (SimpleProxyableCommand* base, DataSource* source) {
+static void
+rename_event_command_real_execute_on_source (SimpleProxyableCommand* base,
+ DataSource* source)
+{
RenameEventCommand * self;
- DataSource* _tmp0_;
- const gchar* _tmp1_;
+ const gchar* _tmp0_;
#line 663 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_EVENT_COMMAND, RenameEventCommand);
#line 663 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 664 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
+ _tmp0_ = self->priv->new_name;
#line 664 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->new_name;
-#line 664 "/home/jens/Source/shotwell/src/Commands.vala"
- event_rename (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT, Event), _tmp1_);
-#line 7285 "Commands.c"
+ event_rename (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT, Event), _tmp0_);
+#line 7911 "Commands.c"
}
-static void rename_event_command_real_undo_on_source (SimpleProxyableCommand* base, DataSource* source) {
+static void
+rename_event_command_real_undo_on_source (SimpleProxyableCommand* base,
+ DataSource* source)
+{
RenameEventCommand * self;
- DataSource* _tmp0_;
- const gchar* _tmp1_;
+ const gchar* _tmp0_;
#line 667 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_EVENT_COMMAND, RenameEventCommand);
#line 667 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 668 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
+ _tmp0_ = self->priv->old_name;
#line 668 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->old_name;
-#line 668 "/home/jens/Source/shotwell/src/Commands.vala"
- event_rename (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT, Event), _tmp1_);
-#line 7303 "Commands.c"
+ event_rename (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT, Event), _tmp0_);
+#line 7929 "Commands.c"
}
-static void rename_event_command_class_init (RenameEventCommandClass * klass) {
+static void
+rename_event_command_class_init (RenameEventCommandClass * klass)
+{
#line 652 "/home/jens/Source/shotwell/src/Commands.vala"
rename_event_command_parent_class = g_type_class_peek_parent (klass);
#line 652 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -7314,18 +7942,22 @@ static void rename_event_command_class_init (RenameEventCommandClass * klass) {
((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) rename_event_command_real_undo_on_source;
#line 652 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = rename_event_command_finalize;
-#line 7318 "Commands.c"
+#line 7946 "Commands.c"
}
-static void rename_event_command_instance_init (RenameEventCommand * self) {
+static void
+rename_event_command_instance_init (RenameEventCommand * self)
+{
#line 652 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = RENAME_EVENT_COMMAND_GET_PRIVATE (self);
-#line 7325 "Commands.c"
+#line 7955 "Commands.c"
}
-static void rename_event_command_finalize (GObject * obj) {
+static void
+rename_event_command_finalize (GObject * obj)
+{
RenameEventCommand * self;
#line 652 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RENAME_EVENT_COMMAND, RenameEventCommand);
@@ -7335,11 +7967,13 @@ static void rename_event_command_finalize (GObject * obj) {
_g_free0 (self->priv->old_name);
#line 652 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (rename_event_command_parent_class)->finalize (obj);
-#line 7339 "Commands.c"
+#line 7971 "Commands.c"
}
-GType rename_event_command_get_type (void) {
+GType
+rename_event_command_get_type (void)
+{
static volatile gsize rename_event_command_type_id__volatile = 0;
if (g_once_init_enter (&rename_event_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (RenameEventCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rename_event_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RenameEventCommand), 0, (GInstanceInitFunc) rename_event_command_instance_init, NULL };
@@ -7351,87 +7985,87 @@ GType rename_event_command_get_type (void) {
}
-EditEventCommentCommand* edit_event_comment_command_construct (GType object_type, Event* event, const gchar* new_comment) {
+EditEventCommentCommand*
+edit_event_comment_command_construct (GType object_type,
+ Event* event,
+ const gchar* new_comment)
+{
EditEventCommentCommand * self = NULL;
- Event* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- Event* _tmp3_;
- gchar* _tmp4_;
+ gchar* _tmp0_;
+ gchar* _tmp1_;
#line 676 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_EVENT (event), NULL);
#line 676 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (new_comment != NULL, NULL);
#line 677 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = event;
-#line 677 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (EditEventCommentCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PROXYABLE, Proxyable), RESOURCES_EDIT_COMMENT_LABEL, "");
-#line 679 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = new_comment;
+ self = (EditEventCommentCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_PROXYABLE, Proxyable), RESOURCES_EDIT_COMMENT_LABEL, "");
#line 679 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = g_strdup (_tmp1_);
+ _tmp0_ = g_strdup (new_comment);
#line 679 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->new_comment);
#line 679 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_comment = _tmp2_;
+ self->priv->new_comment = _tmp0_;
#line 680 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = event;
-#line 680 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_EVENT_SOURCE, EventSource));
+ _tmp1_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource));
#line 680 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->old_comment);
#line 680 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_comment = _tmp4_;
+ self->priv->old_comment = _tmp1_;
#line 676 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 7388 "Commands.c"
+#line 8017 "Commands.c"
}
-EditEventCommentCommand* edit_event_comment_command_new (Event* event, const gchar* new_comment) {
+EditEventCommentCommand*
+edit_event_comment_command_new (Event* event,
+ const gchar* new_comment)
+{
#line 676 "/home/jens/Source/shotwell/src/Commands.vala"
return edit_event_comment_command_construct (TYPE_EDIT_EVENT_COMMENT_COMMAND, event, new_comment);
-#line 7395 "Commands.c"
+#line 8027 "Commands.c"
}
-static void edit_event_comment_command_real_execute_on_source (SimpleProxyableCommand* base, DataSource* source) {
+static void
+edit_event_comment_command_real_execute_on_source (SimpleProxyableCommand* base,
+ DataSource* source)
+{
EditEventCommentCommand * self;
- DataSource* _tmp0_;
- const gchar* _tmp1_;
+ const gchar* _tmp0_;
#line 683 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommand);
#line 683 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 684 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 684 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->new_comment;
+ _tmp0_ = self->priv->new_comment;
#line 684 "/home/jens/Source/shotwell/src/Commands.vala"
- event_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT, Event), TYPE_EVENT_SOURCE, EventSource), _tmp1_);
-#line 7413 "Commands.c"
+ event_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT, Event), TYPE_EVENT_SOURCE, EventSource), _tmp0_);
+#line 8045 "Commands.c"
}
-static void edit_event_comment_command_real_undo_on_source (SimpleProxyableCommand* base, DataSource* source) {
+static void
+edit_event_comment_command_real_undo_on_source (SimpleProxyableCommand* base,
+ DataSource* source)
+{
EditEventCommentCommand * self;
- DataSource* _tmp0_;
- const gchar* _tmp1_;
+ const gchar* _tmp0_;
#line 687 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommand);
#line 687 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 688 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 688 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->old_comment;
+ _tmp0_ = self->priv->old_comment;
#line 688 "/home/jens/Source/shotwell/src/Commands.vala"
- event_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT, Event), TYPE_EVENT_SOURCE, EventSource), _tmp1_);
-#line 7431 "Commands.c"
+ event_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT, Event), TYPE_EVENT_SOURCE, EventSource), _tmp0_);
+#line 8063 "Commands.c"
}
-static void edit_event_comment_command_class_init (EditEventCommentCommandClass * klass) {
+static void
+edit_event_comment_command_class_init (EditEventCommentCommandClass * klass)
+{
#line 672 "/home/jens/Source/shotwell/src/Commands.vala"
edit_event_comment_command_parent_class = g_type_class_peek_parent (klass);
#line 672 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -7442,18 +8076,22 @@ static void edit_event_comment_command_class_init (EditEventCommentCommandClass
((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) edit_event_comment_command_real_undo_on_source;
#line 672 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = edit_event_comment_command_finalize;
-#line 7446 "Commands.c"
+#line 8080 "Commands.c"
}
-static void edit_event_comment_command_instance_init (EditEventCommentCommand * self) {
+static void
+edit_event_comment_command_instance_init (EditEventCommentCommand * self)
+{
#line 672 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = EDIT_EVENT_COMMENT_COMMAND_GET_PRIVATE (self);
-#line 7453 "Commands.c"
+#line 8089 "Commands.c"
}
-static void edit_event_comment_command_finalize (GObject * obj) {
+static void
+edit_event_comment_command_finalize (GObject * obj)
+{
EditEventCommentCommand * self;
#line 672 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommand);
@@ -7463,11 +8101,13 @@ static void edit_event_comment_command_finalize (GObject * obj) {
_g_free0 (self->priv->old_comment);
#line 672 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (edit_event_comment_command_parent_class)->finalize (obj);
-#line 7467 "Commands.c"
+#line 8105 "Commands.c"
}
-GType edit_event_comment_command_get_type (void) {
+GType
+edit_event_comment_command_get_type (void)
+{
static volatile gsize edit_event_comment_command_type_id__volatile = 0;
if (g_once_init_enter (&edit_event_comment_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (EditEventCommentCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_event_comment_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditEventCommentCommand), 0, (GInstanceInitFunc) edit_event_comment_command_instance_init, NULL };
@@ -7479,51 +8119,51 @@ GType edit_event_comment_command_get_type (void) {
}
-SetKeyPhotoCommand* set_key_photo_command_construct (GType object_type, Event* event, MediaSource* new_primary_source) {
+SetKeyPhotoCommand*
+set_key_photo_command_construct (GType object_type,
+ Event* event,
+ MediaSource* new_primary_source)
+{
SetKeyPhotoCommand * self = NULL;
- Event* _tmp0_;
+ MediaSource* _tmp0_;
MediaSource* _tmp1_;
- MediaSource* _tmp2_;
- Event* _tmp3_;
- MediaSource* _tmp4_;
#line 696 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_EVENT (event), NULL);
#line 696 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_MEDIA_SOURCE (new_primary_source), NULL);
#line 697 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = event;
-#line 697 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SetKeyPhotoCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_SOURCE, DataSource), RESOURCES_MAKE_KEY_PHOTO_LABEL, "");
-#line 699 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = new_primary_source;
+ self = (SetKeyPhotoCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_DATA_SOURCE, DataSource), RESOURCES_MAKE_KEY_PHOTO_LABEL, "");
#line 699 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
+ _tmp0_ = _g_object_ref0 (new_primary_source);
#line 699 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->new_primary_source);
#line 699 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_primary_source = _tmp2_;
+ self->priv->new_primary_source = _tmp0_;
#line 700 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = event;
-#line 700 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = event_get_primary_source (_tmp3_);
+ _tmp1_ = event_get_primary_source (event);
#line 700 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->old_primary_source);
#line 700 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_primary_source = _tmp4_;
+ self->priv->old_primary_source = _tmp1_;
#line 696 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 7516 "Commands.c"
+#line 8151 "Commands.c"
}
-SetKeyPhotoCommand* set_key_photo_command_new (Event* event, MediaSource* new_primary_source) {
+SetKeyPhotoCommand*
+set_key_photo_command_new (Event* event,
+ MediaSource* new_primary_source)
+{
#line 696 "/home/jens/Source/shotwell/src/Commands.vala"
return set_key_photo_command_construct (TYPE_SET_KEY_PHOTO_COMMAND, event, new_primary_source);
-#line 7523 "Commands.c"
+#line 8161 "Commands.c"
}
-static void set_key_photo_command_real_execute (Command* base) {
+static void
+set_key_photo_command_real_execute (Command* base)
+{
SetKeyPhotoCommand * self;
DataSource* _tmp0_;
MediaSource* _tmp1_;
@@ -7535,11 +8175,13 @@ static void set_key_photo_command_real_execute (Command* base) {
_tmp1_ = self->priv->new_primary_source;
#line 704 "/home/jens/Source/shotwell/src/Commands.vala"
event_set_primary_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT, Event), _tmp1_);
-#line 7539 "Commands.c"
+#line 8179 "Commands.c"
}
-static void set_key_photo_command_real_undo (Command* base) {
+static void
+set_key_photo_command_real_undo (Command* base)
+{
SetKeyPhotoCommand * self;
DataSource* _tmp0_;
MediaSource* _tmp1_;
@@ -7551,11 +8193,13 @@ static void set_key_photo_command_real_undo (Command* base) {
_tmp1_ = self->priv->old_primary_source;
#line 708 "/home/jens/Source/shotwell/src/Commands.vala"
event_set_primary_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT, Event), _tmp1_);
-#line 7555 "Commands.c"
+#line 8197 "Commands.c"
}
-static void set_key_photo_command_class_init (SetKeyPhotoCommandClass * klass) {
+static void
+set_key_photo_command_class_init (SetKeyPhotoCommandClass * klass)
+{
#line 692 "/home/jens/Source/shotwell/src/Commands.vala"
set_key_photo_command_parent_class = g_type_class_peek_parent (klass);
#line 692 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -7566,18 +8210,22 @@ static void set_key_photo_command_class_init (SetKeyPhotoCommandClass * klass) {
((CommandClass *) klass)->undo = (void (*) (Command *)) set_key_photo_command_real_undo;
#line 692 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = set_key_photo_command_finalize;
-#line 7570 "Commands.c"
+#line 8214 "Commands.c"
}
-static void set_key_photo_command_instance_init (SetKeyPhotoCommand * self) {
+static void
+set_key_photo_command_instance_init (SetKeyPhotoCommand * self)
+{
#line 692 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = SET_KEY_PHOTO_COMMAND_GET_PRIVATE (self);
-#line 7577 "Commands.c"
+#line 8223 "Commands.c"
}
-static void set_key_photo_command_finalize (GObject * obj) {
+static void
+set_key_photo_command_finalize (GObject * obj)
+{
SetKeyPhotoCommand * self;
#line 692 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommand);
@@ -7587,11 +8235,13 @@ static void set_key_photo_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->old_primary_source);
#line 692 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (set_key_photo_command_parent_class)->finalize (obj);
-#line 7591 "Commands.c"
+#line 8239 "Commands.c"
}
-GType set_key_photo_command_get_type (void) {
+GType
+set_key_photo_command_get_type (void)
+{
static volatile gsize set_key_photo_command_type_id__volatile = 0;
if (g_once_init_enter (&set_key_photo_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (SetKeyPhotoCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_key_photo_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetKeyPhotoCommand), 0, (GInstanceInitFunc) set_key_photo_command_instance_init, NULL };
@@ -7603,90 +8253,92 @@ GType set_key_photo_command_get_type (void) {
}
-RevertSingleCommand* revert_single_command_construct (GType object_type, Photo* photo) {
+RevertSingleCommand*
+revert_single_command_construct (GType object_type,
+ Photo* photo)
+{
RevertSingleCommand * self = NULL;
- Photo* _tmp0_;
#line 713 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_PHOTO (photo), NULL);
#line 714 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = photo;
-#line 714 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (RevertSingleCommand*) generic_photo_transformation_command_construct (object_type, _tmp0_, RESOURCES_REVERT_LABEL, "");
+ self = (RevertSingleCommand*) generic_photo_transformation_command_construct (object_type, photo, RESOURCES_REVERT_LABEL, "");
#line 713 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 7618 "Commands.c"
+#line 8268 "Commands.c"
}
-RevertSingleCommand* revert_single_command_new (Photo* photo) {
+RevertSingleCommand*
+revert_single_command_new (Photo* photo)
+{
#line 713 "/home/jens/Source/shotwell/src/Commands.vala"
return revert_single_command_construct (TYPE_REVERT_SINGLE_COMMAND, photo);
-#line 7625 "Commands.c"
+#line 8277 "Commands.c"
}
-static void revert_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, Photo* photo) {
+static void
+revert_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
+ Photo* photo)
+{
RevertSingleCommand * self;
- Photo* _tmp0_;
#line 717 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommand);
#line 717 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_PHOTO (photo));
#line 718 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = photo;
-#line 718 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_remove_all_transformations (_tmp0_);
-#line 7640 "Commands.c"
+ photo_remove_all_transformations (photo);
+#line 8292 "Commands.c"
}
-static gboolean revert_single_command_real_compress (Command* base, Command* command) {
+static gboolean
+revert_single_command_real_compress (Command* base,
+ Command* command)
+{
RevertSingleCommand * self;
gboolean result = FALSE;
RevertSingleCommand* revert_single_command = NULL;
- Command* _tmp0_;
+ RevertSingleCommand* _tmp0_;
RevertSingleCommand* _tmp1_;
RevertSingleCommand* _tmp2_;
- RevertSingleCommand* _tmp3_;
+ DataSource* _tmp3_;
DataSource* _tmp4_;
- DataSource* _tmp5_;
#line 721 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommand);
#line 721 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_COMMAND (command), FALSE);
#line 722 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = command;
-#line 722 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_REVERT_SINGLE_COMMAND) ? ((RevertSingleCommand*) _tmp0_) : NULL);
+ _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, TYPE_REVERT_SINGLE_COMMAND) ? ((RevertSingleCommand*) command) : NULL);
#line 722 "/home/jens/Source/shotwell/src/Commands.vala"
- revert_single_command = _tmp1_;
+ revert_single_command = _tmp0_;
#line 723 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = revert_single_command;
+ _tmp1_ = revert_single_command;
#line 723 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_ == NULL) {
+ if (_tmp1_ == NULL) {
#line 724 "/home/jens/Source/shotwell/src/Commands.vala"
result = FALSE;
#line 724 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (revert_single_command);
#line 724 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 7674 "Commands.c"
+#line 8326 "Commands.c"
}
#line 726 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = revert_single_command;
+ _tmp2_ = revert_single_command;
#line 726 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
+ _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
#line 726 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
+ _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
#line 726 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp4_ != _tmp5_) {
+ if (_tmp3_ != _tmp4_) {
#line 727 "/home/jens/Source/shotwell/src/Commands.vala"
result = FALSE;
#line 727 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (revert_single_command);
#line 727 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 7690 "Commands.c"
+#line 8342 "Commands.c"
}
#line 731 "/home/jens/Source/shotwell/src/Commands.vala"
result = TRUE;
@@ -7694,26 +8346,32 @@ static gboolean revert_single_command_real_compress (Command* base, Command* com
_g_object_unref0 (revert_single_command);
#line 731 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 7698 "Commands.c"
+#line 8350 "Commands.c"
}
-static void revert_single_command_class_init (RevertSingleCommandClass * klass) {
+static void
+revert_single_command_class_init (RevertSingleCommandClass * klass)
+{
#line 712 "/home/jens/Source/shotwell/src/Commands.vala"
revert_single_command_parent_class = g_type_class_peek_parent (klass);
#line 712 "/home/jens/Source/shotwell/src/Commands.vala"
((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) revert_single_command_real_execute_on_photo;
#line 712 "/home/jens/Source/shotwell/src/Commands.vala"
((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) revert_single_command_real_compress;
-#line 7709 "Commands.c"
+#line 8363 "Commands.c"
}
-static void revert_single_command_instance_init (RevertSingleCommand * self) {
+static void
+revert_single_command_instance_init (RevertSingleCommand * self)
+{
}
-GType revert_single_command_get_type (void) {
+GType
+revert_single_command_get_type (void)
+{
static volatile gsize revert_single_command_type_id__volatile = 0;
if (g_once_init_enter (&revert_single_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (RevertSingleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) revert_single_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RevertSingleCommand), 0, (GInstanceInitFunc) revert_single_command_instance_init, NULL };
@@ -7725,57 +8383,65 @@ GType revert_single_command_get_type (void) {
}
-RevertMultipleCommand* revert_multiple_command_construct (GType object_type, GeeIterable* iter) {
+RevertMultipleCommand*
+revert_multiple_command_construct (GType object_type,
+ GeeIterable* iter)
+{
RevertMultipleCommand * self = NULL;
- GeeIterable* _tmp0_;
#line 736 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
#line 737 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = iter;
-#line 737 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (RevertMultipleCommand*) multiple_photo_transformation_command_construct (object_type, _tmp0_, _ ("Reverting"), _ ("Undoing Revert"), RESOURCES_REVERT_LABEL, "");
+ self = (RevertMultipleCommand*) multiple_photo_transformation_command_construct (object_type, iter, _ ("Reverting"), _ ("Undoing Revert"), RESOURCES_REVERT_LABEL, "");
#line 736 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 7740 "Commands.c"
+#line 8398 "Commands.c"
}
-RevertMultipleCommand* revert_multiple_command_new (GeeIterable* iter) {
+RevertMultipleCommand*
+revert_multiple_command_new (GeeIterable* iter)
+{
#line 736 "/home/jens/Source/shotwell/src/Commands.vala"
return revert_multiple_command_construct (TYPE_REVERT_MULTIPLE_COMMAND, iter);
-#line 7747 "Commands.c"
+#line 8407 "Commands.c"
}
-static void revert_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source) {
+static void
+revert_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source)
+{
RevertMultipleCommand * self;
- DataSource* _tmp0_;
#line 741 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommand);
#line 741 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 742 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 742 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_remove_all_transformations (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo));
-#line 7762 "Commands.c"
+ photo_remove_all_transformations (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo));
+#line 8422 "Commands.c"
}
-static void revert_multiple_command_class_init (RevertMultipleCommandClass * klass) {
+static void
+revert_multiple_command_class_init (RevertMultipleCommandClass * klass)
+{
#line 735 "/home/jens/Source/shotwell/src/Commands.vala"
revert_multiple_command_parent_class = g_type_class_peek_parent (klass);
#line 735 "/home/jens/Source/shotwell/src/Commands.vala"
((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) revert_multiple_command_real_execute_on_source;
-#line 7771 "Commands.c"
+#line 8433 "Commands.c"
}
-static void revert_multiple_command_instance_init (RevertMultipleCommand * self) {
+static void
+revert_multiple_command_instance_init (RevertMultipleCommand * self)
+{
}
-GType revert_multiple_command_get_type (void) {
+GType
+revert_multiple_command_get_type (void)
+{
static volatile gsize revert_multiple_command_type_id__volatile = 0;
if (g_once_init_enter (&revert_multiple_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (RevertMultipleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) revert_multiple_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RevertMultipleCommand), 0, (GInstanceInitFunc) revert_multiple_command_instance_init, NULL };
@@ -7787,35 +8453,39 @@ GType revert_multiple_command_get_type (void) {
}
-EnhanceSingleCommand* enhance_single_command_construct (GType object_type, Photo* photo) {
+EnhanceSingleCommand*
+enhance_single_command_construct (GType object_type,
+ Photo* photo)
+{
EnhanceSingleCommand * self = NULL;
- Photo* _tmp0_;
#line 747 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_PHOTO (photo), NULL);
#line 748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = photo;
-#line 748 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (EnhanceSingleCommand*) generic_photo_transformation_command_construct (object_type, _tmp0_, RESOURCES_ENHANCE_LABEL, RESOURCES_ENHANCE_TOOLTIP);
+ self = (EnhanceSingleCommand*) generic_photo_transformation_command_construct (object_type, photo, RESOURCES_ENHANCE_LABEL, RESOURCES_ENHANCE_TOOLTIP);
#line 747 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 7802 "Commands.c"
+#line 8468 "Commands.c"
}
-EnhanceSingleCommand* enhance_single_command_new (Photo* photo) {
+EnhanceSingleCommand*
+enhance_single_command_new (Photo* photo)
+{
#line 747 "/home/jens/Source/shotwell/src/Commands.vala"
return enhance_single_command_construct (TYPE_ENHANCE_SINGLE_COMMAND, photo);
-#line 7809 "Commands.c"
+#line 8477 "Commands.c"
}
-static void enhance_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, Photo* photo) {
+static void
+enhance_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
+ Photo* photo)
+{
EnhanceSingleCommand * self;
AppWindow* _tmp0_;
AppWindow* _tmp1_;
- Photo* _tmp2_;
+ AppWindow* _tmp2_;
AppWindow* _tmp3_;
- AppWindow* _tmp4_;
#line 751 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommand);
#line 751 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -7829,68 +8499,66 @@ static void enhance_single_command_real_execute_on_photo (GenericPhotoTransforma
#line 752 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tmp1_);
#line 757 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = photo;
-#line 757 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_enhance (_tmp2_);
+ photo_enhance (photo);
#line 763 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = app_window_get_instance ();
+ _tmp2_ = app_window_get_instance ();
#line 763 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
+ _tmp3_ = _tmp2_;
#line 763 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PAGE_WINDOW, PageWindow));
+ page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PAGE_WINDOW, PageWindow));
#line 763 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp4_);
-#line 7844 "Commands.c"
+ _g_object_unref0 (_tmp3_);
+#line 8512 "Commands.c"
}
-static gboolean enhance_single_command_real_compress (Command* base, Command* command) {
+static gboolean
+enhance_single_command_real_compress (Command* base,
+ Command* command)
+{
EnhanceSingleCommand * self;
gboolean result = FALSE;
EnhanceSingleCommand* enhance_single_command = NULL;
- Command* _tmp0_;
+ EnhanceSingleCommand* _tmp0_;
EnhanceSingleCommand* _tmp1_;
EnhanceSingleCommand* _tmp2_;
- EnhanceSingleCommand* _tmp3_;
+ DataSource* _tmp3_;
DataSource* _tmp4_;
- DataSource* _tmp5_;
#line 766 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommand);
#line 766 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_COMMAND (command), FALSE);
#line 767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = command;
+ _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, TYPE_ENHANCE_SINGLE_COMMAND) ? ((EnhanceSingleCommand*) command) : NULL);
#line 767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_ENHANCE_SINGLE_COMMAND) ? ((EnhanceSingleCommand*) _tmp0_) : NULL);
-#line 767 "/home/jens/Source/shotwell/src/Commands.vala"
- enhance_single_command = _tmp1_;
+ enhance_single_command = _tmp0_;
#line 768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = enhance_single_command;
+ _tmp1_ = enhance_single_command;
#line 768 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_ == NULL) {
+ if (_tmp1_ == NULL) {
#line 769 "/home/jens/Source/shotwell/src/Commands.vala"
result = FALSE;
#line 769 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (enhance_single_command);
#line 769 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 7878 "Commands.c"
+#line 8546 "Commands.c"
}
#line 771 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = enhance_single_command;
+ _tmp2_ = enhance_single_command;
#line 771 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
+ _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
#line 771 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
+ _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
#line 771 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp4_ != _tmp5_) {
+ if (_tmp3_ != _tmp4_) {
#line 772 "/home/jens/Source/shotwell/src/Commands.vala"
result = FALSE;
#line 772 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (enhance_single_command);
#line 772 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 7894 "Commands.c"
+#line 8562 "Commands.c"
}
#line 775 "/home/jens/Source/shotwell/src/Commands.vala"
result = TRUE;
@@ -7898,26 +8566,32 @@ static gboolean enhance_single_command_real_compress (Command* base, Command* co
_g_object_unref0 (enhance_single_command);
#line 775 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 7902 "Commands.c"
+#line 8570 "Commands.c"
}
-static void enhance_single_command_class_init (EnhanceSingleCommandClass * klass) {
+static void
+enhance_single_command_class_init (EnhanceSingleCommandClass * klass)
+{
#line 746 "/home/jens/Source/shotwell/src/Commands.vala"
enhance_single_command_parent_class = g_type_class_peek_parent (klass);
#line 746 "/home/jens/Source/shotwell/src/Commands.vala"
((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) enhance_single_command_real_execute_on_photo;
#line 746 "/home/jens/Source/shotwell/src/Commands.vala"
((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) enhance_single_command_real_compress;
-#line 7913 "Commands.c"
+#line 8583 "Commands.c"
}
-static void enhance_single_command_instance_init (EnhanceSingleCommand * self) {
+static void
+enhance_single_command_instance_init (EnhanceSingleCommand * self)
+{
}
-GType enhance_single_command_get_type (void) {
+GType
+enhance_single_command_get_type (void)
+{
static volatile gsize enhance_single_command_type_id__volatile = 0;
if (g_once_init_enter (&enhance_single_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (EnhanceSingleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) enhance_single_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EnhanceSingleCommand), 0, (GInstanceInitFunc) enhance_single_command_instance_init, NULL };
@@ -7929,57 +8603,65 @@ GType enhance_single_command_get_type (void) {
}
-EnhanceMultipleCommand* enhance_multiple_command_construct (GType object_type, GeeIterable* iter) {
+EnhanceMultipleCommand*
+enhance_multiple_command_construct (GType object_type,
+ GeeIterable* iter)
+{
EnhanceMultipleCommand * self = NULL;
- GeeIterable* _tmp0_;
#line 780 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
#line 781 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = iter;
-#line 781 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (EnhanceMultipleCommand*) multiple_photo_transformation_command_construct (object_type, _tmp0_, _ ("Enhancing"), _ ("Undoing Enhance"), RESOURCES_ENHANCE_LABEL, RESOURCES_ENHANCE_TOOLTIP);
+ self = (EnhanceMultipleCommand*) multiple_photo_transformation_command_construct (object_type, iter, _ ("Enhancing"), _ ("Undoing Enhance"), RESOURCES_ENHANCE_LABEL, RESOURCES_ENHANCE_TOOLTIP);
#line 780 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 7944 "Commands.c"
+#line 8618 "Commands.c"
}
-EnhanceMultipleCommand* enhance_multiple_command_new (GeeIterable* iter) {
+EnhanceMultipleCommand*
+enhance_multiple_command_new (GeeIterable* iter)
+{
#line 780 "/home/jens/Source/shotwell/src/Commands.vala"
return enhance_multiple_command_construct (TYPE_ENHANCE_MULTIPLE_COMMAND, iter);
-#line 7951 "Commands.c"
+#line 8627 "Commands.c"
}
-static void enhance_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source) {
+static void
+enhance_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source)
+{
EnhanceMultipleCommand * self;
- DataSource* _tmp0_;
#line 785 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommand);
#line 785 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 786 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 786 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_enhance (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo));
-#line 7966 "Commands.c"
+ photo_enhance (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo));
+#line 8642 "Commands.c"
}
-static void enhance_multiple_command_class_init (EnhanceMultipleCommandClass * klass) {
+static void
+enhance_multiple_command_class_init (EnhanceMultipleCommandClass * klass)
+{
#line 779 "/home/jens/Source/shotwell/src/Commands.vala"
enhance_multiple_command_parent_class = g_type_class_peek_parent (klass);
#line 779 "/home/jens/Source/shotwell/src/Commands.vala"
((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) enhance_multiple_command_real_execute_on_source;
-#line 7975 "Commands.c"
+#line 8653 "Commands.c"
}
-static void enhance_multiple_command_instance_init (EnhanceMultipleCommand * self) {
+static void
+enhance_multiple_command_instance_init (EnhanceMultipleCommand * self)
+{
}
-GType enhance_multiple_command_get_type (void) {
+GType
+enhance_multiple_command_get_type (void)
+{
static volatile gsize enhance_multiple_command_type_id__volatile = 0;
if (g_once_init_enter (&enhance_multiple_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (EnhanceMultipleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) enhance_multiple_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EnhanceMultipleCommand), 0, (GInstanceInitFunc) enhance_multiple_command_instance_init, NULL };
@@ -7991,13 +8673,16 @@ GType enhance_multiple_command_get_type (void) {
}
-StraightenCommand* straighten_command_construct (GType object_type, Photo* photo, gdouble theta, Box* crop, const gchar* name, const gchar* explanation) {
+StraightenCommand*
+straighten_command_construct (GType object_type,
+ Photo* photo,
+ gdouble theta,
+ Box* crop,
+ const gchar* name,
+ const gchar* explanation)
+{
StraightenCommand * self = NULL;
- Photo* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- gdouble _tmp3_;
- Box _tmp4_;
+ Box _tmp0_;
#line 794 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_PHOTO (photo), NULL);
#line 794 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -8007,98 +8692,92 @@ StraightenCommand* straighten_command_construct (GType object_type, Photo* photo
#line 794 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (explanation != NULL, NULL);
#line 795 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = photo;
-#line 795 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = name;
-#line 795 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = explanation;
-#line 795 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (StraightenCommand*) generic_photo_transformation_command_construct (object_type, _tmp0_, _tmp1_, _tmp2_);
-#line 797 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = theta;
+ self = (StraightenCommand*) generic_photo_transformation_command_construct (object_type, photo, name, explanation);
#line 797 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->theta = _tmp3_;
+ self->priv->theta = theta;
#line 798 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = *crop;
+ _tmp0_ = *crop;
#line 798 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->crop = _tmp4_;
+ self->priv->crop = _tmp0_;
#line 794 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 8028 "Commands.c"
+#line 8705 "Commands.c"
}
-StraightenCommand* straighten_command_new (Photo* photo, gdouble theta, Box* crop, const gchar* name, const gchar* explanation) {
+StraightenCommand*
+straighten_command_new (Photo* photo,
+ gdouble theta,
+ Box* crop,
+ const gchar* name,
+ const gchar* explanation)
+{
#line 794 "/home/jens/Source/shotwell/src/Commands.vala"
return straighten_command_construct (TYPE_STRAIGHTEN_COMMAND, photo, theta, crop, name, explanation);
-#line 8035 "Commands.c"
+#line 8718 "Commands.c"
}
-static void straighten_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, Photo* photo) {
+static void
+straighten_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
+ Photo* photo)
+{
StraightenCommand * self;
DataCollection* collection = NULL;
- Photo* _tmp0_;
+ DataCollection* _tmp0_;
DataCollection* _tmp1_;
- DataCollection* _tmp2_;
- Photo* _tmp4_;
- gdouble _tmp5_;
- Photo* _tmp6_;
- Box _tmp7_;
- DataCollection* _tmp8_;
+ gdouble _tmp3_;
+ Box _tmp4_;
+ DataCollection* _tmp5_;
#line 801 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRAIGHTEN_COMMAND, StraightenCommand);
#line 801 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_PHOTO (photo));
#line 803 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = photo;
-#line 803 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject));
+ _tmp0_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_OBJECT, DataObject));
#line 803 "/home/jens/Source/shotwell/src/Commands.vala"
- collection = _tmp1_;
+ collection = _tmp0_;
#line 804 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = collection;
+ _tmp1_ = collection;
#line 804 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_ != NULL) {
-#line 8064 "Commands.c"
- DataCollection* _tmp3_;
+ if (_tmp1_ != NULL) {
+#line 8745 "Commands.c"
+ DataCollection* _tmp2_;
#line 805 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = collection;
+ _tmp2_ = collection;
#line 805 "/home/jens/Source/shotwell/src/Commands.vala"
- data_collection_freeze_notifications (_tmp3_);
-#line 8070 "Commands.c"
+ data_collection_freeze_notifications (_tmp2_);
+#line 8751 "Commands.c"
}
#line 807 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = photo;
-#line 807 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->theta;
+ _tmp3_ = self->priv->theta;
#line 807 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_straighten (_tmp4_, _tmp5_);
-#line 808 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = photo;
+ photo_set_straighten (photo, _tmp3_);
#line 808 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->crop;
+ _tmp4_ = self->priv->crop;
#line 808 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_crop (_tmp6_, &_tmp7_);
+ photo_set_crop (photo, &_tmp4_);
#line 810 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = collection;
+ _tmp5_ = collection;
#line 810 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp8_ != NULL) {
-#line 8088 "Commands.c"
- DataCollection* _tmp9_;
+ if (_tmp5_ != NULL) {
+#line 8765 "Commands.c"
+ DataCollection* _tmp6_;
#line 811 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = collection;
+ _tmp6_ = collection;
#line 811 "/home/jens/Source/shotwell/src/Commands.vala"
- data_collection_thaw_notifications (_tmp9_);
-#line 8094 "Commands.c"
+ data_collection_thaw_notifications (_tmp6_);
+#line 8771 "Commands.c"
}
#line 801 "/home/jens/Source/shotwell/src/Commands.vala"
_data_collection_unref0 (collection);
-#line 8098 "Commands.c"
+#line 8775 "Commands.c"
}
-static void straighten_command_class_init (StraightenCommandClass * klass) {
+static void
+straighten_command_class_init (StraightenCommandClass * klass)
+{
#line 790 "/home/jens/Source/shotwell/src/Commands.vala"
straighten_command_parent_class = g_type_class_peek_parent (klass);
#line 790 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -8107,28 +8786,34 @@ static void straighten_command_class_init (StraightenCommandClass * klass) {
((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) straighten_command_real_execute_on_photo;
#line 790 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = straighten_command_finalize;
-#line 8111 "Commands.c"
+#line 8790 "Commands.c"
}
-static void straighten_command_instance_init (StraightenCommand * self) {
+static void
+straighten_command_instance_init (StraightenCommand * self)
+{
#line 790 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = STRAIGHTEN_COMMAND_GET_PRIVATE (self);
-#line 8118 "Commands.c"
+#line 8799 "Commands.c"
}
-static void straighten_command_finalize (GObject * obj) {
+static void
+straighten_command_finalize (GObject * obj)
+{
StraightenCommand * self;
#line 790 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_STRAIGHTEN_COMMAND, StraightenCommand);
#line 790 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (straighten_command_parent_class)->finalize (obj);
-#line 8128 "Commands.c"
+#line 8811 "Commands.c"
}
-GType straighten_command_get_type (void) {
+GType
+straighten_command_get_type (void)
+{
static volatile gsize straighten_command_type_id__volatile = 0;
if (g_once_init_enter (&straighten_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (StraightenCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) straighten_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (StraightenCommand), 0, (GInstanceInitFunc) straighten_command_instance_init, NULL };
@@ -8140,12 +8825,15 @@ GType straighten_command_get_type (void) {
}
-CropCommand* crop_command_construct (GType object_type, Photo* photo, Box* crop, const gchar* name, const gchar* explanation) {
+CropCommand*
+crop_command_construct (GType object_type,
+ Photo* photo,
+ Box* crop,
+ const gchar* name,
+ const gchar* explanation)
+{
CropCommand * self = NULL;
- Photo* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- Box _tmp3_;
+ Box _tmp0_;
#line 818 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_PHOTO (photo), NULL);
#line 818 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -8155,49 +8843,50 @@ CropCommand* crop_command_construct (GType object_type, Photo* photo, Box* crop,
#line 818 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (explanation != NULL, NULL);
#line 819 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = photo;
-#line 819 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = name;
-#line 819 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = explanation;
-#line 819 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (CropCommand*) generic_photo_transformation_command_construct (object_type, _tmp0_, _tmp1_, _tmp2_);
+ self = (CropCommand*) generic_photo_transformation_command_construct (object_type, photo, name, explanation);
#line 821 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = *crop;
+ _tmp0_ = *crop;
#line 821 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->crop = _tmp3_;
+ self->priv->crop = _tmp0_;
#line 818 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 8172 "Commands.c"
+#line 8854 "Commands.c"
}
-CropCommand* crop_command_new (Photo* photo, Box* crop, const gchar* name, const gchar* explanation) {
+CropCommand*
+crop_command_new (Photo* photo,
+ Box* crop,
+ const gchar* name,
+ const gchar* explanation)
+{
#line 818 "/home/jens/Source/shotwell/src/Commands.vala"
return crop_command_construct (TYPE_CROP_COMMAND, photo, crop, name, explanation);
-#line 8179 "Commands.c"
+#line 8866 "Commands.c"
}
-static void crop_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, Photo* photo) {
+static void
+crop_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
+ Photo* photo)
+{
CropCommand * self;
- Photo* _tmp0_;
- Box _tmp1_;
+ Box _tmp0_;
#line 824 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CROP_COMMAND, CropCommand);
#line 824 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_PHOTO (photo));
#line 825 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = photo;
-#line 825 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->crop;
+ _tmp0_ = self->priv->crop;
#line 825 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_crop (_tmp0_, &_tmp1_);
-#line 8197 "Commands.c"
+ photo_set_crop (photo, &_tmp0_);
+#line 8884 "Commands.c"
}
-static void crop_command_class_init (CropCommandClass * klass) {
+static void
+crop_command_class_init (CropCommandClass * klass)
+{
#line 815 "/home/jens/Source/shotwell/src/Commands.vala"
crop_command_parent_class = g_type_class_peek_parent (klass);
#line 815 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -8206,28 +8895,34 @@ static void crop_command_class_init (CropCommandClass * klass) {
((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) crop_command_real_execute_on_photo;
#line 815 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = crop_command_finalize;
-#line 8210 "Commands.c"
+#line 8899 "Commands.c"
}
-static void crop_command_instance_init (CropCommand * self) {
+static void
+crop_command_instance_init (CropCommand * self)
+{
#line 815 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = CROP_COMMAND_GET_PRIVATE (self);
-#line 8217 "Commands.c"
+#line 8908 "Commands.c"
}
-static void crop_command_finalize (GObject * obj) {
+static void
+crop_command_finalize (GObject * obj)
+{
CropCommand * self;
#line 815 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CROP_COMMAND, CropCommand);
#line 815 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (crop_command_parent_class)->finalize (obj);
-#line 8227 "Commands.c"
+#line 8920 "Commands.c"
}
-GType crop_command_get_type (void) {
+GType
+crop_command_get_type (void)
+{
static volatile gsize crop_command_type_id__volatile = 0;
if (g_once_init_enter (&crop_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (CropCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) crop_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CropCommand), 0, (GInstanceInitFunc) crop_command_instance_init, NULL };
@@ -8239,20 +8934,24 @@ GType crop_command_get_type (void) {
}
-static gpointer _pixel_transformation_bundle_ref0 (gpointer self) {
+static gpointer
+_pixel_transformation_bundle_ref0 (gpointer self)
+{
#line 836 "/home/jens/Source/shotwell/src/Commands.vala"
return self ? pixel_transformation_bundle_ref (self) : NULL;
-#line 8246 "Commands.c"
+#line 8943 "Commands.c"
}
-AdjustColorsSingleCommand* adjust_colors_single_command_construct (GType object_type, Photo* photo, PixelTransformationBundle* transformations, const gchar* name, const gchar* explanation) {
+AdjustColorsSingleCommand*
+adjust_colors_single_command_construct (GType object_type,
+ Photo* photo,
+ PixelTransformationBundle* transformations,
+ const gchar* name,
+ const gchar* explanation)
+{
AdjustColorsSingleCommand * self = NULL;
- Photo* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- PixelTransformationBundle* _tmp3_;
- PixelTransformationBundle* _tmp4_;
+ PixelTransformationBundle* _tmp0_;
#line 832 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_PHOTO (photo), NULL);
#line 832 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -8262,42 +8961,41 @@ AdjustColorsSingleCommand* adjust_colors_single_command_construct (GType object_
#line 832 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (explanation != NULL, NULL);
#line 834 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = photo;
-#line 834 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = name;
-#line 834 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = explanation;
-#line 834 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (AdjustColorsSingleCommand*) generic_photo_transformation_command_construct (object_type, _tmp0_, _tmp1_, _tmp2_);
-#line 836 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = transformations;
+ self = (AdjustColorsSingleCommand*) generic_photo_transformation_command_construct (object_type, photo, name, explanation);
#line 836 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _pixel_transformation_bundle_ref0 (_tmp3_);
+ _tmp0_ = _pixel_transformation_bundle_ref0 (transformations);
#line 836 "/home/jens/Source/shotwell/src/Commands.vala"
_pixel_transformation_bundle_unref0 (self->priv->transformations);
#line 836 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->transformations = _tmp4_;
+ self->priv->transformations = _tmp0_;
#line 832 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 8283 "Commands.c"
+#line 8974 "Commands.c"
}
-AdjustColorsSingleCommand* adjust_colors_single_command_new (Photo* photo, PixelTransformationBundle* transformations, const gchar* name, const gchar* explanation) {
+AdjustColorsSingleCommand*
+adjust_colors_single_command_new (Photo* photo,
+ PixelTransformationBundle* transformations,
+ const gchar* name,
+ const gchar* explanation)
+{
#line 832 "/home/jens/Source/shotwell/src/Commands.vala"
return adjust_colors_single_command_construct (TYPE_ADJUST_COLORS_SINGLE_COMMAND, photo, transformations, name, explanation);
-#line 8290 "Commands.c"
+#line 8986 "Commands.c"
}
-static void adjust_colors_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, Photo* photo) {
+static void
+adjust_colors_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
+ Photo* photo)
+{
AdjustColorsSingleCommand * self;
AppWindow* _tmp0_;
AppWindow* _tmp1_;
- Photo* _tmp2_;
- PixelTransformationBundle* _tmp3_;
+ PixelTransformationBundle* _tmp2_;
+ AppWindow* _tmp3_;
AppWindow* _tmp4_;
- AppWindow* _tmp5_;
#line 839 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommand);
#line 839 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -8311,42 +9009,42 @@ static void adjust_colors_single_command_real_execute_on_photo (GenericPhotoTran
#line 840 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tmp1_);
#line 842 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = photo;
-#line 842 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->transformations;
+ _tmp2_ = self->priv->transformations;
#line 842 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_color_adjustments (_tmp2_, _tmp3_);
+ photo_set_color_adjustments (photo, _tmp2_);
#line 844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = app_window_get_instance ();
+ _tmp3_ = app_window_get_instance ();
#line 844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
+ _tmp4_ = _tmp3_;
#line 844 "/home/jens/Source/shotwell/src/Commands.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PAGE_WINDOW, PageWindow));
+ page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PAGE_WINDOW, PageWindow));
#line 844 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp5_);
-#line 8328 "Commands.c"
+ _g_object_unref0 (_tmp4_);
+#line 9024 "Commands.c"
}
-static gboolean adjust_colors_single_command_real_can_compress (GenericPhotoTransformationCommand* base, Command* command) {
+static gboolean
+adjust_colors_single_command_real_can_compress (GenericPhotoTransformationCommand* base,
+ Command* command)
+{
AdjustColorsSingleCommand * self;
gboolean result = FALSE;
- Command* _tmp0_;
#line 847 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommand);
#line 847 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_COMMAND (command), FALSE);
#line 848 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = command;
-#line 848 "/home/jens/Source/shotwell/src/Commands.vala"
- result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_ADJUST_COLORS_SINGLE_COMMAND);
+ result = G_TYPE_CHECK_INSTANCE_TYPE (command, TYPE_ADJUST_COLORS_SINGLE_COMMAND);
#line 848 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 8346 "Commands.c"
+#line 9042 "Commands.c"
}
-static void adjust_colors_single_command_class_init (AdjustColorsSingleCommandClass * klass) {
+static void
+adjust_colors_single_command_class_init (AdjustColorsSingleCommandClass * klass)
+{
#line 829 "/home/jens/Source/shotwell/src/Commands.vala"
adjust_colors_single_command_parent_class = g_type_class_peek_parent (klass);
#line 829 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -8357,18 +9055,22 @@ static void adjust_colors_single_command_class_init (AdjustColorsSingleCommandCl
((GenericPhotoTransformationCommandClass *) klass)->can_compress = (gboolean (*) (GenericPhotoTransformationCommand *, Command*)) adjust_colors_single_command_real_can_compress;
#line 829 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = adjust_colors_single_command_finalize;
-#line 8361 "Commands.c"
+#line 9059 "Commands.c"
}
-static void adjust_colors_single_command_instance_init (AdjustColorsSingleCommand * self) {
+static void
+adjust_colors_single_command_instance_init (AdjustColorsSingleCommand * self)
+{
#line 829 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = ADJUST_COLORS_SINGLE_COMMAND_GET_PRIVATE (self);
-#line 8368 "Commands.c"
+#line 9068 "Commands.c"
}
-static void adjust_colors_single_command_finalize (GObject * obj) {
+static void
+adjust_colors_single_command_finalize (GObject * obj)
+{
AdjustColorsSingleCommand * self;
#line 829 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommand);
@@ -8376,11 +9078,13 @@ static void adjust_colors_single_command_finalize (GObject * obj) {
_pixel_transformation_bundle_unref0 (self->priv->transformations);
#line 829 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (adjust_colors_single_command_parent_class)->finalize (obj);
-#line 8380 "Commands.c"
+#line 9082 "Commands.c"
}
-GType adjust_colors_single_command_get_type (void) {
+GType
+adjust_colors_single_command_get_type (void)
+{
static volatile gsize adjust_colors_single_command_type_id__volatile = 0;
if (g_once_init_enter (&adjust_colors_single_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (AdjustColorsSingleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) adjust_colors_single_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AdjustColorsSingleCommand), 0, (GInstanceInitFunc) adjust_colors_single_command_instance_init, NULL };
@@ -8392,13 +9096,15 @@ GType adjust_colors_single_command_get_type (void) {
}
-AdjustColorsMultipleCommand* adjust_colors_multiple_command_construct (GType object_type, GeeIterable* iter, PixelTransformationBundle* transformations, const gchar* name, const gchar* explanation) {
+AdjustColorsMultipleCommand*
+adjust_colors_multiple_command_construct (GType object_type,
+ GeeIterable* iter,
+ PixelTransformationBundle* transformations,
+ const gchar* name,
+ const gchar* explanation)
+{
AdjustColorsMultipleCommand * self = NULL;
- GeeIterable* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- PixelTransformationBundle* _tmp3_;
- PixelTransformationBundle* _tmp4_;
+ PixelTransformationBundle* _tmp0_;
#line 855 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
#line 855 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -8408,53 +9114,52 @@ AdjustColorsMultipleCommand* adjust_colors_multiple_command_construct (GType obj
#line 855 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (explanation != NULL, NULL);
#line 857 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = iter;
-#line 857 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = name;
-#line 857 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = explanation;
-#line 857 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (AdjustColorsMultipleCommand*) multiple_photo_transformation_command_construct (object_type, _tmp0_, _ ("Applying Color Transformations"), _ ("Undoing Color Transformations"), _tmp1_, _tmp2_);
-#line 860 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = transformations;
+ self = (AdjustColorsMultipleCommand*) multiple_photo_transformation_command_construct (object_type, iter, _ ("Applying Color Transformations"), _ ("Undoing Color Transformations"), name, explanation);
#line 860 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _pixel_transformation_bundle_ref0 (_tmp3_);
+ _tmp0_ = _pixel_transformation_bundle_ref0 (transformations);
#line 860 "/home/jens/Source/shotwell/src/Commands.vala"
_pixel_transformation_bundle_unref0 (self->priv->transformations);
#line 860 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->transformations = _tmp4_;
+ self->priv->transformations = _tmp0_;
#line 855 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 8429 "Commands.c"
+#line 9127 "Commands.c"
}
-AdjustColorsMultipleCommand* adjust_colors_multiple_command_new (GeeIterable* iter, PixelTransformationBundle* transformations, const gchar* name, const gchar* explanation) {
+AdjustColorsMultipleCommand*
+adjust_colors_multiple_command_new (GeeIterable* iter,
+ PixelTransformationBundle* transformations,
+ const gchar* name,
+ const gchar* explanation)
+{
#line 855 "/home/jens/Source/shotwell/src/Commands.vala"
return adjust_colors_multiple_command_construct (TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, iter, transformations, name, explanation);
-#line 8436 "Commands.c"
+#line 9139 "Commands.c"
}
-static void adjust_colors_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source) {
+static void
+adjust_colors_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source)
+{
AdjustColorsMultipleCommand * self;
- DataSource* _tmp0_;
- PixelTransformationBundle* _tmp1_;
+ PixelTransformationBundle* _tmp0_;
#line 863 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommand);
#line 863 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 864 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 864 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->transformations;
+ _tmp0_ = self->priv->transformations;
#line 864 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_color_adjustments (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), _tmp1_);
-#line 8454 "Commands.c"
+ photo_set_color_adjustments (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo), _tmp0_);
+#line 9157 "Commands.c"
}
-static void adjust_colors_multiple_command_class_init (AdjustColorsMultipleCommandClass * klass) {
+static void
+adjust_colors_multiple_command_class_init (AdjustColorsMultipleCommandClass * klass)
+{
#line 852 "/home/jens/Source/shotwell/src/Commands.vala"
adjust_colors_multiple_command_parent_class = g_type_class_peek_parent (klass);
#line 852 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -8463,18 +9168,22 @@ static void adjust_colors_multiple_command_class_init (AdjustColorsMultipleComma
((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) adjust_colors_multiple_command_real_execute_on_source;
#line 852 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = adjust_colors_multiple_command_finalize;
-#line 8467 "Commands.c"
+#line 9172 "Commands.c"
}
-static void adjust_colors_multiple_command_instance_init (AdjustColorsMultipleCommand * self) {
+static void
+adjust_colors_multiple_command_instance_init (AdjustColorsMultipleCommand * self)
+{
#line 852 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = ADJUST_COLORS_MULTIPLE_COMMAND_GET_PRIVATE (self);
-#line 8474 "Commands.c"
+#line 9181 "Commands.c"
}
-static void adjust_colors_multiple_command_finalize (GObject * obj) {
+static void
+adjust_colors_multiple_command_finalize (GObject * obj)
+{
AdjustColorsMultipleCommand * self;
#line 852 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommand);
@@ -8482,11 +9191,13 @@ static void adjust_colors_multiple_command_finalize (GObject * obj) {
_pixel_transformation_bundle_unref0 (self->priv->transformations);
#line 852 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (adjust_colors_multiple_command_parent_class)->finalize (obj);
-#line 8486 "Commands.c"
+#line 9195 "Commands.c"
}
-GType adjust_colors_multiple_command_get_type (void) {
+GType
+adjust_colors_multiple_command_get_type (void)
+{
static volatile gsize adjust_colors_multiple_command_type_id__volatile = 0;
if (g_once_init_enter (&adjust_colors_multiple_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (AdjustColorsMultipleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) adjust_colors_multiple_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AdjustColorsMultipleCommand), 0, (GInstanceInitFunc) adjust_colors_multiple_command_instance_init, NULL };
@@ -8498,12 +9209,15 @@ GType adjust_colors_multiple_command_get_type (void) {
}
-RedeyeCommand* redeye_command_construct (GType object_type, Photo* photo, EditingToolsRedeyeInstance* redeye_instance, const gchar* name, const gchar* explanation) {
+RedeyeCommand*
+redeye_command_construct (GType object_type,
+ Photo* photo,
+ EditingToolsRedeyeInstance* redeye_instance,
+ const gchar* name,
+ const gchar* explanation)
+{
RedeyeCommand * self = NULL;
- Photo* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- EditingToolsRedeyeInstance _tmp3_;
+ EditingToolsRedeyeInstance _tmp0_;
#line 871 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_PHOTO (photo), NULL);
#line 871 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -8513,49 +9227,50 @@ RedeyeCommand* redeye_command_construct (GType object_type, Photo* photo, Editin
#line 871 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (explanation != NULL, NULL);
#line 873 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = photo;
-#line 873 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = name;
-#line 873 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = explanation;
-#line 873 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (RedeyeCommand*) generic_photo_transformation_command_construct (object_type, _tmp0_, _tmp1_, _tmp2_);
+ self = (RedeyeCommand*) generic_photo_transformation_command_construct (object_type, photo, name, explanation);
#line 875 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = *redeye_instance;
+ _tmp0_ = *redeye_instance;
#line 875 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->redeye_instance = _tmp3_;
+ self->priv->redeye_instance = _tmp0_;
#line 871 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 8530 "Commands.c"
+#line 9238 "Commands.c"
}
-RedeyeCommand* redeye_command_new (Photo* photo, EditingToolsRedeyeInstance* redeye_instance, const gchar* name, const gchar* explanation) {
+RedeyeCommand*
+redeye_command_new (Photo* photo,
+ EditingToolsRedeyeInstance* redeye_instance,
+ const gchar* name,
+ const gchar* explanation)
+{
#line 871 "/home/jens/Source/shotwell/src/Commands.vala"
return redeye_command_construct (TYPE_REDEYE_COMMAND, photo, redeye_instance, name, explanation);
-#line 8537 "Commands.c"
+#line 9250 "Commands.c"
}
-static void redeye_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, Photo* photo) {
+static void
+redeye_command_real_execute_on_photo (GenericPhotoTransformationCommand* base,
+ Photo* photo)
+{
RedeyeCommand * self;
- Photo* _tmp0_;
- EditingToolsRedeyeInstance _tmp1_;
+ EditingToolsRedeyeInstance _tmp0_;
#line 878 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_REDEYE_COMMAND, RedeyeCommand);
#line 878 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_PHOTO (photo));
#line 879 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = photo;
-#line 879 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->redeye_instance;
+ _tmp0_ = self->priv->redeye_instance;
#line 879 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_add_redeye_instance (_tmp0_, &_tmp1_);
-#line 8555 "Commands.c"
+ photo_add_redeye_instance (photo, &_tmp0_);
+#line 9268 "Commands.c"
}
-static void redeye_command_class_init (RedeyeCommandClass * klass) {
+static void
+redeye_command_class_init (RedeyeCommandClass * klass)
+{
#line 868 "/home/jens/Source/shotwell/src/Commands.vala"
redeye_command_parent_class = g_type_class_peek_parent (klass);
#line 868 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -8564,28 +9279,34 @@ static void redeye_command_class_init (RedeyeCommandClass * klass) {
((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) redeye_command_real_execute_on_photo;
#line 868 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = redeye_command_finalize;
-#line 8568 "Commands.c"
+#line 9283 "Commands.c"
}
-static void redeye_command_instance_init (RedeyeCommand * self) {
+static void
+redeye_command_instance_init (RedeyeCommand * self)
+{
#line 868 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = REDEYE_COMMAND_GET_PRIVATE (self);
-#line 8575 "Commands.c"
+#line 9292 "Commands.c"
}
-static void redeye_command_finalize (GObject * obj) {
+static void
+redeye_command_finalize (GObject * obj)
+{
RedeyeCommand * self;
#line 868 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_REDEYE_COMMAND, RedeyeCommand);
#line 868 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (redeye_command_parent_class)->finalize (obj);
-#line 8585 "Commands.c"
+#line 9304 "Commands.c"
}
-GType redeye_command_get_type (void) {
+GType
+redeye_command_get_type (void)
+{
static volatile gsize redeye_command_type_id__volatile = 0;
if (g_once_init_enter (&redeye_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (RedeyeCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) redeye_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RedeyeCommand), 0, (GInstanceInitFunc) redeye_command_instance_init, NULL };
@@ -8597,27 +9318,27 @@ GType redeye_command_get_type (void) {
}
-MovePhotosCommand* move_photos_command_construct (GType object_type, const gchar* name, const gchar* explanation) {
+MovePhotosCommand*
+move_photos_command_construct (GType object_type,
+ const gchar* name,
+ const gchar* explanation)
+{
MovePhotosCommand * self = NULL;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
#line 967 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (name != NULL, NULL);
#line 967 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (explanation != NULL, NULL);
#line 968 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = name;
-#line 968 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = explanation;
-#line 968 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (MovePhotosCommand*) command_construct (object_type, _tmp0_, _tmp1_);
+ self = (MovePhotosCommand*) command_construct (object_type, name, explanation);
#line 967 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 8617 "Commands.c"
+#line 9336 "Commands.c"
}
-static void move_photos_command_real_prepare (Command* base) {
+static void
+move_photos_command_real_prepare (Command* base)
+{
MovePhotosCommand * self;
MovePhotosCommandRealMovePhotosCommand* _tmp0_;
MovePhotosCommandRealMovePhotosCommand* _tmp1_;
@@ -8631,11 +9352,13 @@ static void move_photos_command_real_prepare (Command* base) {
_tmp1_ = self->real_command;
#line 973 "/home/jens/Source/shotwell/src/Commands.vala"
command_prepare (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_COMMAND, Command));
-#line 8635 "Commands.c"
+#line 9356 "Commands.c"
}
-static void move_photos_command_real_execute (Command* base) {
+static void
+move_photos_command_real_execute (Command* base)
+{
MovePhotosCommand * self;
MovePhotosCommandRealMovePhotosCommand* _tmp0_;
MovePhotosCommandRealMovePhotosCommand* _tmp1_;
@@ -8649,11 +9372,13 @@ static void move_photos_command_real_execute (Command* base) {
_tmp1_ = self->real_command;
#line 978 "/home/jens/Source/shotwell/src/Commands.vala"
command_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_COMMAND, Command));
-#line 8653 "Commands.c"
+#line 9376 "Commands.c"
}
-static void move_photos_command_real_undo (Command* base) {
+static void
+move_photos_command_real_undo (Command* base)
+{
MovePhotosCommand * self;
MovePhotosCommandRealMovePhotosCommand* _tmp0_;
MovePhotosCommandRealMovePhotosCommand* _tmp1_;
@@ -8667,34 +9392,41 @@ static void move_photos_command_real_undo (Command* base) {
_tmp1_ = self->real_command;
#line 983 "/home/jens/Source/shotwell/src/Commands.vala"
command_undo (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_COMMAND, Command));
-#line 8671 "Commands.c"
+#line 9396 "Commands.c"
}
-static void _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, gpointer self) {
+static void
+_move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
+ gpointer self)
+{
#line 914 "/home/jens/Source/shotwell/src/Commands.vala"
move_photos_command_real_move_photos_command_on_proxy_broken ((MovePhotosCommandRealMovePhotosCommand*) self);
-#line 8678 "Commands.c"
+#line 9406 "Commands.c"
}
-static gpointer _source_proxy_ref0 (gpointer self) {
+static gpointer
+_source_proxy_ref0 (gpointer self)
+{
#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
return self ? source_proxy_ref (self) : NULL;
-#line 8685 "Commands.c"
+#line 9415 "Commands.c"
}
-MovePhotosCommandRealMovePhotosCommand* move_photos_command_real_move_photos_command_construct (GType object_type, Event* new_event, GeeIterable* source_views, const gchar* progress_text, const gchar* undo_progress_text, const gchar* name, const gchar* explanation) {
+MovePhotosCommandRealMovePhotosCommand*
+move_photos_command_real_move_photos_command_construct (GType object_type,
+ Event* new_event,
+ GeeIterable* source_views,
+ const gchar* progress_text,
+ const gchar* undo_progress_text,
+ const gchar* name,
+ const gchar* explanation)
+{
MovePhotosCommandRealMovePhotosCommand * self = NULL;
- GeeIterable* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- const gchar* _tmp4_;
- Event* _tmp30_;
- SourceProxy* _tmp31_;
- SourceProxy* _tmp32_;
+ SourceProxy* _tmp25_;
+ SourceProxy* _tmp26_;
#line 891 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail ((new_event == NULL) || IS_EVENT (new_event), NULL);
#line 891 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -8708,190 +9440,187 @@ MovePhotosCommandRealMovePhotosCommand* move_photos_command_real_move_photos_com
#line 891 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (explanation != NULL, NULL);
#line 893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source_views;
-#line 893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = progress_text;
-#line 893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = undo_progress_text;
-#line 893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = name;
-#line 893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = explanation;
-#line 893 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (MovePhotosCommandRealMovePhotosCommand*) multiple_data_source_command_construct (object_type, _tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp4_);
-#line 8723 "Commands.c"
+ self = (MovePhotosCommandRealMovePhotosCommand*) multiple_data_source_command_construct (object_type, source_views, progress_text, undo_progress_text, name, explanation);
+#line 9445 "Commands.c"
{
GeeArrayList* _source_list = NULL;
- GeeArrayList* _tmp5_;
- GeeArrayList* _tmp6_;
+ GeeArrayList* _tmp0_;
+ GeeArrayList* _tmp1_;
gint _source_size = 0;
- GeeArrayList* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
+ GeeArrayList* _tmp2_;
+ gint _tmp3_;
+ gint _tmp4_;
gint _source_index = 0;
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)->source_list;
+ _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)->source_list;
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _g_object_ref0 (_tmp5_);
+ _tmp1_ = _g_object_ref0 (_tmp0_);
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_list = _tmp6_;
+ _source_list = _tmp1_;
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _source_list;
+ _tmp2_ = _source_list;
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _tmp8_;
+ _tmp4_ = _tmp3_;
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_size = _tmp9_;
+ _source_size = _tmp4_;
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
_source_index = -1;
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 8751 "Commands.c"
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
+#line 9473 "Commands.c"
+ gint _tmp5_;
+ gint _tmp6_;
+ gint _tmp7_;
DataSource* source = NULL;
- GeeArrayList* _tmp13_;
- gint _tmp14_;
- gpointer _tmp15_;
+ GeeArrayList* _tmp8_;
+ gint _tmp9_;
+ gpointer _tmp10_;
MediaSource* current_media = NULL;
- DataSource* _tmp16_;
- MediaSource* _tmp17_;
+ DataSource* _tmp11_;
+ MediaSource* _tmp12_;
Event* old_event = NULL;
- MediaSource* _tmp18_;
- Event* _tmp19_;
- SourceProxy* _tmp20_ = NULL;
- Event* _tmp21_;
+ MediaSource* _tmp13_;
+ Event* _tmp14_;
+ SourceProxy* _tmp15_ = NULL;
+ Event* _tmp16_;
SourceProxy* old_event_proxy = NULL;
+ SourceProxy* _tmp19_;
+ SourceProxy* _tmp20_;
+ GeeHashMap* _tmp22_;
+ MediaSource* _tmp23_;
SourceProxy* _tmp24_;
- SourceProxy* _tmp25_;
- GeeHashMap* _tmp27_;
- MediaSource* _tmp28_;
- SourceProxy* _tmp29_;
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _source_index;
+ _tmp5_ = _source_index;
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_index = _tmp10_ + 1;
+ _source_index = _tmp5_ + 1;
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _source_index;
+ _tmp6_ = _source_index;
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _source_size;
+ _tmp7_ = _source_size;
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp11_ < _tmp12_)) {
+ if (!(_tmp6_ < _tmp7_)) {
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 8785 "Commands.c"
+#line 9507 "Commands.c"
}
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _source_list;
+ _tmp8_ = _source_list;
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _source_index;
+ _tmp9_ = _source_index;
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp14_);
+ _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_);
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp15_;
+ source = (DataSource*) _tmp10_;
#line 897 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = source;
+ _tmp11_ = source;
#line 897 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_MEDIA_SOURCE, MediaSource));
+ _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_MEDIA_SOURCE, MediaSource));
#line 897 "/home/jens/Source/shotwell/src/Commands.vala"
- current_media = _tmp17_;
+ current_media = _tmp12_;
#line 898 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = current_media;
+ _tmp13_ = current_media;
#line 898 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = media_source_get_event (_tmp18_);
+ _tmp14_ = media_source_get_event (_tmp13_);
#line 898 "/home/jens/Source/shotwell/src/Commands.vala"
- old_event = _tmp19_;
+ old_event = _tmp14_;
#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = old_event;
+ _tmp16_ = old_event;
#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp21_ != NULL) {
-#line 8811 "Commands.c"
- Event* _tmp22_;
- SourceProxy* _tmp23_;
+ if (_tmp16_ != NULL) {
+#line 9533 "Commands.c"
+ Event* _tmp17_;
+ SourceProxy* _tmp18_;
#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = old_event;
+ _tmp17_ = old_event;
#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PROXYABLE, Proxyable));
+ _tmp18_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PROXYABLE, Proxyable));
#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp20_);
+ _source_proxy_unref0 (_tmp15_);
#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _tmp23_;
-#line 8822 "Commands.c"
+ _tmp15_ = _tmp18_;
+#line 9544 "Commands.c"
} else {
#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp20_);
+ _source_proxy_unref0 (_tmp15_);
#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = NULL;
-#line 8828 "Commands.c"
+ _tmp15_ = NULL;
+#line 9550 "Commands.c"
}
#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _source_proxy_ref0 (_tmp20_);
+ _tmp19_ = _source_proxy_ref0 (_tmp15_);
#line 899 "/home/jens/Source/shotwell/src/Commands.vala"
- old_event_proxy = _tmp24_;
+ old_event_proxy = _tmp19_;
#line 902 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = old_event_proxy;
+ _tmp20_ = old_event_proxy;
#line 902 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp25_ != NULL) {
-#line 8838 "Commands.c"
- SourceProxy* _tmp26_;
+ if (_tmp20_ != NULL) {
+#line 9560 "Commands.c"
+ SourceProxy* _tmp21_;
#line 903 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = old_event_proxy;
+ _tmp21_ = old_event_proxy;
#line 903 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp26_, "broken", (GCallback) _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken, self, 0);
-#line 8844 "Commands.c"
+ g_signal_connect_object (_tmp21_, "broken", (GCallback) _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken, self, 0);
+#line 9566 "Commands.c"
}
#line 905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = self->priv->old_events;
+ _tmp22_ = self->priv->old_events;
#line 905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = current_media;
+ _tmp23_ = current_media;
#line 905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = old_event_proxy;
+ _tmp24_ = old_event_proxy;
#line 905 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp28_, _tmp29_);
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp23_, _tmp24_);
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (old_event_proxy);
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp20_);
+ _source_proxy_unref0 (_tmp15_);
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (old_event);
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (current_media);
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 8864 "Commands.c"
+#line 9586 "Commands.c"
}
#line 896 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_list);
-#line 8868 "Commands.c"
+#line 9590 "Commands.c"
}
#line 909 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = new_event;
-#line 909 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_PROXYABLE, Proxyable));
+ _tmp25_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (new_event, TYPE_PROXYABLE, Proxyable));
#line 909 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (self->priv->new_event_proxy);
#line 909 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_event_proxy = _tmp31_;
+ self->priv->new_event_proxy = _tmp25_;
#line 910 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = self->priv->new_event_proxy;
+ _tmp26_ = self->priv->new_event_proxy;
#line 910 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp32_, "broken", (GCallback) _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken, self, 0);
+ g_signal_connect_object (_tmp26_, "broken", (GCallback) _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken, self, 0);
#line 891 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 8884 "Commands.c"
+#line 9604 "Commands.c"
}
-MovePhotosCommandRealMovePhotosCommand* move_photos_command_real_move_photos_command_new (Event* new_event, GeeIterable* source_views, const gchar* progress_text, const gchar* undo_progress_text, const gchar* name, const gchar* explanation) {
+MovePhotosCommandRealMovePhotosCommand*
+move_photos_command_real_move_photos_command_new (Event* new_event,
+ GeeIterable* source_views,
+ const gchar* progress_text,
+ const gchar* undo_progress_text,
+ const gchar* name,
+ const gchar* explanation)
+{
#line 891 "/home/jens/Source/shotwell/src/Commands.vala"
return move_photos_command_real_move_photos_command_construct (MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, new_event, source_views, progress_text, undo_progress_text, name, explanation);
-#line 8891 "Commands.c"
+#line 9618 "Commands.c"
}
-static void move_photos_command_real_move_photos_command_real_execute (Command* base) {
+static void
+move_photos_command_real_move_photos_command_real_execute (Command* base)
+{
MovePhotosCommandRealMovePhotosCommand * self;
LibraryWindow* _tmp0_;
LibraryWindow* _tmp1_;
@@ -8918,7 +9647,7 @@ static void move_photos_command_real_move_photos_command_real_execute (Command*
_g_object_unref0 (_tmp1_);
#line 928 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp4_) {
-#line 8922 "Commands.c"
+#line 9651 "Commands.c"
Event* evt = NULL;
LibraryWindow* _tmp5_;
LibraryWindow* _tmp6_;
@@ -8927,10 +9656,9 @@ static void move_photos_command_real_move_photos_command_real_execute (Command*
Event* _tmp9_;
Event* _tmp10_;
Event* _tmp11_;
- gint _tmp12_;
- GeeArrayList* _tmp13_;
+ GeeArrayList* _tmp12_;
+ gint _tmp13_;
gint _tmp14_;
- gint _tmp15_;
#line 929 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp5_ = library_window_get_app ();
#line 929 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -8952,193 +9680,190 @@ static void move_photos_command_real_move_photos_command_real_execute (Command*
#line 932 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp11_ = evt;
#line 932 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_EVENT_SOURCE, EventSource));
-#line 932 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)->source_list;
+ _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)->source_list;
#line 932 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp13_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 932 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _tmp14_;
+ _tmp14_ = _tmp13_;
#line 932 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp12_ == _tmp15_) {
-#line 8965 "Commands.c"
+ if (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_EVENT_SOURCE, EventSource)) == _tmp14_) {
+#line 9691 "Commands.c"
+ LibraryWindow* _tmp15_;
LibraryWindow* _tmp16_;
- LibraryWindow* _tmp17_;
- SourceProxy* _tmp18_;
- DataSource* _tmp19_;
- Event* _tmp20_;
+ SourceProxy* _tmp17_;
+ DataSource* _tmp18_;
+ Event* _tmp19_;
#line 935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = library_window_get_app ();
+ _tmp15_ = library_window_get_app ();
#line 935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _tmp16_;
+ _tmp16_ = _tmp15_;
#line 935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = self->priv->new_event_proxy;
+ _tmp17_ = self->priv->new_event_proxy;
#line 935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = source_proxy_get_source (_tmp18_);
+ _tmp18_ = source_proxy_get_source (_tmp17_);
#line 935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_EVENT, Event);
+ _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_EVENT, Event);
#line 935 "/home/jens/Source/shotwell/src/Commands.vala"
- library_window_switch_to_event (_tmp17_, _tmp20_);
+ library_window_switch_to_event (_tmp16_, _tmp19_);
#line 935 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp20_);
+ _g_object_unref0 (_tmp19_);
#line 935 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp17_);
-#line 8987 "Commands.c"
+ _g_object_unref0 (_tmp16_);
+#line 9713 "Commands.c"
}
#line 928 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (evt);
-#line 8991 "Commands.c"
+#line 9717 "Commands.c"
} else {
- SourceProxy* _tmp21_;
- DataSource* _tmp22_;
- Event* _tmp23_;
+ SourceProxy* _tmp20_;
+ DataSource* _tmp21_;
+ Event* _tmp22_;
+ GeeArrayList* _tmp23_;
gint _tmp24_;
- GeeArrayList* _tmp25_;
- gint _tmp26_;
- gint _tmp27_;
- gboolean _tmp28_;
-#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = self->priv->new_event_proxy;
+ gint _tmp25_;
+ gboolean _tmp26_;
#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = source_proxy_get_source (_tmp21_);
+ _tmp20_ = self->priv->new_event_proxy;
#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_EVENT, Event);
+ _tmp21_ = source_proxy_get_source (_tmp20_);
#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_EVENT_SOURCE, EventSource));
+ _tmp22_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_EVENT, Event);
#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)->source_list;
+ _tmp23_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)->source_list;
#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp24_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = _tmp26_;
+ _tmp25_ = _tmp24_;
#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = _tmp24_ == _tmp27_;
+ _tmp26_ = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_EVENT_SOURCE, EventSource)) == _tmp25_;
#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp23_);
+ _g_object_unref0 (_tmp22_);
#line 941 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp28_) {
-#line 9021 "Commands.c"
- LibraryWindow* _tmp29_;
- LibraryWindow* _tmp30_;
- SourceProxy* _tmp31_;
- DataSource* _tmp32_;
- Event* _tmp33_;
+ if (_tmp26_) {
+#line 9744 "Commands.c"
+ LibraryWindow* _tmp27_;
+ LibraryWindow* _tmp28_;
+ SourceProxy* _tmp29_;
+ DataSource* _tmp30_;
+ Event* _tmp31_;
#line 943 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = library_window_get_app ();
+ _tmp27_ = library_window_get_app ();
#line 943 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = _tmp29_;
+ _tmp28_ = _tmp27_;
#line 943 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = self->priv->new_event_proxy;
+ _tmp29_ = self->priv->new_event_proxy;
#line 943 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = source_proxy_get_source (_tmp31_);
+ _tmp30_ = source_proxy_get_source (_tmp29_);
#line 943 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_EVENT, Event);
+ _tmp31_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_EVENT, Event);
#line 943 "/home/jens/Source/shotwell/src/Commands.vala"
- library_window_switch_to_event (_tmp30_, _tmp33_);
+ library_window_switch_to_event (_tmp28_, _tmp31_);
#line 943 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp33_);
+ _g_object_unref0 (_tmp31_);
#line 943 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp30_);
-#line 9043 "Commands.c"
+ _g_object_unref0 (_tmp28_);
+#line 9766 "Commands.c"
}
}
}
-static void move_photos_command_real_move_photos_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source) {
+static void
+move_photos_command_real_move_photos_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source)
+{
MovePhotosCommandRealMovePhotosCommand * self;
- DataSource* _tmp0_;
- SourceProxy* _tmp1_;
- DataSource* _tmp2_;
- Event* _tmp3_;
+ SourceProxy* _tmp0_;
+ DataSource* _tmp1_;
+ Event* _tmp2_;
#line 949 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommand);
#line 949 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 950 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 950 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->new_event_proxy;
+ _tmp0_ = self->priv->new_event_proxy;
#line 950 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = source_proxy_get_source (_tmp1_);
+ _tmp1_ = source_proxy_get_source (_tmp0_);
#line 950 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_EVENT, Event);
+ _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_EVENT, Event);
#line 950 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp3_);
+ media_source_set_event (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), _tmp2_);
#line 950 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp3_);
-#line 9071 "Commands.c"
+ _g_object_unref0 (_tmp2_);
+#line 9794 "Commands.c"
}
-static void move_photos_command_real_move_photos_command_real_undo_on_source (MultipleDataSourceCommand* base, DataSource* source) {
+static void
+move_photos_command_real_move_photos_command_real_undo_on_source (MultipleDataSourceCommand* base,
+ DataSource* source)
+{
MovePhotosCommandRealMovePhotosCommand * self;
MediaSource* current_media = NULL;
- DataSource* _tmp0_;
- MediaSource* _tmp1_;
+ MediaSource* _tmp0_;
SourceProxy* event_proxy = NULL;
- GeeHashMap* _tmp2_;
- MediaSource* _tmp3_;
- gpointer _tmp4_;
- Event* _tmp5_ = NULL;
- SourceProxy* _tmp6_;
- MediaSource* _tmp9_;
+ GeeHashMap* _tmp1_;
+ MediaSource* _tmp2_;
+ gpointer _tmp3_;
+ Event* _tmp4_ = NULL;
+ SourceProxy* _tmp5_;
+ MediaSource* _tmp8_;
#line 953 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommand);
#line 953 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 954 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 954 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource));
+ _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource));
#line 954 "/home/jens/Source/shotwell/src/Commands.vala"
- current_media = _tmp1_;
+ current_media = _tmp0_;
#line 955 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->old_events;
+ _tmp1_ = self->priv->old_events;
#line 955 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = current_media;
+ _tmp2_ = current_media;
#line 955 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_);
+ _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp2_);
#line 955 "/home/jens/Source/shotwell/src/Commands.vala"
- event_proxy = (SourceProxy*) _tmp4_;
+ event_proxy = (SourceProxy*) _tmp3_;
#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = event_proxy;
+ _tmp5_ = event_proxy;
#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp6_ != NULL) {
-#line 9109 "Commands.c"
- SourceProxy* _tmp7_;
- DataSource* _tmp8_;
+ if (_tmp5_ != NULL) {
+#line 9832 "Commands.c"
+ SourceProxy* _tmp6_;
+ DataSource* _tmp7_;
#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = event_proxy;
+ _tmp6_ = event_proxy;
#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = source_proxy_get_source (_tmp7_);
+ _tmp7_ = source_proxy_get_source (_tmp6_);
#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp5_);
+ _g_object_unref0 (_tmp4_);
#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_EVENT, Event);
-#line 9120 "Commands.c"
+ _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_EVENT, Event);
+#line 9843 "Commands.c"
} else {
#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp5_);
+ _g_object_unref0 (_tmp4_);
#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = NULL;
-#line 9126 "Commands.c"
+ _tmp4_ = NULL;
+#line 9849 "Commands.c"
}
#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = current_media;
+ _tmp8_ = current_media;
#line 957 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_event (_tmp9_, _tmp5_);
+ media_source_set_event (_tmp8_, _tmp4_);
#line 953 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp5_);
+ _g_object_unref0 (_tmp4_);
#line 953 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (event_proxy);
#line 953 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (current_media);
-#line 9138 "Commands.c"
+#line 9861 "Commands.c"
}
-static void move_photos_command_real_move_photos_command_on_proxy_broken (MovePhotosCommandRealMovePhotosCommand* self) {
+static void
+move_photos_command_real_move_photos_command_on_proxy_broken (MovePhotosCommandRealMovePhotosCommand* self)
+{
CommandManager* _tmp0_;
CommandManager* _tmp1_;
#line 960 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -9151,11 +9876,13 @@ static void move_photos_command_real_move_photos_command_on_proxy_broken (MovePh
command_manager_reset (_tmp1_);
#line 961 "/home/jens/Source/shotwell/src/Commands.vala"
_command_manager_unref0 (_tmp1_);
-#line 9155 "Commands.c"
+#line 9880 "Commands.c"
}
-static void move_photos_command_real_move_photos_command_class_init (MovePhotosCommandRealMovePhotosCommandClass * klass) {
+static void
+move_photos_command_real_move_photos_command_class_init (MovePhotosCommandRealMovePhotosCommandClass * klass)
+{
#line 886 "/home/jens/Source/shotwell/src/Commands.vala"
move_photos_command_real_move_photos_command_parent_class = g_type_class_peek_parent (klass);
#line 886 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -9168,11 +9895,13 @@ static void move_photos_command_real_move_photos_command_class_init (MovePhotosC
((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) move_photos_command_real_move_photos_command_real_undo_on_source;
#line 886 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = move_photos_command_real_move_photos_command_finalize;
-#line 9172 "Commands.c"
+#line 9899 "Commands.c"
}
-static void move_photos_command_real_move_photos_command_instance_init (MovePhotosCommandRealMovePhotosCommand * self) {
+static void
+move_photos_command_real_move_photos_command_instance_init (MovePhotosCommandRealMovePhotosCommand * self)
+{
GeeHashMap* _tmp0_;
#line 886 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_GET_PRIVATE (self);
@@ -9182,11 +9911,13 @@ static void move_photos_command_real_move_photos_command_instance_init (MovePhot
_tmp0_ = gee_hash_map_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 888 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->old_events = _tmp0_;
-#line 9186 "Commands.c"
+#line 9915 "Commands.c"
}
-static void move_photos_command_real_move_photos_command_finalize (GObject * obj) {
+static void
+move_photos_command_real_move_photos_command_finalize (GObject * obj)
+{
MovePhotosCommandRealMovePhotosCommand * self;
SourceProxy* _tmp0_;
guint _tmp1_;
@@ -9198,7 +9929,7 @@ static void move_photos_command_real_move_photos_command_finalize (GObject * obj
g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp1_, NULL, FALSE);
#line 914 "/home/jens/Source/shotwell/src/Commands.vala"
g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken, self);
-#line 9202 "Commands.c"
+#line 9933 "Commands.c"
{
GeeIterator* _proxy_it = NULL;
GeeHashMap* _tmp2_;
@@ -9225,51 +9956,48 @@ static void move_photos_command_real_move_photos_command_finalize (GObject * obj
_proxy_it = _tmp7_;
#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 9229 "Commands.c"
+#line 9960 "Commands.c"
GeeIterator* _tmp8_;
- gboolean _tmp9_;
SourceProxy* proxy = NULL;
- GeeIterator* _tmp10_;
- gpointer _tmp11_;
- SourceProxy* _tmp12_;
+ GeeIterator* _tmp9_;
+ gpointer _tmp10_;
+ SourceProxy* _tmp11_;
#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp8_ = _proxy_it;
#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_iterator_next (_tmp8_);
-#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp9_) {
+ if (!gee_iterator_next (_tmp8_)) {
#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 9244 "Commands.c"
+#line 9972 "Commands.c"
}
#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _proxy_it;
+ _tmp9_ = _proxy_it;
#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = gee_iterator_get (_tmp10_);
+ _tmp10_ = gee_iterator_get (_tmp9_);
#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
- proxy = (SourceProxy*) _tmp11_;
+ proxy = (SourceProxy*) _tmp10_;
#line 917 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = proxy;
+ _tmp11_ = proxy;
#line 917 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp12_ != NULL) {
-#line 9256 "Commands.c"
- SourceProxy* _tmp13_;
- guint _tmp14_;
+ if (_tmp11_ != NULL) {
+#line 9984 "Commands.c"
+ SourceProxy* _tmp12_;
+ guint _tmp13_;
#line 918 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = proxy;
+ _tmp12_ = proxy;
#line 918 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp14_, NULL, FALSE);
+ g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp13_, NULL, FALSE);
#line 918 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp13_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken, self);
-#line 9265 "Commands.c"
+ g_signal_handlers_disconnect_matched (_tmp12_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken, self);
+#line 9993 "Commands.c"
}
#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (proxy);
-#line 9269 "Commands.c"
+#line 9997 "Commands.c"
}
#line 916 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_proxy_it);
-#line 9273 "Commands.c"
+#line 10001 "Commands.c"
}
#line 887 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (self->priv->new_event_proxy);
@@ -9277,11 +10005,13 @@ static void move_photos_command_real_move_photos_command_finalize (GObject * obj
_g_object_unref0 (self->priv->old_events);
#line 886 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (move_photos_command_real_move_photos_command_parent_class)->finalize (obj);
-#line 9281 "Commands.c"
+#line 10009 "Commands.c"
}
-GType move_photos_command_real_move_photos_command_get_type (void) {
+GType
+move_photos_command_real_move_photos_command_get_type (void)
+{
static volatile gsize move_photos_command_real_move_photos_command_type_id__volatile = 0;
if (g_once_init_enter (&move_photos_command_real_move_photos_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (MovePhotosCommandRealMovePhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) move_photos_command_real_move_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MovePhotosCommandRealMovePhotosCommand), 0, (GInstanceInitFunc) move_photos_command_real_move_photos_command_instance_init, NULL };
@@ -9293,7 +10023,9 @@ GType move_photos_command_real_move_photos_command_get_type (void) {
}
-static void move_photos_command_class_init (MovePhotosCommandClass * klass) {
+static void
+move_photos_command_class_init (MovePhotosCommandClass * klass)
+{
#line 883 "/home/jens/Source/shotwell/src/Commands.vala"
move_photos_command_parent_class = g_type_class_peek_parent (klass);
#line 883 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -9304,15 +10036,19 @@ static void move_photos_command_class_init (MovePhotosCommandClass * klass) {
((CommandClass *) klass)->undo = (void (*) (Command *)) move_photos_command_real_undo;
#line 883 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = move_photos_command_finalize;
-#line 9308 "Commands.c"
+#line 10040 "Commands.c"
}
-static void move_photos_command_instance_init (MovePhotosCommand * self) {
+static void
+move_photos_command_instance_init (MovePhotosCommand * self)
+{
}
-static void move_photos_command_finalize (GObject * obj) {
+static void
+move_photos_command_finalize (GObject * obj)
+{
MovePhotosCommand * self;
#line 883 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand);
@@ -9320,11 +10056,13 @@ static void move_photos_command_finalize (GObject * obj) {
_g_object_unref0 (self->real_command);
#line 883 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (move_photos_command_parent_class)->finalize (obj);
-#line 9324 "Commands.c"
+#line 10060 "Commands.c"
}
-GType move_photos_command_get_type (void) {
+GType
+move_photos_command_get_type (void)
+{
static volatile gsize move_photos_command_type_id__volatile = 0;
if (g_once_init_enter (&move_photos_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (MovePhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) move_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MovePhotosCommand), 0, (GInstanceInitFunc) move_photos_command_instance_init, NULL };
@@ -9336,146 +10074,148 @@ GType move_photos_command_get_type (void) {
}
-NewEventCommand* new_event_command_construct (GType object_type, GeeIterable* iter) {
+NewEventCommand*
+new_event_command_construct (GType object_type,
+ GeeIterable* iter)
+{
NewEventCommand * self = NULL;
MediaSource* key_source = NULL;
- MediaSource* _tmp11_;
+ MediaSource* _tmp9_;
Event* new_event = NULL;
- MediaSource* _tmp12_;
- Event* _tmp13_;
- GeeIterable* _tmp14_;
- MovePhotosCommandRealMovePhotosCommand* _tmp15_;
+ MediaSource* _tmp10_;
+ Event* _tmp11_;
+ MovePhotosCommandRealMovePhotosCommand* _tmp12_;
#line 988 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
#line 989 "/home/jens/Source/shotwell/src/Commands.vala"
self = (NewEventCommand*) move_photos_command_construct (object_type, RESOURCES_NEW_EVENT_LABEL, "");
#line 992 "/home/jens/Source/shotwell/src/Commands.vala"
key_source = NULL;
-#line 9355 "Commands.c"
+#line 10095 "Commands.c"
{
GeeIterator* _view_it = NULL;
- GeeIterable* _tmp0_;
- GeeIterator* _tmp1_;
+ GeeIterator* _tmp0_;
#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = iter;
+ _tmp0_ = gee_iterable_iterator (iter);
#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_iterable_iterator (_tmp0_);
-#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- _view_it = _tmp1_;
+ _view_it = _tmp0_;
#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 9368 "Commands.c"
- GeeIterator* _tmp2_;
- gboolean _tmp3_;
+#line 10105 "Commands.c"
+ GeeIterator* _tmp1_;
DataView* view = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
+ GeeIterator* _tmp2_;
+ gpointer _tmp3_;
MediaSource* current_source = NULL;
- DataView* _tmp6_;
- DataSource* _tmp7_;
- MediaSource* _tmp8_;
-#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _view_it;
+ DataView* _tmp4_;
+ DataSource* _tmp5_;
+ MediaSource* _tmp6_;
#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
+ _tmp1_ = _view_it;
#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp1_)) {
#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 9386 "Commands.c"
+#line 10120 "Commands.c"
}
#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _view_it;
+ _tmp2_ = _view_it;
#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp3_ = gee_iterator_get (_tmp2_);
#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
- view = (DataView*) _tmp5_;
+ view = (DataView*) _tmp3_;
#line 994 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = view;
+ _tmp4_ = view;
#line 994 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = data_view_get_source (_tmp6_);
+ _tmp5_ = data_view_get_source (_tmp4_);
#line 994 "/home/jens/Source/shotwell/src/Commands.vala"
- current_source = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MEDIA_SOURCE, MediaSource);
+ current_source = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource);
#line 996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = key_source;
+ _tmp6_ = key_source;
#line 996 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp8_ == NULL) {
-#line 9404 "Commands.c"
- MediaSource* _tmp9_;
- MediaSource* _tmp10_;
+ if (_tmp6_ == NULL) {
+#line 10138 "Commands.c"
+ MediaSource* _tmp7_;
+ MediaSource* _tmp8_;
#line 997 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = current_source;
+ _tmp7_ = current_source;
#line 997 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _g_object_ref0 (_tmp9_);
+ _tmp8_ = _g_object_ref0 (_tmp7_);
#line 997 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (key_source);
#line 997 "/home/jens/Source/shotwell/src/Commands.vala"
- key_source = _tmp10_;
+ key_source = _tmp8_;
#line 998 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (current_source);
#line 998 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (view);
#line 998 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 9421 "Commands.c"
+#line 10155 "Commands.c"
}
#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (current_source);
#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (view);
-#line 9427 "Commands.c"
+#line 10161 "Commands.c"
}
#line 993 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_view_it);
-#line 9431 "Commands.c"
+#line 10165 "Commands.c"
}
#line 1003 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = key_source;
+ _tmp9_ = key_source;
#line 1003 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp11_ != NULL, "key_source != null");
+ _vala_assert (_tmp9_ != NULL, "key_source != null");
#line 1005 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = key_source;
+ _tmp10_ = key_source;
#line 1005 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = event_create_empty_event (_tmp12_);
+ _tmp11_ = event_create_empty_event (_tmp10_);
#line 1005 "/home/jens/Source/shotwell/src/Commands.vala"
- new_event = _tmp13_;
-#line 1007 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = iter;
+ new_event = _tmp11_;
#line 1007 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = move_photos_command_real_move_photos_command_new (new_event, _tmp14_, _ ("Creating New Event"), _ ("Removing Event"), RESOURCES_NEW_EVENT_LABEL, "");
+ _tmp12_ = move_photos_command_real_move_photos_command_new (new_event, iter, _ ("Creating New Event"), _ ("Removing Event"), RESOURCES_NEW_EVENT_LABEL, "");
#line 1007 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command);
#line 1007 "/home/jens/Source/shotwell/src/Commands.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command = _tmp15_;
+ G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command = _tmp12_;
#line 988 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (new_event);
#line 988 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (key_source);
#line 988 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 9457 "Commands.c"
+#line 10189 "Commands.c"
}
-NewEventCommand* new_event_command_new (GeeIterable* iter) {
+NewEventCommand*
+new_event_command_new (GeeIterable* iter)
+{
#line 988 "/home/jens/Source/shotwell/src/Commands.vala"
return new_event_command_construct (TYPE_NEW_EVENT_COMMAND, iter);
-#line 9464 "Commands.c"
+#line 10198 "Commands.c"
}
-static void new_event_command_class_init (NewEventCommandClass * klass) {
+static void
+new_event_command_class_init (NewEventCommandClass * klass)
+{
#line 987 "/home/jens/Source/shotwell/src/Commands.vala"
new_event_command_parent_class = g_type_class_peek_parent (klass);
-#line 9471 "Commands.c"
+#line 10207 "Commands.c"
}
-static void new_event_command_instance_init (NewEventCommand * self) {
+static void
+new_event_command_instance_init (NewEventCommand * self)
+{
}
-GType new_event_command_get_type (void) {
+GType
+new_event_command_get_type (void)
+{
static volatile gsize new_event_command_type_id__volatile = 0;
if (g_once_init_enter (&new_event_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (NewEventCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) new_event_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NewEventCommand), 0, (GInstanceInitFunc) new_event_command_instance_init, NULL };
@@ -9487,11 +10227,13 @@ GType new_event_command_get_type (void) {
}
-SetEventCommand* set_event_command_construct (GType object_type, GeeIterable* iter, Event* new_event) {
+SetEventCommand*
+set_event_command_construct (GType object_type,
+ GeeIterable* iter,
+ Event* new_event)
+{
SetEventCommand * self = NULL;
- Event* _tmp0_;
- GeeIterable* _tmp1_;
- MovePhotosCommandRealMovePhotosCommand* _tmp2_;
+ MovePhotosCommandRealMovePhotosCommand* _tmp0_;
#line 1014 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
#line 1014 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -9499,40 +10241,45 @@ SetEventCommand* set_event_command_construct (GType object_type, GeeIterable* it
#line 1015 "/home/jens/Source/shotwell/src/Commands.vala"
self = (SetEventCommand*) move_photos_command_construct (object_type, RESOURCES_SET_PHOTO_EVENT_LABEL, RESOURCES_SET_PHOTO_EVENT_TOOLTIP);
#line 1017 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = new_event;
-#line 1017 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = iter;
-#line 1017 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = move_photos_command_real_move_photos_command_new (_tmp0_, _tmp1_, _ ("Moving Photos to New Event"), _ ("Setting Photos to Previous Event"), RESOURCES_SET_PHOTO_EVENT_LABEL, "");
+ _tmp0_ = move_photos_command_real_move_photos_command_new (new_event, iter, _ ("Moving Photos to New Event"), _ ("Setting Photos to Previous Event"), RESOURCES_SET_PHOTO_EVENT_LABEL, "");
#line 1017 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command);
#line 1017 "/home/jens/Source/shotwell/src/Commands.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command = _tmp2_;
+ G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command = _tmp0_;
#line 1014 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 9514 "Commands.c"
+#line 10252 "Commands.c"
}
-SetEventCommand* set_event_command_new (GeeIterable* iter, Event* new_event) {
+SetEventCommand*
+set_event_command_new (GeeIterable* iter,
+ Event* new_event)
+{
#line 1014 "/home/jens/Source/shotwell/src/Commands.vala"
return set_event_command_construct (TYPE_SET_EVENT_COMMAND, iter, new_event);
-#line 9521 "Commands.c"
+#line 10262 "Commands.c"
}
-static void set_event_command_class_init (SetEventCommandClass * klass) {
+static void
+set_event_command_class_init (SetEventCommandClass * klass)
+{
#line 1013 "/home/jens/Source/shotwell/src/Commands.vala"
set_event_command_parent_class = g_type_class_peek_parent (klass);
-#line 9528 "Commands.c"
+#line 10271 "Commands.c"
}
-static void set_event_command_instance_init (SetEventCommand * self) {
+static void
+set_event_command_instance_init (SetEventCommand * self)
+{
}
-GType set_event_command_get_type (void) {
+GType
+set_event_command_get_type (void)
+{
static volatile gsize set_event_command_type_id__volatile = 0;
if (g_once_init_enter (&set_event_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (SetEventCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_event_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetEventCommand), 0, (GInstanceInitFunc) set_event_command_instance_init, NULL };
@@ -9544,20 +10291,23 @@ GType set_event_command_get_type (void) {
}
-MergeEventsCommand* merge_events_command_construct (GType object_type, GeeIterable* iter) {
+MergeEventsCommand*
+merge_events_command_construct (GType object_type,
+ GeeIterable* iter)
+{
MergeEventsCommand * self = NULL;
Event* master_event = NULL;
gint named_evt_src_count = 0;
gint unnamed_evt_src_count = 0;
GeeArrayList* media_thumbs = NULL;
GeeArrayList* _tmp0_;
- Event* _tmp48_;
- GeeArrayList* _tmp49_;
- gint _tmp50_;
- gint _tmp51_;
- Event* _tmp52_;
- GeeArrayList* _tmp53_;
- MovePhotosCommandRealMovePhotosCommand* _tmp54_;
+ Event* _tmp37_;
+ GeeArrayList* _tmp38_;
+ gint _tmp39_;
+ gint _tmp40_;
+ Event* _tmp41_;
+ GeeArrayList* _tmp42_;
+ MovePhotosCommandRealMovePhotosCommand* _tmp43_;
#line 1024 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
#line 1025 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -9572,307 +10322,282 @@ MergeEventsCommand* merge_events_command_construct (GType object_type, GeeIterab
_tmp0_ = gee_array_list_new (TYPE_THUMBNAIL_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 1034 "/home/jens/Source/shotwell/src/Commands.vala"
media_thumbs = _tmp0_;
-#line 9576 "Commands.c"
+#line 10326 "Commands.c"
{
GeeIterator* _view_it = NULL;
- GeeIterable* _tmp1_;
- GeeIterator* _tmp2_;
-#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = iter;
+ GeeIterator* _tmp1_;
#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_iterable_iterator (_tmp1_);
+ _tmp1_ = gee_iterable_iterator (iter);
#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- _view_it = _tmp2_;
+ _view_it = _tmp1_;
#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 9589 "Commands.c"
- GeeIterator* _tmp3_;
- gboolean _tmp4_;
+#line 10336 "Commands.c"
+ GeeIterator* _tmp2_;
DataView* view = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
Event* event = NULL;
- DataView* _tmp7_;
- DataSource* _tmp8_;
- Event* _tmp9_;
-#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _view_it;
+ DataView* _tmp5_;
+ DataSource* _tmp6_;
+ Event* _tmp7_;
#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterator_next (_tmp3_);
+ _tmp2_ = _view_it;
#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp4_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 9607 "Commands.c"
+#line 10351 "Commands.c"
}
#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _view_it;
+ _tmp3_ = _view_it;
#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
- view = (DataView*) _tmp6_;
+ view = (DataView*) _tmp4_;
#line 1037 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = view;
+ _tmp5_ = view;
#line 1037 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = data_view_get_source (_tmp7_);
+ _tmp6_ = data_view_get_source (_tmp5_);
#line 1037 "/home/jens/Source/shotwell/src/Commands.vala"
- event = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_EVENT, Event);
+ event = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_EVENT, Event);
#line 1040 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = master_event;
+ _tmp7_ = master_event;
#line 1040 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp9_ == NULL) {
-#line 9625 "Commands.c"
+ if (_tmp7_ == NULL) {
+#line 10369 "Commands.c"
+ Event* _tmp8_;
+ Event* _tmp9_;
Event* _tmp10_;
Event* _tmp11_;
- Event* _tmp12_;
- gint _tmp13_;
- Event* _tmp14_;
- gboolean _tmp15_;
#line 1043 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = event;
+ _tmp8_ = event;
#line 1043 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _g_object_ref0 (_tmp10_);
+ _tmp9_ = _g_object_ref0 (_tmp8_);
#line 1043 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (master_event);
#line 1043 "/home/jens/Source/shotwell/src/Commands.vala"
- master_event = _tmp11_;
+ master_event = _tmp9_;
#line 1044 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = master_event;
+ _tmp10_ = master_event;
#line 1044 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_EVENT_SOURCE, EventSource));
-#line 1044 "/home/jens/Source/shotwell/src/Commands.vala"
- unnamed_evt_src_count = _tmp13_;
-#line 1045 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = event;
+ unnamed_evt_src_count = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_EVENT_SOURCE, EventSource));
#line 1045 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = event_has_name (_tmp14_);
+ _tmp11_ = event;
#line 1045 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp15_) {
-#line 9652 "Commands.c"
- Event* _tmp16_;
- gint _tmp17_;
-#line 1046 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = master_event;
+ if (event_has_name (_tmp11_)) {
+#line 10390 "Commands.c"
+ Event* _tmp12_;
#line 1046 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_EVENT_SOURCE, EventSource));
+ _tmp12_ = master_event;
#line 1046 "/home/jens/Source/shotwell/src/Commands.vala"
- named_evt_src_count = _tmp17_;
-#line 9661 "Commands.c"
+ named_evt_src_count = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_EVENT_SOURCE, EventSource));
+#line 10396 "Commands.c"
}
} else {
- Event* _tmp18_;
- gboolean _tmp19_;
-#line 1050 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = event;
+ Event* _tmp13_;
#line 1050 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = event_has_name (_tmp18_);
+ _tmp13_ = event;
#line 1050 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp19_) {
-#line 9672 "Commands.c"
- Event* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
-#line 1051 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = event;
+ if (event_has_name (_tmp13_)) {
+#line 10404 "Commands.c"
+ Event* _tmp14_;
+ gint _tmp15_;
#line 1051 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_EVENT_SOURCE, EventSource));
+ _tmp14_ = event;
#line 1051 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = named_evt_src_count;
+ _tmp15_ = named_evt_src_count;
#line 1051 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp21_ > _tmp22_) {
-#line 9684 "Commands.c"
- Event* _tmp23_;
- gint _tmp24_;
- Event* _tmp25_;
- Event* _tmp26_;
-#line 1052 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = event;
+ if (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_EVENT_SOURCE, EventSource)) > _tmp15_) {
+#line 10413 "Commands.c"
+ Event* _tmp16_;
+ Event* _tmp17_;
+ Event* _tmp18_;
#line 1052 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_EVENT_SOURCE, EventSource));
+ _tmp16_ = event;
#line 1052 "/home/jens/Source/shotwell/src/Commands.vala"
- named_evt_src_count = _tmp24_;
+ named_evt_src_count = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_EVENT_SOURCE, EventSource));
#line 1053 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = event;
+ _tmp17_ = event;
#line 1053 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = _g_object_ref0 (_tmp25_);
+ _tmp18_ = _g_object_ref0 (_tmp17_);
#line 1053 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (master_event);
#line 1053 "/home/jens/Source/shotwell/src/Commands.vala"
- master_event = _tmp26_;
-#line 9703 "Commands.c"
+ master_event = _tmp18_;
+#line 10429 "Commands.c"
}
} else {
- gint _tmp27_;
+ gint _tmp19_;
#line 1055 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = named_evt_src_count;
+ _tmp19_ = named_evt_src_count;
#line 1055 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp27_ == 0) {
-#line 9711 "Commands.c"
- Event* _tmp28_;
- gint _tmp29_;
- gint _tmp30_;
-#line 1059 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = event;
+ if (_tmp19_ == 0) {
+#line 10437 "Commands.c"
+ Event* _tmp20_;
+ gint _tmp21_;
#line 1059 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_EVENT_SOURCE, EventSource));
+ _tmp20_ = event;
#line 1059 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = unnamed_evt_src_count;
+ _tmp21_ = unnamed_evt_src_count;
#line 1059 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp29_ > _tmp30_) {
-#line 9723 "Commands.c"
- Event* _tmp31_;
- gint _tmp32_;
- Event* _tmp33_;
- Event* _tmp34_;
-#line 1060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = event;
+ if (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_EVENT_SOURCE, EventSource)) > _tmp21_) {
+#line 10446 "Commands.c"
+ Event* _tmp22_;
+ Event* _tmp23_;
+ Event* _tmp24_;
#line 1060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_EVENT_SOURCE, EventSource));
+ _tmp22_ = event;
#line 1060 "/home/jens/Source/shotwell/src/Commands.vala"
- unnamed_evt_src_count = _tmp32_;
+ unnamed_evt_src_count = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_EVENT_SOURCE, EventSource));
#line 1061 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = event;
+ _tmp23_ = event;
#line 1061 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = _g_object_ref0 (_tmp33_);
+ _tmp24_ = _g_object_ref0 (_tmp23_);
#line 1061 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (master_event);
#line 1061 "/home/jens/Source/shotwell/src/Commands.vala"
- master_event = _tmp34_;
-#line 9742 "Commands.c"
+ master_event = _tmp24_;
+#line 10462 "Commands.c"
}
}
}
}
{
GeeIterator* _media_source_it = NULL;
- Event* _tmp35_;
- GeeCollection* _tmp36_;
- GeeCollection* _tmp37_;
- GeeIterator* _tmp38_;
- GeeIterator* _tmp39_;
+ Event* _tmp25_;
+ GeeCollection* _tmp26_;
+ GeeCollection* _tmp27_;
+ GeeIterator* _tmp28_;
+ GeeIterator* _tmp29_;
#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = event;
+ _tmp25_ = event;
#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = event_source_get_media (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_EVENT_SOURCE, EventSource));
+ _tmp26_ = event_source_get_media (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_EVENT_SOURCE, EventSource));
#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = _tmp36_;
+ _tmp27_ = _tmp26_;
#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp28_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = _tmp38_;
+ _tmp29_ = _tmp28_;
#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp37_);
+ _g_object_unref0 (_tmp27_);
#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _media_source_it = _tmp39_;
+ _media_source_it = _tmp29_;
#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 9770 "Commands.c"
- GeeIterator* _tmp40_;
- gboolean _tmp41_;
+#line 10490 "Commands.c"
+ GeeIterator* _tmp30_;
MediaSource* media_source = NULL;
- GeeIterator* _tmp42_;
- gpointer _tmp43_;
- GeeArrayList* _tmp44_;
- MediaSource* _tmp45_;
- ThumbnailView* _tmp46_;
- ThumbnailView* _tmp47_;
-#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = _media_source_it;
+ GeeIterator* _tmp31_;
+ gpointer _tmp32_;
+ GeeArrayList* _tmp33_;
+ MediaSource* _tmp34_;
+ ThumbnailView* _tmp35_;
+ ThumbnailView* _tmp36_;
#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = gee_iterator_next (_tmp40_);
+ _tmp30_ = _media_source_it;
#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp41_) {
+ if (!gee_iterator_next (_tmp30_)) {
#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 9788 "Commands.c"
+#line 10505 "Commands.c"
}
#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = _media_source_it;
+ _tmp31_ = _media_source_it;
#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = gee_iterator_get (_tmp42_);
+ _tmp32_ = gee_iterator_get (_tmp31_);
#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source = (MediaSource*) _tmp43_;
+ media_source = (MediaSource*) _tmp32_;
#line 1069 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = media_thumbs;
+ _tmp33_ = media_thumbs;
#line 1069 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = media_source;
+ _tmp34_ = media_source;
#line 1069 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp46_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
+ _tmp35_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
#line 1069 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp47_ = _tmp46_;
+ _tmp36_ = _tmp35_;
#line 1069 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp47_);
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp36_);
#line 1069 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp47_);
+ _g_object_unref0 (_tmp36_);
#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (media_source);
-#line 9810 "Commands.c"
+#line 10527 "Commands.c"
}
#line 1068 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_media_source_it);
-#line 9814 "Commands.c"
+#line 10531 "Commands.c"
}
#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (event);
#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (view);
-#line 9820 "Commands.c"
+#line 10537 "Commands.c"
}
#line 1036 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_view_it);
-#line 9824 "Commands.c"
+#line 10541 "Commands.c"
}
#line 1072 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp48_ = master_event;
+ _tmp37_ = master_event;
#line 1072 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp48_ != NULL, "master_event != null");
+ _vala_assert (_tmp37_ != NULL, "master_event != null");
#line 1073 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp49_ = media_thumbs;
+ _tmp38_ = media_thumbs;
#line 1073 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp50_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp39_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 1073 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp51_ = _tmp50_;
+ _tmp40_ = _tmp39_;
#line 1073 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp51_ > 0, "media_thumbs.size > 0");
+ _vala_assert (_tmp40_ > 0, "media_thumbs.size > 0");
#line 1075 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp52_ = master_event;
+ _tmp41_ = master_event;
#line 1075 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp53_ = media_thumbs;
+ _tmp42_ = media_thumbs;
#line 1075 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp54_ = move_photos_command_real_move_photos_command_new (_tmp52_, G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_ITERABLE, GeeIterable), _ ("Merging"), _ ("Unmerging"), RESOURCES_MERGE_LABEL, "");
+ _tmp43_ = move_photos_command_real_move_photos_command_new (_tmp41_, G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_ITERABLE, GeeIterable), _ ("Merging"), _ ("Unmerging"), RESOURCES_MERGE_LABEL, "");
#line 1075 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command);
#line 1075 "/home/jens/Source/shotwell/src/Commands.vala"
- G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command = _tmp54_;
+ G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command = _tmp43_;
#line 1024 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (media_thumbs);
#line 1024 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (master_event);
#line 1024 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 9854 "Commands.c"
+#line 10571 "Commands.c"
}
-MergeEventsCommand* merge_events_command_new (GeeIterable* iter) {
+MergeEventsCommand*
+merge_events_command_new (GeeIterable* iter)
+{
#line 1024 "/home/jens/Source/shotwell/src/Commands.vala"
return merge_events_command_construct (TYPE_MERGE_EVENTS_COMMAND, iter);
-#line 9861 "Commands.c"
+#line 10580 "Commands.c"
}
-static void merge_events_command_class_init (MergeEventsCommandClass * klass) {
+static void
+merge_events_command_class_init (MergeEventsCommandClass * klass)
+{
#line 1023 "/home/jens/Source/shotwell/src/Commands.vala"
merge_events_command_parent_class = g_type_class_peek_parent (klass);
-#line 9868 "Commands.c"
+#line 10589 "Commands.c"
}
-static void merge_events_command_instance_init (MergeEventsCommand * self) {
+static void
+merge_events_command_instance_init (MergeEventsCommand * self)
+{
}
-GType merge_events_command_get_type (void) {
+GType
+merge_events_command_get_type (void)
+{
static volatile gsize merge_events_command_type_id__volatile = 0;
if (g_once_init_enter (&merge_events_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (MergeEventsCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) merge_events_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MergeEventsCommand), 0, (GInstanceInitFunc) merge_events_command_instance_init, NULL };
@@ -9884,48 +10609,55 @@ GType merge_events_command_get_type (void) {
}
-static void _duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender, DataSource* source, gpointer self) {
+static void
+_duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
+ DataSource* source,
+ gpointer self)
+{
#line 1092 "/home/jens/Source/shotwell/src/Commands.vala"
duplicate_multiple_photos_command_on_photo_destroyed ((DuplicateMultiplePhotosCommand*) self, source);
-#line 9891 "Commands.c"
+#line 10620 "Commands.c"
}
-DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_construct (GType object_type, GeeIterable* iter) {
+DuplicateMultiplePhotosCommand*
+duplicate_multiple_photos_command_construct (GType object_type,
+ GeeIterable* iter)
+{
DuplicateMultiplePhotosCommand * self = NULL;
- GeeIterable* _tmp0_;
- LibraryPhotoSourceCollection* _tmp1_;
+ LibraryPhotoSourceCollection* _tmp0_;
#line 1084 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
#line 1085 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = iter;
-#line 1085 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (DuplicateMultiplePhotosCommand*) multiple_data_source_command_construct (object_type, _tmp0_, _ ("Duplicating photos"), _ ("Removing duplicated photos"), RESOURCES_DUPLICATE_PHOTO_LABEL, RESOURCES_DUPLICATE_PHOTO_TOOLTIP);
+ self = (DuplicateMultiplePhotosCommand*) multiple_data_source_command_construct (object_type, iter, _ ("Duplicating photos"), _ ("Removing duplicated photos"), RESOURCES_DUPLICATE_PHOTO_LABEL, RESOURCES_DUPLICATE_PHOTO_TOOLTIP);
#line 1088 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = library_photo_global;
+ _tmp0_ = library_photo_global;
#line 1088 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed, self, 0);
#line 1084 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 9911 "Commands.c"
+#line 10640 "Commands.c"
}
-DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_new (GeeIterable* iter) {
+DuplicateMultiplePhotosCommand*
+duplicate_multiple_photos_command_new (GeeIterable* iter)
+{
#line 1084 "/home/jens/Source/shotwell/src/Commands.vala"
return duplicate_multiple_photos_command_construct (TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, iter);
-#line 9918 "Commands.c"
+#line 10649 "Commands.c"
}
-static void duplicate_multiple_photos_command_on_photo_destroyed (DuplicateMultiplePhotosCommand* self, DataSource* source) {
+static void
+duplicate_multiple_photos_command_on_photo_destroyed (DuplicateMultiplePhotosCommand* self,
+ DataSource* source)
+{
GeeHashMap* _tmp0_;
GeeCollection* _tmp1_;
GeeCollection* _tmp2_;
GeeCollection* _tmp3_;
- DataSource* _tmp4_;
- gboolean _tmp5_;
- gboolean _tmp6_;
+ gboolean _tmp4_;
#line 1095 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DUPLICATE_MULTIPLE_PHOTOS_COMMAND (self));
#line 1095 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -9939,32 +10671,30 @@ static void duplicate_multiple_photos_command_on_photo_destroyed (DuplicateMulti
#line 1097 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp3_ = _tmp2_;
#line 1097 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = source;
-#line 1097 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_collection_contains (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 1097 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
+ _tmp4_ = gee_collection_contains (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto));
#line 1097 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tmp3_);
#line 1097 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp6_) {
-#line 9952 "Commands.c"
- CommandManager* _tmp7_;
- CommandManager* _tmp8_;
+ if (_tmp4_) {
+#line 10680 "Commands.c"
+ CommandManager* _tmp5_;
+ CommandManager* _tmp6_;
#line 1098 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
+ _tmp5_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
#line 1098 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_;
+ _tmp6_ = _tmp5_;
#line 1098 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp8_);
+ command_manager_reset (_tmp6_);
#line 1098 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp8_);
-#line 9963 "Commands.c"
+ _command_manager_unref0 (_tmp6_);
+#line 10691 "Commands.c"
}
}
-static void duplicate_multiple_photos_command_real_execute (Command* base) {
+static void
+duplicate_multiple_photos_command_real_execute (Command* base)
+{
DuplicateMultiplePhotosCommand * self;
GeeHashMap* _tmp0_;
gint _tmp1_;
@@ -9982,7 +10712,7 @@ static void duplicate_multiple_photos_command_real_execute (Command* base) {
_tmp1_ = self->priv->failed;
#line 1107 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp1_ > 0) {
-#line 9986 "Commands.c"
+#line 10716 "Commands.c"
gchar* error_string = NULL;
gint _tmp2_;
gint _tmp3_;
@@ -10002,89 +10732,89 @@ static void duplicate_multiple_photos_command_real_execute (Command* base) {
app_window_error_message (_tmp5_, NULL);
#line 1107 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (error_string);
-#line 10006 "Commands.c"
+#line 10736 "Commands.c"
}
}
-static void duplicate_multiple_photos_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source) {
+static void
+duplicate_multiple_photos_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source)
+{
DuplicateMultiplePhotosCommand * self;
LibraryPhoto* photo = NULL;
- DataSource* _tmp0_;
- LibraryPhoto* _tmp1_;
+ LibraryPhoto* _tmp0_;
GError * _inner_error_ = NULL;
#line 1114 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand);
#line 1114 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 1115 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 1115 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
+ _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto));
#line 1115 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp1_;
-#line 10027 "Commands.c"
+ photo = _tmp0_;
+#line 10757 "Commands.c"
{
LibraryPhoto* dupe = NULL;
- LibraryPhoto* _tmp2_;
- GeeHashMap* _tmp3_;
+ LibraryPhoto* _tmp1_;
+ GeeHashMap* _tmp2_;
#line 1118 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = library_photo_duplicate (photo, &_inner_error_);
+ _tmp1_ = library_photo_duplicate (photo, &_inner_error_);
#line 1118 "/home/jens/Source/shotwell/src/Commands.vala"
- dupe = _tmp2_;
+ dupe = _tmp1_;
#line 1118 "/home/jens/Source/shotwell/src/Commands.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10038 "Commands.c"
+#line 10768 "Commands.c"
goto __catch466_g_error;
}
#line 1119 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->dupes;
+ _tmp2_ = self->priv->dupes;
#line 1119 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo, dupe);
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo, dupe);
#line 1117 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (dupe);
-#line 10047 "Commands.c"
+#line 10777 "Commands.c"
}
goto __finally466;
__catch466_g_error:
{
GError* err = NULL;
+ GFile* _tmp3_;
GFile* _tmp4_;
- GFile* _tmp5_;
+ gchar* _tmp5_;
gchar* _tmp6_;
- gchar* _tmp7_;
- GError* _tmp8_;
- const gchar* _tmp9_;
- gint _tmp10_;
+ GError* _tmp7_;
+ const gchar* _tmp8_;
+ gint _tmp9_;
#line 1117 "/home/jens/Source/shotwell/src/Commands.vala"
err = _inner_error_;
#line 1117 "/home/jens/Source/shotwell/src/Commands.vala"
_inner_error_ = NULL;
#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource));
+ _tmp3_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource));
#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
+ _tmp4_ = _tmp3_;
#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = g_file_get_path (_tmp5_);
+ _tmp5_ = g_file_get_path (_tmp4_);
#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _tmp6_;
+ _tmp6_ = _tmp5_;
#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = err;
+ _tmp7_ = err;
#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _tmp8_->message;
+ _tmp8_ = _tmp7_->message;
#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- g_critical ("Commands.vala:1121: Unable to duplicate file %s: %s", _tmp7_, _tmp9_);
+ g_critical ("Commands.vala:1121: Unable to duplicate file %s: %s", _tmp6_, _tmp8_);
#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp7_);
+ _g_free0 (_tmp6_);
#line 1121 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp5_);
+ _g_object_unref0 (_tmp4_);
#line 1122 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = self->priv->failed;
+ _tmp9_ = self->priv->failed;
#line 1122 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->failed = _tmp10_ + 1;
+ self->priv->failed = _tmp9_ + 1;
#line 1117 "/home/jens/Source/shotwell/src/Commands.vala"
_g_error_free0 (err);
-#line 10088 "Commands.c"
+#line 10818 "Commands.c"
}
__finally466:
#line 1117 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -10097,15 +10827,17 @@ static void duplicate_multiple_photos_command_real_execute_on_source (MultipleDa
g_clear_error (&_inner_error_);
#line 1117 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 10101 "Commands.c"
+#line 10831 "Commands.c"
}
#line 1114 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (photo);
-#line 10105 "Commands.c"
+#line 10835 "Commands.c"
}
-static void duplicate_multiple_photos_command_real_undo (Command* base) {
+static void
+duplicate_multiple_photos_command_real_undo (Command* base)
+{
DuplicateMultiplePhotosCommand * self;
LibraryPhotoSourceCollection* _tmp0_;
guint _tmp1_;
@@ -10131,62 +10863,64 @@ static void duplicate_multiple_photos_command_real_undo (Command* base) {
_tmp3_ = library_photo_global;
#line 1137 "/home/jens/Source/shotwell/src/Commands.vala"
g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed, self, 0);
-#line 10135 "Commands.c"
+#line 10867 "Commands.c"
}
-static void duplicate_multiple_photos_command_real_undo_on_source (MultipleDataSourceCommand* base, DataSource* source) {
+static void
+duplicate_multiple_photos_command_real_undo_on_source (MultipleDataSourceCommand* base,
+ DataSource* source)
+{
DuplicateMultiplePhotosCommand * self;
LibraryPhoto* photo = NULL;
- DataSource* _tmp0_;
- LibraryPhoto* _tmp1_;
+ LibraryPhoto* _tmp0_;
Marker* marker = NULL;
- LibraryPhotoSourceCollection* _tmp2_;
- GeeHashMap* _tmp3_;
- gpointer _tmp4_;
- LibraryPhoto* _tmp5_;
+ LibraryPhotoSourceCollection* _tmp1_;
+ GeeHashMap* _tmp2_;
+ gpointer _tmp3_;
+ LibraryPhoto* _tmp4_;
+ Marker* _tmp5_;
Marker* _tmp6_;
- Marker* _tmp7_;
- LibraryPhotoSourceCollection* _tmp8_;
+ LibraryPhotoSourceCollection* _tmp7_;
#line 1140 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand);
#line 1140 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 1141 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
+ _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto));
#line 1141 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 1141 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp1_;
+ photo = _tmp0_;
#line 1143 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = library_photo_global;
+ _tmp1_ = library_photo_global;
#line 1143 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->dupes;
+ _tmp2_ = self->priv->dupes;
#line 1143 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
+ _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo);
#line 1143 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = (LibraryPhoto*) _tmp4_;
+ _tmp4_ = (LibraryPhoto*) _tmp3_;
#line 1143 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_OBJECT, DataObject));
+ _tmp5_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject));
#line 1143 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _tmp6_;
+ _tmp6_ = _tmp5_;
#line 1143 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp5_);
+ _g_object_unref0 (_tmp4_);
#line 1143 "/home/jens/Source/shotwell/src/Commands.vala"
- marker = _tmp7_;
+ marker = _tmp6_;
#line 1144 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = library_photo_global;
+ _tmp7_ = library_photo_global;
#line 1144 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_SOURCE_COLLECTION, SourceCollection), marker, TRUE, NULL, NULL, NULL);
+ source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_SOURCE_COLLECTION, SourceCollection), marker, TRUE, NULL, NULL, NULL);
#line 1140 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (marker);
#line 1140 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (photo);
-#line 10186 "Commands.c"
+#line 10918 "Commands.c"
}
-static void duplicate_multiple_photos_command_class_init (DuplicateMultiplePhotosCommandClass * klass) {
+static void
+duplicate_multiple_photos_command_class_init (DuplicateMultiplePhotosCommandClass * klass)
+{
#line 1080 "/home/jens/Source/shotwell/src/Commands.vala"
duplicate_multiple_photos_command_parent_class = g_type_class_peek_parent (klass);
#line 1080 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -10201,11 +10935,13 @@ static void duplicate_multiple_photos_command_class_init (DuplicateMultiplePhoto
((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) duplicate_multiple_photos_command_real_undo_on_source;
#line 1080 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = duplicate_multiple_photos_command_finalize;
-#line 10205 "Commands.c"
+#line 10939 "Commands.c"
}
-static void duplicate_multiple_photos_command_instance_init (DuplicateMultiplePhotosCommand * self) {
+static void
+duplicate_multiple_photos_command_instance_init (DuplicateMultiplePhotosCommand * self)
+{
GeeHashMap* _tmp0_;
#line 1080 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = DUPLICATE_MULTIPLE_PHOTOS_COMMAND_GET_PRIVATE (self);
@@ -10215,11 +10951,13 @@ static void duplicate_multiple_photos_command_instance_init (DuplicateMultiplePh
self->priv->dupes = _tmp0_;
#line 1082 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->failed = 0;
-#line 10219 "Commands.c"
+#line 10955 "Commands.c"
}
-static void duplicate_multiple_photos_command_finalize (GObject * obj) {
+static void
+duplicate_multiple_photos_command_finalize (GObject * obj)
+{
DuplicateMultiplePhotosCommand * self;
LibraryPhotoSourceCollection* _tmp0_;
guint _tmp1_;
@@ -10235,11 +10973,13 @@ static void duplicate_multiple_photos_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->dupes);
#line 1080 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (duplicate_multiple_photos_command_parent_class)->finalize (obj);
-#line 10239 "Commands.c"
+#line 10977 "Commands.c"
}
-GType duplicate_multiple_photos_command_get_type (void) {
+GType
+duplicate_multiple_photos_command_get_type (void)
+{
static volatile gsize duplicate_multiple_photos_command_type_id__volatile = 0;
if (g_once_init_enter (&duplicate_multiple_photos_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (DuplicateMultiplePhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) duplicate_multiple_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DuplicateMultiplePhotosCommand), 0, (GInstanceInitFunc) duplicate_multiple_photos_command_instance_init, NULL };
@@ -10251,101 +10991,87 @@ GType duplicate_multiple_photos_command_get_type (void) {
}
-SetRatingSingleCommand* set_rating_single_command_construct (GType object_type, DataSource* source, Rating rating) {
+SetRatingSingleCommand*
+set_rating_single_command_construct (GType object_type,
+ DataSource* source,
+ Rating rating)
+{
SetRatingSingleCommand * self = NULL;
- DataSource* _tmp0_;
- Rating _tmp1_;
- const gchar* _tmp2_;
- Rating _tmp3_;
- DataSource* _tmp4_;
- Rating _tmp5_;
+ const gchar* _tmp0_;
#line 1154 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
#line 1155 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 1155 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = rating;
-#line 1155 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = resources_rating_label (_tmp1_);
+ _tmp0_ = resources_rating_label (rating);
#line 1155 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SetRatingSingleCommand*) single_data_source_command_construct (object_type, _tmp0_, _tmp2_, "");
+ self = (SetRatingSingleCommand*) single_data_source_command_construct (object_type, source, _tmp0_, "");
#line 1156 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->set_direct = TRUE;
#line 1157 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = rating;
-#line 1157 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_rating = _tmp3_;
-#line 1159 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = source;
-#line 1159 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource));
+ self->priv->new_rating = rating;
#line 1159 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->last_rating = _tmp5_;
+ self->priv->last_rating = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource));
#line 1154 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 10287 "Commands.c"
+#line 11016 "Commands.c"
}
-SetRatingSingleCommand* set_rating_single_command_new (DataSource* source, Rating rating) {
+SetRatingSingleCommand*
+set_rating_single_command_new (DataSource* source,
+ Rating rating)
+{
#line 1154 "/home/jens/Source/shotwell/src/Commands.vala"
return set_rating_single_command_construct (TYPE_SET_RATING_SINGLE_COMMAND, source, rating);
-#line 10294 "Commands.c"
+#line 11026 "Commands.c"
}
-SetRatingSingleCommand* set_rating_single_command_construct_inc_dec (GType object_type, DataSource* source, gboolean is_incrementing) {
+SetRatingSingleCommand*
+set_rating_single_command_construct_inc_dec (GType object_type,
+ DataSource* source,
+ gboolean is_incrementing)
+{
SetRatingSingleCommand * self = NULL;
const gchar* _tmp0_ = NULL;
- gboolean _tmp1_;
- DataSource* _tmp2_;
- gboolean _tmp3_;
- DataSource* _tmp4_;
- Rating _tmp5_;
#line 1162 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
#line 1163 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = is_incrementing;
-#line 1163 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_) {
+ if (is_incrementing) {
#line 1163 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp0_ = RESOURCES_INCREASE_RATING_LABEL;
-#line 10314 "Commands.c"
+#line 11043 "Commands.c"
} else {
#line 1164 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp0_ = RESOURCES_DECREASE_RATING_LABEL;
-#line 10318 "Commands.c"
+#line 11047 "Commands.c"
}
#line 1163 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = source;
-#line 1163 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SetRatingSingleCommand*) single_data_source_command_construct (object_type, _tmp2_, _tmp0_, "");
+ self = (SetRatingSingleCommand*) single_data_source_command_construct (object_type, source, _tmp0_, "");
#line 1165 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->set_direct = FALSE;
#line 1166 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = is_incrementing;
-#line 1166 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->incrementing = _tmp3_;
+ self->priv->incrementing = is_incrementing;
#line 1168 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = source;
-#line 1168 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1168 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->last_rating = _tmp5_;
+ self->priv->last_rating = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource));
#line 1162 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 10338 "Commands.c"
+#line 11059 "Commands.c"
}
-SetRatingSingleCommand* set_rating_single_command_new_inc_dec (DataSource* source, gboolean is_incrementing) {
+SetRatingSingleCommand*
+set_rating_single_command_new_inc_dec (DataSource* source,
+ gboolean is_incrementing)
+{
#line 1162 "/home/jens/Source/shotwell/src/Commands.vala"
return set_rating_single_command_construct_inc_dec (TYPE_SET_RATING_SINGLE_COMMAND, source, is_incrementing);
-#line 10345 "Commands.c"
+#line 11069 "Commands.c"
}
-static void set_rating_single_command_real_execute (Command* base) {
+static void
+set_rating_single_command_real_execute (Command* base)
+{
SetRatingSingleCommand * self;
gboolean _tmp0_;
#line 1171 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -10354,7 +11080,7 @@ static void set_rating_single_command_real_execute (Command* base) {
_tmp0_ = self->priv->set_direct;
#line 1172 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp0_) {
-#line 10358 "Commands.c"
+#line 11084 "Commands.c"
DataSource* _tmp1_;
Rating _tmp2_;
#line 1173 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -10363,33 +11089,35 @@ static void set_rating_single_command_real_execute (Command* base) {
_tmp2_ = self->priv->new_rating;
#line 1173 "/home/jens/Source/shotwell/src/Commands.vala"
media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource), _tmp2_);
-#line 10367 "Commands.c"
+#line 11093 "Commands.c"
} else {
gboolean _tmp3_;
#line 1175 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp3_ = self->priv->incrementing;
#line 1175 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp3_) {
-#line 10374 "Commands.c"
+#line 11100 "Commands.c"
DataSource* _tmp4_;
#line 1176 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
#line 1176 "/home/jens/Source/shotwell/src/Commands.vala"
media_source_increase_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 10380 "Commands.c"
+#line 11106 "Commands.c"
} else {
DataSource* _tmp5_;
#line 1178 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source;
#line 1178 "/home/jens/Source/shotwell/src/Commands.vala"
media_source_decrease_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 10387 "Commands.c"
+#line 11113 "Commands.c"
}
}
}
-static void set_rating_single_command_real_undo (Command* base) {
+static void
+set_rating_single_command_real_undo (Command* base)
+{
SetRatingSingleCommand * self;
DataSource* _tmp0_;
Rating _tmp1_;
@@ -10401,11 +11129,13 @@ static void set_rating_single_command_real_undo (Command* base) {
_tmp1_ = self->priv->last_rating;
#line 1183 "/home/jens/Source/shotwell/src/Commands.vala"
media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_);
-#line 10405 "Commands.c"
+#line 11133 "Commands.c"
}
-static void set_rating_single_command_class_init (SetRatingSingleCommandClass * klass) {
+static void
+set_rating_single_command_class_init (SetRatingSingleCommandClass * klass)
+{
#line 1148 "/home/jens/Source/shotwell/src/Commands.vala"
set_rating_single_command_parent_class = g_type_class_peek_parent (klass);
#line 1148 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -10416,28 +11146,34 @@ static void set_rating_single_command_class_init (SetRatingSingleCommandClass *
((CommandClass *) klass)->undo = (void (*) (Command *)) set_rating_single_command_real_undo;
#line 1148 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = set_rating_single_command_finalize;
-#line 10420 "Commands.c"
+#line 11150 "Commands.c"
}
-static void set_rating_single_command_instance_init (SetRatingSingleCommand * self) {
+static void
+set_rating_single_command_instance_init (SetRatingSingleCommand * self)
+{
#line 1148 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = SET_RATING_SINGLE_COMMAND_GET_PRIVATE (self);
-#line 10427 "Commands.c"
+#line 11159 "Commands.c"
}
-static void set_rating_single_command_finalize (GObject * obj) {
+static void
+set_rating_single_command_finalize (GObject * obj)
+{
SetRatingSingleCommand * self;
#line 1148 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommand);
#line 1148 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (set_rating_single_command_parent_class)->finalize (obj);
-#line 10437 "Commands.c"
+#line 11171 "Commands.c"
}
-GType set_rating_single_command_get_type (void) {
+GType
+set_rating_single_command_get_type (void)
+{
static volatile gsize set_rating_single_command_type_id__volatile = 0;
if (g_once_init_enter (&set_rating_single_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (SetRatingSingleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_rating_single_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetRatingSingleCommand), 0, (GInstanceInitFunc) set_rating_single_command_instance_init, NULL };
@@ -10449,134 +11185,118 @@ GType set_rating_single_command_get_type (void) {
}
-SetRatingCommand* set_rating_command_construct (GType object_type, GeeIterable* iter, Rating rating) {
+SetRatingCommand*
+set_rating_command_construct (GType object_type,
+ GeeIterable* iter,
+ Rating rating)
+{
SetRatingCommand * self = NULL;
- GeeIterable* _tmp0_;
- Rating _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- Rating _tmp4_;
- const gchar* _tmp5_;
- Rating _tmp6_;
- GeeIterable* _tmp7_;
+ gchar* _tmp0_;
+ gchar* _tmp1_;
+ const gchar* _tmp2_;
#line 1194 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
#line 1195 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = iter;
-#line 1195 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = rating;
+ _tmp0_ = resources_rating_progress (rating);
#line 1195 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = resources_rating_progress (_tmp1_);
-#line 1195 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
-#line 1195 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = rating;
+ _tmp1_ = _tmp0_;
#line 1195 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = resources_rating_label (_tmp4_);
+ _tmp2_ = resources_rating_label (rating);
#line 1195 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SetRatingCommand*) multiple_data_source_command_construct (object_type, _tmp0_, _tmp3_, _ ("Restoring previous rating"), _tmp5_, "");
+ self = (SetRatingCommand*) multiple_data_source_command_construct (object_type, iter, _tmp1_, _ ("Restoring previous rating"), _tmp2_, "");
#line 1195 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp3_);
+ _g_free0 (_tmp1_);
#line 1197 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->set_direct = TRUE;
#line 1198 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = rating;
-#line 1198 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_rating = _tmp6_;
-#line 1200 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = iter;
+ self->priv->new_rating = rating;
#line 1200 "/home/jens/Source/shotwell/src/Commands.vala"
- set_rating_command_save_source_states (self, _tmp7_);
+ set_rating_command_save_source_states (self, iter);
#line 1194 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 10493 "Commands.c"
+#line 11218 "Commands.c"
}
-SetRatingCommand* set_rating_command_new (GeeIterable* iter, Rating rating) {
+SetRatingCommand*
+set_rating_command_new (GeeIterable* iter,
+ Rating rating)
+{
#line 1194 "/home/jens/Source/shotwell/src/Commands.vala"
return set_rating_command_construct (TYPE_SET_RATING_COMMAND, iter, rating);
-#line 10500 "Commands.c"
+#line 11228 "Commands.c"
}
-SetRatingCommand* set_rating_command_construct_inc_dec (GType object_type, GeeIterable* iter, gboolean is_incrementing) {
+SetRatingCommand*
+set_rating_command_construct_inc_dec (GType object_type,
+ GeeIterable* iter,
+ gboolean is_incrementing)
+{
SetRatingCommand * self = NULL;
const gchar* _tmp0_ = NULL;
- gboolean _tmp1_;
+ const gchar* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
- gboolean _tmp3_;
- const gchar* _tmp4_ = NULL;
- gboolean _tmp5_;
- GeeIterable* _tmp6_;
- gboolean _tmp7_;
- GeeIterable* _tmp8_;
#line 1203 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
#line 1205 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = is_incrementing;
-#line 1205 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_) {
+ if (is_incrementing) {
#line 1205 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp0_ = _ ("Increasing ratings");
-#line 10523 "Commands.c"
+#line 11247 "Commands.c"
} else {
#line 1205 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp0_ = _ ("Decreasing ratings");
-#line 10527 "Commands.c"
+#line 11251 "Commands.c"
}
#line 1206 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = is_incrementing;
+ if (is_incrementing) {
#line 1206 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_) {
-#line 1206 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _ ("Decreasing ratings");
-#line 10535 "Commands.c"
+ _tmp1_ = _ ("Decreasing ratings");
+#line 11257 "Commands.c"
} else {
#line 1206 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _ ("Increasing ratings");
-#line 10539 "Commands.c"
+ _tmp1_ = _ ("Increasing ratings");
+#line 11261 "Commands.c"
}
#line 1207 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = is_incrementing;
-#line 1207 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp5_) {
+ if (is_incrementing) {
#line 1207 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = RESOURCES_INCREASE_RATING_LABEL;
-#line 10547 "Commands.c"
+ _tmp2_ = RESOURCES_INCREASE_RATING_LABEL;
+#line 11267 "Commands.c"
} else {
#line 1207 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = RESOURCES_DECREASE_RATING_LABEL;
-#line 10551 "Commands.c"
+ _tmp2_ = RESOURCES_DECREASE_RATING_LABEL;
+#line 11271 "Commands.c"
}
#line 1204 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = iter;
-#line 1204 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SetRatingCommand*) multiple_data_source_command_construct (object_type, _tmp6_, _tmp0_, _tmp2_, _tmp4_, "");
+ self = (SetRatingCommand*) multiple_data_source_command_construct (object_type, iter, _tmp0_, _tmp1_, _tmp2_, "");
#line 1209 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->set_direct = FALSE;
#line 1210 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = is_incrementing;
-#line 1210 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->incrementing = _tmp7_;
-#line 1212 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = iter;
+ self->priv->incrementing = is_incrementing;
#line 1212 "/home/jens/Source/shotwell/src/Commands.vala"
- set_rating_command_save_source_states (self, _tmp8_);
+ set_rating_command_save_source_states (self, iter);
#line 1203 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 10569 "Commands.c"
+#line 11283 "Commands.c"
}
-SetRatingCommand* set_rating_command_new_inc_dec (GeeIterable* iter, gboolean is_incrementing) {
+SetRatingCommand*
+set_rating_command_new_inc_dec (GeeIterable* iter,
+ gboolean is_incrementing)
+{
#line 1203 "/home/jens/Source/shotwell/src/Commands.vala"
return set_rating_command_construct_inc_dec (TYPE_SET_RATING_COMMAND, iter, is_incrementing);
-#line 10576 "Commands.c"
+#line 11293 "Commands.c"
}
-static void set_rating_command_save_source_states (SetRatingCommand* self, GeeIterable* iter) {
+static void
+set_rating_command_save_source_states (SetRatingCommand* self,
+ GeeIterable* iter)
+{
GeeHashMap* _tmp0_;
#line 1215 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_SET_RATING_COMMAND (self));
@@ -10588,78 +11308,71 @@ static void set_rating_command_save_source_states (SetRatingCommand* self, GeeIt
_g_object_unref0 (self->priv->last_rating_map);
#line 1216 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->last_rating_map = _tmp0_;
-#line 10592 "Commands.c"
+#line 11312 "Commands.c"
{
GeeIterator* _view_it = NULL;
- GeeIterable* _tmp1_;
- GeeIterator* _tmp2_;
-#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = iter;
+ GeeIterator* _tmp1_;
#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = gee_iterable_iterator (_tmp1_);
+ _tmp1_ = gee_iterable_iterator (iter);
#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- _view_it = _tmp2_;
+ _view_it = _tmp1_;
#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 10605 "Commands.c"
- GeeIterator* _tmp3_;
- gboolean _tmp4_;
+#line 11322 "Commands.c"
+ GeeIterator* _tmp2_;
DataView* view = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
DataSource* source = NULL;
- DataView* _tmp7_;
+ DataView* _tmp5_;
+ DataSource* _tmp6_;
+ GeeHashMap* _tmp7_;
DataSource* _tmp8_;
- GeeHashMap* _tmp9_;
- DataSource* _tmp10_;
- DataSource* _tmp11_;
- Rating _tmp12_;
-#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _view_it;
+ DataSource* _tmp9_;
#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_iterator_next (_tmp3_);
+ _tmp2_ = _view_it;
#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp4_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 10626 "Commands.c"
+#line 11339 "Commands.c"
}
#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _view_it;
+ _tmp3_ = _view_it;
#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
- view = (DataView*) _tmp6_;
+ view = (DataView*) _tmp4_;
#line 1219 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = view;
+ _tmp5_ = view;
#line 1219 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = data_view_get_source (_tmp7_);
+ _tmp6_ = data_view_get_source (_tmp5_);
#line 1219 "/home/jens/Source/shotwell/src/Commands.vala"
- source = _tmp8_;
+ source = _tmp6_;
#line 1220 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->priv->last_rating_map;
+ _tmp7_ = self->priv->last_rating_map;
#line 1220 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = source;
-#line 1220 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = source;
+ _tmp8_ = source;
#line 1220 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_MEDIA_SOURCE, MediaSource));
+ _tmp9_ = source;
#line 1220 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp10_, (gpointer) ((gintptr) _tmp12_));
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_, (gpointer) ((gintptr) media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_SOURCE, MediaSource))));
#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (view);
-#line 10654 "Commands.c"
+#line 11365 "Commands.c"
}
#line 1218 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_view_it);
-#line 10658 "Commands.c"
+#line 11369 "Commands.c"
}
}
-static void set_rating_command_real_execute (Command* base) {
+static void
+set_rating_command_real_execute (Command* base)
+{
SetRatingCommand * self;
#line 1224 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RATING_COMMAND, SetRatingCommand);
@@ -10667,11 +11380,13 @@ static void set_rating_command_real_execute (Command* base) {
self->priv->action_count = 0;
#line 1226 "/home/jens/Source/shotwell/src/Commands.vala"
COMMAND_CLASS (set_rating_command_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command));
-#line 10671 "Commands.c"
+#line 11384 "Commands.c"
}
-static void set_rating_command_real_undo (Command* base) {
+static void
+set_rating_command_real_undo (Command* base)
+{
SetRatingCommand * self;
#line 1229 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RATING_COMMAND, SetRatingCommand);
@@ -10679,11 +11394,14 @@ static void set_rating_command_real_undo (Command* base) {
self->priv->action_count = 0;
#line 1231 "/home/jens/Source/shotwell/src/Commands.vala"
COMMAND_CLASS (set_rating_command_parent_class)->undo (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command));
-#line 10683 "Commands.c"
+#line 11398 "Commands.c"
}
-static void set_rating_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source) {
+static void
+set_rating_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source)
+{
SetRatingCommand * self;
gboolean _tmp0_;
#line 1234 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -10694,66 +11412,55 @@ static void set_rating_command_real_execute_on_source (MultipleDataSourceCommand
_tmp0_ = self->priv->set_direct;
#line 1235 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp0_) {
-#line 10698 "Commands.c"
- DataSource* _tmp1_;
- Rating _tmp2_;
-#line 1236 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = source;
+#line 11416 "Commands.c"
+ Rating _tmp1_;
#line 1236 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->new_rating;
+ _tmp1_ = self->priv->new_rating;
#line 1236 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource), _tmp2_);
-#line 10707 "Commands.c"
+ media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_);
+#line 11422 "Commands.c"
} else {
- gboolean _tmp3_;
+ gboolean _tmp2_;
#line 1238 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->incrementing;
+ _tmp2_ = self->priv->incrementing;
#line 1238 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_) {
-#line 10714 "Commands.c"
- DataSource* _tmp4_;
+ if (_tmp2_) {
#line 1239 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = source;
-#line 1239 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_increase_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 10720 "Commands.c"
+ media_source_increase_rating (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource));
+#line 11431 "Commands.c"
} else {
- DataSource* _tmp5_;
-#line 1241 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = source;
#line 1241 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_decrease_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 10727 "Commands.c"
+ media_source_decrease_rating (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource));
+#line 11435 "Commands.c"
}
}
}
-static void set_rating_command_real_undo_on_source (MultipleDataSourceCommand* base, DataSource* source) {
+static void
+set_rating_command_real_undo_on_source (MultipleDataSourceCommand* base,
+ DataSource* source)
+{
SetRatingCommand * self;
- DataSource* _tmp0_;
- GeeHashMap* _tmp1_;
- DataSource* _tmp2_;
- gpointer _tmp3_;
+ GeeHashMap* _tmp0_;
+ gpointer _tmp1_;
#line 1245 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RATING_COMMAND, SetRatingCommand);
#line 1245 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 1246 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 1246 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->last_rating_map;
+ _tmp0_ = self->priv->last_rating_map;
#line 1246 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = source;
-#line 1246 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp2_);
+ _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), source);
#line 1246 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), (Rating) ((gintptr) _tmp3_));
-#line 10753 "Commands.c"
+ media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), (Rating) ((gintptr) _tmp1_));
+#line 11458 "Commands.c"
}
-static void set_rating_command_class_init (SetRatingCommandClass * klass) {
+static void
+set_rating_command_class_init (SetRatingCommandClass * klass)
+{
#line 1187 "/home/jens/Source/shotwell/src/Commands.vala"
set_rating_command_parent_class = g_type_class_peek_parent (klass);
#line 1187 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -10768,20 +11475,24 @@ static void set_rating_command_class_init (SetRatingCommandClass * klass) {
((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) set_rating_command_real_undo_on_source;
#line 1187 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = set_rating_command_finalize;
-#line 10772 "Commands.c"
+#line 11479 "Commands.c"
}
-static void set_rating_command_instance_init (SetRatingCommand * self) {
+static void
+set_rating_command_instance_init (SetRatingCommand * self)
+{
#line 1187 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = SET_RATING_COMMAND_GET_PRIVATE (self);
#line 1192 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->action_count = 0;
-#line 10781 "Commands.c"
+#line 11490 "Commands.c"
}
-static void set_rating_command_finalize (GObject * obj) {
+static void
+set_rating_command_finalize (GObject * obj)
+{
SetRatingCommand * self;
#line 1187 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SET_RATING_COMMAND, SetRatingCommand);
@@ -10789,11 +11500,13 @@ static void set_rating_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->last_rating_map);
#line 1187 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (set_rating_command_parent_class)->finalize (obj);
-#line 10793 "Commands.c"
+#line 11504 "Commands.c"
}
-GType set_rating_command_get_type (void) {
+GType
+set_rating_command_get_type (void)
+{
static volatile gsize set_rating_command_type_id__volatile = 0;
if (g_once_init_enter (&set_rating_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (SetRatingCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_rating_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetRatingCommand), 0, (GInstanceInitFunc) set_rating_command_instance_init, NULL };
@@ -10805,39 +11518,40 @@ GType set_rating_command_get_type (void) {
}
-SetRawDeveloperCommand* set_raw_developer_command_construct (GType object_type, GeeIterable* iter, RawDeveloper developer) {
+SetRawDeveloperCommand*
+set_raw_developer_command_construct (GType object_type,
+ GeeIterable* iter,
+ RawDeveloper developer)
+{
SetRawDeveloperCommand * self = NULL;
- GeeIterable* _tmp0_;
- RawDeveloper _tmp1_;
- GeeIterable* _tmp2_;
#line 1255 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
#line 1256 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = iter;
-#line 1256 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (SetRawDeveloperCommand*) multiple_data_source_command_construct (object_type, _tmp0_, _ ("Setting RAW developer"), _ ("Restoring previous RAW developer"), _ ("Set Developer"), "");
-#line 1258 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = developer;
+ self = (SetRawDeveloperCommand*) multiple_data_source_command_construct (object_type, iter, _ ("Setting RAW developer"), _ ("Restoring previous RAW developer"), _ ("Set Developer"), "");
#line 1258 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_developer = _tmp1_;
-#line 1259 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = iter;
+ self->priv->new_developer = developer;
#line 1259 "/home/jens/Source/shotwell/src/Commands.vala"
- set_raw_developer_command_save_source_states (self, _tmp2_);
+ set_raw_developer_command_save_source_states (self, iter);
#line 1255 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 10830 "Commands.c"
+#line 11538 "Commands.c"
}
-SetRawDeveloperCommand* set_raw_developer_command_new (GeeIterable* iter, RawDeveloper developer) {
+SetRawDeveloperCommand*
+set_raw_developer_command_new (GeeIterable* iter,
+ RawDeveloper developer)
+{
#line 1255 "/home/jens/Source/shotwell/src/Commands.vala"
return set_raw_developer_command_construct (TYPE_SET_RAW_DEVELOPER_COMMAND, iter, developer);
-#line 10837 "Commands.c"
+#line 11548 "Commands.c"
}
-static void set_raw_developer_command_save_source_states (SetRawDeveloperCommand* self, GeeIterable* iter) {
+static void
+set_raw_developer_command_save_source_states (SetRawDeveloperCommand* self,
+ GeeIterable* iter)
+{
GeeHashMap* _tmp0_;
GeeHashMap* _tmp1_;
#line 1262 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -10856,309 +11570,287 @@ static void set_raw_developer_command_save_source_states (SetRawDeveloperCommand
_g_object_unref0 (self->priv->last_transformation_map);
#line 1264 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->last_transformation_map = _tmp1_;
-#line 10860 "Commands.c"
+#line 11574 "Commands.c"
{
GeeIterator* _view_it = NULL;
- GeeIterable* _tmp2_;
- GeeIterator* _tmp3_;
-#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = iter;
+ GeeIterator* _tmp2_;
#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterable_iterator (_tmp2_);
+ _tmp2_ = gee_iterable_iterator (iter);
#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- _view_it = _tmp3_;
+ _view_it = _tmp2_;
#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 10873 "Commands.c"
- GeeIterator* _tmp4_;
- gboolean _tmp5_;
+#line 11584 "Commands.c"
+ GeeIterator* _tmp3_;
DataView* view = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
+ GeeIterator* _tmp4_;
+ gpointer _tmp5_;
Photo* photo = NULL;
- DataView* _tmp8_;
- DataSource* _tmp9_;
- Photo* _tmp10_;
- Photo* _tmp11_;
- gboolean _tmp12_;
-#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _view_it;
+ DataView* _tmp6_;
+ DataSource* _tmp7_;
+ Photo* _tmp8_;
+ Photo* _tmp9_;
#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_next (_tmp4_);
+ _tmp3_ = _view_it;
#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp5_) {
+ if (!gee_iterator_next (_tmp3_)) {
#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 10893 "Commands.c"
+#line 11600 "Commands.c"
}
#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _view_it;
+ _tmp4_ = _view_it;
#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
+ _tmp5_ = gee_iterator_get (_tmp4_);
#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
- view = (DataView*) _tmp7_;
+ view = (DataView*) _tmp5_;
#line 1267 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = view;
+ _tmp6_ = view;
#line 1267 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = data_view_get_source (_tmp8_);
+ _tmp7_ = data_view_get_source (_tmp6_);
#line 1267 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_PHOTO) ? ((Photo*) _tmp9_) : NULL;
+ _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_PHOTO) ? ((Photo*) _tmp7_) : NULL;
#line 1267 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp10_ == NULL) {
+ if (_tmp8_ == NULL) {
#line 1267 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp9_);
-#line 10911 "Commands.c"
+ _g_object_unref0 (_tmp7_);
+#line 11618 "Commands.c"
}
#line 1267 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp10_;
-#line 1268 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = photo;
+ photo = _tmp8_;
#line 1268 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = set_raw_developer_command_is_raw_photo (self, _tmp11_);
+ _tmp9_ = photo;
#line 1268 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp12_) {
-#line 10921 "Commands.c"
+ if (set_raw_developer_command_is_raw_photo (self, _tmp9_)) {
+#line 11626 "Commands.c"
+ GeeHashMap* _tmp10_;
+ Photo* _tmp11_;
+ Photo* _tmp12_;
GeeHashMap* _tmp13_;
Photo* _tmp14_;
Photo* _tmp15_;
- RawDeveloper _tmp16_;
- GeeHashMap* _tmp17_;
- Photo* _tmp18_;
- Photo* _tmp19_;
- PhotoTransformationState* _tmp20_;
- PhotoTransformationState* _tmp21_;
+ PhotoTransformationState* _tmp16_;
+ PhotoTransformationState* _tmp17_;
#line 1269 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = self->priv->last_developer_map;
+ _tmp10_ = self->priv->last_developer_map;
#line 1269 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = photo;
+ _tmp11_ = photo;
#line 1269 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = photo;
+ _tmp12_ = photo;
#line 1269 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = photo_get_raw_developer (_tmp15_);
-#line 1269 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp14_, (gpointer) ((gintptr) _tmp16_));
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp11_, (gpointer) ((gintptr) photo_get_raw_developer (_tmp12_)));
#line 1270 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = self->priv->last_transformation_map;
+ _tmp13_ = self->priv->last_transformation_map;
#line 1270 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = photo;
+ _tmp14_ = photo;
#line 1270 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = photo;
+ _tmp15_ = photo;
#line 1270 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = photo_save_transformation_state (_tmp19_);
+ _tmp16_ = photo_save_transformation_state (_tmp15_);
#line 1270 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = _tmp20_;
+ _tmp17_ = _tmp16_;
#line 1270 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp18_, _tmp21_);
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp14_, _tmp17_);
#line 1270 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp21_);
-#line 10955 "Commands.c"
+ _g_object_unref0 (_tmp17_);
+#line 11657 "Commands.c"
}
#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (photo);
#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (view);
-#line 10961 "Commands.c"
+#line 11663 "Commands.c"
}
#line 1266 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_view_it);
-#line 10965 "Commands.c"
+#line 11667 "Commands.c"
}
}
-static void set_raw_developer_command_real_execute (Command* base) {
+static void
+set_raw_developer_command_real_execute (Command* base)
+{
SetRawDeveloperCommand * self;
#line 1275 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand);
#line 1276 "/home/jens/Source/shotwell/src/Commands.vala"
COMMAND_CLASS (set_raw_developer_command_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command));
-#line 10976 "Commands.c"
+#line 11680 "Commands.c"
}
-static void set_raw_developer_command_real_undo (Command* base) {
+static void
+set_raw_developer_command_real_undo (Command* base)
+{
SetRawDeveloperCommand * self;
#line 1279 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand);
#line 1280 "/home/jens/Source/shotwell/src/Commands.vala"
COMMAND_CLASS (set_raw_developer_command_parent_class)->undo (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command));
-#line 10986 "Commands.c"
+#line 11692 "Commands.c"
}
-static void set_raw_developer_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source) {
+static void
+set_raw_developer_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source)
+{
SetRawDeveloperCommand * self;
Photo* photo = NULL;
- DataSource* _tmp0_;
+ Photo* _tmp0_;
Photo* _tmp1_;
- Photo* _tmp2_;
- gboolean _tmp3_;
#line 1283 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand);
#line 1283 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 1284 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
+ _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO) ? ((Photo*) source) : NULL);
#line 1284 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_PHOTO) ? ((Photo*) _tmp0_) : NULL);
-#line 1284 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp1_;
+ photo = _tmp0_;
#line 1285 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = photo;
-#line 1285 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = set_raw_developer_command_is_raw_photo (self, _tmp2_);
+ _tmp1_ = photo;
#line 1285 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_) {
-#line 11013 "Commands.c"
- gboolean _tmp4_ = FALSE;
- RawDeveloper _tmp5_;
+ if (set_raw_developer_command_is_raw_photo (self, _tmp1_)) {
+#line 11716 "Commands.c"
+ gboolean _tmp2_ = FALSE;
+ RawDeveloper _tmp3_;
#line 1286 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->new_developer;
+ _tmp3_ = self->priv->new_developer;
#line 1286 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp5_ == RAW_DEVELOPER_CAMERA) {
-#line 11020 "Commands.c"
- Photo* _tmp6_;
- gboolean _tmp7_;
-#line 1286 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = photo;
+ if (_tmp3_ == RAW_DEVELOPER_CAMERA) {
+#line 11723 "Commands.c"
+ Photo* _tmp4_;
#line 1286 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = photo_is_raw_developer_available (_tmp6_, RAW_DEVELOPER_CAMERA);
+ _tmp4_ = photo;
#line 1286 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = !_tmp7_;
-#line 11029 "Commands.c"
+ _tmp2_ = !photo_is_raw_developer_available (_tmp4_, RAW_DEVELOPER_CAMERA);
+#line 11729 "Commands.c"
} else {
#line 1286 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = FALSE;
-#line 11033 "Commands.c"
+ _tmp2_ = FALSE;
+#line 11733 "Commands.c"
}
#line 1286 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp4_) {
-#line 11037 "Commands.c"
- Photo* _tmp8_;
+ if (_tmp2_) {
+#line 11737 "Commands.c"
+ Photo* _tmp5_;
#line 1287 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = photo;
+ _tmp5_ = photo;
#line 1287 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_raw_developer (_tmp8_, RAW_DEVELOPER_EMBEDDED, TRUE);
-#line 11043 "Commands.c"
+ photo_set_raw_developer (_tmp5_, RAW_DEVELOPER_EMBEDDED, TRUE);
+#line 11743 "Commands.c"
} else {
- Photo* _tmp9_;
- RawDeveloper _tmp10_;
+ Photo* _tmp6_;
+ RawDeveloper _tmp7_;
#line 1289 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = photo;
+ _tmp6_ = photo;
#line 1289 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = self->priv->new_developer;
+ _tmp7_ = self->priv->new_developer;
#line 1289 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_raw_developer (_tmp9_, _tmp10_, TRUE);
-#line 11053 "Commands.c"
+ photo_set_raw_developer (_tmp6_, _tmp7_, TRUE);
+#line 11753 "Commands.c"
}
}
#line 1283 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (photo);
-#line 11058 "Commands.c"
+#line 11758 "Commands.c"
}
-static void set_raw_developer_command_real_undo_on_source (MultipleDataSourceCommand* base, DataSource* source) {
+static void
+set_raw_developer_command_real_undo_on_source (MultipleDataSourceCommand* base,
+ DataSource* source)
+{
SetRawDeveloperCommand * self;
Photo* photo = NULL;
- DataSource* _tmp0_;
+ Photo* _tmp0_;
Photo* _tmp1_;
- Photo* _tmp2_;
- gboolean _tmp3_;
#line 1293 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand);
#line 1293 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 1294 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
+ _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO) ? ((Photo*) source) : NULL);
#line 1294 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_PHOTO) ? ((Photo*) _tmp0_) : NULL);
-#line 1294 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp1_;
+ photo = _tmp0_;
#line 1295 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = photo;
-#line 1295 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = set_raw_developer_command_is_raw_photo (self, _tmp2_);
+ _tmp1_ = photo;
#line 1295 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_) {
-#line 11085 "Commands.c"
+ if (set_raw_developer_command_is_raw_photo (self, _tmp1_)) {
+#line 11782 "Commands.c"
+ Photo* _tmp2_;
+ GeeHashMap* _tmp3_;
Photo* _tmp4_;
- GeeHashMap* _tmp5_;
+ gpointer _tmp5_;
Photo* _tmp6_;
- gpointer _tmp7_;
+ GeeHashMap* _tmp7_;
Photo* _tmp8_;
- GeeHashMap* _tmp9_;
- Photo* _tmp10_;
- gpointer _tmp11_;
- PhotoTransformationState* _tmp12_;
+ gpointer _tmp9_;
+ PhotoTransformationState* _tmp10_;
#line 1296 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = photo;
+ _tmp2_ = photo;
#line 1296 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->last_developer_map;
+ _tmp3_ = self->priv->last_developer_map;
#line 1296 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = photo;
+ _tmp4_ = photo;
#line 1296 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp6_);
+ _tmp5_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp4_);
#line 1296 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_raw_developer (_tmp4_, (RawDeveloper) ((gintptr) _tmp7_), TRUE);
+ photo_set_raw_developer (_tmp2_, (RawDeveloper) ((gintptr) _tmp5_), TRUE);
#line 1297 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = photo;
+ _tmp6_ = photo;
#line 1297 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->priv->last_transformation_map;
+ _tmp7_ = self->priv->last_transformation_map;
#line 1297 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = photo;
+ _tmp8_ = photo;
#line 1297 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp10_);
+ _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_);
#line 1297 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = (PhotoTransformationState*) _tmp11_;
+ _tmp10_ = (PhotoTransformationState*) _tmp9_;
#line 1297 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_load_transformation_state (_tmp8_, _tmp12_);
+ photo_load_transformation_state (_tmp6_, _tmp10_);
#line 1297 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp12_);
-#line 11119 "Commands.c"
+ _g_object_unref0 (_tmp10_);
+#line 11816 "Commands.c"
}
#line 1293 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (photo);
-#line 11123 "Commands.c"
+#line 11820 "Commands.c"
}
-static gboolean set_raw_developer_command_is_raw_photo (SetRawDeveloperCommand* self, Photo* photo) {
+static gboolean
+set_raw_developer_command_is_raw_photo (SetRawDeveloperCommand* self,
+ Photo* photo)
+{
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
- Photo* _tmp1_;
#line 1301 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_SET_RAW_DEVELOPER_COMMAND (self), FALSE);
#line 1301 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail ((photo == NULL) || IS_PHOTO (photo), FALSE);
#line 1302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = photo;
-#line 1302 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_ != NULL) {
-#line 11139 "Commands.c"
- Photo* _tmp2_;
- PhotoFileFormat _tmp3_;
-#line 1302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = photo;
-#line 1302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = photo_get_master_file_format (_tmp2_);
+ if (photo != NULL) {
#line 1302 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _tmp3_ == PHOTO_FILE_FORMAT_RAW;
-#line 11148 "Commands.c"
+ _tmp0_ = photo_get_master_file_format (photo) == PHOTO_FILE_FORMAT_RAW;
+#line 11838 "Commands.c"
} else {
#line 1302 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp0_ = FALSE;
-#line 11152 "Commands.c"
+#line 11842 "Commands.c"
}
#line 1302 "/home/jens/Source/shotwell/src/Commands.vala"
result = _tmp0_;
#line 1302 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 11158 "Commands.c"
+#line 11848 "Commands.c"
}
-static void set_raw_developer_command_class_init (SetRawDeveloperCommandClass * klass) {
+static void
+set_raw_developer_command_class_init (SetRawDeveloperCommandClass * klass)
+{
#line 1250 "/home/jens/Source/shotwell/src/Commands.vala"
set_raw_developer_command_parent_class = g_type_class_peek_parent (klass);
#line 1250 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -11173,18 +11865,22 @@ static void set_raw_developer_command_class_init (SetRawDeveloperCommandClass *
((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) set_raw_developer_command_real_undo_on_source;
#line 1250 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = set_raw_developer_command_finalize;
-#line 11177 "Commands.c"
+#line 11869 "Commands.c"
}
-static void set_raw_developer_command_instance_init (SetRawDeveloperCommand * self) {
+static void
+set_raw_developer_command_instance_init (SetRawDeveloperCommand * self)
+{
#line 1250 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = SET_RAW_DEVELOPER_COMMAND_GET_PRIVATE (self);
-#line 11184 "Commands.c"
+#line 11878 "Commands.c"
}
-static void set_raw_developer_command_finalize (GObject * obj) {
+static void
+set_raw_developer_command_finalize (GObject * obj)
+{
SetRawDeveloperCommand * self;
#line 1250 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand);
@@ -11194,11 +11890,13 @@ static void set_raw_developer_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->last_transformation_map);
#line 1250 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (set_raw_developer_command_parent_class)->finalize (obj);
-#line 11198 "Commands.c"
+#line 11894 "Commands.c"
}
-GType set_raw_developer_command_get_type (void) {
+GType
+set_raw_developer_command_get_type (void)
+{
static volatile gsize set_raw_developer_command_type_id__volatile = 0;
if (g_once_init_enter (&set_raw_developer_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (SetRawDeveloperCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_raw_developer_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetRawDeveloperCommand), 0, (GInstanceInitFunc) set_raw_developer_command_instance_init, NULL };
@@ -11210,60 +11908,58 @@ GType set_raw_developer_command_get_type (void) {
}
-AdjustDateTimePhotoCommand* adjust_date_time_photo_command_construct (GType object_type, Dateable* dateable, gint64 time_shift, gboolean modify_original) {
+AdjustDateTimePhotoCommand*
+adjust_date_time_photo_command_construct (GType object_type,
+ Dateable* dateable,
+ gint64 time_shift,
+ gboolean modify_original)
+{
AdjustDateTimePhotoCommand * self = NULL;
Dateable* _tmp0_;
- Dateable* _tmp1_;
- Dateable* _tmp2_;
- gint64 _tmp3_;
- gboolean _tmp4_;
#line 1312 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_DATEABLE (dateable), NULL);
#line 1313 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = dateable;
-#line 1313 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (AdjustDateTimePhotoCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_SOURCE, DataSource), RESOURCES_ADJUST_DATE_TIME_LABEL, "");
+ self = (AdjustDateTimePhotoCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (dateable, TYPE_DATA_SOURCE, DataSource), RESOURCES_ADJUST_DATE_TIME_LABEL, "");
#line 1315 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = dateable;
-#line 1315 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
+ _tmp0_ = _g_object_ref0 (dateable);
#line 1315 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->dateable);
#line 1315 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->dateable = _tmp2_;
-#line 1316 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = time_shift;
+ self->priv->dateable = _tmp0_;
#line 1316 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->time_shift = _tmp3_;
+ self->priv->time_shift = time_shift;
#line 1317 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = modify_original;
-#line 1317 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->modify_original = _tmp4_;
+ self->priv->modify_original = modify_original;
#line 1312 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 11245 "Commands.c"
+#line 11936 "Commands.c"
}
-AdjustDateTimePhotoCommand* adjust_date_time_photo_command_new (Dateable* dateable, gint64 time_shift, gboolean modify_original) {
+AdjustDateTimePhotoCommand*
+adjust_date_time_photo_command_new (Dateable* dateable,
+ gint64 time_shift,
+ gboolean modify_original)
+{
#line 1312 "/home/jens/Source/shotwell/src/Commands.vala"
return adjust_date_time_photo_command_construct (TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, dateable, time_shift, modify_original);
-#line 11252 "Commands.c"
+#line 11947 "Commands.c"
}
-static void adjust_date_time_photo_command_real_execute (Command* base) {
+static void
+adjust_date_time_photo_command_real_execute (Command* base)
+{
AdjustDateTimePhotoCommand * self;
Dateable* _tmp0_;
Dateable* _tmp1_;
- time_t _tmp2_;
- gint64 _tmp3_;
- Dateable* _tmp4_;
- Event* _tmp5_;
+ gint64 _tmp2_;
+ Dateable* _tmp3_;
+ Event* _tmp4_;
ViewCollection* all_events = NULL;
- ViewCollection* _tmp6_;
- Dateable* _tmp23_;
- ViewCollection* _tmp24_;
+ ViewCollection* _tmp5_;
+ Dateable* _tmp21_;
+ ViewCollection* _tmp22_;
#line 1320 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommand);
#line 1321 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -11271,132 +11967,128 @@ static void adjust_date_time_photo_command_real_execute (Command* base) {
#line 1321 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp1_ = self->priv->dateable;
#line 1321 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = dateable_get_exposure_time (_tmp1_);
+ _tmp2_ = self->priv->time_shift;
#line 1321 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->time_shift;
-#line 1321 "/home/jens/Source/shotwell/src/Commands.vala"
- adjust_date_time_photo_command_set_time (self, _tmp0_, _tmp2_ + ((time_t) _tmp3_));
+ adjust_date_time_photo_command_set_time (self, _tmp0_, dateable_get_exposure_time (_tmp1_) + ((time_t) _tmp2_));
#line 1323 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->dateable;
+ _tmp3_ = self->priv->dateable;
#line 1323 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = media_source_get_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource));
+ _tmp4_ = media_source_get_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource));
#line 1323 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->prev_event);
#line 1323 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->prev_event = _tmp5_;
+ self->priv->prev_event = _tmp4_;
#line 1325 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = view_collection_new ("tmp");
+ _tmp5_ = view_collection_new ("tmp");
#line 1325 "/home/jens/Source/shotwell/src/Commands.vala"
- all_events = _tmp6_;
-#line 11292 "Commands.c"
+ all_events = _tmp5_;
+#line 11986 "Commands.c"
{
GeeIterator* _dobj_it = NULL;
- EventSourceCollection* _tmp7_;
+ EventSourceCollection* _tmp6_;
+ GeeCollection* _tmp7_;
GeeCollection* _tmp8_;
- GeeCollection* _tmp9_;
+ GeeIterator* _tmp9_;
GeeIterator* _tmp10_;
- GeeIterator* _tmp11_;
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = event_global;
+ _tmp6_ = event_global;
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection));
+ _tmp7_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection));
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _tmp8_;
+ _tmp8_ = _tmp7_;
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
+ _tmp10_ = _tmp9_;
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp9_);
+ _g_object_unref0 (_tmp8_);
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _dobj_it = _tmp11_;
+ _dobj_it = _tmp10_;
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 11316 "Commands.c"
- GeeIterator* _tmp12_;
- gboolean _tmp13_;
+#line 12010 "Commands.c"
+ GeeIterator* _tmp11_;
DataObject* dobj = NULL;
- GeeIterator* _tmp14_;
- gpointer _tmp15_;
+ GeeIterator* _tmp12_;
+ gpointer _tmp13_;
Event* event = NULL;
- DataObject* _tmp16_;
- Event* _tmp17_;
- Event* _tmp18_;
+ DataObject* _tmp14_;
+ Event* _tmp15_;
+ Event* _tmp16_;
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _dobj_it;
-#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_iterator_next (_tmp12_);
+ _tmp11_ = _dobj_it;
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp13_) {
+ if (!gee_iterator_next (_tmp11_)) {
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 11334 "Commands.c"
+#line 12025 "Commands.c"
}
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _dobj_it;
+ _tmp12_ = _dobj_it;
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = gee_iterator_get (_tmp14_);
+ _tmp13_ = gee_iterator_get (_tmp12_);
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
- dobj = (DataObject*) _tmp15_;
+ dobj = (DataObject*) _tmp13_;
#line 1328 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = dobj;
+ _tmp14_ = dobj;
#line 1328 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, TYPE_EVENT) ? ((Event*) _tmp16_) : NULL);
+ _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, TYPE_EVENT) ? ((Event*) _tmp14_) : NULL);
#line 1328 "/home/jens/Source/shotwell/src/Commands.vala"
- event = _tmp17_;
+ event = _tmp15_;
#line 1329 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = event;
+ _tmp16_ = event;
#line 1329 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp18_ != NULL) {
-#line 11352 "Commands.c"
- ViewCollection* _tmp19_;
- Event* _tmp20_;
- EventView* _tmp21_;
- EventView* _tmp22_;
+ if (_tmp16_ != NULL) {
+#line 12043 "Commands.c"
+ ViewCollection* _tmp17_;
+ Event* _tmp18_;
+ EventView* _tmp19_;
+ EventView* _tmp20_;
#line 1330 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = all_events;
+ _tmp17_ = all_events;
#line 1330 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = event;
+ _tmp18_ = event;
#line 1330 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = event_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_EVENT_SOURCE, EventSource));
+ _tmp19_ = event_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_EVENT_SOURCE, EventSource));
#line 1330 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = _tmp21_;
+ _tmp20_ = _tmp19_;
#line 1330 "/home/jens/Source/shotwell/src/Commands.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_DATA_OBJECT, DataObject));
+ data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_OBJECT, DataObject));
#line 1330 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp22_);
-#line 11369 "Commands.c"
+ _g_object_unref0 (_tmp20_);
+#line 12060 "Commands.c"
}
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (event);
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (dobj);
-#line 11375 "Commands.c"
+#line 12066 "Commands.c"
}
#line 1327 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_dobj_it);
-#line 11379 "Commands.c"
+#line 12070 "Commands.c"
}
#line 1333 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = self->priv->dateable;
+ _tmp21_ = self->priv->dateable;
#line 1333 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = all_events;
+ _tmp22_ = all_events;
#line 1333 "/home/jens/Source/shotwell/src/Commands.vala"
- event_generate_single_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_MEDIA_SOURCE, MediaSource), _tmp24_, NULL);
+ event_generate_single_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_MEDIA_SOURCE, MediaSource), _tmp22_, NULL);
#line 1320 "/home/jens/Source/shotwell/src/Commands.vala"
_data_collection_unref0 (all_events);
-#line 11389 "Commands.c"
+#line 12080 "Commands.c"
}
-static void adjust_date_time_photo_command_real_undo (Command* base) {
+static void
+adjust_date_time_photo_command_real_undo (Command* base)
+{
AdjustDateTimePhotoCommand * self;
Dateable* _tmp0_;
Dateable* _tmp1_;
- time_t _tmp2_;
- gint64 _tmp3_;
- Dateable* _tmp4_;
- Event* _tmp5_;
+ gint64 _tmp2_;
+ Dateable* _tmp3_;
+ Event* _tmp4_;
#line 1336 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommand);
#line 1337 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -11404,22 +12096,24 @@ static void adjust_date_time_photo_command_real_undo (Command* base) {
#line 1337 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp1_ = self->priv->dateable;
#line 1337 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = dateable_get_exposure_time (_tmp1_);
+ _tmp2_ = self->priv->time_shift;
#line 1337 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->time_shift;
-#line 1337 "/home/jens/Source/shotwell/src/Commands.vala"
- adjust_date_time_photo_command_set_time (self, _tmp0_, _tmp2_ - ((time_t) _tmp3_));
+ adjust_date_time_photo_command_set_time (self, _tmp0_, dateable_get_exposure_time (_tmp1_) - ((time_t) _tmp2_));
#line 1339 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->dateable;
+ _tmp3_ = self->priv->dateable;
#line 1339 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->prev_event;
+ _tmp4_ = self->priv->prev_event;
#line 1339 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource), _tmp5_);
-#line 11419 "Commands.c"
+ media_source_set_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource), _tmp4_);
+#line 12109 "Commands.c"
}
-static void adjust_date_time_photo_command_set_time (AdjustDateTimePhotoCommand* self, Dateable* dateable, time_t exposure_time) {
+static void
+adjust_date_time_photo_command_set_time (AdjustDateTimePhotoCommand* self,
+ Dateable* dateable,
+ time_t exposure_time)
+{
gboolean _tmp0_ = FALSE;
gboolean _tmp1_;
GError * _inner_error_ = NULL;
@@ -11431,33 +12125,23 @@ static void adjust_date_time_photo_command_set_time (AdjustDateTimePhotoCommand*
_tmp1_ = self->priv->modify_original;
#line 1343 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp1_) {
-#line 11435 "Commands.c"
- Dateable* _tmp2_;
-#line 1343 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = dateable;
#line 1343 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_PHOTO);
-#line 11441 "Commands.c"
+ _tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (dateable, TYPE_PHOTO);
+#line 12131 "Commands.c"
} else {
#line 1343 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp0_ = FALSE;
-#line 11445 "Commands.c"
+#line 12135 "Commands.c"
}
#line 1343 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp0_) {
-#line 11449 "Commands.c"
+#line 12139 "Commands.c"
{
- Dateable* _tmp3_;
- time_t _tmp4_;
#line 1345 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = dateable;
-#line 1345 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = exposure_time;
-#line 1345 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_exposure_time_persistent (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PHOTO, Photo), _tmp4_, &_inner_error_);
+ photo_set_exposure_time_persistent (G_TYPE_CHECK_INSTANCE_CAST (dateable, TYPE_PHOTO, Photo), exposure_time, &_inner_error_);
#line 1345 "/home/jens/Source/shotwell/src/Commands.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 11461 "Commands.c"
+#line 12145 "Commands.c"
goto __catch467_g_error;
}
}
@@ -11473,7 +12157,7 @@ static void adjust_date_time_photo_command_set_time (AdjustDateTimePhotoCommand*
app_window_error_message (_ ("Original photo could not be adjusted."), NULL);
#line 1344 "/home/jens/Source/shotwell/src/Commands.vala"
_g_error_free0 (err);
-#line 11477 "Commands.c"
+#line 12161 "Commands.c"
}
__finally467:
#line 1344 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -11484,23 +12168,19 @@ static void adjust_date_time_photo_command_set_time (AdjustDateTimePhotoCommand*
g_clear_error (&_inner_error_);
#line 1344 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 11488 "Commands.c"
+#line 12172 "Commands.c"
}
} else {
- Dateable* _tmp5_;
- time_t _tmp6_;
#line 1350 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = dateable;
-#line 1350 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = exposure_time;
-#line 1350 "/home/jens/Source/shotwell/src/Commands.vala"
- dateable_set_exposure_time (_tmp5_, _tmp6_);
-#line 11499 "Commands.c"
+ dateable_set_exposure_time (dateable, exposure_time);
+#line 12177 "Commands.c"
}
}
-static void adjust_date_time_photo_command_class_init (AdjustDateTimePhotoCommandClass * klass) {
+static void
+adjust_date_time_photo_command_class_init (AdjustDateTimePhotoCommandClass * klass)
+{
#line 1306 "/home/jens/Source/shotwell/src/Commands.vala"
adjust_date_time_photo_command_parent_class = g_type_class_peek_parent (klass);
#line 1306 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -11511,18 +12191,22 @@ static void adjust_date_time_photo_command_class_init (AdjustDateTimePhotoComman
((CommandClass *) klass)->undo = (void (*) (Command *)) adjust_date_time_photo_command_real_undo;
#line 1306 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = adjust_date_time_photo_command_finalize;
-#line 11515 "Commands.c"
+#line 12195 "Commands.c"
}
-static void adjust_date_time_photo_command_instance_init (AdjustDateTimePhotoCommand * self) {
+static void
+adjust_date_time_photo_command_instance_init (AdjustDateTimePhotoCommand * self)
+{
#line 1306 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = ADJUST_DATE_TIME_PHOTO_COMMAND_GET_PRIVATE (self);
-#line 11522 "Commands.c"
+#line 12204 "Commands.c"
}
-static void adjust_date_time_photo_command_finalize (GObject * obj) {
+static void
+adjust_date_time_photo_command_finalize (GObject * obj)
+{
AdjustDateTimePhotoCommand * self;
#line 1306 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommand);
@@ -11532,11 +12216,13 @@ static void adjust_date_time_photo_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->prev_event);
#line 1306 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (adjust_date_time_photo_command_parent_class)->finalize (obj);
-#line 11536 "Commands.c"
+#line 12220 "Commands.c"
}
-GType adjust_date_time_photo_command_get_type (void) {
+GType
+adjust_date_time_photo_command_get_type (void)
+{
static volatile gsize adjust_date_time_photo_command_type_id__volatile = 0;
if (g_once_init_enter (&adjust_date_time_photo_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (AdjustDateTimePhotoCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) adjust_date_time_photo_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AdjustDateTimePhotoCommand), 0, (GInstanceInitFunc) adjust_date_time_photo_command_instance_init, NULL };
@@ -11548,7 +12234,9 @@ GType adjust_date_time_photo_command_get_type (void) {
}
-static time_t* _time_t_dup (time_t* self) {
+static time_t*
+_time_t_dup (time_t* self)
+{
time_t* dup;
#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
dup = g_new0 (time_t, 1);
@@ -11556,204 +12244,195 @@ static time_t* _time_t_dup (time_t* self) {
memcpy (dup, self, sizeof (time_t));
#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
return dup;
-#line 11560 "Commands.c"
+#line 12248 "Commands.c"
}
-static gpointer __time_t_dup0 (gpointer self) {
+static gpointer
+__time_t_dup0 (gpointer self)
+{
#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
return self ? _time_t_dup (self) : NULL;
-#line 11567 "Commands.c"
+#line 12257 "Commands.c"
}
-AdjustDateTimePhotosCommand* adjust_date_time_photos_command_construct (GType object_type, GeeIterable* iter, gint64 time_shift, gboolean keep_relativity, gboolean modify_originals) {
+AdjustDateTimePhotosCommand*
+adjust_date_time_photos_command_construct (GType object_type,
+ GeeIterable* iter,
+ gint64 time_shift,
+ gboolean keep_relativity,
+ gboolean modify_originals)
+{
AdjustDateTimePhotosCommand * self = NULL;
- GeeIterable* _tmp0_;
- gint64 _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_;
- GeeHashMap* _tmp4_;
- GeeHashMap* _tmp30_;
+ GeeHashMap* _tmp0_;
+ GeeHashMap* _tmp22_;
#line 1366 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL);
#line 1368 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = iter;
-#line 1368 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (AdjustDateTimePhotosCommand*) multiple_data_source_command_construct (object_type, _tmp0_, _ ("Adjusting Date and Time"), _ ("Undoing Date and Time Adjustment"), RESOURCES_ADJUST_DATE_TIME_LABEL, "");
-#line 1371 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = time_shift;
+ self = (AdjustDateTimePhotosCommand*) multiple_data_source_command_construct (object_type, iter, _ ("Adjusting Date and Time"), _ ("Undoing Date and Time Adjustment"), RESOURCES_ADJUST_DATE_TIME_LABEL, "");
#line 1371 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->time_shift = _tmp1_;
-#line 1372 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = keep_relativity;
+ self->priv->time_shift = time_shift;
#line 1372 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->keep_relativity = _tmp2_;
+ self->priv->keep_relativity = keep_relativity;
#line 1373 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = modify_originals;
-#line 1373 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->modify_originals = _tmp3_;
+ self->priv->modify_originals = modify_originals;
#line 1377 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_hash_map_new (TYPE_DATEABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_EVENT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+ _tmp0_ = gee_hash_map_new (TYPE_DATEABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_EVENT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 1377 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->prev_events);
#line 1377 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->prev_events = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_MAP, GeeMap);
-#line 11603 "Commands.c"
+ self->priv->prev_events = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MAP, GeeMap);
+#line 12287 "Commands.c"
{
GeeIterator* _view_it = NULL;
- GeeIterable* _tmp5_;
- GeeIterator* _tmp6_;
-#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = iter;
+ GeeIterator* _tmp1_;
#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = gee_iterable_iterator (_tmp5_);
+ _tmp1_ = gee_iterable_iterator (iter);
#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- _view_it = _tmp6_;
+ _view_it = _tmp1_;
#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 11616 "Commands.c"
- GeeIterator* _tmp7_;
- gboolean _tmp8_;
+#line 12297 "Commands.c"
+ GeeIterator* _tmp2_;
DataView* view = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
- GeeMap* _tmp11_;
- DataView* _tmp12_;
- DataSource* _tmp13_;
- Dateable* _tmp14_;
- Dateable* _tmp15_;
- DataView* _tmp16_;
- DataSource* _tmp17_;
- MediaSource* _tmp18_;
- MediaSource* _tmp19_;
- Event* _tmp20_;
- Event* _tmp21_;
- time_t* _tmp22_;
-#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _view_it;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
+ GeeMap* _tmp5_;
+ DataView* _tmp6_;
+ DataSource* _tmp7_;
+ Dateable* _tmp8_;
+ Dateable* _tmp9_;
+ DataView* _tmp10_;
+ DataSource* _tmp11_;
+ MediaSource* _tmp12_;
+ MediaSource* _tmp13_;
+ Event* _tmp14_;
+ Event* _tmp15_;
+ time_t* _tmp16_;
#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_iterator_next (_tmp7_);
+ _tmp2_ = _view_it;
#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp8_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 11642 "Commands.c"
+#line 12320 "Commands.c"
}
#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _view_it;
+ _tmp3_ = _view_it;
#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
- view = (DataView*) _tmp10_;
+ view = (DataView*) _tmp4_;
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = self->priv->prev_events;
+ _tmp5_ = self->priv->prev_events;
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = view;
+ _tmp6_ = view;
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = data_view_get_source (_tmp12_);
+ _tmp7_ = data_view_get_source (_tmp6_);
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, TYPE_DATEABLE) ? ((Dateable*) _tmp13_) : NULL;
+ _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_DATEABLE) ? ((Dateable*) _tmp7_) : NULL;
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp14_ == NULL) {
+ if (_tmp8_ == NULL) {
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp13_);
-#line 11662 "Commands.c"
+ _g_object_unref0 (_tmp7_);
+#line 12340 "Commands.c"
}
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _tmp14_;
+ _tmp9_ = _tmp8_;
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = view;
+ _tmp10_ = view;
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = data_view_get_source (_tmp16_);
+ _tmp11_ = data_view_get_source (_tmp10_);
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, TYPE_MEDIA_SOURCE) ? ((MediaSource*) _tmp17_) : NULL;
+ _tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_MEDIA_SOURCE) ? ((MediaSource*) _tmp11_) : NULL;
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp18_ == NULL) {
+ if (_tmp12_ == NULL) {
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp17_);
-#line 11676 "Commands.c"
+ _g_object_unref0 (_tmp11_);
+#line 12354 "Commands.c"
}
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _tmp18_;
+ _tmp13_ = _tmp12_;
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = media_source_get_event (_tmp19_);
+ _tmp14_ = media_source_get_event (_tmp13_);
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = _tmp20_;
+ _tmp15_ = _tmp14_;
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_map_set (_tmp11_, _tmp15_, _tmp21_);
+ gee_map_set (_tmp5_, _tmp9_, _tmp15_);
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp21_);
+ _g_object_unref0 (_tmp15_);
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp19_);
+ _g_object_unref0 (_tmp13_);
#line 1381 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp15_);
+ _g_object_unref0 (_tmp9_);
#line 1383 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = self->priv->new_time;
+ _tmp16_ = self->priv->new_time;
#line 1383 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp22_ == NULL) {
-#line 11696 "Commands.c"
- DataView* _tmp23_;
- DataSource* _tmp24_;
- Dateable* _tmp25_;
- time_t _tmp26_;
- gint64 _tmp27_;
- time_t _tmp28_;
- time_t* _tmp29_;
-#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = view;
-#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = data_view_get_source (_tmp23_);
+ if (_tmp16_ == NULL) {
+#line 12374 "Commands.c"
+ DataView* _tmp17_;
+ DataSource* _tmp18_;
+ Dateable* _tmp19_;
+ time_t _tmp20_;
+ time_t* _tmp21_;
#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATEABLE, Dateable);
+ _tmp17_ = view;
#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = dateable_get_exposure_time (_tmp25_);
+ _tmp18_ = data_view_get_source (_tmp17_);
#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = time_shift;
+ _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATEABLE, Dateable);
#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = _tmp26_ + ((time_t) _tmp27_);
+ _tmp20_ = dateable_get_exposure_time (_tmp19_) + ((time_t) time_shift);
#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = __time_t_dup0 (&_tmp28_);
+ _tmp21_ = __time_t_dup0 (&_tmp20_);
#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->new_time);
#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_time = _tmp29_;
+ self->priv->new_time = _tmp21_;
#line 1384 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp25_);
+ _g_object_unref0 (_tmp19_);
#line 1386 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (view);
#line 1386 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 11728 "Commands.c"
+#line 12400 "Commands.c"
}
#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (view);
-#line 11732 "Commands.c"
+#line 12404 "Commands.c"
}
#line 1380 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_view_it);
-#line 11736 "Commands.c"
+#line 12408 "Commands.c"
}
#line 1390 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = gee_hash_map_new (TYPE_DATEABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_INVALID, (GBoxedCopyFunc) _time_t_dup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+ _tmp22_ = gee_hash_map_new (TYPE_DATEABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_INVALID, (GBoxedCopyFunc) _time_t_dup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 1390 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->old_times);
#line 1390 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_times = _tmp30_;
+ self->priv->old_times = _tmp22_;
#line 1366 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 11746 "Commands.c"
+#line 12418 "Commands.c"
}
-AdjustDateTimePhotosCommand* adjust_date_time_photos_command_new (GeeIterable* iter, gint64 time_shift, gboolean keep_relativity, gboolean modify_originals) {
+AdjustDateTimePhotosCommand*
+adjust_date_time_photos_command_new (GeeIterable* iter,
+ gint64 time_shift,
+ gboolean keep_relativity,
+ gboolean modify_originals)
+{
#line 1366 "/home/jens/Source/shotwell/src/Commands.vala"
return adjust_date_time_photos_command_construct (TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, iter, time_shift, keep_relativity, modify_originals);
-#line 11753 "Commands.c"
+#line 12430 "Commands.c"
}
-static void adjust_date_time_photos_command_real_execute (Command* base) {
+static void
+adjust_date_time_photos_command_real_execute (Command* base)
+{
AdjustDateTimePhotosCommand * self;
GeeArrayList* _tmp0_;
GeeArrayList* _tmp1_;
@@ -11779,7 +12458,7 @@ static void adjust_date_time_photos_command_real_execute (Command* base) {
_tmp3_ = _tmp2_;
#line 1397 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp3_ > 0) {
-#line 11783 "Commands.c"
+#line 12462 "Commands.c"
GeeArrayList* _tmp4_;
GeeArrayList* _tmp5_;
gint _tmp6_;
@@ -11794,13 +12473,13 @@ static void adjust_date_time_photos_command_real_execute (Command* base) {
_tmp7_ = _tmp6_;
#line 1398 "/home/jens/Source/shotwell/src/Commands.vala"
multiple_object_error_dialog (_tmp4_, ngettext ("One original photo could not be adjusted.", "The following original photos could not be adjusted.", (gulong) _tmp7_), _ ("Time Adjustment Error"));
-#line 11798 "Commands.c"
+#line 12477 "Commands.c"
}
#line 1404 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp8_ = view_collection_new ("tmp");
#line 1404 "/home/jens/Source/shotwell/src/Commands.vala"
all_events = _tmp8_;
-#line 11804 "Commands.c"
+#line 12483 "Commands.c"
{
GeeIterator* _d_it = NULL;
GeeMap* _tmp9_;
@@ -11827,140 +12506,136 @@ static void adjust_date_time_photos_command_real_execute (Command* base) {
_d_it = _tmp14_;
#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 11831 "Commands.c"
+#line 12510 "Commands.c"
GeeIterator* _tmp15_;
- gboolean _tmp16_;
Dateable* d = NULL;
- GeeIterator* _tmp17_;
- gpointer _tmp18_;
- Dateable* _tmp35_;
- ViewCollection* _tmp36_;
+ GeeIterator* _tmp16_;
+ gpointer _tmp17_;
+ Dateable* _tmp33_;
+ ViewCollection* _tmp34_;
#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp15_ = _d_it;
#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = gee_iterator_next (_tmp15_);
-#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp16_) {
+ if (!gee_iterator_next (_tmp15_)) {
#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 11847 "Commands.c"
+#line 12523 "Commands.c"
}
#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _d_it;
+ _tmp16_ = _d_it;
#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = gee_iterator_get (_tmp17_);
+ _tmp17_ = gee_iterator_get (_tmp16_);
#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
- d = (Dateable*) _tmp18_;
-#line 11855 "Commands.c"
+ d = (Dateable*) _tmp17_;
+#line 12531 "Commands.c"
{
GeeIterator* _dobj_it = NULL;
- EventSourceCollection* _tmp19_;
+ EventSourceCollection* _tmp18_;
+ GeeCollection* _tmp19_;
GeeCollection* _tmp20_;
- GeeCollection* _tmp21_;
+ GeeIterator* _tmp21_;
GeeIterator* _tmp22_;
- GeeIterator* _tmp23_;
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = event_global;
+ _tmp18_ = event_global;
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_COLLECTION, DataCollection));
+ _tmp19_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_COLLECTION, DataCollection));
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = _tmp20_;
+ _tmp20_ = _tmp19_;
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp21_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _tmp22_;
+ _tmp22_ = _tmp21_;
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp21_);
+ _g_object_unref0 (_tmp20_);
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _dobj_it = _tmp23_;
+ _dobj_it = _tmp22_;
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 11879 "Commands.c"
- GeeIterator* _tmp24_;
- gboolean _tmp25_;
+#line 12555 "Commands.c"
+ GeeIterator* _tmp23_;
DataObject* dobj = NULL;
- GeeIterator* _tmp26_;
- gpointer _tmp27_;
+ GeeIterator* _tmp24_;
+ gpointer _tmp25_;
Event* event = NULL;
- DataObject* _tmp28_;
- Event* _tmp29_;
- Event* _tmp30_;
+ DataObject* _tmp26_;
+ Event* _tmp27_;
+ Event* _tmp28_;
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _dobj_it;
+ _tmp23_ = _dobj_it;
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = gee_iterator_next (_tmp24_);
-#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp25_) {
+ if (!gee_iterator_next (_tmp23_)) {
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 11897 "Commands.c"
+#line 12570 "Commands.c"
}
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = _dobj_it;
+ _tmp24_ = _dobj_it;
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = gee_iterator_get (_tmp26_);
+ _tmp25_ = gee_iterator_get (_tmp24_);
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
- dobj = (DataObject*) _tmp27_;
+ dobj = (DataObject*) _tmp25_;
#line 1408 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = dobj;
+ _tmp26_ = dobj;
#line 1408 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp28_, TYPE_EVENT) ? ((Event*) _tmp28_) : NULL);
+ _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp26_, TYPE_EVENT) ? ((Event*) _tmp26_) : NULL);
#line 1408 "/home/jens/Source/shotwell/src/Commands.vala"
- event = _tmp29_;
+ event = _tmp27_;
#line 1409 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = event;
+ _tmp28_ = event;
#line 1409 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp30_ != NULL) {
-#line 11915 "Commands.c"
- ViewCollection* _tmp31_;
- Event* _tmp32_;
- EventView* _tmp33_;
- EventView* _tmp34_;
+ if (_tmp28_ != NULL) {
+#line 12588 "Commands.c"
+ ViewCollection* _tmp29_;
+ Event* _tmp30_;
+ EventView* _tmp31_;
+ EventView* _tmp32_;
#line 1410 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = all_events;
+ _tmp29_ = all_events;
#line 1410 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = event;
+ _tmp30_ = event;
#line 1410 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = event_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_EVENT_SOURCE, EventSource));
+ _tmp31_ = event_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_EVENT_SOURCE, EventSource));
#line 1410 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = _tmp33_;
+ _tmp32_ = _tmp31_;
#line 1410 "/home/jens/Source/shotwell/src/Commands.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_DATA_OBJECT, DataObject));
+ data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_DATA_OBJECT, DataObject));
#line 1410 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp34_);
-#line 11932 "Commands.c"
+ _g_object_unref0 (_tmp32_);
+#line 12605 "Commands.c"
}
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (event);
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (dobj);
-#line 11938 "Commands.c"
+#line 12611 "Commands.c"
}
#line 1407 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_dobj_it);
-#line 11942 "Commands.c"
+#line 12615 "Commands.c"
}
#line 1413 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = d;
+ _tmp33_ = d;
#line 1413 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = all_events;
+ _tmp34_ = all_events;
#line 1413 "/home/jens/Source/shotwell/src/Commands.vala"
- event_generate_single_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_MEDIA_SOURCE, MediaSource), _tmp36_, NULL);
+ event_generate_single_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_MEDIA_SOURCE, MediaSource), _tmp34_, NULL);
#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (d);
-#line 11952 "Commands.c"
+#line 12625 "Commands.c"
}
#line 1406 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_d_it);
-#line 11956 "Commands.c"
+#line 12629 "Commands.c"
}
#line 1393 "/home/jens/Source/shotwell/src/Commands.vala"
_data_collection_unref0 (all_events);
-#line 11960 "Commands.c"
+#line 12633 "Commands.c"
}
-static void adjust_date_time_photos_command_real_undo (Command* base) {
+static void
+adjust_date_time_photos_command_real_undo (Command* base)
+{
AdjustDateTimePhotosCommand * self;
GeeArrayList* _tmp0_;
GeeArrayList* _tmp1_;
@@ -11984,7 +12659,7 @@ static void adjust_date_time_photos_command_real_undo (Command* base) {
_tmp3_ = _tmp2_;
#line 1421 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp3_ > 0) {
-#line 11988 "Commands.c"
+#line 12663 "Commands.c"
GeeArrayList* _tmp4_;
GeeArrayList* _tmp5_;
gint _tmp6_;
@@ -11999,12 +12674,16 @@ static void adjust_date_time_photos_command_real_undo (Command* base) {
_tmp7_ = _tmp6_;
#line 1422 "/home/jens/Source/shotwell/src/Commands.vala"
multiple_object_error_dialog (_tmp4_, ngettext ("Time adjustments could not be undone on the following photo file.", "Time adjustments could not be undone on the following photo files.", (gulong) _tmp7_), _ ("Time Adjustment Error"));
-#line 12003 "Commands.c"
+#line 12678 "Commands.c"
}
}
-static void adjust_date_time_photos_command_set_time (AdjustDateTimePhotosCommand* self, Dateable* dateable, time_t exposure_time) {
+static void
+adjust_date_time_photos_command_set_time (AdjustDateTimePhotosCommand* self,
+ Dateable* dateable,
+ time_t exposure_time)
+{
gboolean _tmp0_ = FALSE;
gboolean _tmp1_;
GError * _inner_error_ = NULL;
@@ -12016,33 +12695,23 @@ static void adjust_date_time_photos_command_set_time (AdjustDateTimePhotosComman
_tmp1_ = self->priv->modify_originals;
#line 1433 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp1_) {
-#line 12020 "Commands.c"
- Dateable* _tmp2_;
-#line 1433 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = dateable;
#line 1433 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_PHOTO);
-#line 12026 "Commands.c"
+ _tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (dateable, TYPE_PHOTO);
+#line 12701 "Commands.c"
} else {
#line 1433 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp0_ = FALSE;
-#line 12030 "Commands.c"
+#line 12705 "Commands.c"
}
#line 1433 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp0_) {
-#line 12034 "Commands.c"
+#line 12709 "Commands.c"
{
- Dateable* _tmp3_;
- time_t _tmp4_;
-#line 1435 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = dateable;
-#line 1435 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = exposure_time;
#line 1435 "/home/jens/Source/shotwell/src/Commands.vala"
- photo_set_exposure_time_persistent (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PHOTO, Photo), _tmp4_, &_inner_error_);
+ photo_set_exposure_time_persistent (G_TYPE_CHECK_INSTANCE_CAST (dateable, TYPE_PHOTO, Photo), exposure_time, &_inner_error_);
#line 1435 "/home/jens/Source/shotwell/src/Commands.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12046 "Commands.c"
+#line 12715 "Commands.c"
goto __catch468_g_error;
}
}
@@ -12050,21 +12719,18 @@ static void adjust_date_time_photos_command_set_time (AdjustDateTimePhotosComman
__catch468_g_error:
{
GError* err = NULL;
- GeeArrayList* _tmp5_;
- Dateable* _tmp6_;
+ GeeArrayList* _tmp2_;
#line 1434 "/home/jens/Source/shotwell/src/Commands.vala"
err = _inner_error_;
#line 1434 "/home/jens/Source/shotwell/src/Commands.vala"
_inner_error_ = NULL;
#line 1437 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->error_list;
-#line 1437 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = dateable;
+ _tmp2_ = self->priv->error_list;
#line 1437 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp6_);
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), dateable);
#line 1434 "/home/jens/Source/shotwell/src/Commands.vala"
_g_error_free0 (err);
-#line 12068 "Commands.c"
+#line 12734 "Commands.c"
}
__finally468:
#line 1434 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -12075,310 +12741,285 @@ static void adjust_date_time_photos_command_set_time (AdjustDateTimePhotosComman
g_clear_error (&_inner_error_);
#line 1434 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 12079 "Commands.c"
+#line 12745 "Commands.c"
}
} else {
- Dateable* _tmp7_;
- time_t _tmp8_;
#line 1442 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = dateable;
-#line 1442 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = exposure_time;
-#line 1442 "/home/jens/Source/shotwell/src/Commands.vala"
- dateable_set_exposure_time (_tmp7_, _tmp8_);
-#line 12090 "Commands.c"
+ dateable_set_exposure_time (dateable, exposure_time);
+#line 12750 "Commands.c"
}
}
-static void adjust_date_time_photos_command_real_execute_on_source (MultipleDataSourceCommand* base, DataSource* source) {
+static void
+adjust_date_time_photos_command_real_execute_on_source (MultipleDataSourceCommand* base,
+ DataSource* source)
+{
AdjustDateTimePhotosCommand * self;
Dateable* dateable = NULL;
- DataSource* _tmp0_;
- Dateable* _tmp1_;
- gboolean _tmp2_ = FALSE;
- gboolean _tmp3_;
+ Dateable* _tmp0_;
+ gboolean _tmp1_ = FALSE;
+ gboolean _tmp2_;
ViewCollection* all_events = NULL;
- ViewCollection* _tmp16_;
- Dateable* _tmp33_;
- ViewCollection* _tmp34_;
+ ViewCollection* _tmp13_;
+ Dateable* _tmp29_;
+ ViewCollection* _tmp30_;
#line 1446 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand);
#line 1446 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 1447 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 1447 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATEABLE, Dateable));
+ _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATEABLE, Dateable));
#line 1447 "/home/jens/Source/shotwell/src/Commands.vala"
- dateable = _tmp1_;
+ dateable = _tmp0_;
#line 1449 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->keep_relativity;
+ _tmp2_ = self->priv->keep_relativity;
#line 1449 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_) {
-#line 12120 "Commands.c"
- Dateable* _tmp4_;
- time_t _tmp5_;
-#line 1449 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = dateable;
+ if (_tmp2_) {
+#line 12780 "Commands.c"
+ Dateable* _tmp3_;
#line 1449 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = dateable_get_exposure_time (_tmp4_);
+ _tmp3_ = dateable;
#line 1449 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp5_ != ((time_t) 0);
-#line 12129 "Commands.c"
+ _tmp1_ = dateable_get_exposure_time (_tmp3_) != ((time_t) 0);
+#line 12786 "Commands.c"
} else {
#line 1449 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = FALSE;
-#line 12133 "Commands.c"
+ _tmp1_ = FALSE;
+#line 12790 "Commands.c"
}
#line 1449 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_) {
-#line 12137 "Commands.c"
- Dateable* _tmp6_;
- Dateable* _tmp7_;
- time_t _tmp8_;
- gint64 _tmp9_;
-#line 1450 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = dateable;
+ if (_tmp1_) {
+#line 12794 "Commands.c"
+ Dateable* _tmp4_;
+ Dateable* _tmp5_;
+ gint64 _tmp6_;
#line 1450 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = dateable;
+ _tmp4_ = dateable;
#line 1450 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = dateable_get_exposure_time (_tmp7_);
+ _tmp5_ = dateable;
#line 1450 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->priv->time_shift;
+ _tmp6_ = self->priv->time_shift;
#line 1450 "/home/jens/Source/shotwell/src/Commands.vala"
- adjust_date_time_photos_command_set_time (self, _tmp6_, _tmp8_ + ((time_t) _tmp9_));
-#line 12152 "Commands.c"
+ adjust_date_time_photos_command_set_time (self, _tmp4_, dateable_get_exposure_time (_tmp5_) + ((time_t) _tmp6_));
+#line 12806 "Commands.c"
} else {
- GeeHashMap* _tmp10_;
+ GeeHashMap* _tmp7_;
+ Dateable* _tmp8_;
+ Dateable* _tmp9_;
+ time_t _tmp10_;
Dateable* _tmp11_;
- Dateable* _tmp12_;
- time_t _tmp13_;
- Dateable* _tmp14_;
- time_t* _tmp15_;
+ time_t* _tmp12_;
#line 1452 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = self->priv->old_times;
+ _tmp7_ = self->priv->old_times;
#line 1452 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = dateable;
+ _tmp8_ = dateable;
#line 1452 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = dateable;
+ _tmp9_ = dateable;
#line 1452 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = dateable_get_exposure_time (_tmp12_);
+ _tmp10_ = dateable_get_exposure_time (_tmp9_);
#line 1452 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp11_, &_tmp13_);
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_, &_tmp10_);
#line 1453 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = dateable;
+ _tmp11_ = dateable;
#line 1453 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = self->priv->new_time;
+ _tmp12_ = self->priv->new_time;
#line 1453 "/home/jens/Source/shotwell/src/Commands.vala"
- adjust_date_time_photos_command_set_time (self, _tmp14_, *_tmp15_);
-#line 12176 "Commands.c"
+ adjust_date_time_photos_command_set_time (self, _tmp11_, *_tmp12_);
+#line 12830 "Commands.c"
}
#line 1456 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = view_collection_new ("tmp");
+ _tmp13_ = view_collection_new ("tmp");
#line 1456 "/home/jens/Source/shotwell/src/Commands.vala"
- all_events = _tmp16_;
-#line 12182 "Commands.c"
+ all_events = _tmp13_;
+#line 12836 "Commands.c"
{
GeeIterator* _dobj_it = NULL;
- EventSourceCollection* _tmp17_;
- GeeCollection* _tmp18_;
- GeeCollection* _tmp19_;
- GeeIterator* _tmp20_;
- GeeIterator* _tmp21_;
+ EventSourceCollection* _tmp14_;
+ GeeCollection* _tmp15_;
+ GeeCollection* _tmp16_;
+ GeeIterator* _tmp17_;
+ GeeIterator* _tmp18_;
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = event_global;
+ _tmp14_ = event_global;
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_COLLECTION, DataCollection));
+ _tmp15_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_COLLECTION, DataCollection));
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _tmp18_;
+ _tmp16_ = _tmp15_;
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp17_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = _tmp20_;
+ _tmp18_ = _tmp17_;
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp19_);
+ _g_object_unref0 (_tmp16_);
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _dobj_it = _tmp21_;
+ _dobj_it = _tmp18_;
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 12206 "Commands.c"
- GeeIterator* _tmp22_;
- gboolean _tmp23_;
+#line 12860 "Commands.c"
+ GeeIterator* _tmp19_;
DataObject* dobj = NULL;
- GeeIterator* _tmp24_;
- gpointer _tmp25_;
+ GeeIterator* _tmp20_;
+ gpointer _tmp21_;
Event* event = NULL;
- DataObject* _tmp26_;
- Event* _tmp27_;
- Event* _tmp28_;
-#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = _dobj_it;
+ DataObject* _tmp22_;
+ Event* _tmp23_;
+ Event* _tmp24_;
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = gee_iterator_next (_tmp22_);
+ _tmp19_ = _dobj_it;
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp23_) {
+ if (!gee_iterator_next (_tmp19_)) {
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 12224 "Commands.c"
+#line 12875 "Commands.c"
}
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _dobj_it;
+ _tmp20_ = _dobj_it;
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = gee_iterator_get (_tmp24_);
+ _tmp21_ = gee_iterator_get (_tmp20_);
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
- dobj = (DataObject*) _tmp25_;
+ dobj = (DataObject*) _tmp21_;
#line 1459 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = dobj;
+ _tmp22_ = dobj;
#line 1459 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp26_, TYPE_EVENT) ? ((Event*) _tmp26_) : NULL);
+ _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, TYPE_EVENT) ? ((Event*) _tmp22_) : NULL);
#line 1459 "/home/jens/Source/shotwell/src/Commands.vala"
- event = _tmp27_;
+ event = _tmp23_;
#line 1460 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = event;
+ _tmp24_ = event;
#line 1460 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp28_ != NULL) {
-#line 12242 "Commands.c"
- ViewCollection* _tmp29_;
- Event* _tmp30_;
- EventView* _tmp31_;
- EventView* _tmp32_;
+ if (_tmp24_ != NULL) {
+#line 12893 "Commands.c"
+ ViewCollection* _tmp25_;
+ Event* _tmp26_;
+ EventView* _tmp27_;
+ EventView* _tmp28_;
#line 1461 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = all_events;
+ _tmp25_ = all_events;
#line 1461 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = event;
+ _tmp26_ = event;
#line 1461 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = event_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_EVENT_SOURCE, EventSource));
+ _tmp27_ = event_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_EVENT_SOURCE, EventSource));
#line 1461 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = _tmp31_;
+ _tmp28_ = _tmp27_;
#line 1461 "/home/jens/Source/shotwell/src/Commands.vala"
- data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_DATA_OBJECT, DataObject));
+ data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_DATA_OBJECT, DataObject));
#line 1461 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp32_);
-#line 12259 "Commands.c"
+ _g_object_unref0 (_tmp28_);
+#line 12910 "Commands.c"
}
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (event);
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (dobj);
-#line 12265 "Commands.c"
+#line 12916 "Commands.c"
}
#line 1458 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_dobj_it);
-#line 12269 "Commands.c"
+#line 12920 "Commands.c"
}
#line 1464 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = dateable;
+ _tmp29_ = dateable;
#line 1464 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = all_events;
+ _tmp30_ = all_events;
#line 1464 "/home/jens/Source/shotwell/src/Commands.vala"
- event_generate_single_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_MEDIA_SOURCE, MediaSource), _tmp34_, NULL);
+ event_generate_single_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_MEDIA_SOURCE, MediaSource), _tmp30_, NULL);
#line 1446 "/home/jens/Source/shotwell/src/Commands.vala"
_data_collection_unref0 (all_events);
#line 1446 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (dateable);
-#line 12281 "Commands.c"
+#line 12932 "Commands.c"
}
-static void adjust_date_time_photos_command_real_undo_on_source (MultipleDataSourceCommand* base, DataSource* source) {
+static void
+adjust_date_time_photos_command_real_undo_on_source (MultipleDataSourceCommand* base,
+ DataSource* source)
+{
AdjustDateTimePhotosCommand * self;
Dateable* photo = NULL;
- DataSource* _tmp0_;
- Dateable* _tmp1_;
- GeeHashMap* _tmp2_;
- Dateable* _tmp3_;
- gboolean _tmp4_;
- DataSource* _tmp16_;
- GeeMap* _tmp17_;
- DataSource* _tmp18_;
- gpointer _tmp19_;
- Event* _tmp20_;
+ Dateable* _tmp0_;
+ GeeHashMap* _tmp1_;
+ Dateable* _tmp2_;
+ GeeMap* _tmp13_;
+ gpointer _tmp14_;
+ Event* _tmp15_;
#line 1467 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand);
#line 1467 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 1468 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 1468 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATEABLE, Dateable));
+ _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATEABLE, Dateable));
#line 1468 "/home/jens/Source/shotwell/src/Commands.vala"
- photo = _tmp1_;
-#line 1470 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->old_times;
+ photo = _tmp0_;
#line 1470 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = photo;
+ _tmp1_ = self->priv->old_times;
#line 1470 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_);
+ _tmp2_ = photo;
#line 1470 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp4_) {
-#line 12316 "Commands.c"
+ if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp2_)) {
+#line 12962 "Commands.c"
+ Dateable* _tmp3_;
+ GeeHashMap* _tmp4_;
Dateable* _tmp5_;
- GeeHashMap* _tmp6_;
- Dateable* _tmp7_;
- gpointer _tmp8_;
- time_t* _tmp9_;
- GeeHashMap* _tmp10_;
- Dateable* _tmp11_;
+ gpointer _tmp6_;
+ time_t* _tmp7_;
+ GeeHashMap* _tmp8_;
+ Dateable* _tmp9_;
#line 1471 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = photo;
+ _tmp3_ = photo;
#line 1471 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = self->priv->old_times;
+ _tmp4_ = self->priv->old_times;
#line 1471 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = photo;
+ _tmp5_ = photo;
#line 1471 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp7_);
+ _tmp6_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_);
#line 1471 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = (time_t*) _tmp8_;
+ _tmp7_ = (time_t*) _tmp6_;
#line 1471 "/home/jens/Source/shotwell/src/Commands.vala"
- adjust_date_time_photos_command_set_time (self, _tmp5_, *_tmp9_);
+ adjust_date_time_photos_command_set_time (self, _tmp3_, *_tmp7_);
#line 1471 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp9_);
+ _g_free0 (_tmp7_);
#line 1472 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = self->priv->old_times;
+ _tmp8_ = self->priv->old_times;
#line 1472 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = photo;
+ _tmp9_ = photo;
#line 1472 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp11_, NULL);
-#line 12344 "Commands.c"
+ gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, NULL);
+#line 12990 "Commands.c"
} else {
- Dateable* _tmp12_;
- Dateable* _tmp13_;
- time_t _tmp14_;
- gint64 _tmp15_;
-#line 1474 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = photo;
+ Dateable* _tmp10_;
+ Dateable* _tmp11_;
+ gint64 _tmp12_;
#line 1474 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = photo;
+ _tmp10_ = photo;
#line 1474 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = dateable_get_exposure_time (_tmp13_);
+ _tmp11_ = photo;
#line 1474 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = self->priv->time_shift;
+ _tmp12_ = self->priv->time_shift;
#line 1474 "/home/jens/Source/shotwell/src/Commands.vala"
- adjust_date_time_photos_command_set_time (self, _tmp12_, _tmp14_ - ((time_t) _tmp15_));
-#line 12360 "Commands.c"
+ adjust_date_time_photos_command_set_time (self, _tmp10_, dateable_get_exposure_time (_tmp11_) - ((time_t) _tmp12_));
+#line 13003 "Commands.c"
}
#line 1477 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = source;
-#line 1477 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = self->priv->prev_events;
+ _tmp13_ = self->priv->prev_events;
#line 1477 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = source;
+ _tmp14_ = gee_map_get (_tmp13_, G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_DATEABLE) ? ((Dateable*) source) : NULL);
#line 1477 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = gee_map_get (_tmp17_, G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, TYPE_DATEABLE) ? ((Dateable*) _tmp18_) : NULL);
+ _tmp15_ = (Event*) _tmp14_;
#line 1477 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = (Event*) _tmp19_;
+ media_source_set_event (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_MEDIA_SOURCE) ? ((MediaSource*) source) : NULL, _tmp15_);
#line 1477 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_set_event (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, TYPE_MEDIA_SOURCE) ? ((MediaSource*) _tmp16_) : NULL, _tmp20_);
-#line 1477 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp20_);
+ _g_object_unref0 (_tmp15_);
#line 1467 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (photo);
-#line 12378 "Commands.c"
+#line 13017 "Commands.c"
}
-static void adjust_date_time_photos_command_class_init (AdjustDateTimePhotosCommandClass * klass) {
+static void
+adjust_date_time_photos_command_class_init (AdjustDateTimePhotosCommandClass * klass)
+{
#line 1355 "/home/jens/Source/shotwell/src/Commands.vala"
adjust_date_time_photos_command_parent_class = g_type_class_peek_parent (klass);
#line 1355 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -12393,20 +13034,24 @@ static void adjust_date_time_photos_command_class_init (AdjustDateTimePhotosComm
((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) adjust_date_time_photos_command_real_undo_on_source;
#line 1355 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = adjust_date_time_photos_command_finalize;
-#line 12397 "Commands.c"
+#line 13038 "Commands.c"
}
-static void adjust_date_time_photos_command_instance_init (AdjustDateTimePhotosCommand * self) {
+static void
+adjust_date_time_photos_command_instance_init (AdjustDateTimePhotosCommand * self)
+{
#line 1355 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = ADJUST_DATE_TIME_PHOTOS_COMMAND_GET_PRIVATE (self);
#line 1362 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->new_time = NULL;
-#line 12406 "Commands.c"
+#line 13049 "Commands.c"
}
-static void adjust_date_time_photos_command_finalize (GObject * obj) {
+static void
+adjust_date_time_photos_command_finalize (GObject * obj)
+{
AdjustDateTimePhotosCommand * self;
#line 1355 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand);
@@ -12420,11 +13065,13 @@ static void adjust_date_time_photos_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->error_list);
#line 1355 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (adjust_date_time_photos_command_parent_class)->finalize (obj);
-#line 12424 "Commands.c"
+#line 13069 "Commands.c"
}
-GType adjust_date_time_photos_command_get_type (void) {
+GType
+adjust_date_time_photos_command_get_type (void)
+{
static volatile gsize adjust_date_time_photos_command_type_id__volatile = 0;
if (g_once_init_enter (&adjust_date_time_photos_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (AdjustDateTimePhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) adjust_date_time_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AdjustDateTimePhotosCommand), 0, (GInstanceInitFunc) adjust_date_time_photos_command_instance_init, NULL };
@@ -12436,262 +13083,253 @@ GType adjust_date_time_photos_command_get_type (void) {
}
-static void _add_tags_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, gpointer self) {
+static void
+_add_tags_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
+ gpointer self)
+{
#line 1521 "/home/jens/Source/shotwell/src/Commands.vala"
add_tags_command_on_proxy_broken ((AddTagsCommand*) self);
-#line 12443 "Commands.c"
+#line 13093 "Commands.c"
}
-static void _add_tags_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, DataSource* source, gpointer self) {
+static void
+_add_tags_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
+ DataSource* source,
+ gpointer self)
+{
#line 1523 "/home/jens/Source/shotwell/src/Commands.vala"
add_tags_command_on_source_destroyed ((AddTagsCommand*) self, source);
-#line 12450 "Commands.c"
+#line 13104 "Commands.c"
}
-AddTagsCommand* add_tags_command_construct (GType object_type, gchar** paths, int paths_length1, GeeCollection* sources) {
+AddTagsCommand*
+add_tags_command_construct (GType object_type,
+ gchar** paths,
+ int paths_length1,
+ GeeCollection* sources)
+{
AddTagsCommand * self = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
+ gchar* _tmp0_;
gchar* _tmp1_;
- gchar* _tmp2_;
- gchar** _tmp3_;
- gint _tmp3__length1;
- LibraryPhotoSourceCollection* _tmp43_;
- VideoSourceCollection* _tmp44_;
+ LibraryPhotoSourceCollection* _tmp38_;
+ VideoSourceCollection* _tmp39_;
#line 1485 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL);
#line 1486 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = paths;
-#line 1486 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0__length1 = paths_length1;
-#line 1486 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = resources_add_tags_label (_tmp0_, _tmp0__length1);
+ _tmp0_ = resources_add_tags_label (paths, paths_length1);
#line 1486 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
+ _tmp1_ = _tmp0_;
#line 1486 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (AddTagsCommand*) page_command_construct (object_type, _tmp2_, "");
+ self = (AddTagsCommand*) page_command_construct (object_type, _tmp1_, "");
#line 1486 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp2_);
-#line 1491 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = paths;
-#line 1491 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3__length1 = paths_length1;
-#line 12482 "Commands.c"
+ _g_free0 (_tmp1_);
+#line 13129 "Commands.c"
{
gchar** path_collection = NULL;
gint path_collection_length1 = 0;
gint _path_collection_size_ = 0;
gint path_it = 0;
#line 1491 "/home/jens/Source/shotwell/src/Commands.vala"
- path_collection = _tmp3_;
+ path_collection = paths;
#line 1491 "/home/jens/Source/shotwell/src/Commands.vala"
- path_collection_length1 = _tmp3__length1;
+ path_collection_length1 = paths_length1;
#line 1491 "/home/jens/Source/shotwell/src/Commands.vala"
- for (path_it = 0; path_it < _tmp3__length1; path_it = path_it + 1) {
-#line 12494 "Commands.c"
- gchar* _tmp4_;
+ for (path_it = 0; path_it < paths_length1; path_it = path_it + 1) {
+#line 13141 "Commands.c"
+ gchar* _tmp2_;
gchar* path = NULL;
#line 1491 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = g_strdup (path_collection[path_it]);
+ _tmp2_ = g_strdup (path_collection[path_it]);
#line 1491 "/home/jens/Source/shotwell/src/Commands.vala"
- path = _tmp4_;
-#line 12501 "Commands.c"
+ path = _tmp2_;
+#line 13148 "Commands.c"
{
GeeList* paths_to_create = NULL;
- const gchar* _tmp5_;
- GeeList* _tmp6_;
- GeeList* _tmp7_;
- const gchar* _tmp8_;
+ const gchar* _tmp3_;
+ GeeList* _tmp4_;
+ GeeList* _tmp5_;
+ const gchar* _tmp6_;
#line 1492 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = path;
+ _tmp3_ = path;
#line 1492 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp5_);
+ _tmp4_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp3_);
#line 1492 "/home/jens/Source/shotwell/src/Commands.vala"
- paths_to_create = _tmp6_;
+ paths_to_create = _tmp4_;
#line 1494 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = paths_to_create;
+ _tmp5_ = paths_to_create;
#line 1494 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = path;
+ _tmp6_ = path;
#line 1494 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection), _tmp8_);
-#line 12520 "Commands.c"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), _tmp6_);
+#line 13167 "Commands.c"
{
GeeList* _create_path_list = NULL;
- GeeList* _tmp9_;
- GeeList* _tmp10_;
+ GeeList* _tmp7_;
+ GeeList* _tmp8_;
gint _create_path_size = 0;
- GeeList* _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
+ GeeList* _tmp9_;
+ gint _tmp10_;
+ gint _tmp11_;
gint _create_path_index = 0;
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = paths_to_create;
+ _tmp7_ = paths_to_create;
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _g_object_ref0 (_tmp9_);
+ _tmp8_ = _g_object_ref0 (_tmp7_);
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _create_path_list = _tmp10_;
+ _create_path_list = _tmp8_;
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _create_path_list;
+ _tmp9_ = _create_path_list;
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _tmp12_;
+ _tmp11_ = _tmp10_;
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _create_path_size = _tmp13_;
+ _create_path_size = _tmp11_;
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
_create_path_index = -1;
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 12548 "Commands.c"
+#line 13195 "Commands.c"
+ gint _tmp12_;
+ gint _tmp13_;
gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
gchar* create_path = NULL;
- GeeList* _tmp17_;
- gint _tmp18_;
- gpointer _tmp19_;
+ GeeList* _tmp15_;
+ gint _tmp16_;
+ gpointer _tmp17_;
Tag* tag = NULL;
- const gchar* _tmp20_;
- Tag* _tmp21_;
+ const gchar* _tmp18_;
+ Tag* _tmp19_;
SourceProxy* tag_proxy = NULL;
- Tag* _tmp22_;
- SourceProxy* _tmp23_;
+ Tag* _tmp20_;
+ SourceProxy* _tmp21_;
GeeArrayList* add_sources = NULL;
- GeeArrayList* _tmp24_;
- GeeArrayList* _tmp36_;
- gint _tmp37_;
- gint _tmp38_;
+ GeeArrayList* _tmp22_;
+ GeeArrayList* _tmp31_;
+ gint _tmp32_;
+ gint _tmp33_;
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _create_path_index;
+ _tmp12_ = _create_path_index;
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _create_path_index = _tmp14_ + 1;
+ _create_path_index = _tmp12_ + 1;
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _create_path_index;
+ _tmp13_ = _create_path_index;
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _create_path_size;
+ _tmp14_ = _create_path_size;
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp15_ < _tmp16_)) {
+ if (!(_tmp13_ < _tmp14_)) {
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 12579 "Commands.c"
+#line 13226 "Commands.c"
}
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _create_path_list;
+ _tmp15_ = _create_path_list;
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = _create_path_index;
+ _tmp16_ = _create_path_index;
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = gee_list_get (_tmp17_, _tmp18_);
+ _tmp17_ = gee_list_get (_tmp15_, _tmp16_);
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
- create_path = (gchar*) _tmp19_;
+ create_path = (gchar*) _tmp17_;
#line 1497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = create_path;
+ _tmp18_ = create_path;
#line 1497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = tag_for_path (_tmp20_);
+ _tmp19_ = tag_for_path (_tmp18_);
#line 1497 "/home/jens/Source/shotwell/src/Commands.vala"
- tag = _tmp21_;
+ tag = _tmp19_;
#line 1498 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = tag;
+ _tmp20_ = tag;
#line 1498 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PROXYABLE, Proxyable));
+ _tmp21_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PROXYABLE, Proxyable));
#line 1498 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_proxy = _tmp23_;
+ tag_proxy = _tmp21_;
#line 1502 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
+ _tmp22_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 1502 "/home/jens/Source/shotwell/src/Commands.vala"
- add_sources = _tmp24_;
-#line 12605 "Commands.c"
+ add_sources = _tmp22_;
+#line 13252 "Commands.c"
{
GeeIterator* _source_it = NULL;
- GeeCollection* _tmp25_;
- GeeIterator* _tmp26_;
+ GeeIterator* _tmp23_;
#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = sources;
+ _tmp23_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp26_;
+ _source_it = _tmp23_;
#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 12618 "Commands.c"
- GeeIterator* _tmp27_;
- gboolean _tmp28_;
+#line 13262 "Commands.c"
+ GeeIterator* _tmp24_;
MediaSource* source = NULL;
- GeeIterator* _tmp29_;
- gpointer _tmp30_;
- Tag* _tmp31_;
- MediaSource* _tmp32_;
- gboolean _tmp33_;
-#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = _source_it;
+ GeeIterator* _tmp25_;
+ gpointer _tmp26_;
+ Tag* _tmp27_;
+ MediaSource* _tmp28_;
#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = gee_iterator_next (_tmp27_);
+ _tmp24_ = _source_it;
#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp28_) {
+ if (!gee_iterator_next (_tmp24_)) {
#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 12635 "Commands.c"
+#line 13275 "Commands.c"
}
#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = _source_it;
+ _tmp25_ = _source_it;
#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = gee_iterator_get (_tmp29_);
+ _tmp26_ = gee_iterator_get (_tmp25_);
#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (MediaSource*) _tmp30_;
-#line 1504 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = tag;
+ source = (MediaSource*) _tmp26_;
#line 1504 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = source;
+ _tmp27_ = tag;
#line 1504 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = tag_contains (_tmp31_, _tmp32_);
+ _tmp28_ = source;
#line 1504 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp33_) {
-#line 12651 "Commands.c"
- GeeArrayList* _tmp34_;
- MediaSource* _tmp35_;
+ if (!tag_contains (_tmp27_, _tmp28_)) {
+#line 13289 "Commands.c"
+ GeeArrayList* _tmp29_;
+ MediaSource* _tmp30_;
#line 1505 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = add_sources;
+ _tmp29_ = add_sources;
#line 1505 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = source;
+ _tmp30_ = source;
#line 1505 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp35_);
-#line 12660 "Commands.c"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp30_);
+#line 13298 "Commands.c"
}
#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 12664 "Commands.c"
+#line 13302 "Commands.c"
}
#line 1503 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 12668 "Commands.c"
+#line 13306 "Commands.c"
}
#line 1508 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = add_sources;
+ _tmp31_ = add_sources;
#line 1508 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp32_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 1508 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = _tmp37_;
+ _tmp33_ = _tmp32_;
#line 1508 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp38_ > 0) {
-#line 12678 "Commands.c"
- SourceProxy* _tmp39_;
- GeeHashMap* _tmp40_;
- SourceProxy* _tmp41_;
- GeeArrayList* _tmp42_;
+ if (_tmp33_ > 0) {
+#line 13316 "Commands.c"
+ SourceProxy* _tmp34_;
+ GeeHashMap* _tmp35_;
+ SourceProxy* _tmp36_;
+ GeeArrayList* _tmp37_;
#line 1509 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = tag_proxy;
+ _tmp34_ = tag_proxy;
#line 1509 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp39_, "broken", (GCallback) _add_tags_command_on_proxy_broken_source_proxy_broken, self, 0);
+ g_signal_connect_object (_tmp34_, "broken", (GCallback) _add_tags_command_on_proxy_broken_source_proxy_broken, self, 0);
#line 1510 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = self->priv->map;
+ _tmp35_ = self->priv->map;
#line 1510 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = tag_proxy;
+ _tmp36_ = tag_proxy;
#line 1510 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = add_sources;
+ _tmp37_ = add_sources;
#line 1510 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp41_, _tmp42_);
-#line 12695 "Commands.c"
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp36_, _tmp37_);
+#line 13333 "Commands.c"
}
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (add_sources);
@@ -12701,46 +13339,52 @@ AddTagsCommand* add_tags_command_construct (GType object_type, gchar** paths, in
_g_object_unref0 (tag);
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (create_path);
-#line 12705 "Commands.c"
+#line 13343 "Commands.c"
}
#line 1496 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_create_path_list);
-#line 12709 "Commands.c"
+#line 13347 "Commands.c"
}
#line 1491 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (paths_to_create);
#line 1491 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (path);
-#line 12715 "Commands.c"
+#line 13353 "Commands.c"
}
}
}
#line 1515 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = library_photo_global;
+ _tmp38_ = library_photo_global;
#line 1515 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _add_tags_command_on_source_destroyed_source_collection_item_destroyed, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _add_tags_command_on_source_destroyed_source_collection_item_destroyed, self, 0);
#line 1516 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = video_global;
+ _tmp39_ = video_global;
#line 1516 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _add_tags_command_on_source_destroyed_source_collection_item_destroyed, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _add_tags_command_on_source_destroyed_source_collection_item_destroyed, self, 0);
#line 1485 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 12729 "Commands.c"
+#line 13367 "Commands.c"
}
-AddTagsCommand* add_tags_command_new (gchar** paths, int paths_length1, GeeCollection* sources) {
+AddTagsCommand*
+add_tags_command_new (gchar** paths,
+ int paths_length1,
+ GeeCollection* sources)
+{
#line 1485 "/home/jens/Source/shotwell/src/Commands.vala"
return add_tags_command_construct (TYPE_ADD_TAGS_COMMAND, paths, paths_length1, sources);
-#line 12736 "Commands.c"
+#line 13378 "Commands.c"
}
-static void add_tags_command_real_execute (Command* base) {
+static void
+add_tags_command_real_execute (Command* base)
+{
AddTagsCommand * self;
#line 1527 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADD_TAGS_COMMAND, AddTagsCommand);
-#line 12744 "Commands.c"
+#line 13388 "Commands.c"
{
GeeIterator* _tag_proxy_it = NULL;
GeeHashMap* _tmp0_;
@@ -12767,71 +13411,70 @@ static void add_tags_command_real_execute (Command* base) {
_tag_proxy_it = _tmp5_;
#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 12771 "Commands.c"
+#line 13415 "Commands.c"
GeeIterator* _tmp6_;
- gboolean _tmp7_;
SourceProxy* tag_proxy = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
- SourceProxy* _tmp10_;
- DataSource* _tmp11_;
- Tag* _tmp12_;
- GeeHashMap* _tmp13_;
- SourceProxy* _tmp14_;
- gpointer _tmp15_;
- GeeArrayList* _tmp16_;
+ GeeIterator* _tmp7_;
+ gpointer _tmp8_;
+ SourceProxy* _tmp9_;
+ DataSource* _tmp10_;
+ Tag* _tmp11_;
+ GeeHashMap* _tmp12_;
+ SourceProxy* _tmp13_;
+ gpointer _tmp14_;
+ GeeArrayList* _tmp15_;
#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp6_ = _tag_proxy_it;
#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_iterator_next (_tmp6_);
-#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp7_) {
+ if (!gee_iterator_next (_tmp6_)) {
#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 12792 "Commands.c"
+#line 13433 "Commands.c"
}
#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tag_proxy_it;
+ _tmp7_ = _tag_proxy_it;
#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
+ _tmp8_ = gee_iterator_get (_tmp7_);
#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_proxy = (SourceProxy*) _tmp9_;
+ tag_proxy = (SourceProxy*) _tmp8_;
#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = tag_proxy;
+ _tmp9_ = tag_proxy;
#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = source_proxy_get_source (_tmp10_);
+ _tmp10_ = source_proxy_get_source (_tmp9_);
#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_TAG, Tag);
+ _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_TAG, Tag);
#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = self->priv->map;
+ _tmp12_ = self->priv->map;
#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = tag_proxy;
+ _tmp13_ = tag_proxy;
#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp14_);
+ _tmp14_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_);
#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = (GeeArrayList*) _tmp15_;
+ _tmp15_ = (GeeArrayList*) _tmp14_;
#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach_many (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection));
+ tag_attach_many (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp16_);
+ _g_object_unref0 (_tmp15_);
#line 1529 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp12_);
+ _g_object_unref0 (_tmp11_);
#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (tag_proxy);
-#line 12822 "Commands.c"
+#line 13463 "Commands.c"
}
#line 1528 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tag_proxy_it);
-#line 12826 "Commands.c"
+#line 13467 "Commands.c"
}
}
-static void add_tags_command_real_undo (Command* base) {
+static void
+add_tags_command_real_undo (Command* base)
+{
AddTagsCommand * self;
#line 1532 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADD_TAGS_COMMAND, AddTagsCommand);
-#line 12835 "Commands.c"
+#line 13478 "Commands.c"
{
GeeIterator* _tag_proxy_it = NULL;
GeeHashMap* _tmp0_;
@@ -12858,81 +13501,81 @@ static void add_tags_command_real_undo (Command* base) {
_tag_proxy_it = _tmp5_;
#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 12862 "Commands.c"
+#line 13505 "Commands.c"
GeeIterator* _tmp6_;
- gboolean _tmp7_;
SourceProxy* tag_proxy = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
+ GeeIterator* _tmp7_;
+ gpointer _tmp8_;
Tag* tag = NULL;
- SourceProxy* _tmp10_;
- DataSource* _tmp11_;
- Tag* _tmp12_;
- GeeHashMap* _tmp13_;
- SourceProxy* _tmp14_;
- gpointer _tmp15_;
- GeeArrayList* _tmp16_;
+ SourceProxy* _tmp9_;
+ DataSource* _tmp10_;
+ Tag* _tmp11_;
+ GeeHashMap* _tmp12_;
+ SourceProxy* _tmp13_;
+ gpointer _tmp14_;
+ GeeArrayList* _tmp15_;
+ GeeMultiMap* _tmp16_;
GeeMultiMap* _tmp17_;
- GeeMultiMap* _tmp18_;
#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp6_ = _tag_proxy_it;
#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_iterator_next (_tmp6_);
-#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp7_) {
+ if (!gee_iterator_next (_tmp6_)) {
#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 12886 "Commands.c"
+#line 13526 "Commands.c"
}
#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tag_proxy_it;
+ _tmp7_ = _tag_proxy_it;
#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
+ _tmp8_ = gee_iterator_get (_tmp7_);
#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_proxy = (SourceProxy*) _tmp9_;
+ tag_proxy = (SourceProxy*) _tmp8_;
#line 1534 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = tag_proxy;
+ _tmp9_ = tag_proxy;
#line 1534 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = source_proxy_get_source (_tmp10_);
+ _tmp10_ = source_proxy_get_source (_tmp9_);
#line 1534 "/home/jens/Source/shotwell/src/Commands.vala"
- tag = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_TAG, Tag);
+ tag = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_TAG, Tag);
#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = tag;
+ _tmp11_ = tag;
#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = self->priv->map;
+ _tmp12_ = self->priv->map;
#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = tag_proxy;
+ _tmp13_ = tag_proxy;
#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp14_);
+ _tmp14_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_);
#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = (GeeArrayList*) _tmp15_;
+ _tmp15_ = (GeeArrayList*) _tmp14_;
#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = tag_detach_many (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp16_ = tag_detach_many (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = _tmp17_;
+ _tmp17_ = _tmp16_;
#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp18_);
+ _g_object_unref0 (_tmp17_);
#line 1536 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp16_);
+ _g_object_unref0 (_tmp15_);
#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (tag);
#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (tag_proxy);
-#line 12922 "Commands.c"
+#line 13562 "Commands.c"
}
#line 1533 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tag_proxy_it);
-#line 12926 "Commands.c"
+#line 13566 "Commands.c"
}
}
-static void add_tags_command_on_source_destroyed (AddTagsCommand* self, DataSource* source) {
+static void
+add_tags_command_on_source_destroyed (AddTagsCommand* self,
+ DataSource* source)
+{
#line 1540 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_ADD_TAGS_COMMAND (self));
#line 1540 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
-#line 12936 "Commands.c"
+#line 13579 "Commands.c"
{
GeeIterator* _sources_it = NULL;
GeeHashMap* _tmp0_;
@@ -12959,70 +13602,63 @@ static void add_tags_command_on_source_destroyed (AddTagsCommand* self, DataSour
_sources_it = _tmp5_;
#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 12963 "Commands.c"
+#line 13606 "Commands.c"
GeeIterator* _tmp6_;
- gboolean _tmp7_;
GeeArrayList* sources = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
- GeeArrayList* _tmp10_;
- DataSource* _tmp11_;
- gboolean _tmp12_;
+ GeeIterator* _tmp7_;
+ gpointer _tmp8_;
+ GeeArrayList* _tmp9_;
#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp6_ = _sources_it;
#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_iterator_next (_tmp6_);
-#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp7_) {
+ if (!gee_iterator_next (_tmp6_)) {
#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 12980 "Commands.c"
+#line 13618 "Commands.c"
}
#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _sources_it;
+ _tmp7_ = _sources_it;
#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
+ _tmp8_ = gee_iterator_get (_tmp7_);
#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
- sources = (GeeArrayList*) _tmp9_;
-#line 1542 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = sources;
-#line 1542 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = source;
+ sources = (GeeArrayList*) _tmp8_;
#line 1542 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_MEDIA_SOURCE, MediaSource));
+ _tmp9_ = sources;
#line 1542 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp12_) {
-#line 12996 "Commands.c"
- CommandManager* _tmp13_;
- CommandManager* _tmp14_;
+ if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource))) {
+#line 13630 "Commands.c"
+ CommandManager* _tmp10_;
+ CommandManager* _tmp11_;
#line 1543 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
+ _tmp10_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
#line 1543 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _tmp13_;
+ _tmp11_ = _tmp10_;
#line 1543 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp14_);
+ command_manager_reset (_tmp11_);
#line 1543 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp14_);
+ _command_manager_unref0 (_tmp11_);
#line 1545 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (sources);
#line 1545 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_sources_it);
#line 1545 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 13013 "Commands.c"
+#line 13647 "Commands.c"
}
#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (sources);
-#line 13017 "Commands.c"
+#line 13651 "Commands.c"
}
#line 1541 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_sources_it);
-#line 13021 "Commands.c"
+#line 13655 "Commands.c"
}
}
-static void add_tags_command_on_proxy_broken (AddTagsCommand* self) {
+static void
+add_tags_command_on_proxy_broken (AddTagsCommand* self)
+{
CommandManager* _tmp0_;
CommandManager* _tmp1_;
#line 1550 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -13035,11 +13671,13 @@ static void add_tags_command_on_proxy_broken (AddTagsCommand* self) {
command_manager_reset (_tmp1_);
#line 1551 "/home/jens/Source/shotwell/src/Commands.vala"
_command_manager_unref0 (_tmp1_);
-#line 13039 "Commands.c"
+#line 13675 "Commands.c"
}
-static void add_tags_command_class_init (AddTagsCommandClass * klass) {
+static void
+add_tags_command_class_init (AddTagsCommandClass * klass)
+{
#line 1481 "/home/jens/Source/shotwell/src/Commands.vala"
add_tags_command_parent_class = g_type_class_peek_parent (klass);
#line 1481 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -13050,11 +13688,13 @@ static void add_tags_command_class_init (AddTagsCommandClass * klass) {
((CommandClass *) klass)->undo = (void (*) (Command *)) add_tags_command_real_undo;
#line 1481 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = add_tags_command_finalize;
-#line 13054 "Commands.c"
+#line 13692 "Commands.c"
}
-static void add_tags_command_instance_init (AddTagsCommand * self) {
+static void
+add_tags_command_instance_init (AddTagsCommand * self)
+{
GeeHashMap* _tmp0_;
#line 1481 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = ADD_TAGS_COMMAND_GET_PRIVATE (self);
@@ -13062,19 +13702,21 @@ static void add_tags_command_instance_init (AddTagsCommand * self) {
_tmp0_ = gee_hash_map_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, GEE_TYPE_ARRAY_LIST, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 1482 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->map = _tmp0_;
-#line 13066 "Commands.c"
+#line 13706 "Commands.c"
}
-static void add_tags_command_finalize (GObject * obj) {
+static void
+add_tags_command_finalize (GObject * obj)
+{
AddTagsCommand * self;
- LibraryPhotoSourceCollection* _tmp12_;
- guint _tmp13_;
- VideoSourceCollection* _tmp14_;
- guint _tmp15_;
+ LibraryPhotoSourceCollection* _tmp11_;
+ guint _tmp12_;
+ VideoSourceCollection* _tmp13_;
+ guint _tmp14_;
#line 1481 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADD_TAGS_COMMAND, AddTagsCommand);
-#line 13078 "Commands.c"
+#line 13720 "Commands.c"
{
GeeIterator* _tag_proxy_it = NULL;
GeeHashMap* _tmp0_;
@@ -13101,65 +13743,64 @@ static void add_tags_command_finalize (GObject * obj) {
_tag_proxy_it = _tmp5_;
#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 13105 "Commands.c"
+#line 13747 "Commands.c"
GeeIterator* _tmp6_;
- gboolean _tmp7_;
SourceProxy* tag_proxy = NULL;
- GeeIterator* _tmp8_;
- gpointer _tmp9_;
- SourceProxy* _tmp10_;
- guint _tmp11_;
+ GeeIterator* _tmp7_;
+ gpointer _tmp8_;
+ SourceProxy* _tmp9_;
+ guint _tmp10_;
#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp6_ = _tag_proxy_it;
#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_iterator_next (_tmp6_);
-#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp7_) {
+ if (!gee_iterator_next (_tmp6_)) {
#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 13121 "Commands.c"
+#line 13760 "Commands.c"
}
#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tag_proxy_it;
+ _tmp7_ = _tag_proxy_it;
#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_iterator_get (_tmp8_);
+ _tmp8_ = gee_iterator_get (_tmp7_);
#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_proxy = (SourceProxy*) _tmp9_;
+ tag_proxy = (SourceProxy*) _tmp8_;
#line 1521 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = tag_proxy;
+ _tmp9_ = tag_proxy;
#line 1521 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp11_, NULL, FALSE);
+ g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp10_, NULL, FALSE);
#line 1521 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp10_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _add_tags_command_on_proxy_broken_source_proxy_broken, self);
+ g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _add_tags_command_on_proxy_broken_source_proxy_broken, self);
#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (tag_proxy);
-#line 13137 "Commands.c"
+#line 13776 "Commands.c"
}
#line 1520 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tag_proxy_it);
-#line 13141 "Commands.c"
+#line 13780 "Commands.c"
}
#line 1523 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = library_photo_global;
+ _tmp11_ = library_photo_global;
#line 1523 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp13_, NULL, FALSE);
+ g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp12_, NULL, FALSE);
#line 1523 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _add_tags_command_on_source_destroyed_source_collection_item_destroyed, self);
+ g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _add_tags_command_on_source_destroyed_source_collection_item_destroyed, self);
#line 1524 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = video_global;
+ _tmp13_ = video_global;
#line 1524 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp15_, NULL, FALSE);
+ g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp14_, NULL, FALSE);
#line 1524 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp15_, 0, NULL, (GCallback) _add_tags_command_on_source_destroyed_source_collection_item_destroyed, self);
+ g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _add_tags_command_on_source_destroyed_source_collection_item_destroyed, self);
#line 1482 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->map);
#line 1481 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (add_tags_command_parent_class)->finalize (obj);
-#line 13159 "Commands.c"
+#line 13798 "Commands.c"
}
-GType add_tags_command_get_type (void) {
+GType
+add_tags_command_get_type (void)
+{
static volatile gsize add_tags_command_type_id__volatile = 0;
if (g_once_init_enter (&add_tags_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (AddTagsCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) add_tags_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AddTagsCommand), 0, (GInstanceInitFunc) add_tags_command_instance_init, NULL };
@@ -13171,156 +13812,141 @@ GType add_tags_command_get_type (void) {
}
-RenameTagCommand* rename_tag_command_construct (GType object_type, Tag* tag, const gchar* new_name) {
+RenameTagCommand*
+rename_tag_command_construct (GType object_type,
+ Tag* tag,
+ const gchar* new_name)
+{
RenameTagCommand * self = NULL;
- Tag* _tmp0_;
- Tag* _tmp1_;
+ gchar* _tmp0_;
+ gchar* _tmp1_;
gchar* _tmp2_;
gchar* _tmp3_;
- const gchar* _tmp4_;
+ gchar* _tmp4_;
gchar* _tmp5_;
gchar* _tmp6_;
- Tag* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- Tag* _tmp10_;
- gchar* _tmp11_;
- const gchar* _tmp12_;
- gchar* _tmp13_;
+ gchar* _tmp7_;
#line 1560 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_TAG (tag), NULL);
#line 1560 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (new_name != NULL, NULL);
#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = tag;
+ _tmp0_ = tag_get_user_visible_name (tag);
#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = tag;
+ _tmp1_ = _tmp0_;
#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = tag_get_user_visible_name (_tmp1_);
+ _tmp2_ = resources_rename_tag_label (_tmp1_, new_name);
#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp3_ = _tmp2_;
#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = new_name;
-#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = resources_rename_tag_label (_tmp3_, _tmp4_);
-#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
-#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = tag;
+ _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject));
#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_OBJECT, DataObject));
-#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _tmp8_;
-#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (RenameTagCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PROXYABLE, Proxyable), _tmp6_, _tmp9_);
+ _tmp5_ = _tmp4_;
#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp9_);
+ self = (RenameTagCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_PROXYABLE, Proxyable), _tmp3_, _tmp5_);
#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp6_);
+ _g_free0 (_tmp5_);
#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (_tmp3_);
+#line 1561 "/home/jens/Source/shotwell/src/Commands.vala"
+ _g_free0 (_tmp1_);
#line 1564 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = tag;
-#line 1564 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = tag_get_user_visible_name (_tmp10_);
+ _tmp6_ = tag_get_user_visible_name (tag);
#line 1564 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->old_name);
#line 1564 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_name = _tmp11_;
+ self->priv->old_name = _tmp6_;
#line 1565 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = new_name;
-#line 1565 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = g_strdup (_tmp12_);
+ _tmp7_ = g_strdup (new_name);
#line 1565 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->new_name);
#line 1565 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_name = _tmp13_;
+ self->priv->new_name = _tmp7_;
#line 1560 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 13241 "Commands.c"
+#line 13868 "Commands.c"
}
-RenameTagCommand* rename_tag_command_new (Tag* tag, const gchar* new_name) {
+RenameTagCommand*
+rename_tag_command_new (Tag* tag,
+ const gchar* new_name)
+{
#line 1560 "/home/jens/Source/shotwell/src/Commands.vala"
return rename_tag_command_construct (TYPE_RENAME_TAG_COMMAND, tag, new_name);
-#line 13248 "Commands.c"
+#line 13878 "Commands.c"
}
-static void rename_tag_command_real_execute_on_source (SimpleProxyableCommand* base, DataSource* source) {
+static void
+rename_tag_command_real_execute_on_source (SimpleProxyableCommand* base,
+ DataSource* source)
+{
RenameTagCommand * self;
- DataSource* _tmp0_;
- const gchar* _tmp1_;
- gboolean _tmp2_;
+ const gchar* _tmp0_;
#line 1568 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_TAG_COMMAND, RenameTagCommand);
#line 1568 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 1569 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 1569 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->new_name;
-#line 1569 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = tag_rename (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_TAG, Tag), _tmp1_);
+ _tmp0_ = self->priv->new_name;
#line 1569 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp2_) {
-#line 13269 "Commands.c"
- const gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
+ if (!tag_rename (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag), _tmp0_)) {
+#line 13896 "Commands.c"
+ const gchar* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
#line 1570 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->new_name;
+ _tmp1_ = self->priv->new_name;
#line 1570 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = resources_rename_tag_exists_message (_tmp3_);
+ _tmp2_ = resources_rename_tag_exists_message (_tmp1_);
#line 1570 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
+ _tmp3_ = _tmp2_;
#line 1570 "/home/jens/Source/shotwell/src/Commands.vala"
- app_window_error_message (_tmp5_, NULL);
+ app_window_error_message (_tmp3_, NULL);
#line 1570 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp5_);
-#line 13283 "Commands.c"
+ _g_free0 (_tmp3_);
+#line 13910 "Commands.c"
}
}
-static void rename_tag_command_real_undo_on_source (SimpleProxyableCommand* base, DataSource* source) {
+static void
+rename_tag_command_real_undo_on_source (SimpleProxyableCommand* base,
+ DataSource* source)
+{
RenameTagCommand * self;
- DataSource* _tmp0_;
- const gchar* _tmp1_;
- gboolean _tmp2_;
+ const gchar* _tmp0_;
#line 1573 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_TAG_COMMAND, RenameTagCommand);
#line 1573 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 1574 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 1574 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->old_name;
+ _tmp0_ = self->priv->old_name;
#line 1574 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = tag_rename (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_TAG, Tag), _tmp1_);
-#line 1574 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp2_) {
-#line 13305 "Commands.c"
- const gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
+ if (!tag_rename (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag), _tmp0_)) {
+#line 13929 "Commands.c"
+ const gchar* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
#line 1575 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->old_name;
+ _tmp1_ = self->priv->old_name;
#line 1575 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = resources_rename_tag_exists_message (_tmp3_);
+ _tmp2_ = resources_rename_tag_exists_message (_tmp1_);
#line 1575 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
+ _tmp3_ = _tmp2_;
#line 1575 "/home/jens/Source/shotwell/src/Commands.vala"
- app_window_error_message (_tmp5_, NULL);
+ app_window_error_message (_tmp3_, NULL);
#line 1575 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp5_);
-#line 13319 "Commands.c"
+ _g_free0 (_tmp3_);
+#line 13943 "Commands.c"
}
}
-static void rename_tag_command_class_init (RenameTagCommandClass * klass) {
+static void
+rename_tag_command_class_init (RenameTagCommandClass * klass)
+{
#line 1555 "/home/jens/Source/shotwell/src/Commands.vala"
rename_tag_command_parent_class = g_type_class_peek_parent (klass);
#line 1555 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -13331,18 +13957,22 @@ static void rename_tag_command_class_init (RenameTagCommandClass * klass) {
((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) rename_tag_command_real_undo_on_source;
#line 1555 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = rename_tag_command_finalize;
-#line 13335 "Commands.c"
+#line 13961 "Commands.c"
}
-static void rename_tag_command_instance_init (RenameTagCommand * self) {
+static void
+rename_tag_command_instance_init (RenameTagCommand * self)
+{
#line 1555 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = RENAME_TAG_COMMAND_GET_PRIVATE (self);
-#line 13342 "Commands.c"
+#line 13970 "Commands.c"
}
-static void rename_tag_command_finalize (GObject * obj) {
+static void
+rename_tag_command_finalize (GObject * obj)
+{
RenameTagCommand * self;
#line 1555 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RENAME_TAG_COMMAND, RenameTagCommand);
@@ -13352,11 +13982,13 @@ static void rename_tag_command_finalize (GObject * obj) {
_g_free0 (self->priv->new_name);
#line 1555 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (rename_tag_command_parent_class)->finalize (obj);
-#line 13356 "Commands.c"
+#line 13986 "Commands.c"
}
-GType rename_tag_command_get_type (void) {
+GType
+rename_tag_command_get_type (void)
+{
static volatile gsize rename_tag_command_type_id__volatile = 0;
if (g_once_init_enter (&rename_tag_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (RenameTagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rename_tag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RenameTagCommand), 0, (GInstanceInitFunc) rename_tag_command_instance_init, NULL };
@@ -13368,343 +14000,339 @@ GType rename_tag_command_get_type (void) {
}
-DeleteTagCommand* delete_tag_command_construct (GType object_type, Tag* tag) {
+DeleteTagCommand*
+delete_tag_command_construct (GType object_type,
+ Tag* tag)
+{
DeleteTagCommand * self = NULL;
- Tag* _tmp0_;
- Tag* _tmp1_;
+ gchar* _tmp0_;
+ gchar* _tmp1_;
gchar* _tmp2_;
gchar* _tmp3_;
gchar* _tmp4_;
gchar* _tmp5_;
- Tag* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
#line 1582 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_TAG (tag), NULL);
#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = tag;
+ _tmp0_ = tag_get_user_visible_name (tag);
#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = tag;
+ _tmp1_ = _tmp0_;
#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = tag_get_user_visible_name (_tmp1_);
+ _tmp2_ = resources_delete_tag_label (_tmp1_);
#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp3_ = _tmp2_;
#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = resources_delete_tag_label (_tmp3_);
+ _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject));
#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp5_ = _tmp4_;
#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = tag;
-#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_OBJECT, DataObject));
-#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_;
-#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (DeleteTagCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PROXYABLE, Proxyable), _tmp5_, _tmp8_);
-#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp8_);
+ self = (DeleteTagCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_PROXYABLE, Proxyable), _tmp3_, _tmp5_);
#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (_tmp5_);
#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (_tmp3_);
+#line 1583 "/home/jens/Source/shotwell/src/Commands.vala"
+ _g_free0 (_tmp1_);
#line 1582 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 13413 "Commands.c"
+#line 14039 "Commands.c"
}
-DeleteTagCommand* delete_tag_command_new (Tag* tag) {
+DeleteTagCommand*
+delete_tag_command_new (Tag* tag)
+{
#line 1582 "/home/jens/Source/shotwell/src/Commands.vala"
return delete_tag_command_construct (TYPE_DELETE_TAG_COMMAND, tag);
-#line 13420 "Commands.c"
+#line 14048 "Commands.c"
}
-static void _delete_tag_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, gpointer self) {
+static void
+_delete_tag_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
+ gpointer self)
+{
#line 1597 "/home/jens/Source/shotwell/src/Commands.vala"
delete_tag_command_on_proxy_broken ((DeleteTagCommand*) self);
-#line 13427 "Commands.c"
+#line 14058 "Commands.c"
}
-static void delete_tag_command_real_execute_on_source (SimpleProxyableCommand* base, DataSource* source) {
+static void
+delete_tag_command_real_execute_on_source (SimpleProxyableCommand* base,
+ DataSource* source)
+{
DeleteTagCommand * self;
Tag* tag = NULL;
- DataSource* _tmp0_;
- Tag* _tmp1_;
+ Tag* _tmp0_;
GeeList* recursive_victims = NULL;
- Tag* _tmp2_;
+ Tag* _tmp1_;
+ GeeList* _tmp2_;
GeeList* _tmp3_;
- GeeList* _tmp4_;
+ gint _tmp4_;
gint _tmp5_;
- gint _tmp6_;
+ TagSourceCollection* _tmp28_;
TagSourceCollection* _tmp29_;
- TagSourceCollection* _tmp30_;
- DataSource* _tmp31_;
- Marker* _tmp32_;
- Marker* _tmp33_;
+ Marker* _tmp30_;
+ Marker* _tmp31_;
#line 1586 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DELETE_TAG_COMMAND, DeleteTagCommand);
#line 1586 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 1587 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 1587 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_TAG, Tag));
+ _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag));
#line 1587 "/home/jens/Source/shotwell/src/Commands.vala"
- tag = _tmp1_;
+ tag = _tmp0_;
#line 1590 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = tag;
+ _tmp1_ = tag;
#line 1590 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = tag_get_hierarchical_children (_tmp2_);
+ _tmp2_ = tag_get_hierarchical_children (_tmp1_);
#line 1590 "/home/jens/Source/shotwell/src/Commands.vala"
- recursive_victims = _tmp3_;
+ recursive_victims = _tmp2_;
#line 1591 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = recursive_victims;
+ _tmp3_ = recursive_victims;
#line 1591 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1591 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
+ _tmp5_ = _tmp4_;
#line 1591 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp6_ > 0) {
-#line 13471 "Commands.c"
- GeeArrayList* _tmp7_;
+ if (_tmp5_ > 0) {
+#line 14101 "Commands.c"
+ GeeArrayList* _tmp6_;
#line 1594 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_array_list_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL);
+ _tmp6_ = gee_array_list_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL);
#line 1594 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->recursive_victim_proxies);
#line 1594 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->recursive_victim_proxies = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_LIST, GeeList);
-#line 13479 "Commands.c"
+ self->priv->recursive_victim_proxies = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList);
+#line 14109 "Commands.c"
{
GeeList* _victim_list = NULL;
+ GeeList* _tmp7_;
GeeList* _tmp8_;
- GeeList* _tmp9_;
gint _victim_size = 0;
- GeeList* _tmp10_;
+ GeeList* _tmp9_;
+ gint _tmp10_;
gint _tmp11_;
- gint _tmp12_;
gint _victim_index = 0;
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = recursive_victims;
+ _tmp7_ = recursive_victims;
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _g_object_ref0 (_tmp8_);
+ _tmp8_ = _g_object_ref0 (_tmp7_);
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _victim_list = _tmp9_;
+ _victim_list = _tmp8_;
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _victim_list;
+ _tmp9_ = _victim_list;
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _tmp11_;
+ _tmp11_ = _tmp10_;
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _victim_size = _tmp12_;
+ _victim_size = _tmp11_;
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
_victim_index = -1;
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 13507 "Commands.c"
+#line 14137 "Commands.c"
+ gint _tmp12_;
gint _tmp13_;
gint _tmp14_;
- gint _tmp15_;
Tag* victim = NULL;
- GeeList* _tmp16_;
- gint _tmp17_;
- gpointer _tmp18_;
+ GeeList* _tmp15_;
+ gint _tmp16_;
+ gpointer _tmp17_;
SourceProxy* proxy = NULL;
- Tag* _tmp19_;
+ Tag* _tmp18_;
+ SourceProxy* _tmp19_;
SourceProxy* _tmp20_;
- SourceProxy* _tmp21_;
- GeeList* _tmp22_;
- SourceProxy* _tmp23_;
+ GeeList* _tmp21_;
+ SourceProxy* _tmp22_;
+ TagSourceCollection* _tmp23_;
TagSourceCollection* _tmp24_;
- TagSourceCollection* _tmp25_;
- Tag* _tmp26_;
+ Tag* _tmp25_;
+ Marker* _tmp26_;
Marker* _tmp27_;
- Marker* _tmp28_;
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _victim_index;
+ _tmp12_ = _victim_index;
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _victim_index = _tmp13_ + 1;
+ _victim_index = _tmp12_ + 1;
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _victim_index;
+ _tmp13_ = _victim_index;
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _victim_size;
+ _tmp14_ = _victim_size;
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp14_ < _tmp15_)) {
+ if (!(_tmp13_ < _tmp14_)) {
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 13538 "Commands.c"
+#line 14168 "Commands.c"
}
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _victim_list;
+ _tmp15_ = _victim_list;
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _victim_index;
+ _tmp16_ = _victim_index;
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = gee_list_get (_tmp16_, _tmp17_);
+ _tmp17_ = gee_list_get (_tmp15_, _tmp16_);
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
- victim = (Tag*) _tmp18_;
+ victim = (Tag*) _tmp17_;
#line 1596 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = victim;
+ _tmp18_ = victim;
#line 1596 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_PROXYABLE, Proxyable));
+ _tmp19_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PROXYABLE, Proxyable));
#line 1596 "/home/jens/Source/shotwell/src/Commands.vala"
- proxy = _tmp20_;
+ proxy = _tmp19_;
#line 1597 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = proxy;
+ _tmp20_ = proxy;
#line 1597 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp21_, "broken", (GCallback) _delete_tag_command_on_proxy_broken_source_proxy_broken, self, 0);
+ g_signal_connect_object (_tmp20_, "broken", (GCallback) _delete_tag_command_on_proxy_broken_source_proxy_broken, self, 0);
#line 1598 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = self->priv->recursive_victim_proxies;
+ _tmp21_ = self->priv->recursive_victim_proxies;
#line 1598 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = proxy;
+ _tmp22_ = proxy;
#line 1598 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection), _tmp23_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection), _tmp22_);
#line 1600 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = tag_global;
+ _tmp23_ = tag_global;
#line 1600 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = tag_global;
+ _tmp24_ = tag_global;
#line 1600 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = victim;
+ _tmp25_ = victim;
#line 1600 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_DATA_OBJECT, DataObject));
+ _tmp26_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_OBJECT, DataObject));
#line 1600 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = _tmp27_;
+ _tmp27_ = _tmp26_;
#line 1600 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp28_, FALSE, NULL, NULL, NULL);
+ source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp27_, FALSE, NULL, NULL, NULL);
#line 1600 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp28_);
+ _g_object_unref0 (_tmp27_);
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (proxy);
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (victim);
-#line 13582 "Commands.c"
+#line 14212 "Commands.c"
}
#line 1595 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_victim_list);
-#line 13586 "Commands.c"
+#line 14216 "Commands.c"
}
}
#line 1605 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = tag_global;
-#line 1605 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = tag_global;
+ _tmp28_ = tag_global;
#line 1605 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = source;
+ _tmp29_ = tag_global;
#line 1605 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_DATA_OBJECT, DataObject));
+ _tmp30_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
#line 1605 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = _tmp32_;
+ _tmp31_ = _tmp30_;
#line 1605 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp33_, FALSE, NULL, NULL, NULL);
+ source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp31_, FALSE, NULL, NULL, NULL);
#line 1605 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp33_);
+ _g_object_unref0 (_tmp31_);
#line 1586 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (recursive_victims);
#line 1586 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (tag);
-#line 13607 "Commands.c"
+#line 14235 "Commands.c"
}
-static void delete_tag_command_real_undo_on_source (SimpleProxyableCommand* base, DataSource* source) {
+static void
+delete_tag_command_real_undo_on_source (SimpleProxyableCommand* base,
+ DataSource* source)
+{
DeleteTagCommand * self;
- DataSource* _tmp0_;
- GeeList* _tmp1_;
+ GeeList* _tmp0_;
#line 1608 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DELETE_TAG_COMMAND, DeleteTagCommand);
#line 1608 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 1611 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 1611 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_TAG), "source is Tag");
+ _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_TAG), "source is Tag");
#line 1614 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = self->priv->recursive_victim_proxies;
+ _tmp0_ = self->priv->recursive_victim_proxies;
#line 1614 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_ != NULL) {
-#line 13627 "Commands.c"
+ if (_tmp0_ != NULL) {
+#line 14255 "Commands.c"
{
gint i = 0;
- GeeList* _tmp2_;
+ GeeList* _tmp1_;
+ gint _tmp2_;
gint _tmp3_;
- gint _tmp4_;
#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->recursive_victim_proxies;
+ _tmp1_ = self->priv->recursive_victim_proxies;
#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
+ _tmp3_ = _tmp2_;
#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp4_ - 1;
-#line 13641 "Commands.c"
+ i = _tmp3_ - 1;
+#line 14269 "Commands.c"
{
- gboolean _tmp5_ = FALSE;
+ gboolean _tmp4_ = FALSE;
#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = TRUE;
+ _tmp4_ = TRUE;
#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 13648 "Commands.c"
- gint _tmp7_;
+#line 14276 "Commands.c"
+ gint _tmp6_;
SourceProxy* proxy = NULL;
- GeeList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
+ GeeList* _tmp7_;
+ gint _tmp8_;
+ gpointer _tmp9_;
DataSource* victim_source = NULL;
- SourceProxy* _tmp11_;
+ SourceProxy* _tmp10_;
+ DataSource* _tmp11_;
DataSource* _tmp12_;
- DataSource* _tmp13_;
- SourceProxy* _tmp14_;
- guint _tmp15_;
+ SourceProxy* _tmp13_;
+ guint _tmp14_;
#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp5_) {
-#line 13662 "Commands.c"
- gint _tmp6_;
+ if (!_tmp4_) {
+#line 14290 "Commands.c"
+ gint _tmp5_;
#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = i;
+ _tmp5_ = i;
#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp6_ - 1;
-#line 13668 "Commands.c"
+ i = _tmp5_ - 1;
+#line 14296 "Commands.c"
}
#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = FALSE;
+ _tmp4_ = FALSE;
#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = i;
+ _tmp6_ = i;
#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp7_ >= 0)) {
+ if (!(_tmp6_ >= 0)) {
#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 13678 "Commands.c"
+#line 14306 "Commands.c"
}
#line 1616 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = self->priv->recursive_victim_proxies;
+ _tmp7_ = self->priv->recursive_victim_proxies;
#line 1616 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = i;
+ _tmp8_ = i;
#line 1616 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_list_get (_tmp8_, _tmp9_);
+ _tmp9_ = gee_list_get (_tmp7_, _tmp8_);
#line 1616 "/home/jens/Source/shotwell/src/Commands.vala"
- proxy = (SourceProxy*) _tmp10_;
+ proxy = (SourceProxy*) _tmp9_;
#line 1618 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = proxy;
+ _tmp10_ = proxy;
#line 1618 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = source_proxy_get_source (_tmp11_);
+ _tmp11_ = source_proxy_get_source (_tmp10_);
#line 1618 "/home/jens/Source/shotwell/src/Commands.vala"
- victim_source = _tmp12_;
+ victim_source = _tmp11_;
#line 1619 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = victim_source;
+ _tmp12_ = victim_source;
#line 1619 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, TYPE_TAG), "victim_source is Tag");
+ _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, TYPE_TAG), "victim_source is Tag");
#line 1621 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = proxy;
+ _tmp13_ = proxy;
#line 1621 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp15_, NULL, FALSE);
+ g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp14_, NULL, FALSE);
#line 1621 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_handlers_disconnect_matched (_tmp14_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp15_, 0, NULL, (GCallback) _delete_tag_command_on_proxy_broken_source_proxy_broken, self);
+ g_signal_handlers_disconnect_matched (_tmp13_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _delete_tag_command_on_proxy_broken_source_proxy_broken, self);
#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (victim_source);
#line 1615 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (proxy);
-#line 13708 "Commands.c"
+#line 14336 "Commands.c"
}
}
}
@@ -13712,12 +14340,14 @@ static void delete_tag_command_real_undo_on_source (SimpleProxyableCommand* base
_g_object_unref0 (self->priv->recursive_victim_proxies);
#line 1624 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->recursive_victim_proxies = NULL;
-#line 13716 "Commands.c"
+#line 14344 "Commands.c"
}
}
-static void delete_tag_command_on_proxy_broken (DeleteTagCommand* self) {
+static void
+delete_tag_command_on_proxy_broken (DeleteTagCommand* self)
+{
CommandManager* _tmp0_;
CommandManager* _tmp1_;
#line 1628 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -13730,11 +14360,13 @@ static void delete_tag_command_on_proxy_broken (DeleteTagCommand* self) {
command_manager_reset (_tmp1_);
#line 1629 "/home/jens/Source/shotwell/src/Commands.vala"
_command_manager_unref0 (_tmp1_);
-#line 13734 "Commands.c"
+#line 14364 "Commands.c"
}
-static void delete_tag_command_class_init (DeleteTagCommandClass * klass) {
+static void
+delete_tag_command_class_init (DeleteTagCommandClass * klass)
+{
#line 1579 "/home/jens/Source/shotwell/src/Commands.vala"
delete_tag_command_parent_class = g_type_class_peek_parent (klass);
#line 1579 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -13745,20 +14377,24 @@ static void delete_tag_command_class_init (DeleteTagCommandClass * klass) {
((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) delete_tag_command_real_undo_on_source;
#line 1579 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = delete_tag_command_finalize;
-#line 13749 "Commands.c"
+#line 14381 "Commands.c"
}
-static void delete_tag_command_instance_init (DeleteTagCommand * self) {
+static void
+delete_tag_command_instance_init (DeleteTagCommand * self)
+{
#line 1579 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = DELETE_TAG_COMMAND_GET_PRIVATE (self);
#line 1580 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->recursive_victim_proxies = NULL;
-#line 13758 "Commands.c"
+#line 14392 "Commands.c"
}
-static void delete_tag_command_finalize (GObject * obj) {
+static void
+delete_tag_command_finalize (GObject * obj)
+{
DeleteTagCommand * self;
#line 1579 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DELETE_TAG_COMMAND, DeleteTagCommand);
@@ -13766,11 +14402,13 @@ static void delete_tag_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->recursive_victim_proxies);
#line 1579 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (delete_tag_command_parent_class)->finalize (obj);
-#line 13770 "Commands.c"
+#line 14406 "Commands.c"
}
-GType delete_tag_command_get_type (void) {
+GType
+delete_tag_command_get_type (void)
+{
static volatile gsize delete_tag_command_type_id__volatile = 0;
if (g_once_init_enter (&delete_tag_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (DeleteTagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) delete_tag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DeleteTagCommand), 0, (GInstanceInitFunc) delete_tag_command_instance_init, NULL };
@@ -13782,68 +14420,70 @@ GType delete_tag_command_get_type (void) {
}
-NewChildTagCommand* new_child_tag_command_construct (GType object_type, Tag* tag) {
+NewChildTagCommand*
+new_child_tag_command_construct (GType object_type,
+ Tag* tag)
+{
NewChildTagCommand * self = NULL;
- Tag* _tmp0_;
- Tag* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
+ gchar* _tmp0_;
+ gchar* _tmp1_;
#line 1636 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_TAG (tag), NULL);
#line 1637 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = tag;
+ _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject));
#line 1637 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = tag;
-#line 1637 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject));
-#line 1637 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = _tmp2_;
+ _tmp1_ = _tmp0_;
#line 1637 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (NewChildTagCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PROXYABLE, Proxyable), _ ("Create Tag"), _tmp3_);
+ self = (NewChildTagCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_PROXYABLE, Proxyable), _ ("Create Tag"), _tmp1_);
#line 1637 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp3_);
+ _g_free0 (_tmp1_);
#line 1636 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 13808 "Commands.c"
+#line 14443 "Commands.c"
}
-NewChildTagCommand* new_child_tag_command_new (Tag* tag) {
+NewChildTagCommand*
+new_child_tag_command_new (Tag* tag)
+{
#line 1636 "/home/jens/Source/shotwell/src/Commands.vala"
return new_child_tag_command_construct (TYPE_NEW_CHILD_TAG_COMMAND, tag);
-#line 13815 "Commands.c"
+#line 14452 "Commands.c"
}
-static void new_child_tag_command_real_execute_on_source (SimpleProxyableCommand* base, DataSource* source) {
+static void
+new_child_tag_command_real_execute_on_source (SimpleProxyableCommand* base,
+ DataSource* source)
+{
NewChildTagCommand * self;
Tag* tag = NULL;
- DataSource* _tmp0_;
+ Tag* _tmp0_;
Tag* _tmp1_;
- Tag* _tmp2_;
#line 1640 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommand);
#line 1640 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 1641 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 1641 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_TAG, Tag));
+ _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag));
#line 1641 "/home/jens/Source/shotwell/src/Commands.vala"
- tag = _tmp1_;
+ tag = _tmp0_;
#line 1642 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = tag_create_new_child (tag);
+ _tmp1_ = tag_create_new_child (tag);
#line 1642 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->created_child);
#line 1642 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->created_child = _tmp2_;
+ self->priv->created_child = _tmp1_;
#line 1640 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (tag);
-#line 13843 "Commands.c"
+#line 14480 "Commands.c"
}
-static void new_child_tag_command_real_undo_on_source (SimpleProxyableCommand* base, DataSource* source) {
+static void
+new_child_tag_command_real_undo_on_source (SimpleProxyableCommand* base,
+ DataSource* source)
+{
NewChildTagCommand * self;
TagSourceCollection* _tmp0_;
TagSourceCollection* _tmp1_;
@@ -13868,11 +14508,13 @@ static void new_child_tag_command_real_undo_on_source (SimpleProxyableCommand* b
source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp4_, TRUE, NULL, NULL, NULL);
#line 1646 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tmp4_);
-#line 13872 "Commands.c"
+#line 14512 "Commands.c"
}
-Tag* new_child_tag_command_get_created_child (NewChildTagCommand* self) {
+Tag*
+new_child_tag_command_get_created_child (NewChildTagCommand* self)
+{
Tag* result = NULL;
Tag* _tmp0_;
Tag* _tmp1_;
@@ -13891,11 +14533,13 @@ Tag* new_child_tag_command_get_created_child (NewChildTagCommand* self) {
result = _tmp2_;
#line 1652 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 13895 "Commands.c"
+#line 14537 "Commands.c"
}
-static void new_child_tag_command_class_init (NewChildTagCommandClass * klass) {
+static void
+new_child_tag_command_class_init (NewChildTagCommandClass * klass)
+{
#line 1633 "/home/jens/Source/shotwell/src/Commands.vala"
new_child_tag_command_parent_class = g_type_class_peek_parent (klass);
#line 1633 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -13906,20 +14550,24 @@ static void new_child_tag_command_class_init (NewChildTagCommandClass * klass) {
((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) new_child_tag_command_real_undo_on_source;
#line 1633 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = new_child_tag_command_finalize;
-#line 13910 "Commands.c"
+#line 14554 "Commands.c"
}
-static void new_child_tag_command_instance_init (NewChildTagCommand * self) {
+static void
+new_child_tag_command_instance_init (NewChildTagCommand * self)
+{
#line 1633 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = NEW_CHILD_TAG_COMMAND_GET_PRIVATE (self);
#line 1634 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->created_child = NULL;
-#line 13919 "Commands.c"
+#line 14565 "Commands.c"
}
-static void new_child_tag_command_finalize (GObject * obj) {
+static void
+new_child_tag_command_finalize (GObject * obj)
+{
NewChildTagCommand * self;
#line 1633 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommand);
@@ -13927,11 +14575,13 @@ static void new_child_tag_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->created_child);
#line 1633 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (new_child_tag_command_parent_class)->finalize (obj);
-#line 13931 "Commands.c"
+#line 14579 "Commands.c"
}
-GType new_child_tag_command_get_type (void) {
+GType
+new_child_tag_command_get_type (void)
+{
static volatile gsize new_child_tag_command_type_id__volatile = 0;
if (g_once_init_enter (&new_child_tag_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (NewChildTagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) new_child_tag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NewChildTagCommand), 0, (GInstanceInitFunc) new_child_tag_command_instance_init, NULL };
@@ -13943,24 +14593,30 @@ GType new_child_tag_command_get_type (void) {
}
-NewRootTagCommand* new_root_tag_command_construct (GType object_type) {
+NewRootTagCommand*
+new_root_tag_command_construct (GType object_type)
+{
NewRootTagCommand * self = NULL;
#line 1660 "/home/jens/Source/shotwell/src/Commands.vala"
self = (NewRootTagCommand*) page_command_construct (object_type, _ ("Create Tag"), "");
#line 1659 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 13953 "Commands.c"
+#line 14605 "Commands.c"
}
-NewRootTagCommand* new_root_tag_command_new (void) {
+NewRootTagCommand*
+new_root_tag_command_new (void)
+{
#line 1659 "/home/jens/Source/shotwell/src/Commands.vala"
return new_root_tag_command_construct (TYPE_NEW_ROOT_TAG_COMMAND);
-#line 13960 "Commands.c"
+#line 14614 "Commands.c"
}
-static void new_root_tag_command_real_execute (Command* base) {
+static void
+new_root_tag_command_real_execute (Command* base)
+{
NewRootTagCommand * self;
SourceProxy* _tmp0_;
#line 1663 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -13969,7 +14625,7 @@ static void new_root_tag_command_real_execute (Command* base) {
_tmp0_ = self->priv->created_proxy;
#line 1664 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp0_ == NULL) {
-#line 13973 "Commands.c"
+#line 14629 "Commands.c"
Tag* _tmp1_;
Tag* _tmp2_;
SourceProxy* _tmp3_;
@@ -13985,7 +14641,7 @@ static void new_root_tag_command_real_execute (Command* base) {
self->priv->created_proxy = _tmp3_;
#line 1665 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tmp2_);
-#line 13989 "Commands.c"
+#line 14645 "Commands.c"
} else {
SourceProxy* _tmp4_;
DataSource* _tmp5_;
@@ -13998,12 +14654,14 @@ static void new_root_tag_command_real_execute (Command* base) {
_tmp6_ = _tmp5_;
#line 1667 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tmp6_);
-#line 14002 "Commands.c"
+#line 14658 "Commands.c"
}
}
-static void new_root_tag_command_real_undo (Command* base) {
+static void
+new_root_tag_command_real_undo (Command* base)
+{
NewRootTagCommand * self;
TagSourceCollection* _tmp0_;
TagSourceCollection* _tmp1_;
@@ -14034,11 +14692,13 @@ static void new_root_tag_command_real_undo (Command* base) {
_g_object_unref0 (_tmp6_);
#line 1671 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tmp4_);
-#line 14038 "Commands.c"
+#line 14696 "Commands.c"
}
-Tag* new_root_tag_command_get_created_tag (NewRootTagCommand* self) {
+Tag*
+new_root_tag_command_get_created_tag (NewRootTagCommand* self)
+{
Tag* result = NULL;
SourceProxy* _tmp0_;
DataSource* _tmp1_;
@@ -14052,11 +14712,13 @@ Tag* new_root_tag_command_get_created_tag (NewRootTagCommand* self) {
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_TAG, Tag);
#line 1675 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 14056 "Commands.c"
+#line 14716 "Commands.c"
}
-static void new_root_tag_command_class_init (NewRootTagCommandClass * klass) {
+static void
+new_root_tag_command_class_init (NewRootTagCommandClass * klass)
+{
#line 1656 "/home/jens/Source/shotwell/src/Commands.vala"
new_root_tag_command_parent_class = g_type_class_peek_parent (klass);
#line 1656 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -14067,20 +14729,24 @@ static void new_root_tag_command_class_init (NewRootTagCommandClass * klass) {
((CommandClass *) klass)->undo = (void (*) (Command *)) new_root_tag_command_real_undo;
#line 1656 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = new_root_tag_command_finalize;
-#line 14071 "Commands.c"
+#line 14733 "Commands.c"
}
-static void new_root_tag_command_instance_init (NewRootTagCommand * self) {
+static void
+new_root_tag_command_instance_init (NewRootTagCommand * self)
+{
#line 1656 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = NEW_ROOT_TAG_COMMAND_GET_PRIVATE (self);
#line 1657 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->created_proxy = NULL;
-#line 14080 "Commands.c"
+#line 14744 "Commands.c"
}
-static void new_root_tag_command_finalize (GObject * obj) {
+static void
+new_root_tag_command_finalize (GObject * obj)
+{
NewRootTagCommand * self;
#line 1656 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommand);
@@ -14088,11 +14754,13 @@ static void new_root_tag_command_finalize (GObject * obj) {
_source_proxy_unref0 (self->priv->created_proxy);
#line 1656 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (new_root_tag_command_parent_class)->finalize (obj);
-#line 14092 "Commands.c"
+#line 14758 "Commands.c"
}
-GType new_root_tag_command_get_type (void) {
+GType
+new_root_tag_command_get_type (void)
+{
static volatile gsize new_root_tag_command_type_id__volatile = 0;
if (g_once_init_enter (&new_root_tag_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (NewRootTagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) new_root_tag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NewRootTagCommand), 0, (GInstanceInitFunc) new_root_tag_command_instance_init, NULL };
@@ -14104,746 +14772,701 @@ GType new_root_tag_command_get_type (void) {
}
-static void _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed (SourceCollection* _sender, GeeCollection* destroyed, gpointer self) {
+static void
+_reparent_tag_command_on_items_destroyed_source_collection_items_destroyed (SourceCollection* _sender,
+ GeeCollection* destroyed,
+ gpointer self)
+{
#line 1724 "/home/jens/Source/shotwell/src/Commands.vala"
reparent_tag_command_on_items_destroyed ((ReparentTagCommand*) self, destroyed);
-#line 14111 "Commands.c"
+#line 14783 "Commands.c"
}
-ReparentTagCommand* reparent_tag_command_construct (GType object_type, Tag* tag, const gchar* new_parent_path) {
+ReparentTagCommand*
+reparent_tag_command_construct (GType object_type,
+ Tag* tag,
+ const gchar* new_parent_path)
+{
ReparentTagCommand * self = NULL;
- Tag* _tmp0_;
+ gchar* _tmp0_;
gchar* _tmp1_;
gchar* _tmp2_;
gchar* _tmp3_;
gchar* _tmp4_;
- Tag* _tmp5_;
- gchar* _tmp6_;
gboolean has_children = FALSE;
- Tag* _tmp7_;
- GeeList* _tmp8_;
- GeeList* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gboolean _tmp12_;
+ GeeList* _tmp5_;
+ GeeList* _tmp6_;
+ gint _tmp7_;
+ gint _tmp8_;
+ gboolean _tmp9_;
gchar* basename = NULL;
- Tag* _tmp13_;
- gchar* _tmp14_;
- const gchar* _tmp15_;
+ gchar* _tmp10_;
gchar* new_to_path = NULL;
- const gchar* _tmp37_;
- gchar* _tmp38_;
- const gchar* _tmp39_;
- TagSourceCollection* _tmp42_;
- const gchar* _tmp43_;
- gboolean _tmp44_;
- GeeHashSet* _tmp45_;
- Tag* _tmp46_;
- GeeCollection* _tmp47_;
- GeeCollection* _tmp48_;
- LibraryPhotoSourceCollection* _tmp49_;
- VideoSourceCollection* _tmp50_;
+ const gchar* _tmp28_;
+ gchar* _tmp29_;
+ const gchar* _tmp30_;
+ TagSourceCollection* _tmp33_;
+ const gchar* _tmp34_;
+ GeeHashSet* _tmp35_;
+ GeeCollection* _tmp36_;
+ GeeCollection* _tmp37_;
+ LibraryPhotoSourceCollection* _tmp38_;
+ VideoSourceCollection* _tmp39_;
#line 1694 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_TAG (tag), NULL);
#line 1694 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (new_parent_path != NULL, NULL);
#line 1695 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = tag;
+ _tmp0_ = tag_get_user_visible_name (tag);
#line 1695 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = tag_get_user_visible_name (_tmp0_);
-#line 1695 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
+ _tmp1_ = _tmp0_;
#line 1695 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = g_strdup_printf (_ ("Move Tag “%s”"), _tmp2_);
+ _tmp2_ = g_strdup_printf (_ ("Move Tag “%s”"), _tmp1_);
#line 1695 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
+ _tmp3_ = _tmp2_;
#line 1695 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (ReparentTagCommand*) page_command_construct (object_type, _tmp4_, "");
+ self = (ReparentTagCommand*) page_command_construct (object_type, _tmp3_, "");
#line 1695 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp4_);
+ _g_free0 (_tmp3_);
#line 1695 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp2_);
+ _g_free0 (_tmp1_);
#line 1697 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = tag;
-#line 1697 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = tag_get_path (_tmp5_);
+ _tmp4_ = tag_get_path (tag);
#line 1697 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->from_path);
#line 1697 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->from_path = _tmp6_;
-#line 1699 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = tag;
+ self->priv->from_path = _tmp4_;
#line 1699 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = tag_get_hierarchical_children (_tmp7_);
+ _tmp5_ = tag_get_hierarchical_children (tag);
#line 1699 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _tmp8_;
+ _tmp6_ = _tmp5_;
#line 1699 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1699 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
+ _tmp8_ = _tmp7_;
#line 1699 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _tmp11_ > 0;
+ _tmp9_ = _tmp8_ > 0;
#line 1699 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp9_);
+ _g_object_unref0 (_tmp6_);
#line 1699 "/home/jens/Source/shotwell/src/Commands.vala"
- has_children = _tmp12_;
+ has_children = _tmp9_;
#line 1700 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = tag;
+ _tmp10_ = tag_get_user_visible_name (tag);
#line 1700 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = tag_get_user_visible_name (_tmp13_);
-#line 1700 "/home/jens/Source/shotwell/src/Commands.vala"
- basename = _tmp14_;
-#line 1702 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = new_parent_path;
+ basename = _tmp10_;
#line 1702 "/home/jens/Source/shotwell/src/Commands.vala"
- if (g_strcmp0 (_tmp15_, TAG_PATH_SEPARATOR_STRING) == 0) {
-#line 14202 "Commands.c"
- gchar* _tmp16_ = NULL;
- gboolean _tmp17_;
- gchar* _tmp22_;
+ if (g_strcmp0 (new_parent_path, TAG_PATH_SEPARATOR_STRING) == 0) {
+#line 14861 "Commands.c"
+ gchar* _tmp11_ = NULL;
+ gboolean _tmp12_;
+ gchar* _tmp17_;
#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = has_children;
+ _tmp12_ = has_children;
#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp17_) {
-#line 14210 "Commands.c"
- const gchar* _tmp18_;
- gchar* _tmp19_;
+ if (_tmp12_) {
+#line 14869 "Commands.c"
+ const gchar* _tmp13_;
+ gchar* _tmp14_;
#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = basename;
+ _tmp13_ = basename;
#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp18_, NULL);
+ _tmp14_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp13_, NULL);
#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp16_);
+ _g_free0 (_tmp11_);
#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _tmp19_;
-#line 14221 "Commands.c"
+ _tmp11_ = _tmp14_;
+#line 14880 "Commands.c"
} else {
- const gchar* _tmp20_;
- gchar* _tmp21_;
+ const gchar* _tmp15_;
+ gchar* _tmp16_;
#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = basename;
+ _tmp15_ = basename;
#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = g_strdup (_tmp20_);
+ _tmp16_ = g_strdup (_tmp15_);
#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp16_);
+ _g_free0 (_tmp11_);
#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _tmp21_;
-#line 14233 "Commands.c"
+ _tmp11_ = _tmp16_;
+#line 14892 "Commands.c"
}
#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = g_strdup (_tmp16_);
+ _tmp17_ = g_strdup (_tmp11_);
#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->to_path);
#line 1703 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_path = _tmp22_;
+ self->priv->to_path = _tmp17_;
#line 1702 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp16_);
-#line 14243 "Commands.c"
+ _g_free0 (_tmp11_);
+#line 14902 "Commands.c"
} else {
- const gchar* _tmp23_;
- gboolean _tmp24_;
-#line 1704 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = new_parent_path;
#line 1704 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = g_str_has_prefix (_tmp23_, TAG_PATH_SEPARATOR_STRING);
-#line 1704 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp24_) {
-#line 14253 "Commands.c"
- const gchar* _tmp25_;
- gchar* _tmp26_;
- gchar* _tmp27_;
- const gchar* _tmp28_;
- gchar* _tmp29_;
-#line 1705 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = new_parent_path;
+ if (g_str_has_prefix (new_parent_path, TAG_PATH_SEPARATOR_STRING)) {
+#line 14906 "Commands.c"
+ gchar* _tmp18_;
+ gchar* _tmp19_;
+ const gchar* _tmp20_;
+ gchar* _tmp21_;
#line 1705 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = g_strconcat (_tmp25_, TAG_PATH_SEPARATOR_STRING, NULL);
+ _tmp18_ = g_strconcat (new_parent_path, TAG_PATH_SEPARATOR_STRING, NULL);
#line 1705 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = _tmp26_;
+ _tmp19_ = _tmp18_;
#line 1705 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = basename;
+ _tmp20_ = basename;
#line 1705 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = g_strconcat (_tmp27_, _tmp28_, NULL);
+ _tmp21_ = g_strconcat (_tmp19_, _tmp20_, NULL);
#line 1705 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->to_path);
#line 1705 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_path = _tmp29_;
+ self->priv->to_path = _tmp21_;
#line 1705 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp27_);
-#line 14275 "Commands.c"
+ _g_free0 (_tmp19_);
+#line 14925 "Commands.c"
} else {
- const gchar* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
- gchar* _tmp34_;
- const gchar* _tmp35_;
- gchar* _tmp36_;
+ gchar* _tmp22_;
+ gchar* _tmp23_;
+ gchar* _tmp24_;
+ gchar* _tmp25_;
+ const gchar* _tmp26_;
+ gchar* _tmp27_;
#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = new_parent_path;
+ _tmp22_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, new_parent_path, NULL);
#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp30_, NULL);
+ _tmp23_ = _tmp22_;
#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = _tmp31_;
+ _tmp24_ = g_strconcat (_tmp23_, TAG_PATH_SEPARATOR_STRING, NULL);
#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = g_strconcat (_tmp32_, TAG_PATH_SEPARATOR_STRING, NULL);
+ _tmp25_ = _tmp24_;
#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = _tmp33_;
+ _tmp26_ = basename;
#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = basename;
-#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = g_strconcat (_tmp34_, _tmp35_, NULL);
+ _tmp27_ = g_strconcat (_tmp25_, _tmp26_, NULL);
#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->to_path);
#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_path = _tmp36_;
+ self->priv->to_path = _tmp27_;
#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp34_);
+ _g_free0 (_tmp25_);
#line 1707 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp32_);
-#line 14306 "Commands.c"
+ _g_free0 (_tmp23_);
+#line 14953 "Commands.c"
}
}
#line 1710 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = self->priv->to_path;
+ _tmp28_ = self->priv->to_path;
#line 1710 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = hierarchical_tag_utilities_get_root_path_form (_tmp37_);
+ _tmp29_ = hierarchical_tag_utilities_get_root_path_form (_tmp28_);
#line 1710 "/home/jens/Source/shotwell/src/Commands.vala"
- new_to_path = _tmp38_;
+ new_to_path = _tmp29_;
#line 1711 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = new_to_path;
+ _tmp30_ = new_to_path;
#line 1711 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp39_ != NULL) {
-#line 14319 "Commands.c"
- const gchar* _tmp40_;
- gchar* _tmp41_;
+ if (_tmp30_ != NULL) {
+#line 14966 "Commands.c"
+ const gchar* _tmp31_;
+ gchar* _tmp32_;
#line 1712 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = new_to_path;
+ _tmp31_ = new_to_path;
#line 1712 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = g_strdup (_tmp40_);
+ _tmp32_ = g_strdup (_tmp31_);
#line 1712 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->to_path);
#line 1712 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_path = _tmp41_;
-#line 14330 "Commands.c"
+ self->priv->to_path = _tmp32_;
+#line 14977 "Commands.c"
}
#line 1714 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = tag_global;
+ _tmp33_ = tag_global;
#line 1714 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = self->priv->to_path;
+ _tmp34_ = self->priv->to_path;
#line 1714 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = tag_source_collection_exists (_tmp42_, _tmp43_, FALSE);
-#line 1714 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp44_) {
+ if (tag_source_collection_exists (_tmp33_, _tmp34_, FALSE)) {
#line 1715 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->to_path_exists = TRUE;
-#line 14342 "Commands.c"
+#line 14987 "Commands.c"
}
#line 1717 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = self->priv->sources_in_play;
-#line 1717 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp46_ = tag;
+ _tmp35_ = self->priv->sources_in_play;
#line 1717 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp47_ = tag_get_sources (_tmp46_);
+ _tmp36_ = tag_get_sources (tag);
#line 1717 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp48_ = _tmp47_;
+ _tmp37_ = _tmp36_;
#line 1717 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_COLLECTION, GeeCollection), _tmp48_);
+ gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_COLLECTION, GeeCollection), _tmp37_);
#line 1717 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp48_);
+ _g_object_unref0 (_tmp37_);
#line 1719 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp49_ = library_photo_global;
+ _tmp38_ = library_photo_global;
#line 1719 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-destroyed", (GCallback) _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-destroyed", (GCallback) _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed, self, 0);
#line 1720 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp50_ = video_global;
+ _tmp39_ = video_global;
#line 1720 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-destroyed", (GCallback) _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-destroyed", (GCallback) _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed, self, 0);
#line 1694 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (new_to_path);
#line 1694 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (basename);
#line 1694 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 14370 "Commands.c"
+#line 15013 "Commands.c"
}
-ReparentTagCommand* reparent_tag_command_new (Tag* tag, const gchar* new_parent_path) {
+ReparentTagCommand*
+reparent_tag_command_new (Tag* tag,
+ const gchar* new_parent_path)
+{
#line 1694 "/home/jens/Source/shotwell/src/Commands.vala"
return reparent_tag_command_construct (TYPE_REPARENT_TAG_COMMAND, tag, new_parent_path);
-#line 14377 "Commands.c"
+#line 15023 "Commands.c"
}
-static void reparent_tag_command_on_items_destroyed (ReparentTagCommand* self, GeeCollection* destroyed) {
+static void
+reparent_tag_command_on_items_destroyed (ReparentTagCommand* self,
+ GeeCollection* destroyed)
+{
#line 1728 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
#line 1728 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (GEE_IS_COLLECTION (destroyed));
-#line 14386 "Commands.c"
+#line 15035 "Commands.c"
{
GeeIterator* _source_it = NULL;
- GeeCollection* _tmp0_;
- GeeIterator* _tmp1_;
-#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = destroyed;
+ GeeIterator* _tmp0_;
#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (destroyed, GEE_TYPE_ITERABLE, GeeIterable));
#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp1_;
+ _source_it = _tmp0_;
#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 14399 "Commands.c"
- GeeIterator* _tmp2_;
- gboolean _tmp3_;
+#line 15045 "Commands.c"
+ GeeIterator* _tmp1_;
DataSource* source = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- GeeHashSet* _tmp6_;
- DataSource* _tmp7_;
- gboolean _tmp8_;
-#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_it;
+ GeeIterator* _tmp2_;
+ gpointer _tmp3_;
+ GeeHashSet* _tmp4_;
+ DataSource* _tmp5_;
#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
+ _tmp1_ = _source_it;
#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp1_)) {
#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 14416 "Commands.c"
+#line 15058 "Commands.c"
}
#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _source_it;
+ _tmp2_ = _source_it;
#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp3_ = gee_iterator_get (_tmp2_);
#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp5_;
+ source = (DataSource*) _tmp3_;
#line 1730 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = self->priv->sources_in_play;
+ _tmp4_ = self->priv->sources_in_play;
#line 1730 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = source;
-#line 1730 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MEDIA_SOURCE, MediaSource));
+ _tmp5_ = source;
#line 1730 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp8_) {
-#line 14432 "Commands.c"
- CommandManager* _tmp9_;
- CommandManager* _tmp10_;
+ if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource))) {
+#line 15072 "Commands.c"
+ CommandManager* _tmp6_;
+ CommandManager* _tmp7_;
#line 1731 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
+ _tmp6_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
#line 1731 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tmp9_;
+ _tmp7_ = _tmp6_;
#line 1731 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp10_);
+ command_manager_reset (_tmp7_);
#line 1731 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp10_);
-#line 14443 "Commands.c"
+ _command_manager_unref0 (_tmp7_);
+#line 15083 "Commands.c"
}
#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 14447 "Commands.c"
+#line 15087 "Commands.c"
}
#line 1729 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 14451 "Commands.c"
+#line 15091 "Commands.c"
}
}
-static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
+static gchar*
+string_replace (const gchar* self,
+ const gchar* old,
+ const gchar* replacement)
+{
gchar* result = NULL;
gboolean _tmp0_ = FALSE;
gboolean _tmp1_ = FALSE;
GError * _inner_error_ = NULL;
-#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_return_val_if_fail (old != NULL, NULL);
-#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_return_val_if_fail (replacement != NULL, NULL);
-#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if ((*((gchar*) self)) == '\0') {
-#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_tmp1_ = TRUE;
-#line 14471 "Commands.c"
+#line 15115 "Commands.c"
} else {
- const gchar* _tmp2_;
-#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp2_ = old;
-#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp1_ = (*((gchar*) _tmp2_)) == '\0';
-#line 14478 "Commands.c"
+#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp1_ = (*((gchar*) old)) == '\0';
+#line 15119 "Commands.c"
}
-#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (_tmp1_) {
-#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_tmp0_ = TRUE;
-#line 14484 "Commands.c"
+#line 15125 "Commands.c"
} else {
- const gchar* _tmp3_;
- const gchar* _tmp4_;
-#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp3_ = old;
-#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp4_ = replacement;
-#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp0_ = g_strcmp0 (_tmp3_, _tmp4_) == 0;
-#line 14494 "Commands.c"
+#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp0_ = g_strcmp0 (old, replacement) == 0;
+#line 15129 "Commands.c"
}
-#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (_tmp0_) {
-#line 14498 "Commands.c"
- gchar* _tmp5_;
-#line 1409 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp5_ = g_strdup (self);
-#line 1409 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- result = _tmp5_;
-#line 1409 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 15133 "Commands.c"
+ gchar* _tmp2_;
+#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp2_ = g_strdup (self);
+#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ result = _tmp2_;
+#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return result;
-#line 14506 "Commands.c"
+#line 15141 "Commands.c"
}
{
GRegex* regex = NULL;
- const gchar* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- GRegex* _tmp9_;
- GRegex* _tmp10_;
- gchar* _tmp11_ = NULL;
- GRegex* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
-#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp6_ = old;
-#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp7_ = g_regex_escape_string (_tmp6_, -1);
-#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp8_ = _tmp7_;
-#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp9_ = g_regex_new (_tmp8_, 0, 0, &_inner_error_);
-#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp10_ = _tmp9_;
-#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _g_free0 (_tmp8_);
-#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- regex = _tmp10_;
-#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ gchar* _tmp3_;
+ gchar* _tmp4_;
+ GRegex* _tmp5_;
+ GRegex* _tmp6_;
+ gchar* _tmp7_ = NULL;
+ GRegex* _tmp8_;
+ gchar* _tmp9_;
+ gchar* _tmp10_;
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp3_ = g_regex_escape_string (old, -1);
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp4_ = _tmp3_;
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_);
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp6_ = _tmp5_;
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _g_free0 (_tmp4_);
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ regex = _tmp6_;
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 14538 "Commands.c"
+#line 15169 "Commands.c"
goto __catch469_g_regex_error;
}
-#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return NULL;
-#line 14547 "Commands.c"
+#line 15178 "Commands.c"
}
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp12_ = regex;
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp13_ = replacement;
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp14_ = g_regex_replace_literal (_tmp12_, self, (gssize) -1, 0, _tmp13_, 0, &_inner_error_);
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp11_ = _tmp14_;
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp8_ = regex;
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_);
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp7_ = _tmp9_;
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 14563 "Commands.c"
+#line 15192 "Commands.c"
goto __catch469_g_regex_error;
}
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return NULL;
-#line 14574 "Commands.c"
+#line 15203 "Commands.c"
}
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp15_ = _tmp11_;
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp11_ = NULL;
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- result = _tmp15_;
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _g_free0 (_tmp11_);
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp10_ = _tmp7_;
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp7_ = NULL;
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ result = _tmp10_;
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _g_free0 (_tmp7_);
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return result;
-#line 14588 "Commands.c"
+#line 15217 "Commands.c"
}
goto __finally469;
__catch469_g_regex_error:
{
GError* e = NULL;
-#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
e = _inner_error_;
-#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_inner_error_ = NULL;
-#line 1415 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_assert_not_reached ();
-#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_g_error_free0 (e);
-#line 14602 "Commands.c"
+#line 15231 "Commands.c"
}
__finally469:
-#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return NULL;
-#line 14613 "Commands.c"
+#line 15242 "Commands.c"
}
}
-static GeeMap* reparent_tag_command_get_child_structure_at (ReparentTagCommand* self, const gchar* client_path) {
+static GeeMap*
+reparent_tag_command_get_child_structure_at (ReparentTagCommand* self,
+ const gchar* client_path)
+{
GeeMap* result = NULL;
gchar* path = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_ = NULL;
- const gchar* _tmp3_;
- gchar* _tmp6_;
+ gchar* _tmp0_;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_;
+ gchar* _tmp4_;
GeeMap* _result_ = NULL;
- GeeHashMap* _tmp7_;
- TagSourceCollection* _tmp8_;
- const gchar* _tmp9_;
- gboolean _tmp10_;
+ GeeHashMap* _tmp5_;
+ TagSourceCollection* _tmp6_;
+ const gchar* _tmp7_;
Tag* tag = NULL;
- const gchar* _tmp11_;
- Tag* _tmp12_;
+ const gchar* _tmp8_;
+ Tag* _tmp9_;
gchar* path_prefix = NULL;
- Tag* _tmp13_;
+ Tag* _tmp10_;
+ gchar* _tmp11_;
+ gchar* _tmp12_;
+ gchar* _tmp13_;
gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
#line 1735 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_REPARENT_TAG_COMMAND (self), NULL);
#line 1735 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (client_path != NULL, NULL);
#line 1736 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = client_path;
-#line 1736 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = hierarchical_tag_utilities_get_root_path_form (_tmp0_);
+ _tmp0_ = hierarchical_tag_utilities_get_root_path_form (client_path);
#line 1736 "/home/jens/Source/shotwell/src/Commands.vala"
- path = _tmp1_;
+ path = _tmp0_;
#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = path;
+ _tmp2_ = path;
#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_ != NULL) {
-#line 14654 "Commands.c"
- const gchar* _tmp4_;
+ if (_tmp2_ != NULL) {
+#line 15282 "Commands.c"
+ const gchar* _tmp3_;
#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = path;
+ _tmp3_ = path;
#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp4_;
-#line 14660 "Commands.c"
+ _tmp1_ = _tmp3_;
+#line 15288 "Commands.c"
} else {
- const gchar* _tmp5_;
-#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = client_path;
#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp5_;
-#line 14667 "Commands.c"
+ _tmp1_ = client_path;
+#line 15292 "Commands.c"
}
#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = g_strdup (_tmp2_);
+ _tmp4_ = g_strdup (_tmp1_);
#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (path);
#line 1737 "/home/jens/Source/shotwell/src/Commands.vala"
- path = _tmp6_;
+ path = _tmp4_;
#line 1739 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+ _tmp5_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 1739 "/home/jens/Source/shotwell/src/Commands.vala"
- _result_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_MAP, GeeMap);
+ _result_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_MAP, GeeMap);
#line 1742 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = tag_global;
+ _tmp6_ = tag_global;
#line 1742 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = path;
+ _tmp7_ = path;
#line 1742 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = tag_source_collection_exists (_tmp8_, _tmp9_, FALSE);
-#line 1742 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp10_) {
+ if (!tag_source_collection_exists (_tmp6_, _tmp7_, FALSE)) {
#line 1743 "/home/jens/Source/shotwell/src/Commands.vala"
result = _result_;
#line 1743 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (path);
#line 1743 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 14693 "Commands.c"
+#line 15316 "Commands.c"
}
#line 1745 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = path;
+ _tmp8_ = path;
#line 1745 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = tag_for_path (_tmp11_);
+ _tmp9_ = tag_for_path (_tmp8_);
#line 1745 "/home/jens/Source/shotwell/src/Commands.vala"
- tag = _tmp12_;
+ tag = _tmp9_;
#line 1747 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = tag;
+ _tmp10_ = tag;
#line 1747 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = tag_get_path (_tmp13_);
+ _tmp11_ = tag_get_path (_tmp10_);
#line 1747 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _tmp14_;
+ _tmp12_ = _tmp11_;
#line 1747 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = g_strconcat (_tmp15_, TAG_PATH_SEPARATOR_STRING, NULL);
+ _tmp13_ = g_strconcat (_tmp12_, TAG_PATH_SEPARATOR_STRING, NULL);
#line 1747 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _tmp16_;
+ _tmp14_ = _tmp13_;
#line 1747 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp15_);
+ _g_free0 (_tmp12_);
#line 1747 "/home/jens/Source/shotwell/src/Commands.vala"
- path_prefix = _tmp17_;
-#line 14715 "Commands.c"
+ path_prefix = _tmp14_;
+#line 15338 "Commands.c"
{
GeeList* _t_list = NULL;
- Tag* _tmp18_;
- GeeList* _tmp19_;
+ Tag* _tmp15_;
+ GeeList* _tmp16_;
gint _t_size = 0;
- GeeList* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
+ GeeList* _tmp17_;
+ gint _tmp18_;
+ gint _tmp19_;
gint _t_index = 0;
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = tag;
+ _tmp15_ = tag;
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = tag_get_hierarchical_children (_tmp18_);
+ _tmp16_ = tag_get_hierarchical_children (_tmp15_);
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_list = _tmp19_;
+ _t_list = _tmp16_;
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _t_list;
+ _tmp17_ = _t_list;
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = _tmp21_;
+ _tmp19_ = _tmp18_;
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_size = _tmp22_;
+ _t_size = _tmp19_;
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
_t_index = -1;
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 14743 "Commands.c"
- gint _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
+#line 15366 "Commands.c"
+ gint _tmp20_;
+ gint _tmp21_;
+ gint _tmp22_;
Tag* t = NULL;
- GeeList* _tmp26_;
- gint _tmp27_;
- gpointer _tmp28_;
+ GeeList* _tmp23_;
+ gint _tmp24_;
+ gpointer _tmp25_;
gchar* child_subpath = NULL;
- Tag* _tmp29_;
+ Tag* _tmp26_;
+ gchar* _tmp27_;
+ gchar* _tmp28_;
+ const gchar* _tmp29_;
gchar* _tmp30_;
gchar* _tmp31_;
- const gchar* _tmp32_;
- gchar* _tmp33_;
- gchar* _tmp34_;
- GeeMap* _tmp35_;
- const gchar* _tmp36_;
- GeeHashSet* _tmp37_;
- GeeHashSet* _tmp38_;
- GeeMap* _tmp39_;
- const gchar* _tmp40_;
- gpointer _tmp41_;
- GeeSet* _tmp42_;
- Tag* _tmp43_;
- GeeCollection* _tmp44_;
- GeeCollection* _tmp45_;
+ GeeMap* _tmp32_;
+ const gchar* _tmp33_;
+ GeeHashSet* _tmp34_;
+ GeeHashSet* _tmp35_;
+ GeeMap* _tmp36_;
+ const gchar* _tmp37_;
+ gpointer _tmp38_;
+ GeeSet* _tmp39_;
+ Tag* _tmp40_;
+ GeeCollection* _tmp41_;
+ GeeCollection* _tmp42_;
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _t_index;
+ _tmp20_ = _t_index;
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_index = _tmp23_ + 1;
+ _t_index = _tmp20_ + 1;
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _t_index;
+ _tmp21_ = _t_index;
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = _t_size;
+ _tmp22_ = _t_size;
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp24_ < _tmp25_)) {
+ if (!(_tmp21_ < _tmp22_)) {
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 14781 "Commands.c"
+#line 15404 "Commands.c"
}
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = _t_list;
+ _tmp23_ = _t_list;
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = _t_index;
+ _tmp24_ = _t_index;
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = gee_list_get (_tmp26_, _tmp27_);
+ _tmp25_ = gee_list_get (_tmp23_, _tmp24_);
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
- t = (Tag*) _tmp28_;
+ t = (Tag*) _tmp25_;
#line 1749 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = t;
+ _tmp26_ = t;
#line 1749 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = tag_get_path (_tmp29_);
+ _tmp27_ = tag_get_path (_tmp26_);
#line 1749 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = _tmp30_;
+ _tmp28_ = _tmp27_;
#line 1749 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = path_prefix;
+ _tmp29_ = path_prefix;
#line 1749 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = string_replace (_tmp31_, _tmp32_, "");
+ _tmp30_ = string_replace (_tmp28_, _tmp29_, "");
#line 1749 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = _tmp33_;
+ _tmp31_ = _tmp30_;
#line 1749 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp31_);
+ _g_free0 (_tmp28_);
#line 1749 "/home/jens/Source/shotwell/src/Commands.vala"
- child_subpath = _tmp34_;
+ child_subpath = _tmp31_;
#line 1751 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = _result_;
+ _tmp32_ = _result_;
#line 1751 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = child_subpath;
+ _tmp33_ = child_subpath;
#line 1751 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
+ _tmp34_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
#line 1751 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = _tmp37_;
+ _tmp35_ = _tmp34_;
#line 1751 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_map_set (_tmp35_, _tmp36_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_SET, GeeSet));
+ gee_map_set (_tmp32_, _tmp33_, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_SET, GeeSet));
#line 1751 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp38_);
-#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = _result_;
+ _g_object_unref0 (_tmp35_);
#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = child_subpath;
+ _tmp36_ = _result_;
#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = gee_map_get (_tmp39_, _tmp40_);
+ _tmp37_ = child_subpath;
#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = (GeeSet*) _tmp41_;
+ _tmp38_ = gee_map_get (_tmp36_, _tmp37_);
#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = t;
+ _tmp39_ = (GeeSet*) _tmp38_;
#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = tag_get_sources (_tmp43_);
+ _tmp40_ = t;
#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = _tmp44_;
+ _tmp41_ = tag_get_sources (_tmp40_);
#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_COLLECTION, GeeCollection), _tmp45_);
+ _tmp42_ = _tmp41_;
#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp45_);
+ gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection), _tmp42_);
#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tmp42_);
+#line 1752 "/home/jens/Source/shotwell/src/Commands.vala"
+ _g_object_unref0 (_tmp39_);
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (child_subpath);
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (t);
-#line 14843 "Commands.c"
+#line 15466 "Commands.c"
}
#line 1748 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_t_list);
-#line 14847 "Commands.c"
+#line 15470 "Commands.c"
}
#line 1755 "/home/jens/Source/shotwell/src/Commands.vala"
result = _result_;
@@ -14855,24 +15478,26 @@ static GeeMap* reparent_tag_command_get_child_structure_at (ReparentTagCommand*
_g_free0 (path);
#line 1755 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 14859 "Commands.c"
+#line 15482 "Commands.c"
}
-static void reparent_tag_command_restore_child_attachments_at (ReparentTagCommand* self, const gchar* client_path, GeeMap* child_structure) {
+static void
+reparent_tag_command_restore_child_attachments_at (ReparentTagCommand* self,
+ const gchar* client_path,
+ GeeMap* child_structure)
+{
gchar* new_path = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_ = NULL;
- const gchar* _tmp3_;
+ gchar* _tmp0_;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_;
gchar* path = NULL;
- gchar* _tmp6_;
- TagSourceCollection* _tmp7_;
- const gchar* _tmp8_;
- gboolean _tmp9_;
+ gchar* _tmp4_;
+ TagSourceCollection* _tmp5_;
+ const gchar* _tmp6_;
Tag* tag = NULL;
- const gchar* _tmp10_;
- Tag* _tmp11_;
+ const gchar* _tmp7_;
+ Tag* _tmp8_;
#line 1758 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
#line 1758 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -14880,277 +15505,252 @@ static void reparent_tag_command_restore_child_attachments_at (ReparentTagComman
#line 1758 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (GEE_IS_MAP (child_structure));
#line 1761 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = client_path;
-#line 1761 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = hierarchical_tag_utilities_get_root_path_form (_tmp0_);
+ _tmp0_ = hierarchical_tag_utilities_get_root_path_form (client_path);
#line 1761 "/home/jens/Source/shotwell/src/Commands.vala"
- new_path = _tmp1_;
+ new_path = _tmp0_;
#line 1762 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = new_path;
+ _tmp2_ = new_path;
#line 1762 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_ != NULL) {
-#line 14893 "Commands.c"
- const gchar* _tmp4_;
+ if (_tmp2_ != NULL) {
+#line 15516 "Commands.c"
+ const gchar* _tmp3_;
#line 1762 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = new_path;
+ _tmp3_ = new_path;
#line 1762 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp4_;
-#line 14899 "Commands.c"
+ _tmp1_ = _tmp3_;
+#line 15522 "Commands.c"
} else {
- const gchar* _tmp5_;
#line 1762 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = client_path;
-#line 1762 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp5_;
-#line 14906 "Commands.c"
+ _tmp1_ = client_path;
+#line 15526 "Commands.c"
}
#line 1762 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = g_strdup (_tmp2_);
+ _tmp4_ = g_strdup (_tmp1_);
#line 1762 "/home/jens/Source/shotwell/src/Commands.vala"
- path = _tmp6_;
+ path = _tmp4_;
#line 1764 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = tag_global;
-#line 1764 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = path;
+ _tmp5_ = tag_global;
#line 1764 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = tag_source_collection_exists (_tmp7_, _tmp8_, FALSE);
+ _tmp6_ = path;
#line 1764 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp9_, "Tag.global.exists(path)");
+ _vala_assert (tag_source_collection_exists (_tmp5_, _tmp6_, FALSE), "Tag.global.exists(path)");
#line 1765 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = path;
+ _tmp7_ = path;
#line 1765 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = tag_for_path (_tmp10_);
+ _tmp8_ = tag_for_path (_tmp7_);
#line 1765 "/home/jens/Source/shotwell/src/Commands.vala"
- tag = _tmp11_;
-#line 14926 "Commands.c"
+ tag = _tmp8_;
+#line 15544 "Commands.c"
{
GeeIterator* _child_subpath_it = NULL;
- GeeMap* _tmp12_;
- GeeSet* _tmp13_;
- GeeSet* _tmp14_;
- GeeSet* _tmp15_;
- GeeIterator* _tmp16_;
- GeeIterator* _tmp17_;
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = child_structure;
+ GeeSet* _tmp9_;
+ GeeSet* _tmp10_;
+ GeeSet* _tmp11_;
+ GeeIterator* _tmp12_;
+ GeeIterator* _tmp13_;
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_map_get_keys (_tmp12_);
+ _tmp9_ = gee_map_get_keys (child_structure);
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _tmp13_;
+ _tmp10_ = _tmp9_;
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _tmp14_;
+ _tmp11_ = _tmp10_;
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _tmp16_;
+ _tmp13_ = _tmp12_;
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp15_);
+ _g_object_unref0 (_tmp11_);
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _child_subpath_it = _tmp17_;
+ _child_subpath_it = _tmp13_;
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 14953 "Commands.c"
- GeeIterator* _tmp18_;
- gboolean _tmp19_;
+#line 15568 "Commands.c"
+ GeeIterator* _tmp14_;
gchar* child_subpath = NULL;
- GeeIterator* _tmp20_;
- gpointer _tmp21_;
+ GeeIterator* _tmp15_;
+ gpointer _tmp16_;
gchar* child_path = NULL;
- Tag* _tmp22_;
+ Tag* _tmp17_;
+ gchar* _tmp18_;
+ gchar* _tmp19_;
+ gchar* _tmp20_;
+ gchar* _tmp21_;
+ const gchar* _tmp22_;
gchar* _tmp23_;
gchar* _tmp24_;
- gchar* _tmp25_;
+ Tag* _tmp25_;
gchar* _tmp26_;
- const gchar* _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
- Tag* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- gboolean _tmp33_;
- gboolean _tmp34_;
- TagSourceCollection* _tmp43_;
- const gchar* _tmp44_;
- gboolean _tmp45_;
-#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = _child_subpath_it;
+ gchar* _tmp27_;
+ gboolean _tmp28_;
+ TagSourceCollection* _tmp37_;
+ const gchar* _tmp38_;
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = gee_iterator_next (_tmp18_);
+ _tmp14_ = _child_subpath_it;
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp19_) {
+ if (!gee_iterator_next (_tmp14_)) {
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 14984 "Commands.c"
+#line 15594 "Commands.c"
}
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _child_subpath_it;
+ _tmp15_ = _child_subpath_it;
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = gee_iterator_get (_tmp20_);
+ _tmp16_ = gee_iterator_get (_tmp15_);
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
- child_subpath = (gchar*) _tmp21_;
+ child_subpath = (gchar*) _tmp16_;
#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = tag;
+ _tmp17_ = tag;
#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = tag_get_path (_tmp22_);
+ _tmp18_ = tag_get_path (_tmp17_);
#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _tmp23_;
+ _tmp19_ = _tmp18_;
#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = g_strconcat (_tmp24_, TAG_PATH_SEPARATOR_STRING, NULL);
+ _tmp20_ = g_strconcat (_tmp19_, TAG_PATH_SEPARATOR_STRING, NULL);
#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = _tmp25_;
+ _tmp21_ = _tmp20_;
#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = child_subpath;
+ _tmp22_ = child_subpath;
#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = g_strconcat (_tmp26_, _tmp27_, NULL);
+ _tmp23_ = g_strconcat (_tmp21_, _tmp22_, NULL);
#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = _tmp28_;
+ _tmp24_ = _tmp23_;
#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp26_);
+ _g_free0 (_tmp21_);
#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp24_);
+ _g_free0 (_tmp19_);
#line 1768 "/home/jens/Source/shotwell/src/Commands.vala"
- child_path = _tmp29_;
+ child_path = _tmp24_;
#line 1770 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = tag;
+ _tmp25_ = tag;
#line 1770 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = tag_get_path (_tmp30_);
+ _tmp26_ = tag_get_path (_tmp25_);
#line 1770 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = _tmp31_;
-#line 1770 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = g_str_has_prefix (_tmp32_, TAG_PATH_SEPARATOR_STRING);
+ _tmp27_ = _tmp26_;
#line 1770 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = !_tmp33_;
+ _tmp28_ = !g_str_has_prefix (_tmp27_, TAG_PATH_SEPARATOR_STRING);
#line 1770 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp32_);
+ _g_free0 (_tmp27_);
#line 1770 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp34_) {
-#line 15028 "Commands.c"
- Tag* _tmp35_;
- Tag* _tmp36_;
- gchar* _tmp37_;
- gchar* _tmp38_;
- gchar* _tmp39_;
- gchar* _tmp40_;
- const gchar* _tmp41_;
- gchar* _tmp42_;
+ if (_tmp28_) {
+#line 15636 "Commands.c"
+ Tag* _tmp29_;
+ Tag* _tmp30_;
+ gchar* _tmp31_;
+ gchar* _tmp32_;
+ gchar* _tmp33_;
+ gchar* _tmp34_;
+ const gchar* _tmp35_;
+ gchar* _tmp36_;
#line 1771 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = tag;
+ _tmp29_ = tag;
#line 1771 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_promote (_tmp35_);
+ tag_promote (_tmp29_);
#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = tag;
+ _tmp30_ = tag;
#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = tag_get_path (_tmp36_);
+ _tmp31_ = tag_get_path (_tmp30_);
#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = _tmp37_;
+ _tmp32_ = _tmp31_;
#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = g_strconcat (_tmp38_, TAG_PATH_SEPARATOR_STRING, NULL);
+ _tmp33_ = g_strconcat (_tmp32_, TAG_PATH_SEPARATOR_STRING, NULL);
#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = _tmp39_;
+ _tmp34_ = _tmp33_;
#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = child_subpath;
+ _tmp35_ = child_subpath;
#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = g_strconcat (_tmp40_, _tmp41_, NULL);
+ _tmp36_ = g_strconcat (_tmp34_, _tmp35_, NULL);
#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (child_path);
#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- child_path = _tmp42_;
+ child_path = _tmp36_;
#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp40_);
+ _g_free0 (_tmp34_);
#line 1772 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp38_);
-#line 15063 "Commands.c"
+ _g_free0 (_tmp32_);
+#line 15671 "Commands.c"
}
#line 1775 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = tag_global;
+ _tmp37_ = tag_global;
#line 1775 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = child_path;
+ _tmp38_ = child_path;
#line 1775 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = tag_source_collection_exists (_tmp43_, _tmp44_, FALSE);
-#line 1775 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp45_, "Tag.global.exists(child_path)");
-#line 15073 "Commands.c"
+ _vala_assert (tag_source_collection_exists (_tmp37_, _tmp38_, FALSE), "Tag.global.exists(child_path)");
+#line 15679 "Commands.c"
{
GeeIterator* _s_it = NULL;
- GeeMap* _tmp46_;
- const gchar* _tmp47_;
- gpointer _tmp48_;
- GeeSet* _tmp49_;
- GeeIterator* _tmp50_;
- GeeIterator* _tmp51_;
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp46_ = child_structure;
+ const gchar* _tmp39_;
+ gpointer _tmp40_;
+ GeeSet* _tmp41_;
+ GeeIterator* _tmp42_;
+ GeeIterator* _tmp43_;
#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp47_ = child_subpath;
+ _tmp39_ = child_subpath;
#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp48_ = gee_map_get (_tmp46_, _tmp47_);
+ _tmp40_ = gee_map_get (child_structure, _tmp39_);
#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp49_ = (GeeSet*) _tmp48_;
+ _tmp41_ = (GeeSet*) _tmp40_;
#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp50_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp42_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp51_ = _tmp50_;
+ _tmp43_ = _tmp42_;
#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp49_);
+ _g_object_unref0 (_tmp41_);
#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _s_it = _tmp51_;
+ _s_it = _tmp43_;
#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 15100 "Commands.c"
- GeeIterator* _tmp52_;
- gboolean _tmp53_;
+#line 15703 "Commands.c"
+ GeeIterator* _tmp44_;
MediaSource* s = NULL;
- GeeIterator* _tmp54_;
- gpointer _tmp55_;
- const gchar* _tmp56_;
- Tag* _tmp57_;
- Tag* _tmp58_;
- MediaSource* _tmp59_;
+ GeeIterator* _tmp45_;
+ gpointer _tmp46_;
+ const gchar* _tmp47_;
+ Tag* _tmp48_;
+ Tag* _tmp49_;
+ MediaSource* _tmp50_;
#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp52_ = _s_it;
+ _tmp44_ = _s_it;
#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp53_ = gee_iterator_next (_tmp52_);
-#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp53_) {
+ if (!gee_iterator_next (_tmp44_)) {
#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 15118 "Commands.c"
+#line 15718 "Commands.c"
}
#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp54_ = _s_it;
+ _tmp45_ = _s_it;
#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp55_ = gee_iterator_get (_tmp54_);
+ _tmp46_ = gee_iterator_get (_tmp45_);
#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
- s = (MediaSource*) _tmp55_;
+ s = (MediaSource*) _tmp46_;
#line 1778 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp56_ = child_path;
+ _tmp47_ = child_path;
#line 1778 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp57_ = tag_for_path (_tmp56_);
+ _tmp48_ = tag_for_path (_tmp47_);
#line 1778 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp58_ = _tmp57_;
+ _tmp49_ = _tmp48_;
#line 1778 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp59_ = s;
+ _tmp50_ = s;
#line 1778 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach (_tmp58_, _tmp59_);
+ tag_attach (_tmp49_, _tmp50_);
#line 1778 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp58_);
+ _g_object_unref0 (_tmp49_);
#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (s);
-#line 15140 "Commands.c"
+#line 15740 "Commands.c"
}
#line 1777 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_s_it);
-#line 15144 "Commands.c"
+#line 15744 "Commands.c"
}
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (child_path);
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (child_subpath);
-#line 15150 "Commands.c"
+#line 15750 "Commands.c"
}
#line 1767 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_child_subpath_it);
-#line 15154 "Commands.c"
+#line 15754 "Commands.c"
}
#line 1758 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (tag);
@@ -15158,121 +15758,112 @@ static void reparent_tag_command_restore_child_attachments_at (ReparentTagComman
_g_free0 (path);
#line 1758 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (new_path);
-#line 15162 "Commands.c"
+#line 15762 "Commands.c"
}
-static void reparent_tag_command_reattach_in_play_sources_at (ReparentTagCommand* self, const gchar* client_path) {
+static void
+reparent_tag_command_reattach_in_play_sources_at (ReparentTagCommand* self,
+ const gchar* client_path)
+{
gchar* new_path = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_ = NULL;
- const gchar* _tmp3_;
+ gchar* _tmp0_;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_;
gchar* path = NULL;
- gchar* _tmp6_;
- TagSourceCollection* _tmp7_;
- const gchar* _tmp8_;
- gboolean _tmp9_;
+ gchar* _tmp4_;
+ TagSourceCollection* _tmp5_;
+ const gchar* _tmp6_;
Tag* tag = NULL;
- const gchar* _tmp10_;
- Tag* _tmp11_;
+ const gchar* _tmp7_;
+ Tag* _tmp8_;
#line 1782 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
#line 1782 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (client_path != NULL);
#line 1783 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = client_path;
+ _tmp0_ = hierarchical_tag_utilities_get_root_path_form (client_path);
#line 1783 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = hierarchical_tag_utilities_get_root_path_form (_tmp0_);
-#line 1783 "/home/jens/Source/shotwell/src/Commands.vala"
- new_path = _tmp1_;
+ new_path = _tmp0_;
#line 1784 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = new_path;
+ _tmp2_ = new_path;
#line 1784 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_ != NULL) {
-#line 15194 "Commands.c"
- const gchar* _tmp4_;
+ if (_tmp2_ != NULL) {
+#line 15793 "Commands.c"
+ const gchar* _tmp3_;
#line 1784 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = new_path;
+ _tmp3_ = new_path;
#line 1784 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp4_;
-#line 15200 "Commands.c"
+ _tmp1_ = _tmp3_;
+#line 15799 "Commands.c"
} else {
- const gchar* _tmp5_;
-#line 1784 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = client_path;
#line 1784 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp5_;
-#line 15207 "Commands.c"
+ _tmp1_ = client_path;
+#line 15803 "Commands.c"
}
#line 1784 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = g_strdup (_tmp2_);
+ _tmp4_ = g_strdup (_tmp1_);
#line 1784 "/home/jens/Source/shotwell/src/Commands.vala"
- path = _tmp6_;
+ path = _tmp4_;
#line 1786 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = tag_global;
-#line 1786 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = path;
+ _tmp5_ = tag_global;
#line 1786 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = tag_source_collection_exists (_tmp7_, _tmp8_, FALSE);
+ _tmp6_ = path;
#line 1786 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp9_, "Tag.global.exists(path)");
+ _vala_assert (tag_source_collection_exists (_tmp5_, _tmp6_, FALSE), "Tag.global.exists(path)");
#line 1788 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = path;
+ _tmp7_ = path;
#line 1788 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = tag_for_path (_tmp10_);
+ _tmp8_ = tag_for_path (_tmp7_);
#line 1788 "/home/jens/Source/shotwell/src/Commands.vala"
- tag = _tmp11_;
-#line 15227 "Commands.c"
+ tag = _tmp8_;
+#line 15821 "Commands.c"
{
GeeIterator* _s_it = NULL;
- GeeHashSet* _tmp12_;
- GeeIterator* _tmp13_;
+ GeeHashSet* _tmp9_;
+ GeeIterator* _tmp10_;
#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = self->priv->sources_in_play;
+ _tmp9_ = self->priv->sources_in_play;
#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp10_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- _s_it = _tmp13_;
+ _s_it = _tmp10_;
#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 15240 "Commands.c"
- GeeIterator* _tmp14_;
- gboolean _tmp15_;
+#line 15834 "Commands.c"
+ GeeIterator* _tmp11_;
MediaSource* s = NULL;
- GeeIterator* _tmp16_;
- gpointer _tmp17_;
- Tag* _tmp18_;
- MediaSource* _tmp19_;
-#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _s_it;
+ GeeIterator* _tmp12_;
+ gpointer _tmp13_;
+ Tag* _tmp14_;
+ MediaSource* _tmp15_;
#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = gee_iterator_next (_tmp14_);
+ _tmp11_ = _s_it;
#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp15_) {
+ if (!gee_iterator_next (_tmp11_)) {
#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 15256 "Commands.c"
+#line 15847 "Commands.c"
}
#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _s_it;
+ _tmp12_ = _s_it;
#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = gee_iterator_get (_tmp16_);
+ _tmp13_ = gee_iterator_get (_tmp12_);
#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
- s = (MediaSource*) _tmp17_;
+ s = (MediaSource*) _tmp13_;
#line 1791 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = tag;
+ _tmp14_ = tag;
#line 1791 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = s;
+ _tmp15_ = s;
#line 1791 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach (_tmp18_, _tmp19_);
+ tag_attach (_tmp14_, _tmp15_);
#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (s);
-#line 15272 "Commands.c"
+#line 15863 "Commands.c"
}
#line 1790 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_s_it);
-#line 15276 "Commands.c"
+#line 15867 "Commands.c"
}
#line 1782 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (tag);
@@ -15280,11 +15871,13 @@ static void reparent_tag_command_reattach_in_play_sources_at (ReparentTagCommand
_g_free0 (path);
#line 1782 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (new_path);
-#line 15284 "Commands.c"
+#line 15875 "Commands.c"
}
-static void reparent_tag_command_save_before_state (ReparentTagCommand* self) {
+static void
+reparent_tag_command_save_before_state (ReparentTagCommand* self)
+{
GeeList* _tmp0_;
GeeList* _tmp1_;
GeeArrayList* _tmp2_;
@@ -15294,29 +15887,28 @@ static void reparent_tag_command_save_before_state (ReparentTagCommand* self) {
GeeMap* _tmp6_;
TagSourceCollection* _tmp7_;
const gchar* _tmp8_;
- gboolean _tmp9_;
Tag* from_tag = NULL;
- const gchar* _tmp10_;
- Tag* _tmp11_;
- GeeList* _tmp12_;
- Tag* _tmp13_;
+ const gchar* _tmp9_;
+ Tag* _tmp10_;
+ GeeList* _tmp11_;
+ Tag* _tmp12_;
+ SourceProxy* _tmp13_;
SourceProxy* _tmp14_;
- SourceProxy* _tmp15_;
GeeList* parent_paths = NULL;
- const gchar* _tmp16_;
+ const gchar* _tmp15_;
+ GeeList* _tmp16_;
GeeList* _tmp17_;
- GeeList* _tmp18_;
+ gint _tmp18_;
gint _tmp19_;
- gint _tmp20_;
- const gchar* _tmp26_;
- const gchar* _tmp30_;
- const gchar* _tmp42_;
- const gchar* _tmp59_;
+ const gchar* _tmp25_;
+ const gchar* _tmp29_;
+ const gchar* _tmp41_;
+ const gchar* _tmp57_;
GeeList* from_children = NULL;
- Tag* _tmp66_;
- GeeList* _tmp67_;
- const gchar* _tmp81_;
- const gchar* _tmp100_;
+ Tag* _tmp64_;
+ GeeList* _tmp65_;
+ const gchar* _tmp79_;
+ const gchar* _tmp98_;
#line 1794 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
#line 1795 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -15356,540 +15948,535 @@ static void reparent_tag_command_save_before_state (ReparentTagCommand* self) {
#line 1806 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp8_ = self->priv->from_path;
#line 1806 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = tag_source_collection_exists (_tmp7_, _tmp8_, FALSE);
-#line 1806 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp9_, "Tag.global.exists(from_path)");
+ _vala_assert (tag_source_collection_exists (_tmp7_, _tmp8_, FALSE), "Tag.global.exists(from_path)");
#line 1807 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = self->priv->from_path;
+ _tmp9_ = self->priv->from_path;
#line 1807 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = tag_for_path (_tmp10_);
+ _tmp10_ = tag_for_path (_tmp9_);
#line 1807 "/home/jens/Source/shotwell/src/Commands.vala"
- from_tag = _tmp11_;
+ from_tag = _tmp10_;
#line 1808 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = self->priv->src_before_state;
+ _tmp11_ = self->priv->src_before_state;
#line 1808 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = from_tag;
+ _tmp12_ = from_tag;
#line 1808 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PROXYABLE, Proxyable));
+ _tmp13_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PROXYABLE, Proxyable));
#line 1808 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _tmp14_;
+ _tmp14_ = _tmp13_;
#line 1808 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), _tmp15_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection), _tmp14_);
#line 1808 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp15_);
+ _source_proxy_unref0 (_tmp14_);
#line 1811 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = self->priv->to_path;
+ _tmp15_ = self->priv->to_path;
#line 1811 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp16_);
+ _tmp16_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp15_);
#line 1811 "/home/jens/Source/shotwell/src/Commands.vala"
- parent_paths = _tmp17_;
+ parent_paths = _tmp16_;
#line 1812 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = parent_paths;
+ _tmp17_ = parent_paths;
#line 1812 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1812 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _tmp19_;
+ _tmp19_ = _tmp18_;
#line 1812 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp20_ > 0) {
-#line 15395 "Commands.c"
+ if (_tmp19_ > 0) {
+#line 15985 "Commands.c"
+ GeeList* _tmp20_;
GeeList* _tmp21_;
- GeeList* _tmp22_;
+ gint _tmp22_;
gint _tmp23_;
- gint _tmp24_;
- gpointer _tmp25_;
+ gpointer _tmp24_;
#line 1813 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = parent_paths;
+ _tmp20_ = parent_paths;
#line 1813 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = parent_paths;
+ _tmp21_ = parent_paths;
#line 1813 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp22_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1813 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _tmp23_;
+ _tmp23_ = _tmp22_;
#line 1813 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = gee_list_get (_tmp21_, _tmp24_ - 1);
+ _tmp24_ = gee_list_get (_tmp20_, _tmp23_ - 1);
#line 1813 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->to_path_parent_path);
#line 1813 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_path_parent_path = (gchar*) _tmp25_;
-#line 15415 "Commands.c"
+ self->priv->to_path_parent_path = (gchar*) _tmp24_;
+#line 16005 "Commands.c"
}
#line 1814 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = self->priv->to_path_parent_path;
+ _tmp25_ = self->priv->to_path_parent_path;
#line 1814 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp26_ != NULL) {
-#line 15421 "Commands.c"
- GeeMap* _tmp27_;
- const gchar* _tmp28_;
- GeeMap* _tmp29_;
+ if (_tmp25_ != NULL) {
+#line 16011 "Commands.c"
+ GeeMap* _tmp26_;
+ const gchar* _tmp27_;
+ GeeMap* _tmp28_;
#line 1815 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = self->priv->existing_dest_child_structure;
+ _tmp26_ = self->priv->existing_dest_child_structure;
#line 1815 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp27_ == NULL, "existing_dest_child_structure == null");
+ _vala_assert (_tmp26_ == NULL, "existing_dest_child_structure == null");
#line 1816 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = self->priv->to_path_parent_path;
+ _tmp27_ = self->priv->to_path_parent_path;
#line 1816 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = reparent_tag_command_get_child_structure_at (self, _tmp28_);
+ _tmp28_ = reparent_tag_command_get_child_structure_at (self, _tmp27_);
#line 1816 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->existing_dest_child_structure);
#line 1816 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->existing_dest_child_structure = _tmp29_;
-#line 15437 "Commands.c"
+ self->priv->existing_dest_child_structure = _tmp28_;
+#line 16027 "Commands.c"
}
#line 1820 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = self->priv->to_path_parent_path;
+ _tmp29_ = self->priv->to_path_parent_path;
#line 1820 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp30_ == NULL) {
-#line 15443 "Commands.c"
- GeeMap* _tmp31_;
- GeeSet* _tmp32_;
- const gchar* _tmp33_;
- GeeMap* _tmp34_;
- GeeHashSet* _tmp35_;
- GeeSet* _tmp36_;
- const gchar* _tmp37_;
+ if (_tmp29_ == NULL) {
+#line 16033 "Commands.c"
+ GeeMap* _tmp30_;
+ GeeSet* _tmp31_;
+ const gchar* _tmp32_;
+ GeeMap* _tmp33_;
+ GeeHashSet* _tmp34_;
+ GeeSet* _tmp35_;
+ const gchar* _tmp36_;
+ Tag* _tmp37_;
Tag* _tmp38_;
- Tag* _tmp39_;
+ GeeCollection* _tmp39_;
GeeCollection* _tmp40_;
- GeeCollection* _tmp41_;
#line 1821 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = self->priv->existing_dest_child_structure;
+ _tmp30_ = self->priv->existing_dest_child_structure;
#line 1821 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp31_ == NULL, "existing_dest_child_structure == null");
+ _vala_assert (_tmp30_ == NULL, "existing_dest_child_structure == null");
#line 1822 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = self->priv->existing_dest_membership;
+ _tmp31_ = self->priv->existing_dest_membership;
#line 1822 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp32_ == NULL, "existing_dest_membership == null");
+ _vala_assert (_tmp31_ == NULL, "existing_dest_membership == null");
#line 1823 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = self->priv->to_path;
+ _tmp32_ = self->priv->to_path;
#line 1823 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = reparent_tag_command_get_child_structure_at (self, _tmp33_);
+ _tmp33_ = reparent_tag_command_get_child_structure_at (self, _tmp32_);
#line 1823 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->existing_dest_child_structure);
#line 1823 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->existing_dest_child_structure = _tmp34_;
+ self->priv->existing_dest_child_structure = _tmp33_;
#line 1824 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
+ _tmp34_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
#line 1824 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->existing_dest_membership);
#line 1824 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->existing_dest_membership = G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_SET, GeeSet);
+ self->priv->existing_dest_membership = G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_SET, GeeSet);
#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = self->priv->existing_dest_membership;
+ _tmp35_ = self->priv->existing_dest_membership;
#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = self->priv->to_path;
+ _tmp36_ = self->priv->to_path;
#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = tag_for_path (_tmp37_);
+ _tmp37_ = tag_for_path (_tmp36_);
#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = _tmp38_;
+ _tmp38_ = _tmp37_;
#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = tag_get_sources (_tmp39_);
+ _tmp39_ = tag_get_sources (_tmp38_);
#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = _tmp40_;
+ _tmp40_ = _tmp39_;
#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection), _tmp41_);
+ gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_COLLECTION, GeeCollection), _tmp40_);
#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp41_);
+ _g_object_unref0 (_tmp40_);
#line 1825 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp39_);
-#line 15495 "Commands.c"
+ _g_object_unref0 (_tmp38_);
+#line 16085 "Commands.c"
}
#line 1829 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = self->priv->to_path_parent_path;
+ _tmp41_ = self->priv->to_path_parent_path;
#line 1829 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp42_ != NULL) {
-#line 15501 "Commands.c"
+ if (_tmp41_ != NULL) {
+#line 16091 "Commands.c"
gchar* new_tpp = NULL;
- const gchar* _tmp43_;
- gchar* _tmp44_;
- const gchar* _tmp45_ = NULL;
- const gchar* _tmp46_;
- gchar* _tmp49_;
- TagSourceCollection* _tmp50_;
- const gchar* _tmp51_;
- gboolean _tmp52_;
- GeeList* _tmp53_;
- const gchar* _tmp54_;
- Tag* _tmp55_;
- Tag* _tmp56_;
- SourceProxy* _tmp57_;
- SourceProxy* _tmp58_;
+ const gchar* _tmp42_;
+ gchar* _tmp43_;
+ const gchar* _tmp44_ = NULL;
+ const gchar* _tmp45_;
+ gchar* _tmp48_;
+ TagSourceCollection* _tmp49_;
+ const gchar* _tmp50_;
+ GeeList* _tmp51_;
+ const gchar* _tmp52_;
+ Tag* _tmp53_;
+ Tag* _tmp54_;
+ SourceProxy* _tmp55_;
+ SourceProxy* _tmp56_;
#line 1830 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = self->priv->to_path_parent_path;
+ _tmp42_ = self->priv->to_path_parent_path;
#line 1830 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = hierarchical_tag_utilities_get_root_path_form (_tmp43_);
+ _tmp43_ = hierarchical_tag_utilities_get_root_path_form (_tmp42_);
#line 1830 "/home/jens/Source/shotwell/src/Commands.vala"
- new_tpp = _tmp44_;
+ new_tpp = _tmp43_;
#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp46_ = new_tpp;
+ _tmp45_ = new_tpp;
#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp46_ != NULL) {
-#line 15527 "Commands.c"
- const gchar* _tmp47_;
+ if (_tmp45_ != NULL) {
+#line 16116 "Commands.c"
+ const gchar* _tmp46_;
#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp47_ = new_tpp;
+ _tmp46_ = new_tpp;
#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = _tmp47_;
-#line 15533 "Commands.c"
+ _tmp44_ = _tmp46_;
+#line 16122 "Commands.c"
} else {
- const gchar* _tmp48_;
+ const gchar* _tmp47_;
#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp48_ = self->priv->to_path_parent_path;
+ _tmp47_ = self->priv->to_path_parent_path;
#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = _tmp48_;
-#line 15540 "Commands.c"
+ _tmp44_ = _tmp47_;
+#line 16129 "Commands.c"
}
#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp49_ = g_strdup (_tmp45_);
+ _tmp48_ = g_strdup (_tmp44_);
#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->to_path_parent_path);
#line 1831 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_path_parent_path = _tmp49_;
-#line 1832 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp50_ = tag_global;
+ self->priv->to_path_parent_path = _tmp48_;
#line 1832 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp51_ = self->priv->to_path_parent_path;
+ _tmp49_ = tag_global;
#line 1832 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp52_ = tag_source_collection_exists (_tmp50_, _tmp51_, FALSE);
+ _tmp50_ = self->priv->to_path_parent_path;
#line 1832 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp52_, "Tag.global.exists(to_path_parent_path)");
+ _vala_assert (tag_source_collection_exists (_tmp49_, _tmp50_, FALSE), "Tag.global.exists(to_path_parent_path)");
#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp53_ = self->priv->dest_before_state;
+ _tmp51_ = self->priv->dest_before_state;
#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp54_ = self->priv->to_path_parent_path;
+ _tmp52_ = self->priv->to_path_parent_path;
#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp55_ = tag_for_path (_tmp54_);
+ _tmp53_ = tag_for_path (_tmp52_);
#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp56_ = _tmp55_;
+ _tmp54_ = _tmp53_;
#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp57_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, TYPE_PROXYABLE, Proxyable));
+ _tmp55_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, TYPE_PROXYABLE, Proxyable));
#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp58_ = _tmp57_;
+ _tmp56_ = _tmp55_;
#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_COLLECTION, GeeCollection), _tmp58_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_COLLECTION, GeeCollection), _tmp56_);
#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp58_);
+ _source_proxy_unref0 (_tmp56_);
#line 1833 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp56_);
+ _g_object_unref0 (_tmp54_);
#line 1829 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (new_tpp);
-#line 15576 "Commands.c"
+#line 16163 "Commands.c"
}
#line 1837 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp59_ = self->priv->to_path_parent_path;
+ _tmp57_ = self->priv->to_path_parent_path;
#line 1837 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp59_ == NULL) {
-#line 15582 "Commands.c"
- GeeList* _tmp60_;
- const gchar* _tmp61_;
- Tag* _tmp62_;
- Tag* _tmp63_;
- SourceProxy* _tmp64_;
- SourceProxy* _tmp65_;
+ if (_tmp57_ == NULL) {
+#line 16169 "Commands.c"
+ GeeList* _tmp58_;
+ const gchar* _tmp59_;
+ Tag* _tmp60_;
+ Tag* _tmp61_;
+ SourceProxy* _tmp62_;
+ SourceProxy* _tmp63_;
#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp60_ = self->priv->dest_before_state;
+ _tmp58_ = self->priv->dest_before_state;
#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp61_ = self->priv->to_path;
+ _tmp59_ = self->priv->to_path;
#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp62_ = tag_for_path (_tmp61_);
+ _tmp60_ = tag_for_path (_tmp59_);
#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp63_ = _tmp62_;
+ _tmp61_ = _tmp60_;
#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp64_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, TYPE_PROXYABLE, Proxyable));
+ _tmp62_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_PROXYABLE, Proxyable));
#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp65_ = _tmp64_;
+ _tmp63_ = _tmp62_;
#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, GEE_TYPE_COLLECTION, GeeCollection), _tmp65_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, GEE_TYPE_COLLECTION, GeeCollection), _tmp63_);
#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp65_);
+ _source_proxy_unref0 (_tmp63_);
#line 1838 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp63_);
-#line 15607 "Commands.c"
+ _g_object_unref0 (_tmp61_);
+#line 16194 "Commands.c"
}
#line 1842 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp66_ = from_tag;
+ _tmp64_ = from_tag;
#line 1842 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp67_ = tag_get_hierarchical_children (_tmp66_);
+ _tmp65_ = tag_get_hierarchical_children (_tmp64_);
#line 1842 "/home/jens/Source/shotwell/src/Commands.vala"
- from_children = _tmp67_;
-#line 15615 "Commands.c"
+ from_children = _tmp65_;
+#line 16202 "Commands.c"
{
gint i = 0;
- GeeList* _tmp68_;
- gint _tmp69_;
- gint _tmp70_;
+ GeeList* _tmp66_;
+ gint _tmp67_;
+ gint _tmp68_;
#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp68_ = from_children;
+ _tmp66_ = from_children;
#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp69_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp67_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp70_ = _tmp69_;
+ _tmp68_ = _tmp67_;
#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp70_ - 1;
-#line 15629 "Commands.c"
+ i = _tmp68_ - 1;
+#line 16216 "Commands.c"
{
- gboolean _tmp71_ = FALSE;
+ gboolean _tmp69_ = FALSE;
#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp71_ = TRUE;
+ _tmp69_ = TRUE;
#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 15636 "Commands.c"
- gint _tmp73_;
- GeeList* _tmp74_;
- GeeList* _tmp75_;
- gint _tmp76_;
- gpointer _tmp77_;
- Tag* _tmp78_;
- SourceProxy* _tmp79_;
- SourceProxy* _tmp80_;
+#line 16223 "Commands.c"
+ gint _tmp71_;
+ GeeList* _tmp72_;
+ GeeList* _tmp73_;
+ gint _tmp74_;
+ gpointer _tmp75_;
+ Tag* _tmp76_;
+ SourceProxy* _tmp77_;
+ SourceProxy* _tmp78_;
#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp71_) {
-#line 15647 "Commands.c"
- gint _tmp72_;
+ if (!_tmp69_) {
+#line 16234 "Commands.c"
+ gint _tmp70_;
#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp72_ = i;
+ _tmp70_ = i;
#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp72_ - 1;
-#line 15653 "Commands.c"
+ i = _tmp70_ - 1;
+#line 16240 "Commands.c"
}
#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp71_ = FALSE;
+ _tmp69_ = FALSE;
#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp73_ = i;
+ _tmp71_ = i;
#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp73_ >= 0)) {
+ if (!(_tmp71_ >= 0)) {
#line 1843 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 15663 "Commands.c"
+#line 16250 "Commands.c"
}
#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp74_ = self->priv->src_before_state;
+ _tmp72_ = self->priv->src_before_state;
#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp75_ = from_children;
+ _tmp73_ = from_children;
#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp76_ = i;
+ _tmp74_ = i;
#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp77_ = gee_list_get (_tmp75_, _tmp76_);
+ _tmp75_ = gee_list_get (_tmp73_, _tmp74_);
#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp78_ = (Tag*) _tmp77_;
+ _tmp76_ = (Tag*) _tmp75_;
#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp79_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, TYPE_PROXYABLE, Proxyable));
+ _tmp77_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, TYPE_PROXYABLE, Proxyable));
#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp80_ = _tmp79_;
+ _tmp78_ = _tmp77_;
#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, GEE_TYPE_COLLECTION, GeeCollection), _tmp80_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, GEE_TYPE_COLLECTION, GeeCollection), _tmp78_);
#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp80_);
+ _source_proxy_unref0 (_tmp78_);
#line 1844 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp78_);
-#line 15685 "Commands.c"
+ _g_object_unref0 (_tmp76_);
+#line 16272 "Commands.c"
}
}
}
#line 1848 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp81_ = self->priv->to_path_parent_path;
+ _tmp79_ = self->priv->to_path_parent_path;
#line 1848 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp81_ != NULL) {
-#line 15693 "Commands.c"
+ if (_tmp79_ != NULL) {
+#line 16280 "Commands.c"
GeeList* to_children = NULL;
- const gchar* _tmp82_;
- Tag* _tmp83_;
- Tag* _tmp84_;
- GeeList* _tmp85_;
- GeeList* _tmp86_;
+ const gchar* _tmp80_;
+ Tag* _tmp81_;
+ Tag* _tmp82_;
+ GeeList* _tmp83_;
+ GeeList* _tmp84_;
#line 1849 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp82_ = self->priv->to_path_parent_path;
+ _tmp80_ = self->priv->to_path_parent_path;
#line 1849 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp83_ = tag_for_path (_tmp82_);
+ _tmp81_ = tag_for_path (_tmp80_);
#line 1849 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp84_ = _tmp83_;
+ _tmp82_ = _tmp81_;
#line 1849 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp85_ = tag_get_hierarchical_children (_tmp84_);
+ _tmp83_ = tag_get_hierarchical_children (_tmp82_);
#line 1849 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp86_ = _tmp85_;
+ _tmp84_ = _tmp83_;
#line 1849 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp84_);
+ _g_object_unref0 (_tmp82_);
#line 1849 "/home/jens/Source/shotwell/src/Commands.vala"
- to_children = _tmp86_;
-#line 15714 "Commands.c"
+ to_children = _tmp84_;
+#line 16301 "Commands.c"
{
gint i = 0;
- GeeList* _tmp87_;
- gint _tmp88_;
- gint _tmp89_;
+ GeeList* _tmp85_;
+ gint _tmp86_;
+ gint _tmp87_;
#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp87_ = to_children;
+ _tmp85_ = to_children;
#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp88_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp87_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp86_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp89_ = _tmp88_;
+ _tmp87_ = _tmp86_;
#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp89_ - 1;
-#line 15728 "Commands.c"
+ i = _tmp87_ - 1;
+#line 16315 "Commands.c"
{
- gboolean _tmp90_ = FALSE;
+ gboolean _tmp88_ = FALSE;
#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp90_ = TRUE;
+ _tmp88_ = TRUE;
#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 15735 "Commands.c"
- gint _tmp92_;
- GeeList* _tmp93_;
- GeeList* _tmp94_;
- gint _tmp95_;
- gpointer _tmp96_;
- Tag* _tmp97_;
- SourceProxy* _tmp98_;
- SourceProxy* _tmp99_;
+#line 16322 "Commands.c"
+ gint _tmp90_;
+ GeeList* _tmp91_;
+ GeeList* _tmp92_;
+ gint _tmp93_;
+ gpointer _tmp94_;
+ Tag* _tmp95_;
+ SourceProxy* _tmp96_;
+ SourceProxy* _tmp97_;
#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp90_) {
-#line 15746 "Commands.c"
- gint _tmp91_;
+ if (!_tmp88_) {
+#line 16333 "Commands.c"
+ gint _tmp89_;
#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp91_ = i;
+ _tmp89_ = i;
#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp91_ - 1;
-#line 15752 "Commands.c"
+ i = _tmp89_ - 1;
+#line 16339 "Commands.c"
}
#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp90_ = FALSE;
+ _tmp88_ = FALSE;
#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp92_ = i;
+ _tmp90_ = i;
#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp92_ >= 0)) {
+ if (!(_tmp90_ >= 0)) {
#line 1850 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 15762 "Commands.c"
+#line 16349 "Commands.c"
}
#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp93_ = self->priv->dest_before_state;
+ _tmp91_ = self->priv->dest_before_state;
#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp94_ = to_children;
+ _tmp92_ = to_children;
#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp95_ = i;
+ _tmp93_ = i;
#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp96_ = gee_list_get (_tmp94_, _tmp95_);
+ _tmp94_ = gee_list_get (_tmp92_, _tmp93_);
#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp97_ = (Tag*) _tmp96_;
+ _tmp95_ = (Tag*) _tmp94_;
#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp98_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp97_, TYPE_PROXYABLE, Proxyable));
+ _tmp96_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp95_, TYPE_PROXYABLE, Proxyable));
#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp99_ = _tmp98_;
+ _tmp97_ = _tmp96_;
#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp93_, GEE_TYPE_COLLECTION, GeeCollection), _tmp99_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp91_, GEE_TYPE_COLLECTION, GeeCollection), _tmp97_);
#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp99_);
+ _source_proxy_unref0 (_tmp97_);
#line 1851 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp97_);
-#line 15784 "Commands.c"
+ _g_object_unref0 (_tmp95_);
+#line 16371 "Commands.c"
}
}
}
#line 1848 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (to_children);
-#line 15790 "Commands.c"
+#line 16377 "Commands.c"
}
#line 1856 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp100_ = self->priv->to_path_parent_path;
+ _tmp98_ = self->priv->to_path_parent_path;
#line 1856 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp100_ == NULL) {
-#line 15796 "Commands.c"
+ if (_tmp98_ == NULL) {
+#line 16383 "Commands.c"
GeeList* to_children = NULL;
- const gchar* _tmp101_;
- Tag* _tmp102_;
- Tag* _tmp103_;
- GeeList* _tmp104_;
- GeeList* _tmp105_;
+ const gchar* _tmp99_;
+ Tag* _tmp100_;
+ Tag* _tmp101_;
+ GeeList* _tmp102_;
+ GeeList* _tmp103_;
#line 1857 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp101_ = self->priv->to_path;
+ _tmp99_ = self->priv->to_path;
#line 1857 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp102_ = tag_for_path (_tmp101_);
+ _tmp100_ = tag_for_path (_tmp99_);
#line 1857 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp103_ = _tmp102_;
+ _tmp101_ = _tmp100_;
#line 1857 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp104_ = tag_get_hierarchical_children (_tmp103_);
+ _tmp102_ = tag_get_hierarchical_children (_tmp101_);
#line 1857 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp105_ = _tmp104_;
+ _tmp103_ = _tmp102_;
#line 1857 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp103_);
+ _g_object_unref0 (_tmp101_);
#line 1857 "/home/jens/Source/shotwell/src/Commands.vala"
- to_children = _tmp105_;
-#line 15817 "Commands.c"
+ to_children = _tmp103_;
+#line 16404 "Commands.c"
{
gint i = 0;
- GeeList* _tmp106_;
- gint _tmp107_;
- gint _tmp108_;
+ GeeList* _tmp104_;
+ gint _tmp105_;
+ gint _tmp106_;
#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp106_ = to_children;
+ _tmp104_ = to_children;
#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp107_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp106_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp105_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp104_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp108_ = _tmp107_;
+ _tmp106_ = _tmp105_;
#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp108_ - 1;
-#line 15831 "Commands.c"
+ i = _tmp106_ - 1;
+#line 16418 "Commands.c"
{
- gboolean _tmp109_ = FALSE;
+ gboolean _tmp107_ = FALSE;
#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp109_ = TRUE;
+ _tmp107_ = TRUE;
#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 15838 "Commands.c"
- gint _tmp111_;
- GeeList* _tmp112_;
- GeeList* _tmp113_;
- gint _tmp114_;
- gpointer _tmp115_;
- Tag* _tmp116_;
- SourceProxy* _tmp117_;
- SourceProxy* _tmp118_;
+#line 16425 "Commands.c"
+ gint _tmp109_;
+ GeeList* _tmp110_;
+ GeeList* _tmp111_;
+ gint _tmp112_;
+ gpointer _tmp113_;
+ Tag* _tmp114_;
+ SourceProxy* _tmp115_;
+ SourceProxy* _tmp116_;
#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp109_) {
-#line 15849 "Commands.c"
- gint _tmp110_;
+ if (!_tmp107_) {
+#line 16436 "Commands.c"
+ gint _tmp108_;
#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp110_ = i;
+ _tmp108_ = i;
#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp110_ - 1;
-#line 15855 "Commands.c"
+ i = _tmp108_ - 1;
+#line 16442 "Commands.c"
}
#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp109_ = FALSE;
+ _tmp107_ = FALSE;
#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp111_ = i;
+ _tmp109_ = i;
#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp111_ >= 0)) {
+ if (!(_tmp109_ >= 0)) {
#line 1858 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 15865 "Commands.c"
+#line 16452 "Commands.c"
}
#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp112_ = self->priv->dest_before_state;
+ _tmp110_ = self->priv->dest_before_state;
#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp113_ = to_children;
+ _tmp111_ = to_children;
#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp114_ = i;
+ _tmp112_ = i;
#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp115_ = gee_list_get (_tmp113_, _tmp114_);
+ _tmp113_ = gee_list_get (_tmp111_, _tmp112_);
#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp116_ = (Tag*) _tmp115_;
+ _tmp114_ = (Tag*) _tmp113_;
#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp117_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp116_, TYPE_PROXYABLE, Proxyable));
+ _tmp115_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp114_, TYPE_PROXYABLE, Proxyable));
#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp118_ = _tmp117_;
+ _tmp116_ = _tmp115_;
#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp112_, GEE_TYPE_COLLECTION, GeeCollection), _tmp118_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp110_, GEE_TYPE_COLLECTION, GeeCollection), _tmp116_);
#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp118_);
+ _source_proxy_unref0 (_tmp116_);
#line 1859 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp116_);
-#line 15887 "Commands.c"
+ _g_object_unref0 (_tmp114_);
+#line 16474 "Commands.c"
}
}
}
#line 1856 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (to_children);
-#line 15893 "Commands.c"
+#line 16480 "Commands.c"
}
#line 1794 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (from_children);
@@ -15897,179 +16484,128 @@ static void reparent_tag_command_save_before_state (ReparentTagCommand* self) {
_g_object_unref0 (parent_paths);
#line 1794 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (from_tag);
-#line 15901 "Commands.c"
+#line 16488 "Commands.c"
}
-static glong string_strnlen (gchar* str, glong maxlen) {
+static glong
+string_strnlen (gchar* str,
+ glong maxlen)
+{
glong result = 0L;
gchar* end = NULL;
gchar* _tmp0_;
- glong _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp0_ = str;
-#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp1_ = maxlen;
-#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
-#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- end = _tmp2_;
-#line 1323 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp3_ = end;
-#line 1323 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- if (_tmp3_ == NULL) {
-#line 15924 "Commands.c"
- glong _tmp4_;
-#line 1324 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp4_ = maxlen;
-#line 1324 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- result = _tmp4_;
-#line 1324 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ 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 15932 "Commands.c"
+#line 16512 "Commands.c"
} else {
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp5_ = end;
-#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp6_ = str;
-#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- result = (glong) (_tmp5_ - _tmp6_);
-#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ 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 15944 "Commands.c"
+#line 16521 "Commands.c"
}
}
-static gchar* string_substring (const gchar* self, glong offset, glong len) {
+static gchar*
+string_substring (const gchar* self,
+ glong offset,
+ glong len)
+{
gchar* result = NULL;
glong string_length = 0L;
gboolean _tmp0_ = FALSE;
- glong _tmp1_;
- glong _tmp8_;
- glong _tmp14_;
- glong _tmp17_;
- glong _tmp18_;
- glong _tmp19_;
- glong _tmp20_;
- glong _tmp21_;
- gchar* _tmp22_;
-#line 1333 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ 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 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp1_ = offset;
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- if (_tmp1_ >= ((glong) 0)) {
-#line 15968 "Commands.c"
- glong _tmp2_;
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp2_ = len;
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp0_ = _tmp2_ >= ((glong) 0);
-#line 15974 "Commands.c"
+#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ if (offset >= ((glong) 0)) {
+#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp0_ = len >= ((glong) 0);
+#line 16542 "Commands.c"
} else {
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_tmp0_ = FALSE;
-#line 15978 "Commands.c"
+#line 16546 "Commands.c"
}
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (_tmp0_) {
-#line 15982 "Commands.c"
- glong _tmp3_;
- glong _tmp4_;
- glong _tmp5_;
-#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp3_ = offset;
-#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp4_ = len;
-#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
-#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- string_length = _tmp5_;
-#line 15994 "Commands.c"
+#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ string_length = string_strnlen ((gchar*) self, offset + len);
+#line 16552 "Commands.c"
} else {
- gint _tmp6_;
- gint _tmp7_;
-#line 1339 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp6_ = strlen (self);
-#line 1339 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp6_;
-#line 1339 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp7_;
-#line 16004 "Commands.c"
+ gint _tmp1_;
+ gint _tmp2_;
+#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp1_ = strlen (self);
+#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp2_ = _tmp1_;
+#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ string_length = (glong) _tmp2_;
+#line 16562 "Commands.c"
}
-#line 1342 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp8_ = offset;
-#line 1342 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- if (_tmp8_ < ((glong) 0)) {
-#line 16010 "Commands.c"
- glong _tmp9_;
- glong _tmp10_;
- glong _tmp11_;
-#line 1343 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp9_ = string_length;
-#line 1343 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp10_ = offset;
-#line 1343 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- offset = _tmp9_ + _tmp10_;
-#line 1344 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp11_ = offset;
-#line 1344 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
-#line 16024 "Commands.c"
+#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ if (offset < ((glong) 0)) {
+#line 16566 "Commands.c"
+ glong _tmp3_;
+#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp3_ = string_length;
+#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ offset = _tmp3_ + offset;
+#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (offset >= ((glong) 0), NULL);
+#line 16574 "Commands.c"
} else {
- glong _tmp12_;
- glong _tmp13_;
-#line 1346 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp12_ = offset;
-#line 1346 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp13_ = string_length;
-#line 1346 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
-#line 16034 "Commands.c"
+ glong _tmp4_;
+#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp4_ = string_length;
+#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (offset <= _tmp4_, NULL);
+#line 16581 "Commands.c"
}
-#line 1348 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp14_ = len;
-#line 1348 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- if (_tmp14_ < ((glong) 0)) {
-#line 16040 "Commands.c"
- glong _tmp15_;
- glong _tmp16_;
-#line 1349 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp15_ = string_length;
-#line 1349 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp16_ = offset;
-#line 1349 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- len = _tmp15_ - _tmp16_;
-#line 16049 "Commands.c"
+#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ if (len < ((glong) 0)) {
+#line 16585 "Commands.c"
+ glong _tmp5_;
+#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp5_ = string_length;
+#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ len = _tmp5_ - offset;
+#line 16591 "Commands.c"
}
-#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp17_ = offset;
-#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp18_ = len;
-#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp19_ = string_length;
-#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
-#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp20_ = offset;
-#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp21_ = len;
-#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
-#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- result = _tmp22_;
-#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#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 16069 "Commands.c"
+#line 16603 "Commands.c"
}
-static void reparent_tag_command_restore_before_state (ReparentTagCommand* self) {
+static void
+reparent_tag_command_restore_before_state (ReparentTagCommand* self)
+{
GeeList* _tmp0_;
GeeMap* _tmp1_;
const gchar* _tmp2_;
@@ -16077,7 +16613,7 @@ static void reparent_tag_command_restore_before_state (ReparentTagCommand* self)
const gchar* _tmp11_;
gchar* unwind_target = NULL;
gchar* _tmp14_;
- const gchar* _tmp93_;
+ const gchar* _tmp89_;
#line 1863 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
#line 1864 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -16092,7 +16628,7 @@ static void reparent_tag_command_restore_before_state (ReparentTagCommand* self)
_tmp2_ = self->priv->to_path_parent_path;
#line 1868 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp2_ != NULL) {
-#line 16096 "Commands.c"
+#line 16632 "Commands.c"
gchar* new_tpp = NULL;
const gchar* _tmp3_;
gchar* _tmp4_;
@@ -16109,20 +16645,20 @@ static void reparent_tag_command_restore_before_state (ReparentTagCommand* self)
_tmp6_ = new_tpp;
#line 1870 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp6_ != NULL) {
-#line 16113 "Commands.c"
+#line 16649 "Commands.c"
const gchar* _tmp7_;
#line 1870 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp7_ = new_tpp;
#line 1870 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp5_ = _tmp7_;
-#line 16119 "Commands.c"
+#line 16655 "Commands.c"
} else {
const gchar* _tmp8_;
#line 1870 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp8_ = self->priv->to_path_parent_path;
#line 1870 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp5_ = _tmp8_;
-#line 16126 "Commands.c"
+#line 16662 "Commands.c"
}
#line 1870 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp9_ = g_strdup (_tmp5_);
@@ -16132,32 +16668,32 @@ static void reparent_tag_command_restore_before_state (ReparentTagCommand* self)
self->priv->to_path_parent_path = _tmp9_;
#line 1868 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (new_tpp);
-#line 16136 "Commands.c"
+#line 16672 "Commands.c"
}
#line 1873 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp11_ = self->priv->to_path_parent_path;
#line 1873 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp11_ != NULL) {
-#line 16142 "Commands.c"
+#line 16678 "Commands.c"
const gchar* _tmp12_;
#line 1873 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp12_ = self->priv->to_path_parent_path;
#line 1873 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp10_ = _tmp12_;
-#line 16148 "Commands.c"
+#line 16684 "Commands.c"
} else {
const gchar* _tmp13_;
#line 1873 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp13_ = self->priv->to_path;
#line 1873 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp10_ = _tmp13_;
-#line 16155 "Commands.c"
+#line 16691 "Commands.c"
}
#line 1873 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp14_ = g_strdup (_tmp10_);
#line 1873 "/home/jens/Source/shotwell/src/Commands.vala"
unwind_target = _tmp14_;
-#line 16161 "Commands.c"
+#line 16697 "Commands.c"
{
GeeList* _t_list = NULL;
const gchar* _tmp15_;
@@ -16196,7 +16732,7 @@ static void reparent_tag_command_restore_before_state (ReparentTagCommand* self)
_t_index = -1;
#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 16200 "Commands.c"
+#line 16736 "Commands.c"
gint _tmp23_;
gint _tmp24_;
gint _tmp25_;
@@ -16212,10 +16748,8 @@ static void reparent_tag_command_restore_before_state (ReparentTagCommand* self)
gchar* _tmp33_;
gchar* _tmp34_;
const gchar* _tmp35_;
- gboolean _tmp36_;
- GeeMap* _tmp39_;
- const gchar* _tmp40_;
- gboolean _tmp41_;
+ GeeMap* _tmp38_;
+ const gchar* _tmp39_;
#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp23_ = _t_index;
#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -16228,7 +16762,7 @@ static void reparent_tag_command_restore_before_state (ReparentTagCommand* self)
if (!(_tmp24_ < _tmp25_)) {
#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 16232 "Commands.c"
+#line 16766 "Commands.c"
}
#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp26_ = _t_list;
@@ -16257,238 +16791,228 @@ static void reparent_tag_command_restore_before_state (ReparentTagCommand* self)
#line 1876 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp35_ = child_subpath;
#line 1876 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = g_str_has_prefix (_tmp35_, TAG_PATH_SEPARATOR_STRING);
-#line 1876 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp36_) {
-#line 16264 "Commands.c"
- const gchar* _tmp37_;
- gchar* _tmp38_;
+ if (g_str_has_prefix (_tmp35_, TAG_PATH_SEPARATOR_STRING)) {
+#line 16796 "Commands.c"
+ const gchar* _tmp36_;
+ gchar* _tmp37_;
#line 1877 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = child_subpath;
+ _tmp36_ = child_subpath;
#line 1877 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = string_substring (_tmp37_, (glong) 1, (glong) -1);
+ _tmp37_ = string_substring (_tmp36_, (glong) 1, (glong) -1);
#line 1877 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (child_subpath);
#line 1877 "/home/jens/Source/shotwell/src/Commands.vala"
- child_subpath = _tmp38_;
-#line 16275 "Commands.c"
+ child_subpath = _tmp37_;
+#line 16807 "Commands.c"
}
#line 1879 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = self->priv->existing_dest_child_structure;
+ _tmp38_ = self->priv->existing_dest_child_structure;
#line 1879 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = child_subpath;
+ _tmp39_ = child_subpath;
#line 1879 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = gee_map_has_key (_tmp39_, _tmp40_);
-#line 1879 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp41_) {
-#line 16285 "Commands.c"
- TagSourceCollection* _tmp42_;
- TagSourceCollection* _tmp43_;
- Tag* _tmp44_;
- Marker* _tmp45_;
- Marker* _tmp46_;
+ if (!gee_map_has_key (_tmp38_, _tmp39_)) {
+#line 16815 "Commands.c"
+ TagSourceCollection* _tmp40_;
+ TagSourceCollection* _tmp41_;
+ Tag* _tmp42_;
+ Marker* _tmp43_;
+ Marker* _tmp44_;
#line 1880 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = tag_global;
+ _tmp40_ = tag_global;
#line 1880 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = tag_global;
+ _tmp41_ = tag_global;
#line 1880 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = t;
+ _tmp42_ = t;
#line 1880 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_DATA_OBJECT, DataObject));
+ _tmp43_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_DATA_OBJECT, DataObject));
#line 1880 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp46_ = _tmp45_;
+ _tmp44_ = _tmp43_;
#line 1880 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp46_, TRUE, NULL, NULL, NULL);
+ source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp44_, TRUE, NULL, NULL, NULL);
#line 1880 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp46_);
-#line 16305 "Commands.c"
+ _g_object_unref0 (_tmp44_);
+#line 16835 "Commands.c"
} else {
GeeSet* starting_sources = NULL;
- GeeHashSet* _tmp47_;
- GeeSet* _tmp48_;
- Tag* _tmp49_;
- GeeCollection* _tmp50_;
- GeeCollection* _tmp51_;
+ GeeHashSet* _tmp45_;
+ GeeSet* _tmp46_;
+ Tag* _tmp47_;
+ GeeCollection* _tmp48_;
+ GeeCollection* _tmp49_;
#line 1882 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp47_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
+ _tmp45_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
#line 1882 "/home/jens/Source/shotwell/src/Commands.vala"
- starting_sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, GEE_TYPE_SET, GeeSet);
+ starting_sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_SET, GeeSet);
#line 1883 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp48_ = starting_sources;
+ _tmp46_ = starting_sources;
#line 1883 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp49_ = t;
+ _tmp47_ = t;
#line 1883 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp50_ = tag_get_sources (_tmp49_);
+ _tmp48_ = tag_get_sources (_tmp47_);
#line 1883 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp51_ = _tmp50_;
+ _tmp49_ = _tmp48_;
#line 1883 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, GEE_TYPE_COLLECTION, GeeCollection), _tmp51_);
+ gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection), _tmp49_);
#line 1883 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp51_);
-#line 16329 "Commands.c"
+ _g_object_unref0 (_tmp49_);
+#line 16859 "Commands.c"
{
GeeIterator* _source_it = NULL;
- GeeSet* _tmp52_;
- GeeIterator* _tmp53_;
+ GeeSet* _tmp50_;
+ GeeIterator* _tmp51_;
#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp52_ = starting_sources;
+ _tmp50_ = starting_sources;
#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp53_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp51_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp53_;
+ _source_it = _tmp51_;
#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 16342 "Commands.c"
- GeeIterator* _tmp54_;
- gboolean _tmp55_;
+#line 16872 "Commands.c"
+ GeeIterator* _tmp52_;
MediaSource* source = NULL;
- GeeIterator* _tmp56_;
+ GeeIterator* _tmp53_;
+ gpointer _tmp54_;
+ GeeMap* _tmp55_;
+ const gchar* _tmp56_;
gpointer _tmp57_;
- GeeMap* _tmp58_;
- const gchar* _tmp59_;
- gpointer _tmp60_;
- GeeSet* _tmp61_;
- MediaSource* _tmp62_;
- gboolean _tmp63_;
- gboolean _tmp64_;
-#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp54_ = _source_it;
+ GeeSet* _tmp58_;
+ MediaSource* _tmp59_;
+ gboolean _tmp60_;
#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp55_ = gee_iterator_next (_tmp54_);
+ _tmp52_ = _source_it;
#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp55_) {
+ if (!gee_iterator_next (_tmp52_)) {
#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 16363 "Commands.c"
+#line 16889 "Commands.c"
}
#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp56_ = _source_it;
+ _tmp53_ = _source_it;
#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp57_ = gee_iterator_get (_tmp56_);
+ _tmp54_ = gee_iterator_get (_tmp53_);
#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (MediaSource*) _tmp57_;
+ source = (MediaSource*) _tmp54_;
#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp58_ = self->priv->existing_dest_child_structure;
+ _tmp55_ = self->priv->existing_dest_child_structure;
#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp59_ = child_subpath;
+ _tmp56_ = child_subpath;
#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp60_ = gee_map_get (_tmp58_, _tmp59_);
+ _tmp57_ = gee_map_get (_tmp55_, _tmp56_);
#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp61_ = (GeeSet*) _tmp60_;
+ _tmp58_ = (GeeSet*) _tmp57_;
#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp62_ = source;
+ _tmp59_ = source;
#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp63_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, GEE_TYPE_COLLECTION, GeeCollection), _tmp62_);
+ _tmp60_ = !gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, GEE_TYPE_COLLECTION, GeeCollection), _tmp59_);
#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp64_ = !_tmp63_;
+ _g_object_unref0 (_tmp58_);
#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp61_);
-#line 1885 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp64_) {
-#line 16389 "Commands.c"
- Tag* _tmp65_;
- MediaSource* _tmp66_;
- GeeList* _tmp67_;
- GeeList* _tmp68_;
+ if (_tmp60_) {
+#line 16913 "Commands.c"
+ Tag* _tmp61_;
+ MediaSource* _tmp62_;
+ GeeList* _tmp63_;
+ GeeList* _tmp64_;
#line 1886 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp65_ = t;
+ _tmp61_ = t;
#line 1886 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp66_ = source;
+ _tmp62_ = source;
#line 1886 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp67_ = tag_detach (_tmp65_, _tmp66_);
+ _tmp63_ = tag_detach (_tmp61_, _tmp62_);
#line 1886 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp68_ = _tmp67_;
+ _tmp64_ = _tmp63_;
#line 1886 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp68_);
-#line 16404 "Commands.c"
+ _g_object_unref0 (_tmp64_);
+#line 16928 "Commands.c"
}
#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 16408 "Commands.c"
+#line 16932 "Commands.c"
}
#line 1884 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 16412 "Commands.c"
+#line 16936 "Commands.c"
}
#line 1879 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (starting_sources);
-#line 16416 "Commands.c"
+#line 16940 "Commands.c"
}
#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (child_subpath);
#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (t);
-#line 16422 "Commands.c"
+#line 16946 "Commands.c"
}
#line 1874 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_t_list);
-#line 16426 "Commands.c"
+#line 16950 "Commands.c"
}
{
gint i = 0;
#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
i = 0;
-#line 16432 "Commands.c"
+#line 16956 "Commands.c"
{
- gboolean _tmp69_ = FALSE;
+ gboolean _tmp65_ = FALSE;
#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp69_ = TRUE;
+ _tmp65_ = TRUE;
#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 16439 "Commands.c"
- gint _tmp71_;
- GeeList* _tmp72_;
- gint _tmp73_;
- gint _tmp74_;
- GeeList* _tmp75_;
- gint _tmp76_;
- gpointer _tmp77_;
- SourceProxy* _tmp78_;
- DataSource* _tmp79_;
- DataSource* _tmp80_;
+#line 16963 "Commands.c"
+ gint _tmp67_;
+ GeeList* _tmp68_;
+ gint _tmp69_;
+ gint _tmp70_;
+ GeeList* _tmp71_;
+ gint _tmp72_;
+ gpointer _tmp73_;
+ SourceProxy* _tmp74_;
+ DataSource* _tmp75_;
+ DataSource* _tmp76_;
#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp69_) {
-#line 16452 "Commands.c"
- gint _tmp70_;
+ if (!_tmp65_) {
+#line 16976 "Commands.c"
+ gint _tmp66_;
#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp70_ = i;
+ _tmp66_ = i;
#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp70_ + 1;
-#line 16458 "Commands.c"
+ i = _tmp66_ + 1;
+#line 16982 "Commands.c"
}
#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp69_ = FALSE;
+ _tmp65_ = FALSE;
#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp71_ = i;
+ _tmp67_ = i;
#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp72_ = self->priv->src_before_state;
+ _tmp68_ = self->priv->src_before_state;
#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp73_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp69_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp74_ = _tmp73_;
+ _tmp70_ = _tmp69_;
#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp71_ < _tmp74_)) {
+ if (!(_tmp67_ < _tmp70_)) {
#line 1890 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 16474 "Commands.c"
+#line 16998 "Commands.c"
}
#line 1891 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp75_ = self->priv->src_before_state;
+ _tmp71_ = self->priv->src_before_state;
#line 1891 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp76_ = i;
+ _tmp72_ = i;
#line 1891 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp77_ = gee_list_get (_tmp75_, _tmp76_);
+ _tmp73_ = gee_list_get (_tmp71_, _tmp72_);
#line 1891 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp78_ = (SourceProxy*) _tmp77_;
+ _tmp74_ = (SourceProxy*) _tmp73_;
#line 1891 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp79_ = source_proxy_get_source (_tmp78_);
+ _tmp75_ = source_proxy_get_source (_tmp74_);
#line 1891 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp80_ = _tmp79_;
+ _tmp76_ = _tmp75_;
#line 1891 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp80_);
+ _g_object_unref0 (_tmp76_);
#line 1891 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp78_);
-#line 16492 "Commands.c"
+ _source_proxy_unref0 (_tmp74_);
+#line 17016 "Commands.c"
}
}
}
@@ -16496,236 +17020,233 @@ static void reparent_tag_command_restore_before_state (ReparentTagCommand* self)
gint i = 0;
#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
i = 0;
-#line 16500 "Commands.c"
+#line 17024 "Commands.c"
{
- gboolean _tmp81_ = FALSE;
+ gboolean _tmp77_ = FALSE;
#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp81_ = TRUE;
+ _tmp77_ = TRUE;
#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 16507 "Commands.c"
- gint _tmp83_;
- GeeList* _tmp84_;
- gint _tmp85_;
- gint _tmp86_;
- GeeList* _tmp87_;
- gint _tmp88_;
- gpointer _tmp89_;
- SourceProxy* _tmp90_;
- DataSource* _tmp91_;
- DataSource* _tmp92_;
+#line 17031 "Commands.c"
+ gint _tmp79_;
+ GeeList* _tmp80_;
+ gint _tmp81_;
+ gint _tmp82_;
+ GeeList* _tmp83_;
+ gint _tmp84_;
+ gpointer _tmp85_;
+ SourceProxy* _tmp86_;
+ DataSource* _tmp87_;
+ DataSource* _tmp88_;
#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp81_) {
-#line 16520 "Commands.c"
- gint _tmp82_;
+ if (!_tmp77_) {
+#line 17044 "Commands.c"
+ gint _tmp78_;
#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp82_ = i;
+ _tmp78_ = i;
#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp82_ + 1;
-#line 16526 "Commands.c"
+ i = _tmp78_ + 1;
+#line 17050 "Commands.c"
}
#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp81_ = FALSE;
+ _tmp77_ = FALSE;
#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp83_ = i;
+ _tmp79_ = i;
#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp84_ = self->priv->dest_before_state;
+ _tmp80_ = self->priv->dest_before_state;
#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp85_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp81_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp86_ = _tmp85_;
+ _tmp82_ = _tmp81_;
#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp83_ < _tmp86_)) {
+ if (!(_tmp79_ < _tmp82_)) {
#line 1893 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 16542 "Commands.c"
+#line 17066 "Commands.c"
}
#line 1894 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp87_ = self->priv->dest_before_state;
+ _tmp83_ = self->priv->dest_before_state;
#line 1894 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp88_ = i;
+ _tmp84_ = i;
#line 1894 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp89_ = gee_list_get (_tmp87_, _tmp88_);
+ _tmp85_ = gee_list_get (_tmp83_, _tmp84_);
#line 1894 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp90_ = (SourceProxy*) _tmp89_;
+ _tmp86_ = (SourceProxy*) _tmp85_;
#line 1894 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp91_ = source_proxy_get_source (_tmp90_);
+ _tmp87_ = source_proxy_get_source (_tmp86_);
#line 1894 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp92_ = _tmp91_;
+ _tmp88_ = _tmp87_;
#line 1894 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp92_);
+ _g_object_unref0 (_tmp88_);
#line 1894 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp90_);
-#line 16560 "Commands.c"
+ _source_proxy_unref0 (_tmp86_);
+#line 17084 "Commands.c"
}
}
}
#line 1896 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp93_ = self->priv->to_path_parent_path;
+ _tmp89_ = self->priv->to_path_parent_path;
#line 1896 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp93_ != NULL) {
-#line 16568 "Commands.c"
+ if (_tmp89_ != NULL) {
+#line 17092 "Commands.c"
gchar* new_path = NULL;
- const gchar* _tmp94_;
- gchar* _tmp95_;
- const gchar* _tmp96_ = NULL;
- const gchar* _tmp97_;
+ const gchar* _tmp90_;
+ gchar* _tmp91_;
+ const gchar* _tmp92_ = NULL;
+ const gchar* _tmp93_;
gchar* path = NULL;
- gchar* _tmp100_;
- TagSourceCollection* _tmp101_;
- const gchar* _tmp102_;
- gboolean _tmp103_;
+ gchar* _tmp96_;
+ TagSourceCollection* _tmp97_;
+ const gchar* _tmp98_;
Tag* t = NULL;
- const gchar* _tmp104_;
- Tag* _tmp105_;
+ const gchar* _tmp99_;
+ Tag* _tmp100_;
GeeList* kids = NULL;
- Tag* _tmp106_;
- GeeList* _tmp107_;
- const gchar* _tmp125_;
- GeeMap* _tmp126_;
+ Tag* _tmp101_;
+ GeeList* _tmp102_;
+ const gchar* _tmp120_;
+ GeeMap* _tmp121_;
#line 1897 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp94_ = self->priv->to_path_parent_path;
+ _tmp90_ = self->priv->to_path_parent_path;
#line 1897 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp95_ = hierarchical_tag_utilities_get_root_path_form (_tmp94_);
+ _tmp91_ = hierarchical_tag_utilities_get_root_path_form (_tmp90_);
#line 1897 "/home/jens/Source/shotwell/src/Commands.vala"
- new_path = _tmp95_;
+ new_path = _tmp91_;
#line 1898 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp97_ = new_path;
+ _tmp93_ = new_path;
#line 1898 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp97_ != NULL) {
-#line 16597 "Commands.c"
- const gchar* _tmp98_;
+ if (_tmp93_ != NULL) {
+#line 17120 "Commands.c"
+ const gchar* _tmp94_;
#line 1898 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp98_ = new_path;
+ _tmp94_ = new_path;
#line 1898 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp96_ = _tmp98_;
-#line 16603 "Commands.c"
+ _tmp92_ = _tmp94_;
+#line 17126 "Commands.c"
} else {
- const gchar* _tmp99_;
+ const gchar* _tmp95_;
#line 1898 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp99_ = self->priv->to_path_parent_path;
+ _tmp95_ = self->priv->to_path_parent_path;
#line 1898 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp96_ = _tmp99_;
-#line 16610 "Commands.c"
+ _tmp92_ = _tmp95_;
+#line 17133 "Commands.c"
}
#line 1898 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp100_ = g_strdup (_tmp96_);
+ _tmp96_ = g_strdup (_tmp92_);
#line 1898 "/home/jens/Source/shotwell/src/Commands.vala"
- path = _tmp100_;
-#line 1900 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp101_ = tag_global;
+ path = _tmp96_;
#line 1900 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp102_ = path;
+ _tmp97_ = tag_global;
#line 1900 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp103_ = tag_source_collection_exists (_tmp101_, _tmp102_, FALSE);
+ _tmp98_ = path;
#line 1900 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp103_, "Tag.global.exists(path)");
+ _vala_assert (tag_source_collection_exists (_tmp97_, _tmp98_, FALSE), "Tag.global.exists(path)");
#line 1902 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp104_ = path;
+ _tmp99_ = path;
#line 1902 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp105_ = tag_for_path (_tmp104_);
+ _tmp100_ = tag_for_path (_tmp99_);
#line 1902 "/home/jens/Source/shotwell/src/Commands.vala"
- t = _tmp105_;
+ t = _tmp100_;
#line 1904 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp106_ = t;
+ _tmp101_ = t;
#line 1904 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp107_ = tag_get_hierarchical_children (_tmp106_);
+ _tmp102_ = tag_get_hierarchical_children (_tmp101_);
#line 1904 "/home/jens/Source/shotwell/src/Commands.vala"
- kids = _tmp107_;
-#line 16636 "Commands.c"
+ kids = _tmp102_;
+#line 17157 "Commands.c"
{
GeeList* _kidtag_list = NULL;
- GeeList* _tmp108_;
- GeeList* _tmp109_;
+ GeeList* _tmp103_;
+ GeeList* _tmp104_;
gint _kidtag_size = 0;
- GeeList* _tmp110_;
- gint _tmp111_;
- gint _tmp112_;
+ GeeList* _tmp105_;
+ gint _tmp106_;
+ gint _tmp107_;
gint _kidtag_index = 0;
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp108_ = kids;
+ _tmp103_ = kids;
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp109_ = _g_object_ref0 (_tmp108_);
+ _tmp104_ = _g_object_ref0 (_tmp103_);
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _kidtag_list = _tmp109_;
+ _kidtag_list = _tmp104_;
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp110_ = _kidtag_list;
+ _tmp105_ = _kidtag_list;
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp111_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp110_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp106_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp112_ = _tmp111_;
+ _tmp107_ = _tmp106_;
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _kidtag_size = _tmp112_;
+ _kidtag_size = _tmp107_;
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
_kidtag_index = -1;
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 16664 "Commands.c"
- gint _tmp113_;
- gint _tmp114_;
- gint _tmp115_;
+#line 17185 "Commands.c"
+ gint _tmp108_;
+ gint _tmp109_;
+ gint _tmp110_;
Tag* kidtag = NULL;
- GeeList* _tmp116_;
- gint _tmp117_;
- gpointer _tmp118_;
- Tag* _tmp119_;
- Tag* _tmp120_;
- GeeCollection* _tmp121_;
- GeeCollection* _tmp122_;
- GeeMultiMap* _tmp123_;
- GeeMultiMap* _tmp124_;
+ GeeList* _tmp111_;
+ gint _tmp112_;
+ gpointer _tmp113_;
+ Tag* _tmp114_;
+ Tag* _tmp115_;
+ GeeCollection* _tmp116_;
+ GeeCollection* _tmp117_;
+ GeeMultiMap* _tmp118_;
+ GeeMultiMap* _tmp119_;
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp113_ = _kidtag_index;
+ _tmp108_ = _kidtag_index;
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _kidtag_index = _tmp113_ + 1;
+ _kidtag_index = _tmp108_ + 1;
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp114_ = _kidtag_index;
+ _tmp109_ = _kidtag_index;
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp115_ = _kidtag_size;
+ _tmp110_ = _kidtag_size;
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp114_ < _tmp115_)) {
+ if (!(_tmp109_ < _tmp110_)) {
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 16690 "Commands.c"
+#line 17211 "Commands.c"
}
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp116_ = _kidtag_list;
+ _tmp111_ = _kidtag_list;
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp117_ = _kidtag_index;
+ _tmp112_ = _kidtag_index;
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp118_ = gee_list_get (_tmp116_, _tmp117_);
+ _tmp113_ = gee_list_get (_tmp111_, _tmp112_);
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
- kidtag = (Tag*) _tmp118_;
+ kidtag = (Tag*) _tmp113_;
#line 1906 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp119_ = kidtag;
+ _tmp114_ = kidtag;
#line 1906 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp120_ = kidtag;
+ _tmp115_ = kidtag;
#line 1906 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp121_ = tag_get_sources (_tmp120_);
+ _tmp116_ = tag_get_sources (_tmp115_);
#line 1906 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp122_ = _tmp121_;
+ _tmp117_ = _tmp116_;
#line 1906 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp123_ = tag_detach_many (_tmp119_, _tmp122_);
+ _tmp118_ = tag_detach_many (_tmp114_, _tmp117_);
#line 1906 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp124_ = _tmp123_;
+ _tmp119_ = _tmp118_;
#line 1906 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp124_);
+ _g_object_unref0 (_tmp119_);
#line 1906 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp122_);
+ _g_object_unref0 (_tmp117_);
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (kidtag);
-#line 16718 "Commands.c"
+#line 17239 "Commands.c"
}
#line 1905 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_kidtag_list);
-#line 16722 "Commands.c"
+#line 17243 "Commands.c"
}
#line 1908 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp125_ = path;
+ _tmp120_ = path;
#line 1908 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp126_ = self->priv->existing_dest_child_structure;
+ _tmp121_ = self->priv->existing_dest_child_structure;
#line 1908 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_restore_child_attachments_at (self, _tmp125_, _tmp126_);
+ reparent_tag_command_restore_child_attachments_at (self, _tmp120_, _tmp121_);
#line 1896 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (kids);
#line 1896 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -16734,209 +17255,210 @@ static void reparent_tag_command_restore_before_state (ReparentTagCommand* self)
_g_free0 (path);
#line 1896 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (new_path);
-#line 16738 "Commands.c"
+#line 17259 "Commands.c"
} else {
- GeeSet* _tmp127_;
- const gchar* _tmp128_;
- Tag* _tmp129_;
- Tag* _tmp130_;
- const gchar* _tmp131_;
- Tag* _tmp132_;
- Tag* _tmp133_;
- GeeCollection* _tmp134_;
- GeeCollection* _tmp135_;
- GeeMultiMap* _tmp136_;
- GeeMultiMap* _tmp137_;
- const gchar* _tmp138_;
- Tag* _tmp139_;
- Tag* _tmp140_;
- GeeSet* _tmp141_;
+ GeeSet* _tmp122_;
+ const gchar* _tmp123_;
+ Tag* _tmp124_;
+ Tag* _tmp125_;
+ const gchar* _tmp126_;
+ Tag* _tmp127_;
+ Tag* _tmp128_;
+ GeeCollection* _tmp129_;
+ GeeCollection* _tmp130_;
+ GeeMultiMap* _tmp131_;
+ GeeMultiMap* _tmp132_;
+ const gchar* _tmp133_;
+ Tag* _tmp134_;
+ Tag* _tmp135_;
+ GeeSet* _tmp136_;
GeeList* kids = NULL;
- const gchar* _tmp142_;
- Tag* _tmp143_;
- Tag* _tmp144_;
- GeeList* _tmp145_;
- GeeList* _tmp146_;
- const gchar* _tmp164_;
- GeeMap* _tmp165_;
+ const gchar* _tmp137_;
+ Tag* _tmp138_;
+ Tag* _tmp139_;
+ GeeList* _tmp140_;
+ GeeList* _tmp141_;
+ const gchar* _tmp159_;
+ GeeMap* _tmp160_;
#line 1910 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp127_ = self->priv->existing_dest_membership;
+ _tmp122_ = self->priv->existing_dest_membership;
#line 1910 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp127_ != NULL, "existing_dest_membership != null");
+ _vala_assert (_tmp122_ != NULL, "existing_dest_membership != null");
#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp128_ = self->priv->to_path;
+ _tmp123_ = self->priv->to_path;
#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp129_ = tag_for_path (_tmp128_);
+ _tmp124_ = tag_for_path (_tmp123_);
#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp130_ = _tmp129_;
+ _tmp125_ = _tmp124_;
#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp131_ = self->priv->to_path;
+ _tmp126_ = self->priv->to_path;
#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp132_ = tag_for_path (_tmp131_);
+ _tmp127_ = tag_for_path (_tmp126_);
#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp133_ = _tmp132_;
+ _tmp128_ = _tmp127_;
#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp134_ = tag_get_sources (_tmp133_);
+ _tmp129_ = tag_get_sources (_tmp128_);
#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp135_ = _tmp134_;
+ _tmp130_ = _tmp129_;
#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp136_ = tag_detach_many (_tmp130_, _tmp135_);
+ _tmp131_ = tag_detach_many (_tmp125_, _tmp130_);
#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp137_ = _tmp136_;
+ _tmp132_ = _tmp131_;
#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp137_);
+ _g_object_unref0 (_tmp132_);
#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp135_);
+ _g_object_unref0 (_tmp130_);
#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp133_);
+ _g_object_unref0 (_tmp128_);
#line 1911 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp130_);
+ _g_object_unref0 (_tmp125_);
#line 1912 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp138_ = self->priv->to_path;
+ _tmp133_ = self->priv->to_path;
#line 1912 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp139_ = tag_for_path (_tmp138_);
+ _tmp134_ = tag_for_path (_tmp133_);
#line 1912 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp140_ = _tmp139_;
+ _tmp135_ = _tmp134_;
#line 1912 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp141_ = self->priv->existing_dest_membership;
+ _tmp136_ = self->priv->existing_dest_membership;
#line 1912 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach_many (_tmp140_, G_TYPE_CHECK_INSTANCE_CAST (_tmp141_, GEE_TYPE_COLLECTION, GeeCollection));
+ tag_attach_many (_tmp135_, G_TYPE_CHECK_INSTANCE_CAST (_tmp136_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1912 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp140_);
+ _g_object_unref0 (_tmp135_);
#line 1914 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp142_ = self->priv->to_path;
+ _tmp137_ = self->priv->to_path;
#line 1914 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp143_ = tag_for_path (_tmp142_);
+ _tmp138_ = tag_for_path (_tmp137_);
#line 1914 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp144_ = _tmp143_;
+ _tmp139_ = _tmp138_;
#line 1914 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp145_ = tag_get_hierarchical_children (_tmp144_);
+ _tmp140_ = tag_get_hierarchical_children (_tmp139_);
#line 1914 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp146_ = _tmp145_;
+ _tmp141_ = _tmp140_;
#line 1914 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp144_);
+ _g_object_unref0 (_tmp139_);
#line 1914 "/home/jens/Source/shotwell/src/Commands.vala"
- kids = _tmp146_;
-#line 16821 "Commands.c"
+ kids = _tmp141_;
+#line 17342 "Commands.c"
{
GeeList* _kidtag_list = NULL;
- GeeList* _tmp147_;
- GeeList* _tmp148_;
+ GeeList* _tmp142_;
+ GeeList* _tmp143_;
gint _kidtag_size = 0;
- GeeList* _tmp149_;
- gint _tmp150_;
- gint _tmp151_;
+ GeeList* _tmp144_;
+ gint _tmp145_;
+ gint _tmp146_;
gint _kidtag_index = 0;
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp147_ = kids;
+ _tmp142_ = kids;
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp148_ = _g_object_ref0 (_tmp147_);
+ _tmp143_ = _g_object_ref0 (_tmp142_);
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _kidtag_list = _tmp148_;
+ _kidtag_list = _tmp143_;
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp149_ = _kidtag_list;
+ _tmp144_ = _kidtag_list;
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp150_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp149_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp145_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp144_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp151_ = _tmp150_;
+ _tmp146_ = _tmp145_;
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _kidtag_size = _tmp151_;
+ _kidtag_size = _tmp146_;
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
_kidtag_index = -1;
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 16849 "Commands.c"
- gint _tmp152_;
- gint _tmp153_;
- gint _tmp154_;
+#line 17370 "Commands.c"
+ gint _tmp147_;
+ gint _tmp148_;
+ gint _tmp149_;
Tag* kidtag = NULL;
- GeeList* _tmp155_;
- gint _tmp156_;
- gpointer _tmp157_;
- Tag* _tmp158_;
- Tag* _tmp159_;
- GeeCollection* _tmp160_;
- GeeCollection* _tmp161_;
- GeeMultiMap* _tmp162_;
- GeeMultiMap* _tmp163_;
+ GeeList* _tmp150_;
+ gint _tmp151_;
+ gpointer _tmp152_;
+ Tag* _tmp153_;
+ Tag* _tmp154_;
+ GeeCollection* _tmp155_;
+ GeeCollection* _tmp156_;
+ GeeMultiMap* _tmp157_;
+ GeeMultiMap* _tmp158_;
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp152_ = _kidtag_index;
+ _tmp147_ = _kidtag_index;
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _kidtag_index = _tmp152_ + 1;
+ _kidtag_index = _tmp147_ + 1;
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp153_ = _kidtag_index;
+ _tmp148_ = _kidtag_index;
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp154_ = _kidtag_size;
+ _tmp149_ = _kidtag_size;
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp153_ < _tmp154_)) {
+ if (!(_tmp148_ < _tmp149_)) {
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 16875 "Commands.c"
+#line 17396 "Commands.c"
}
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp155_ = _kidtag_list;
+ _tmp150_ = _kidtag_list;
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp156_ = _kidtag_index;
+ _tmp151_ = _kidtag_index;
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp157_ = gee_list_get (_tmp155_, _tmp156_);
+ _tmp152_ = gee_list_get (_tmp150_, _tmp151_);
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
- kidtag = (Tag*) _tmp157_;
+ kidtag = (Tag*) _tmp152_;
#line 1916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp158_ = kidtag;
+ _tmp153_ = kidtag;
#line 1916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp159_ = kidtag;
+ _tmp154_ = kidtag;
#line 1916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp160_ = tag_get_sources (_tmp159_);
+ _tmp155_ = tag_get_sources (_tmp154_);
#line 1916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp161_ = _tmp160_;
+ _tmp156_ = _tmp155_;
#line 1916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp162_ = tag_detach_many (_tmp158_, _tmp161_);
+ _tmp157_ = tag_detach_many (_tmp153_, _tmp156_);
#line 1916 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp163_ = _tmp162_;
+ _tmp158_ = _tmp157_;
#line 1916 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp163_);
+ _g_object_unref0 (_tmp158_);
#line 1916 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp161_);
+ _g_object_unref0 (_tmp156_);
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (kidtag);
-#line 16903 "Commands.c"
+#line 17424 "Commands.c"
}
#line 1915 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_kidtag_list);
-#line 16907 "Commands.c"
+#line 17428 "Commands.c"
}
#line 1918 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp164_ = self->priv->to_path;
+ _tmp159_ = self->priv->to_path;
#line 1918 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp165_ = self->priv->existing_dest_child_structure;
+ _tmp160_ = self->priv->existing_dest_child_structure;
#line 1918 "/home/jens/Source/shotwell/src/Commands.vala"
- reparent_tag_command_restore_child_attachments_at (self, _tmp164_, _tmp165_);
+ reparent_tag_command_restore_child_attachments_at (self, _tmp159_, _tmp160_);
#line 1896 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (kids);
-#line 16917 "Commands.c"
+#line 17438 "Commands.c"
}
#line 1863 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (unwind_target);
-#line 16921 "Commands.c"
+#line 17442 "Commands.c"
}
-static void reparent_tag_command_save_after_state (ReparentTagCommand* self) {
+static void
+reparent_tag_command_save_after_state (ReparentTagCommand* self)
+{
GeeList* _tmp0_;
GeeArrayList* _tmp1_;
TagSourceCollection* _tmp2_;
const gchar* _tmp3_;
- gboolean _tmp4_;
Tag* to_tag = NULL;
- const gchar* _tmp5_;
- Tag* _tmp6_;
- GeeList* _tmp7_;
- Tag* _tmp8_;
+ const gchar* _tmp4_;
+ Tag* _tmp5_;
+ GeeList* _tmp6_;
+ Tag* _tmp7_;
+ SourceProxy* _tmp8_;
SourceProxy* _tmp9_;
- SourceProxy* _tmp10_;
GeeList* to_children = NULL;
- Tag* _tmp11_;
- GeeList* _tmp12_;
+ Tag* _tmp10_;
+ GeeList* _tmp11_;
#line 1922 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
#line 1923 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -16954,104 +17476,102 @@ static void reparent_tag_command_save_after_state (ReparentTagCommand* self) {
#line 1928 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp3_ = self->priv->to_path;
#line 1928 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = tag_source_collection_exists (_tmp2_, _tmp3_, FALSE);
-#line 1928 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp4_, "Tag.global.exists(to_path)");
+ _vala_assert (tag_source_collection_exists (_tmp2_, _tmp3_, FALSE), "Tag.global.exists(to_path)");
#line 1929 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->to_path;
+ _tmp4_ = self->priv->to_path;
#line 1929 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = tag_for_path (_tmp5_);
+ _tmp5_ = tag_for_path (_tmp4_);
#line 1929 "/home/jens/Source/shotwell/src/Commands.vala"
- to_tag = _tmp6_;
+ to_tag = _tmp5_;
#line 1930 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->after_state;
+ _tmp6_ = self->priv->after_state;
#line 1930 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = to_tag;
+ _tmp7_ = to_tag;
#line 1930 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PROXYABLE, Proxyable));
+ _tmp8_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PROXYABLE, Proxyable));
#line 1930 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tmp9_;
+ _tmp9_ = _tmp8_;
#line 1930 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection), _tmp10_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), _tmp9_);
#line 1930 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp10_);
+ _source_proxy_unref0 (_tmp9_);
#line 1933 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = to_tag;
+ _tmp10_ = to_tag;
#line 1933 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = tag_get_hierarchical_children (_tmp11_);
+ _tmp11_ = tag_get_hierarchical_children (_tmp10_);
#line 1933 "/home/jens/Source/shotwell/src/Commands.vala"
- to_children = _tmp12_;
-#line 16985 "Commands.c"
+ to_children = _tmp11_;
+#line 17505 "Commands.c"
{
gint i = 0;
- GeeList* _tmp13_;
+ GeeList* _tmp12_;
+ gint _tmp13_;
gint _tmp14_;
- gint _tmp15_;
#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = to_children;
+ _tmp12_ = to_children;
#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _tmp14_;
+ _tmp14_ = _tmp13_;
#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp15_ - 1;
-#line 16999 "Commands.c"
+ i = _tmp14_ - 1;
+#line 17519 "Commands.c"
{
- gboolean _tmp16_ = FALSE;
+ gboolean _tmp15_ = FALSE;
#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = TRUE;
+ _tmp15_ = TRUE;
#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 17006 "Commands.c"
- gint _tmp18_;
+#line 17526 "Commands.c"
+ gint _tmp17_;
+ GeeList* _tmp18_;
GeeList* _tmp19_;
- GeeList* _tmp20_;
- gint _tmp21_;
- gpointer _tmp22_;
- Tag* _tmp23_;
+ gint _tmp20_;
+ gpointer _tmp21_;
+ Tag* _tmp22_;
+ SourceProxy* _tmp23_;
SourceProxy* _tmp24_;
- SourceProxy* _tmp25_;
#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp16_) {
-#line 17017 "Commands.c"
- gint _tmp17_;
+ if (!_tmp15_) {
+#line 17537 "Commands.c"
+ gint _tmp16_;
#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = i;
+ _tmp16_ = i;
#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp17_ - 1;
-#line 17023 "Commands.c"
+ i = _tmp16_ - 1;
+#line 17543 "Commands.c"
}
#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = FALSE;
+ _tmp15_ = FALSE;
#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = i;
+ _tmp17_ = i;
#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp18_ >= 0)) {
+ if (!(_tmp17_ >= 0)) {
#line 1934 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 17033 "Commands.c"
+#line 17553 "Commands.c"
}
#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = self->priv->after_state;
+ _tmp18_ = self->priv->after_state;
#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = to_children;
+ _tmp19_ = to_children;
#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = i;
+ _tmp20_ = i;
#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = gee_list_get (_tmp20_, _tmp21_);
+ _tmp21_ = gee_list_get (_tmp19_, _tmp20_);
#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = (Tag*) _tmp22_;
+ _tmp22_ = (Tag*) _tmp21_;
#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_PROXYABLE, Proxyable));
+ _tmp23_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PROXYABLE, Proxyable));
#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = _tmp24_;
+ _tmp24_ = _tmp23_;
#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection), _tmp25_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection), _tmp24_);
#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_proxy_unref0 (_tmp25_);
+ _source_proxy_unref0 (_tmp24_);
#line 1935 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp23_);
-#line 17055 "Commands.c"
+ _g_object_unref0 (_tmp22_);
+#line 17575 "Commands.c"
}
}
}
@@ -17059,11 +17579,13 @@ static void reparent_tag_command_save_after_state (ReparentTagCommand* self) {
_g_object_unref0 (to_children);
#line 1922 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (to_tag);
-#line 17063 "Commands.c"
+#line 17583 "Commands.c"
}
-static void reparent_tag_command_restore_after_state (ReparentTagCommand* self) {
+static void
+reparent_tag_command_restore_after_state (ReparentTagCommand* self)
+{
GeeList* _tmp0_;
#line 1938 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
@@ -17071,19 +17593,19 @@ static void reparent_tag_command_restore_after_state (ReparentTagCommand* self)
_tmp0_ = self->priv->after_state;
#line 1939 "/home/jens/Source/shotwell/src/Commands.vala"
_vala_assert (_tmp0_ != NULL, "after_state != null");
-#line 17075 "Commands.c"
+#line 17597 "Commands.c"
{
gint i = 0;
#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
i = 0;
-#line 17080 "Commands.c"
+#line 17602 "Commands.c"
{
gboolean _tmp1_ = FALSE;
#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp1_ = TRUE;
#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 17087 "Commands.c"
+#line 17609 "Commands.c"
gint _tmp3_;
GeeList* _tmp4_;
gint _tmp5_;
@@ -17096,13 +17618,13 @@ static void reparent_tag_command_restore_after_state (ReparentTagCommand* self)
DataSource* _tmp12_;
#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
if (!_tmp1_) {
-#line 17100 "Commands.c"
+#line 17622 "Commands.c"
gint _tmp2_;
#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp2_ = i;
#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
i = _tmp2_ + 1;
-#line 17106 "Commands.c"
+#line 17628 "Commands.c"
}
#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp1_ = FALSE;
@@ -17118,7 +17640,7 @@ static void reparent_tag_command_restore_after_state (ReparentTagCommand* self)
if (!(_tmp3_ < _tmp6_)) {
#line 1941 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 17122 "Commands.c"
+#line 17644 "Commands.c"
}
#line 1942 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp7_ = self->priv->after_state;
@@ -17136,18 +17658,19 @@ static void reparent_tag_command_restore_after_state (ReparentTagCommand* self)
_g_object_unref0 (_tmp12_);
#line 1942 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (_tmp10_);
-#line 17140 "Commands.c"
+#line 17662 "Commands.c"
}
}
}
}
-static void reparent_tag_command_prepare_parent (ReparentTagCommand* self, const gchar* path) {
+static void
+reparent_tag_command_prepare_parent (ReparentTagCommand* self,
+ const gchar* path)
+{
Tag* new_parent = NULL;
- const gchar* _tmp0_;
- gboolean _tmp1_;
- Tag* _tmp27_;
+ Tag* _tmp22_;
#line 1945 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
#line 1945 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -17155,157 +17678,145 @@ static void reparent_tag_command_prepare_parent (ReparentTagCommand* self, const
#line 1947 "/home/jens/Source/shotwell/src/Commands.vala"
new_parent = NULL;
#line 1948 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = path;
-#line 1948 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = g_str_has_prefix (_tmp0_, TAG_PATH_SEPARATOR_STRING);
-#line 1948 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_) {
-#line 17164 "Commands.c"
+ if (g_str_has_prefix (path, TAG_PATH_SEPARATOR_STRING)) {
+#line 17683 "Commands.c"
GeeList* parent_paths = NULL;
- const gchar* _tmp2_;
- GeeList* _tmp3_;
- GeeList* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
-#line 1949 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = path;
+ GeeList* _tmp0_;
+ GeeList* _tmp1_;
+ gint _tmp2_;
+ gint _tmp3_;
#line 1949 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp2_);
+ _tmp0_ = hierarchical_tag_utilities_enumerate_parent_paths (path);
#line 1949 "/home/jens/Source/shotwell/src/Commands.vala"
- parent_paths = _tmp3_;
+ parent_paths = _tmp0_;
#line 1950 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = parent_paths;
+ _tmp1_ = parent_paths;
#line 1950 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1950 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
+ _tmp3_ = _tmp2_;
#line 1950 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp6_ > 0) {
-#line 17185 "Commands.c"
+ if (_tmp3_ > 0) {
+#line 17701 "Commands.c"
gchar* immediate_parent_path = NULL;
- GeeList* _tmp7_;
- GeeList* _tmp8_;
- gint _tmp9_;
- gint _tmp10_;
- gpointer _tmp11_;
- TagSourceCollection* _tmp12_;
- const gchar* _tmp13_;
- gboolean _tmp14_;
+ GeeList* _tmp4_;
+ GeeList* _tmp5_;
+ gint _tmp6_;
+ gint _tmp7_;
+ gpointer _tmp8_;
+ TagSourceCollection* _tmp9_;
+ const gchar* _tmp10_;
#line 1951 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = parent_paths;
+ _tmp4_ = parent_paths;
#line 1951 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = parent_paths;
+ _tmp5_ = parent_paths;
#line 1951 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1951 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tmp9_;
+ _tmp7_ = _tmp6_;
#line 1951 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = gee_list_get (_tmp7_, _tmp10_ - 1);
+ _tmp8_ = gee_list_get (_tmp4_, _tmp7_ - 1);
#line 1951 "/home/jens/Source/shotwell/src/Commands.vala"
- immediate_parent_path = (gchar*) _tmp11_;
+ immediate_parent_path = (gchar*) _tmp8_;
#line 1952 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = tag_global;
+ _tmp9_ = tag_global;
#line 1952 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = immediate_parent_path;
+ _tmp10_ = immediate_parent_path;
#line 1952 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = tag_source_collection_exists (_tmp12_, _tmp13_, FALSE);
-#line 1952 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp14_) {
-#line 17215 "Commands.c"
- const gchar* _tmp15_;
- Tag* _tmp16_;
+ if (tag_source_collection_exists (_tmp9_, _tmp10_, FALSE)) {
+#line 17728 "Commands.c"
+ const gchar* _tmp11_;
+ Tag* _tmp12_;
#line 1953 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = immediate_parent_path;
+ _tmp11_ = immediate_parent_path;
#line 1953 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = tag_for_path (_tmp15_);
+ _tmp12_ = tag_for_path (_tmp11_);
#line 1953 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (new_parent);
#line 1953 "/home/jens/Source/shotwell/src/Commands.vala"
- new_parent = _tmp16_;
-#line 17226 "Commands.c"
+ new_parent = _tmp12_;
+#line 17739 "Commands.c"
} else {
- TagSourceCollection* _tmp17_;
- const gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- gboolean _tmp21_;
- gboolean _tmp22_;
+ TagSourceCollection* _tmp13_;
+ const gchar* _tmp14_;
+ gchar* _tmp15_;
+ gchar* _tmp16_;
+ gboolean _tmp17_;
#line 1954 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = tag_global;
+ _tmp13_ = tag_global;
#line 1954 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = immediate_parent_path;
+ _tmp14_ = immediate_parent_path;
#line 1954 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = string_substring (_tmp18_, (glong) 1, (glong) -1);
+ _tmp15_ = string_substring (_tmp14_, (glong) 1, (glong) -1);
#line 1954 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _tmp19_;
+ _tmp16_ = _tmp15_;
#line 1954 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = tag_source_collection_exists (_tmp17_, _tmp20_, FALSE);
+ _tmp17_ = tag_source_collection_exists (_tmp13_, _tmp16_, FALSE);
#line 1954 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = _tmp21_;
+ _g_free0 (_tmp16_);
#line 1954 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp20_);
-#line 1954 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp22_) {
-#line 17250 "Commands.c"
- const gchar* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- Tag* _tmp26_;
+ if (_tmp17_) {
+#line 17760 "Commands.c"
+ const gchar* _tmp18_;
+ gchar* _tmp19_;
+ gchar* _tmp20_;
+ Tag* _tmp21_;
#line 1955 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = immediate_parent_path;
+ _tmp18_ = immediate_parent_path;
#line 1955 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = string_substring (_tmp23_, (glong) 1, (glong) -1);
+ _tmp19_ = string_substring (_tmp18_, (glong) 1, (glong) -1);
#line 1955 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = _tmp24_;
+ _tmp20_ = _tmp19_;
#line 1955 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = tag_for_path (_tmp25_);
+ _tmp21_ = tag_for_path (_tmp20_);
#line 1955 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (new_parent);
#line 1955 "/home/jens/Source/shotwell/src/Commands.vala"
- new_parent = _tmp26_;
+ new_parent = _tmp21_;
#line 1955 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp25_);
-#line 17269 "Commands.c"
+ _g_free0 (_tmp20_);
+#line 17779 "Commands.c"
} else {
#line 1957 "/home/jens/Source/shotwell/src/Commands.vala"
g_assert_not_reached ();
-#line 17273 "Commands.c"
+#line 17783 "Commands.c"
}
}
#line 1950 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (immediate_parent_path);
-#line 17278 "Commands.c"
+#line 17788 "Commands.c"
}
#line 1948 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (parent_paths);
-#line 17282 "Commands.c"
+#line 17792 "Commands.c"
}
#line 1960 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = new_parent;
+ _tmp22_ = new_parent;
#line 1960 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp27_ != NULL) {
-#line 17288 "Commands.c"
- Tag* _tmp28_;
+ if (_tmp22_ != NULL) {
+#line 17798 "Commands.c"
+ Tag* _tmp23_;
#line 1961 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = new_parent;
+ _tmp23_ = new_parent;
#line 1961 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_promote (_tmp28_);
-#line 17294 "Commands.c"
+ tag_promote (_tmp23_);
+#line 17804 "Commands.c"
}
#line 1945 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (new_parent);
-#line 17298 "Commands.c"
+#line 17808 "Commands.c"
}
-static void reparent_tag_command_do_source_parent_detachments (ReparentTagCommand* self) {
+static void
+reparent_tag_command_do_source_parent_detachments (ReparentTagCommand* self)
+{
TagSourceCollection* _tmp0_;
const gchar* _tmp1_;
- gboolean _tmp2_;
Tag* from_tag = NULL;
- const gchar* _tmp3_;
- Tag* _tmp4_;
- GeeMap* _tmp5_;
+ const gchar* _tmp2_;
+ Tag* _tmp3_;
+ GeeMap* _tmp4_;
#line 1964 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
#line 1965 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -17313,367 +17824,349 @@ static void reparent_tag_command_do_source_parent_detachments (ReparentTagComman
#line 1965 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp1_ = self->priv->from_path;
#line 1965 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = tag_source_collection_exists (_tmp0_, _tmp1_, FALSE);
-#line 1965 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp2_, "Tag.global.exists(from_path)");
+ _vala_assert (tag_source_collection_exists (_tmp0_, _tmp1_, FALSE), "Tag.global.exists(from_path)");
#line 1966 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->from_path;
+ _tmp2_ = self->priv->from_path;
#line 1966 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = tag_for_path (_tmp3_);
+ _tmp3_ = tag_for_path (_tmp2_);
#line 1966 "/home/jens/Source/shotwell/src/Commands.vala"
- from_tag = _tmp4_;
+ from_tag = _tmp3_;
#line 1969 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = self->priv->src_parent_detachments;
+ _tmp4_ = self->priv->src_parent_detachments;
#line 1969 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp5_ == NULL) {
-#line 17330 "Commands.c"
- GeeHashMap* _tmp6_;
+ if (_tmp4_ == NULL) {
+#line 17839 "Commands.c"
+ GeeHashMap* _tmp5_;
#line 1970 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+ _tmp5_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 1970 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->src_parent_detachments);
#line 1970 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->src_parent_detachments = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_MAP, GeeMap);
-#line 17338 "Commands.c"
+ self->priv->src_parent_detachments = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_MAP, GeeMap);
+#line 17847 "Commands.c"
{
GeeIterator* _source_it = NULL;
- Tag* _tmp7_;
+ Tag* _tmp6_;
+ GeeCollection* _tmp7_;
GeeCollection* _tmp8_;
- GeeCollection* _tmp9_;
+ GeeIterator* _tmp9_;
GeeIterator* _tmp10_;
- GeeIterator* _tmp11_;
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = from_tag;
+ _tmp6_ = from_tag;
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = tag_get_sources (_tmp7_);
+ _tmp7_ = tag_get_sources (_tmp6_);
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _tmp8_;
+ _tmp8_ = _tmp7_;
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
+ _tmp10_ = _tmp9_;
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp9_);
+ _g_object_unref0 (_tmp8_);
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp11_;
+ _source_it = _tmp10_;
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 17362 "Commands.c"
- GeeIterator* _tmp12_;
- gboolean _tmp13_;
+#line 17871 "Commands.c"
+ GeeIterator* _tmp11_;
MediaSource* source = NULL;
- GeeIterator* _tmp14_;
- gpointer _tmp15_;
+ GeeIterator* _tmp12_;
+ gpointer _tmp13_;
Tag* current_parent = NULL;
- Tag* _tmp16_;
- Tag* _tmp17_;
+ Tag* _tmp14_;
+ Tag* _tmp15_;
gint running_attach_count = 0;
- Tag* _tmp18_;
- MediaSource* _tmp19_;
- gint _tmp20_;
-#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _source_it;
+ Tag* _tmp16_;
+ MediaSource* _tmp17_;
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_iterator_next (_tmp12_);
+ _tmp11_ = _source_it;
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp13_) {
+ if (!gee_iterator_next (_tmp11_)) {
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 17383 "Commands.c"
+#line 17888 "Commands.c"
}
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _source_it;
+ _tmp12_ = _source_it;
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = gee_iterator_get (_tmp14_);
+ _tmp13_ = gee_iterator_get (_tmp12_);
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (MediaSource*) _tmp15_;
+ source = (MediaSource*) _tmp13_;
#line 1972 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = from_tag;
+ _tmp14_ = from_tag;
#line 1972 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = tag_get_hierarchical_parent (_tmp16_);
+ _tmp15_ = tag_get_hierarchical_parent (_tmp14_);
#line 1972 "/home/jens/Source/shotwell/src/Commands.vala"
- current_parent = _tmp17_;
-#line 1973 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = from_tag;
+ current_parent = _tmp15_;
#line 1973 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = source;
+ _tmp16_ = from_tag;
#line 1973 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = tag_get_attachment_count (_tmp18_, _tmp19_);
+ _tmp17_ = source;
#line 1973 "/home/jens/Source/shotwell/src/Commands.vala"
- running_attach_count = _tmp20_ + 1;
+ running_attach_count = tag_get_attachment_count (_tmp16_, _tmp17_) + 1;
#line 1974 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 17407 "Commands.c"
- Tag* _tmp21_;
+#line 17910 "Commands.c"
+ Tag* _tmp18_;
gchar* current_parent_path = NULL;
- Tag* _tmp22_;
- gchar* _tmp23_;
- GeeMap* _tmp24_;
- const gchar* _tmp25_;
- gboolean _tmp26_;
+ Tag* _tmp19_;
+ gchar* _tmp20_;
+ GeeMap* _tmp21_;
+ const gchar* _tmp22_;
gint curr_parent_attach_count = 0;
- Tag* _tmp31_;
- MediaSource* _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
- gint _tmp35_;
- gint _tmp36_;
- gint _tmp37_;
- gint _tmp43_;
- Tag* _tmp44_;
- Tag* _tmp45_;
+ Tag* _tmp27_;
+ MediaSource* _tmp28_;
+ gint _tmp29_;
+ gint _tmp30_;
+ gint _tmp31_;
+ gint _tmp32_;
+ gint _tmp38_;
+ Tag* _tmp39_;
+ Tag* _tmp40_;
#line 1974 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = current_parent;
+ _tmp18_ = current_parent;
#line 1974 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp21_ != NULL)) {
+ if (!(_tmp18_ != NULL)) {
#line 1974 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 17432 "Commands.c"
+#line 17933 "Commands.c"
}
#line 1975 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = current_parent;
+ _tmp19_ = current_parent;
#line 1975 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = tag_get_path (_tmp22_);
+ _tmp20_ = tag_get_path (_tmp19_);
#line 1975 "/home/jens/Source/shotwell/src/Commands.vala"
- current_parent_path = _tmp23_;
+ current_parent_path = _tmp20_;
#line 1976 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = self->priv->src_parent_detachments;
+ _tmp21_ = self->priv->src_parent_detachments;
#line 1976 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = current_parent_path;
+ _tmp22_ = current_parent_path;
#line 1976 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = gee_map_has_key (_tmp24_, _tmp25_);
-#line 1976 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp26_) {
-#line 17448 "Commands.c"
- GeeMap* _tmp27_;
- const gchar* _tmp28_;
- GeeHashSet* _tmp29_;
- GeeHashSet* _tmp30_;
+ if (!gee_map_has_key (_tmp21_, _tmp22_)) {
+#line 17947 "Commands.c"
+ GeeMap* _tmp23_;
+ const gchar* _tmp24_;
+ GeeHashSet* _tmp25_;
+ GeeHashSet* _tmp26_;
#line 1977 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = self->priv->src_parent_detachments;
+ _tmp23_ = self->priv->src_parent_detachments;
#line 1977 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = current_parent_path;
+ _tmp24_ = current_parent_path;
#line 1977 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
+ _tmp25_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
#line 1977 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = _tmp29_;
+ _tmp26_ = _tmp25_;
#line 1977 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_map_set (_tmp27_, _tmp28_, G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_SET, GeeSet));
+ gee_map_set (_tmp23_, _tmp24_, G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_SET, GeeSet));
#line 1977 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp30_);
-#line 17465 "Commands.c"
+ _g_object_unref0 (_tmp26_);
+#line 17964 "Commands.c"
}
#line 1979 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = current_parent;
-#line 1979 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = source;
+ _tmp27_ = current_parent;
#line 1979 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = tag_get_attachment_count (_tmp31_, _tmp32_);
+ _tmp28_ = source;
#line 1979 "/home/jens/Source/shotwell/src/Commands.vala"
- curr_parent_attach_count = _tmp33_;
+ curr_parent_attach_count = tag_get_attachment_count (_tmp27_, _tmp28_);
#line 1981 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = curr_parent_attach_count;
+ _tmp29_ = curr_parent_attach_count;
#line 1981 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = running_attach_count;
+ _tmp30_ = running_attach_count;
#line 1981 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp34_ >= _tmp35_, "curr_parent_attach_count >= running_attach_count");
+ _vala_assert (_tmp29_ >= _tmp30_, "curr_parent_attach_count >= running_attach_count");
#line 1985 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = curr_parent_attach_count;
+ _tmp31_ = curr_parent_attach_count;
#line 1985 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = running_attach_count;
+ _tmp32_ = running_attach_count;
#line 1985 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp36_ == _tmp37_) {
-#line 17487 "Commands.c"
- GeeMap* _tmp38_;
- const gchar* _tmp39_;
- gpointer _tmp40_;
- GeeSet* _tmp41_;
- MediaSource* _tmp42_;
+ if (_tmp31_ == _tmp32_) {
+#line 17984 "Commands.c"
+ GeeMap* _tmp33_;
+ const gchar* _tmp34_;
+ gpointer _tmp35_;
+ GeeSet* _tmp36_;
+ MediaSource* _tmp37_;
#line 1986 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = self->priv->src_parent_detachments;
+ _tmp33_ = self->priv->src_parent_detachments;
#line 1986 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = current_parent_path;
+ _tmp34_ = current_parent_path;
#line 1986 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = gee_map_get (_tmp38_, _tmp39_);
+ _tmp35_ = gee_map_get (_tmp33_, _tmp34_);
#line 1986 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = (GeeSet*) _tmp40_;
+ _tmp36_ = (GeeSet*) _tmp35_;
#line 1986 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = source;
+ _tmp37_ = source;
#line 1986 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_COLLECTION, GeeCollection), _tmp42_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection), _tmp37_);
#line 1986 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp41_);
-#line 17507 "Commands.c"
+ _g_object_unref0 (_tmp36_);
+#line 18004 "Commands.c"
}
#line 1988 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = running_attach_count;
+ _tmp38_ = running_attach_count;
#line 1988 "/home/jens/Source/shotwell/src/Commands.vala"
- running_attach_count = _tmp43_ + 1;
+ running_attach_count = _tmp38_ + 1;
#line 1989 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = current_parent;
+ _tmp39_ = current_parent;
#line 1989 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = tag_get_hierarchical_parent (_tmp44_);
+ _tmp40_ = tag_get_hierarchical_parent (_tmp39_);
#line 1989 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (current_parent);
#line 1989 "/home/jens/Source/shotwell/src/Commands.vala"
- current_parent = _tmp45_;
+ current_parent = _tmp40_;
#line 1974 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (current_parent_path);
-#line 17523 "Commands.c"
+#line 18020 "Commands.c"
}
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (current_parent);
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 17529 "Commands.c"
+#line 18026 "Commands.c"
}
#line 1971 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 17533 "Commands.c"
+#line 18030 "Commands.c"
}
}
{
GeeIterator* _p_it = NULL;
- GeeMap* _tmp46_;
- GeeSet* _tmp47_;
- GeeSet* _tmp48_;
- GeeSet* _tmp49_;
- GeeIterator* _tmp50_;
- GeeIterator* _tmp51_;
+ GeeMap* _tmp41_;
+ GeeSet* _tmp42_;
+ GeeSet* _tmp43_;
+ GeeSet* _tmp44_;
+ GeeIterator* _tmp45_;
+ GeeIterator* _tmp46_;
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp46_ = self->priv->src_parent_detachments;
+ _tmp41_ = self->priv->src_parent_detachments;
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp47_ = gee_map_get_keys (_tmp46_);
+ _tmp42_ = gee_map_get_keys (_tmp41_);
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp48_ = _tmp47_;
+ _tmp43_ = _tmp42_;
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp49_ = _tmp48_;
+ _tmp44_ = _tmp43_;
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp50_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp45_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp51_ = _tmp50_;
+ _tmp46_ = _tmp45_;
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp49_);
+ _g_object_unref0 (_tmp44_);
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _p_it = _tmp51_;
+ _p_it = _tmp46_;
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 17562 "Commands.c"
- GeeIterator* _tmp52_;
- gboolean _tmp53_;
+#line 18059 "Commands.c"
+ GeeIterator* _tmp47_;
gchar* p = NULL;
- GeeIterator* _tmp54_;
- gpointer _tmp55_;
-#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp52_ = _p_it;
+ GeeIterator* _tmp48_;
+ gpointer _tmp49_;
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp53_ = gee_iterator_next (_tmp52_);
+ _tmp47_ = _p_it;
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp53_) {
+ if (!gee_iterator_next (_tmp47_)) {
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 17576 "Commands.c"
+#line 18070 "Commands.c"
}
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp54_ = _p_it;
+ _tmp48_ = _p_it;
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp55_ = gee_iterator_get (_tmp54_);
+ _tmp49_ = gee_iterator_get (_tmp48_);
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
- p = (gchar*) _tmp55_;
-#line 17584 "Commands.c"
+ p = (gchar*) _tmp49_;
+#line 18078 "Commands.c"
{
GeeIterator* _s_it = NULL;
- GeeMap* _tmp56_;
- const gchar* _tmp57_;
- gpointer _tmp58_;
- GeeSet* _tmp59_;
- GeeIterator* _tmp60_;
- GeeIterator* _tmp61_;
+ GeeMap* _tmp50_;
+ const gchar* _tmp51_;
+ gpointer _tmp52_;
+ GeeSet* _tmp53_;
+ GeeIterator* _tmp54_;
+ GeeIterator* _tmp55_;
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp56_ = self->priv->src_parent_detachments;
+ _tmp50_ = self->priv->src_parent_detachments;
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp57_ = p;
+ _tmp51_ = p;
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp58_ = gee_map_get (_tmp56_, _tmp57_);
+ _tmp52_ = gee_map_get (_tmp50_, _tmp51_);
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp59_ = (GeeSet*) _tmp58_;
+ _tmp53_ = (GeeSet*) _tmp52_;
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp60_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp54_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp61_ = _tmp60_;
+ _tmp55_ = _tmp54_;
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp59_);
+ _g_object_unref0 (_tmp53_);
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _s_it = _tmp61_;
+ _s_it = _tmp55_;
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 17611 "Commands.c"
- GeeIterator* _tmp62_;
- gboolean _tmp63_;
+#line 18105 "Commands.c"
+ GeeIterator* _tmp56_;
MediaSource* s = NULL;
- GeeIterator* _tmp64_;
- gpointer _tmp65_;
- const gchar* _tmp66_;
- Tag* _tmp67_;
- Tag* _tmp68_;
- MediaSource* _tmp69_;
- GeeList* _tmp70_;
- GeeList* _tmp71_;
-#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp62_ = _s_it;
+ GeeIterator* _tmp57_;
+ gpointer _tmp58_;
+ const gchar* _tmp59_;
+ Tag* _tmp60_;
+ Tag* _tmp61_;
+ MediaSource* _tmp62_;
+ GeeList* _tmp63_;
+ GeeList* _tmp64_;
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp63_ = gee_iterator_next (_tmp62_);
+ _tmp56_ = _s_it;
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp63_) {
+ if (!gee_iterator_next (_tmp56_)) {
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 17631 "Commands.c"
+#line 18122 "Commands.c"
}
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp64_ = _s_it;
+ _tmp57_ = _s_it;
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp65_ = gee_iterator_get (_tmp64_);
+ _tmp58_ = gee_iterator_get (_tmp57_);
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
- s = (MediaSource*) _tmp65_;
+ s = (MediaSource*) _tmp58_;
#line 1997 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp66_ = p;
+ _tmp59_ = p;
#line 1997 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp67_ = tag_for_path (_tmp66_);
+ _tmp60_ = tag_for_path (_tmp59_);
#line 1997 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp68_ = _tmp67_;
+ _tmp61_ = _tmp60_;
#line 1997 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp69_ = s;
+ _tmp62_ = s;
#line 1997 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp70_ = tag_detach (_tmp68_, _tmp69_);
+ _tmp63_ = tag_detach (_tmp61_, _tmp62_);
#line 1997 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp71_ = _tmp70_;
+ _tmp64_ = _tmp63_;
#line 1997 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp71_);
+ _g_object_unref0 (_tmp64_);
#line 1997 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp68_);
+ _g_object_unref0 (_tmp61_);
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (s);
-#line 17657 "Commands.c"
+#line 18148 "Commands.c"
}
#line 1996 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_s_it);
-#line 17661 "Commands.c"
+#line 18152 "Commands.c"
}
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (p);
-#line 17665 "Commands.c"
+#line 18156 "Commands.c"
}
#line 1995 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_p_it);
-#line 17669 "Commands.c"
+#line 18160 "Commands.c"
}
#line 1964 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (from_tag);
-#line 17673 "Commands.c"
+#line 18164 "Commands.c"
}
-static void reparent_tag_command_do_source_parent_reattachments (ReparentTagCommand* self) {
+static void
+reparent_tag_command_do_source_parent_reattachments (ReparentTagCommand* self)
+{
GeeMap* _tmp0_;
#line 2000 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
@@ -17681,7 +18174,7 @@ static void reparent_tag_command_do_source_parent_reattachments (ReparentTagComm
_tmp0_ = self->priv->src_parent_detachments;
#line 2001 "/home/jens/Source/shotwell/src/Commands.vala"
_vala_assert (_tmp0_ != NULL, "src_parent_detachments != null");
-#line 17685 "Commands.c"
+#line 18178 "Commands.c"
{
GeeIterator* _p_it = NULL;
GeeMap* _tmp1_;
@@ -17708,113 +18201,109 @@ static void reparent_tag_command_do_source_parent_reattachments (ReparentTagComm
_p_it = _tmp6_;
#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 17712 "Commands.c"
+#line 18205 "Commands.c"
GeeIterator* _tmp7_;
- gboolean _tmp8_;
gchar* p = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
+ GeeIterator* _tmp8_;
+ gpointer _tmp9_;
#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp7_ = _p_it;
#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_iterator_next (_tmp7_);
-#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp8_) {
+ if (!gee_iterator_next (_tmp7_)) {
#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 17726 "Commands.c"
+#line 18216 "Commands.c"
}
#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _p_it;
+ _tmp8_ = _p_it;
#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
+ _tmp9_ = gee_iterator_get (_tmp8_);
#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
- p = (gchar*) _tmp10_;
-#line 17734 "Commands.c"
+ p = (gchar*) _tmp9_;
+#line 18224 "Commands.c"
{
GeeIterator* _s_it = NULL;
- GeeMap* _tmp11_;
- const gchar* _tmp12_;
- gpointer _tmp13_;
- GeeSet* _tmp14_;
+ GeeMap* _tmp10_;
+ const gchar* _tmp11_;
+ gpointer _tmp12_;
+ GeeSet* _tmp13_;
+ GeeIterator* _tmp14_;
GeeIterator* _tmp15_;
- GeeIterator* _tmp16_;
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = self->priv->src_parent_detachments;
+ _tmp10_ = self->priv->src_parent_detachments;
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = p;
+ _tmp11_ = p;
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_map_get (_tmp11_, _tmp12_);
+ _tmp12_ = gee_map_get (_tmp10_, _tmp11_);
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = (GeeSet*) _tmp13_;
+ _tmp13_ = (GeeSet*) _tmp12_;
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable));
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _tmp15_;
+ _tmp15_ = _tmp14_;
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp14_);
+ _g_object_unref0 (_tmp13_);
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _s_it = _tmp16_;
+ _s_it = _tmp15_;
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 17761 "Commands.c"
- GeeIterator* _tmp17_;
- gboolean _tmp18_;
+#line 18251 "Commands.c"
+ GeeIterator* _tmp16_;
MediaSource* s = NULL;
- GeeIterator* _tmp19_;
- gpointer _tmp20_;
- const gchar* _tmp21_;
- Tag* _tmp22_;
- Tag* _tmp23_;
- MediaSource* _tmp24_;
-#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _s_it;
+ GeeIterator* _tmp17_;
+ gpointer _tmp18_;
+ const gchar* _tmp19_;
+ Tag* _tmp20_;
+ Tag* _tmp21_;
+ MediaSource* _tmp22_;
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = gee_iterator_next (_tmp17_);
+ _tmp16_ = _s_it;
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp18_) {
+ if (!gee_iterator_next (_tmp16_)) {
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 17779 "Commands.c"
+#line 18266 "Commands.c"
}
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _s_it;
+ _tmp17_ = _s_it;
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = gee_iterator_get (_tmp19_);
+ _tmp18_ = gee_iterator_get (_tmp17_);
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
- s = (MediaSource*) _tmp20_;
+ s = (MediaSource*) _tmp18_;
#line 2005 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = p;
+ _tmp19_ = p;
#line 2005 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = tag_for_path (_tmp21_);
+ _tmp20_ = tag_for_path (_tmp19_);
#line 2005 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _tmp22_;
+ _tmp21_ = _tmp20_;
#line 2005 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = s;
+ _tmp22_ = s;
#line 2005 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach (_tmp23_, _tmp24_);
+ tag_attach (_tmp21_, _tmp22_);
#line 2005 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp23_);
+ _g_object_unref0 (_tmp21_);
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (s);
-#line 17801 "Commands.c"
+#line 18288 "Commands.c"
}
#line 2004 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_s_it);
-#line 17805 "Commands.c"
+#line 18292 "Commands.c"
}
#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (p);
-#line 17809 "Commands.c"
+#line 18296 "Commands.c"
}
#line 2003 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_p_it);
-#line 17813 "Commands.c"
+#line 18300 "Commands.c"
}
}
-static void reparent_tag_command_do_destination_parent_detachments (ReparentTagCommand* self) {
+static void
+reparent_tag_command_do_destination_parent_detachments (ReparentTagCommand* self)
+{
GeeMap* _tmp0_;
#line 2008 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
@@ -17822,7 +18311,7 @@ static void reparent_tag_command_do_destination_parent_detachments (ReparentTagC
_tmp0_ = self->priv->dest_parent_attachments;
#line 2009 "/home/jens/Source/shotwell/src/Commands.vala"
_vala_assert (_tmp0_ != NULL, "dest_parent_attachments != null");
-#line 17826 "Commands.c"
+#line 18315 "Commands.c"
{
GeeIterator* _p_it = NULL;
GeeMap* _tmp1_;
@@ -17849,119 +18338,115 @@ static void reparent_tag_command_do_destination_parent_detachments (ReparentTagC
_p_it = _tmp6_;
#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 17853 "Commands.c"
+#line 18342 "Commands.c"
GeeIterator* _tmp7_;
- gboolean _tmp8_;
gchar* p = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
+ GeeIterator* _tmp8_;
+ gpointer _tmp9_;
#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp7_ = _p_it;
#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_iterator_next (_tmp7_);
-#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp8_) {
+ if (!gee_iterator_next (_tmp7_)) {
#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 17867 "Commands.c"
+#line 18353 "Commands.c"
}
#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _p_it;
+ _tmp8_ = _p_it;
#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
+ _tmp9_ = gee_iterator_get (_tmp8_);
#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
- p = (gchar*) _tmp10_;
-#line 17875 "Commands.c"
+ p = (gchar*) _tmp9_;
+#line 18361 "Commands.c"
{
GeeIterator* _s_it = NULL;
- GeeMap* _tmp11_;
- const gchar* _tmp12_;
- gpointer _tmp13_;
- GeeSet* _tmp14_;
+ GeeMap* _tmp10_;
+ const gchar* _tmp11_;
+ gpointer _tmp12_;
+ GeeSet* _tmp13_;
+ GeeIterator* _tmp14_;
GeeIterator* _tmp15_;
- GeeIterator* _tmp16_;
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = self->priv->dest_parent_attachments;
+ _tmp10_ = self->priv->dest_parent_attachments;
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = p;
+ _tmp11_ = p;
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_map_get (_tmp11_, _tmp12_);
+ _tmp12_ = gee_map_get (_tmp10_, _tmp11_);
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = (GeeSet*) _tmp13_;
+ _tmp13_ = (GeeSet*) _tmp12_;
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable));
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _tmp15_;
+ _tmp15_ = _tmp14_;
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp14_);
+ _g_object_unref0 (_tmp13_);
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _s_it = _tmp16_;
+ _s_it = _tmp15_;
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 17902 "Commands.c"
- GeeIterator* _tmp17_;
- gboolean _tmp18_;
+#line 18388 "Commands.c"
+ GeeIterator* _tmp16_;
MediaSource* s = NULL;
- GeeIterator* _tmp19_;
- gpointer _tmp20_;
- const gchar* _tmp21_;
- Tag* _tmp22_;
- Tag* _tmp23_;
- MediaSource* _tmp24_;
- GeeList* _tmp25_;
- GeeList* _tmp26_;
-#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _s_it;
+ GeeIterator* _tmp17_;
+ gpointer _tmp18_;
+ const gchar* _tmp19_;
+ Tag* _tmp20_;
+ Tag* _tmp21_;
+ MediaSource* _tmp22_;
+ GeeList* _tmp23_;
+ GeeList* _tmp24_;
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = gee_iterator_next (_tmp17_);
+ _tmp16_ = _s_it;
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp18_) {
+ if (!gee_iterator_next (_tmp16_)) {
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 17922 "Commands.c"
+#line 18405 "Commands.c"
}
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _s_it;
+ _tmp17_ = _s_it;
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = gee_iterator_get (_tmp19_);
+ _tmp18_ = gee_iterator_get (_tmp17_);
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
- s = (MediaSource*) _tmp20_;
+ s = (MediaSource*) _tmp18_;
#line 2013 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = p;
+ _tmp19_ = p;
#line 2013 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = tag_for_path (_tmp21_);
+ _tmp20_ = tag_for_path (_tmp19_);
#line 2013 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _tmp22_;
+ _tmp21_ = _tmp20_;
#line 2013 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = s;
+ _tmp22_ = s;
#line 2013 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = tag_detach (_tmp23_, _tmp24_);
+ _tmp23_ = tag_detach (_tmp21_, _tmp22_);
#line 2013 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = _tmp25_;
+ _tmp24_ = _tmp23_;
#line 2013 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp26_);
+ _g_object_unref0 (_tmp24_);
#line 2013 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp23_);
+ _g_object_unref0 (_tmp21_);
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (s);
-#line 17948 "Commands.c"
+#line 18431 "Commands.c"
}
#line 2012 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_s_it);
-#line 17952 "Commands.c"
+#line 18435 "Commands.c"
}
#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (p);
-#line 17956 "Commands.c"
+#line 18439 "Commands.c"
}
#line 2011 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_p_it);
-#line 17960 "Commands.c"
+#line 18443 "Commands.c"
}
}
-static void reparent_tag_command_do_destination_parent_reattachments (ReparentTagCommand* self) {
+static void
+reparent_tag_command_do_destination_parent_reattachments (ReparentTagCommand* self)
+{
GeeMap* _tmp0_;
#line 2016 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
@@ -17969,7 +18454,7 @@ static void reparent_tag_command_do_destination_parent_reattachments (ReparentTa
_tmp0_ = self->priv->dest_parent_attachments;
#line 2017 "/home/jens/Source/shotwell/src/Commands.vala"
_vala_assert (_tmp0_ != NULL, "dest_parent_attachments != null");
-#line 17973 "Commands.c"
+#line 18458 "Commands.c"
{
GeeIterator* _p_it = NULL;
GeeMap* _tmp1_;
@@ -17996,126 +18481,120 @@ static void reparent_tag_command_do_destination_parent_reattachments (ReparentTa
_p_it = _tmp6_;
#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 18000 "Commands.c"
+#line 18485 "Commands.c"
GeeIterator* _tmp7_;
- gboolean _tmp8_;
gchar* p = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
+ GeeIterator* _tmp8_;
+ gpointer _tmp9_;
#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp7_ = _p_it;
#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = gee_iterator_next (_tmp7_);
-#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp8_) {
+ if (!gee_iterator_next (_tmp7_)) {
#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 18014 "Commands.c"
+#line 18496 "Commands.c"
}
#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _p_it;
+ _tmp8_ = _p_it;
#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
+ _tmp9_ = gee_iterator_get (_tmp8_);
#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
- p = (gchar*) _tmp10_;
-#line 18022 "Commands.c"
+ p = (gchar*) _tmp9_;
+#line 18504 "Commands.c"
{
GeeIterator* _s_it = NULL;
- GeeMap* _tmp11_;
- const gchar* _tmp12_;
- gpointer _tmp13_;
- GeeSet* _tmp14_;
+ GeeMap* _tmp10_;
+ const gchar* _tmp11_;
+ gpointer _tmp12_;
+ GeeSet* _tmp13_;
+ GeeIterator* _tmp14_;
GeeIterator* _tmp15_;
- GeeIterator* _tmp16_;
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = self->priv->dest_parent_attachments;
+ _tmp10_ = self->priv->dest_parent_attachments;
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = p;
+ _tmp11_ = p;
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_map_get (_tmp11_, _tmp12_);
+ _tmp12_ = gee_map_get (_tmp10_, _tmp11_);
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = (GeeSet*) _tmp13_;
+ _tmp13_ = (GeeSet*) _tmp12_;
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable));
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _tmp15_;
+ _tmp15_ = _tmp14_;
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp14_);
+ _g_object_unref0 (_tmp13_);
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _s_it = _tmp16_;
+ _s_it = _tmp15_;
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 18049 "Commands.c"
- GeeIterator* _tmp17_;
- gboolean _tmp18_;
+#line 18531 "Commands.c"
+ GeeIterator* _tmp16_;
MediaSource* s = NULL;
- GeeIterator* _tmp19_;
- gpointer _tmp20_;
- const gchar* _tmp21_;
- Tag* _tmp22_;
- Tag* _tmp23_;
- MediaSource* _tmp24_;
-#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _s_it;
+ GeeIterator* _tmp17_;
+ gpointer _tmp18_;
+ const gchar* _tmp19_;
+ Tag* _tmp20_;
+ Tag* _tmp21_;
+ MediaSource* _tmp22_;
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = gee_iterator_next (_tmp17_);
+ _tmp16_ = _s_it;
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp18_) {
+ if (!gee_iterator_next (_tmp16_)) {
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 18067 "Commands.c"
+#line 18546 "Commands.c"
}
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = _s_it;
+ _tmp17_ = _s_it;
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = gee_iterator_get (_tmp19_);
+ _tmp18_ = gee_iterator_get (_tmp17_);
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
- s = (MediaSource*) _tmp20_;
+ s = (MediaSource*) _tmp18_;
#line 2021 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = p;
+ _tmp19_ = p;
#line 2021 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = tag_for_path (_tmp21_);
+ _tmp20_ = tag_for_path (_tmp19_);
#line 2021 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _tmp22_;
+ _tmp21_ = _tmp20_;
#line 2021 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = s;
+ _tmp22_ = s;
#line 2021 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach (_tmp23_, _tmp24_);
+ tag_attach (_tmp21_, _tmp22_);
#line 2021 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp23_);
+ _g_object_unref0 (_tmp21_);
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (s);
-#line 18089 "Commands.c"
+#line 18568 "Commands.c"
}
#line 2020 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_s_it);
-#line 18093 "Commands.c"
+#line 18572 "Commands.c"
}
#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (p);
-#line 18097 "Commands.c"
+#line 18576 "Commands.c"
}
#line 2019 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_p_it);
-#line 18101 "Commands.c"
+#line 18580 "Commands.c"
}
}
-static void reparent_tag_command_copy_subtree (ReparentTagCommand* self, const gchar* from, const gchar* to) {
+static void
+reparent_tag_command_copy_subtree (ReparentTagCommand* self,
+ const gchar* from,
+ const gchar* to)
+{
TagSourceCollection* _tmp0_;
- const gchar* _tmp1_;
- gboolean _tmp2_;
Tag* from_tag = NULL;
- const gchar* _tmp3_;
- Tag* _tmp4_;
+ Tag* _tmp1_;
Tag* to_tag = NULL;
- const gchar* _tmp5_;
- Tag* _tmp6_;
- GeeHashMap* _tmp7_;
+ Tag* _tmp2_;
+ GeeHashMap* _tmp3_;
GeeList* from_children = NULL;
- Tag* _tmp50_;
- GeeList* _tmp51_;
+ Tag* _tmp42_;
+ GeeList* _tmp43_;
#line 2024 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
#line 2024 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -18125,445 +18604,419 @@ static void reparent_tag_command_copy_subtree (ReparentTagCommand* self, const g
#line 2025 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp0_ = tag_global;
#line 2025 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = from;
-#line 2025 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = tag_source_collection_exists (_tmp0_, _tmp1_, FALSE);
-#line 2025 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp2_, "Tag.global.exists(from)");
-#line 2026 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = from;
+ _vala_assert (tag_source_collection_exists (_tmp0_, from, FALSE), "Tag.global.exists(from)");
#line 2026 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = tag_for_path (_tmp3_);
+ _tmp1_ = tag_for_path (from);
#line 2026 "/home/jens/Source/shotwell/src/Commands.vala"
- from_tag = _tmp4_;
+ from_tag = _tmp1_;
#line 2029 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = to;
-#line 2029 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = tag_for_path (_tmp5_);
+ _tmp2_ = tag_for_path (to);
#line 2029 "/home/jens/Source/shotwell/src/Commands.vala"
- to_tag = _tmp6_;
+ to_tag = _tmp2_;
#line 2033 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+ _tmp3_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 2033 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->dest_parent_attachments);
#line 2033 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->dest_parent_attachments = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_MAP, GeeMap);
-#line 18152 "Commands.c"
+ self->priv->dest_parent_attachments = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_MAP, GeeMap);
+#line 18623 "Commands.c"
{
GeeIterator* _source_it = NULL;
- Tag* _tmp8_;
- GeeCollection* _tmp9_;
- GeeCollection* _tmp10_;
- GeeIterator* _tmp11_;
- GeeIterator* _tmp12_;
+ Tag* _tmp4_;
+ GeeCollection* _tmp5_;
+ GeeCollection* _tmp6_;
+ GeeIterator* _tmp7_;
+ GeeIterator* _tmp8_;
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = from_tag;
+ _tmp4_ = from_tag;
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = tag_get_sources (_tmp8_);
+ _tmp5_ = tag_get_sources (_tmp4_);
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _tmp9_;
+ _tmp6_ = _tmp5_;
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _tmp11_;
+ _tmp8_ = _tmp7_;
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp10_);
+ _g_object_unref0 (_tmp6_);
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp12_;
+ _source_it = _tmp8_;
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 18176 "Commands.c"
- GeeIterator* _tmp13_;
- gboolean _tmp14_;
+#line 18647 "Commands.c"
+ GeeIterator* _tmp9_;
MediaSource* source = NULL;
- GeeIterator* _tmp15_;
- gpointer _tmp16_;
+ GeeIterator* _tmp10_;
+ gpointer _tmp11_;
Tag* current_parent = NULL;
- Tag* _tmp17_;
- Tag* _tmp18_;
-#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _source_it;
+ Tag* _tmp12_;
+ Tag* _tmp13_;
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = gee_iterator_next (_tmp13_);
+ _tmp9_ = _source_it;
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp14_) {
+ if (!gee_iterator_next (_tmp9_)) {
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 18193 "Commands.c"
+#line 18661 "Commands.c"
}
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _source_it;
+ _tmp10_ = _source_it;
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = gee_iterator_get (_tmp15_);
+ _tmp11_ = gee_iterator_get (_tmp10_);
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (MediaSource*) _tmp16_;
+ source = (MediaSource*) _tmp11_;
#line 2035 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = to_tag;
+ _tmp12_ = to_tag;
#line 2035 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = tag_get_hierarchical_parent (_tmp17_);
+ _tmp13_ = tag_get_hierarchical_parent (_tmp12_);
#line 2035 "/home/jens/Source/shotwell/src/Commands.vala"
- current_parent = _tmp18_;
+ current_parent = _tmp13_;
#line 2036 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 18209 "Commands.c"
- Tag* _tmp19_;
+#line 18677 "Commands.c"
+ Tag* _tmp14_;
gchar* current_parent_path = NULL;
- Tag* _tmp20_;
- gchar* _tmp21_;
- GeeMap* _tmp22_;
- const gchar* _tmp23_;
- gboolean _tmp24_;
- Tag* _tmp29_;
- MediaSource* _tmp30_;
- gboolean _tmp31_;
- Tag* _tmp37_;
- Tag* _tmp38_;
+ Tag* _tmp15_;
+ gchar* _tmp16_;
+ GeeMap* _tmp17_;
+ const gchar* _tmp18_;
+ Tag* _tmp23_;
+ MediaSource* _tmp24_;
+ Tag* _tmp30_;
+ Tag* _tmp31_;
#line 2036 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = current_parent;
+ _tmp14_ = current_parent;
#line 2036 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp19_ != NULL)) {
+ if (!(_tmp14_ != NULL)) {
#line 2036 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 18228 "Commands.c"
+#line 18694 "Commands.c"
}
#line 2037 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = current_parent;
+ _tmp15_ = current_parent;
#line 2037 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = tag_get_path (_tmp20_);
+ _tmp16_ = tag_get_path (_tmp15_);
#line 2037 "/home/jens/Source/shotwell/src/Commands.vala"
- current_parent_path = _tmp21_;
+ current_parent_path = _tmp16_;
#line 2038 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = self->priv->dest_parent_attachments;
+ _tmp17_ = self->priv->dest_parent_attachments;
#line 2038 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = current_parent_path;
+ _tmp18_ = current_parent_path;
#line 2038 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = gee_map_has_key (_tmp22_, _tmp23_);
-#line 2038 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp24_) {
-#line 18244 "Commands.c"
- GeeMap* _tmp25_;
- const gchar* _tmp26_;
- GeeHashSet* _tmp27_;
- GeeHashSet* _tmp28_;
+ if (!gee_map_has_key (_tmp17_, _tmp18_)) {
+#line 18708 "Commands.c"
+ GeeMap* _tmp19_;
+ const gchar* _tmp20_;
+ GeeHashSet* _tmp21_;
+ GeeHashSet* _tmp22_;
#line 2039 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = self->priv->dest_parent_attachments;
+ _tmp19_ = self->priv->dest_parent_attachments;
#line 2039 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = current_parent_path;
+ _tmp20_ = current_parent_path;
#line 2039 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
+ _tmp21_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
#line 2039 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = _tmp27_;
+ _tmp22_ = _tmp21_;
#line 2039 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_map_set (_tmp25_, _tmp26_, G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_SET, GeeSet));
+ gee_map_set (_tmp19_, _tmp20_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_SET, GeeSet));
#line 2039 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp28_);
-#line 18261 "Commands.c"
+ _g_object_unref0 (_tmp22_);
+#line 18725 "Commands.c"
}
#line 2041 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = current_parent;
-#line 2041 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = source;
+ _tmp23_ = current_parent;
#line 2041 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = tag_contains (_tmp29_, _tmp30_);
+ _tmp24_ = source;
#line 2041 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp31_) {
-#line 18271 "Commands.c"
- GeeMap* _tmp32_;
- const gchar* _tmp33_;
- gpointer _tmp34_;
- GeeSet* _tmp35_;
- MediaSource* _tmp36_;
+ if (!tag_contains (_tmp23_, _tmp24_)) {
+#line 18733 "Commands.c"
+ GeeMap* _tmp25_;
+ const gchar* _tmp26_;
+ gpointer _tmp27_;
+ GeeSet* _tmp28_;
+ MediaSource* _tmp29_;
#line 2042 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = self->priv->dest_parent_attachments;
+ _tmp25_ = self->priv->dest_parent_attachments;
#line 2042 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = current_parent_path;
+ _tmp26_ = current_parent_path;
#line 2042 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = gee_map_get (_tmp32_, _tmp33_);
+ _tmp27_ = gee_map_get (_tmp25_, _tmp26_);
#line 2042 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = (GeeSet*) _tmp34_;
+ _tmp28_ = (GeeSet*) _tmp27_;
#line 2042 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = source;
+ _tmp29_ = source;
#line 2042 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_COLLECTION, GeeCollection), _tmp36_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection), _tmp29_);
#line 2042 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp35_);
-#line 18291 "Commands.c"
+ _g_object_unref0 (_tmp28_);
+#line 18753 "Commands.c"
}
#line 2044 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = current_parent;
+ _tmp30_ = current_parent;
#line 2044 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = tag_get_hierarchical_parent (_tmp37_);
+ _tmp31_ = tag_get_hierarchical_parent (_tmp30_);
#line 2044 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (current_parent);
#line 2044 "/home/jens/Source/shotwell/src/Commands.vala"
- current_parent = _tmp38_;
+ current_parent = _tmp31_;
#line 2036 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (current_parent_path);
-#line 18303 "Commands.c"
+#line 18765 "Commands.c"
}
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (current_parent);
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 18309 "Commands.c"
+#line 18771 "Commands.c"
}
#line 2034 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 18313 "Commands.c"
+#line 18775 "Commands.c"
}
{
GeeIterator* _source_it = NULL;
- Tag* _tmp39_;
- GeeCollection* _tmp40_;
- GeeCollection* _tmp41_;
- GeeIterator* _tmp42_;
- GeeIterator* _tmp43_;
+ Tag* _tmp32_;
+ GeeCollection* _tmp33_;
+ GeeCollection* _tmp34_;
+ GeeIterator* _tmp35_;
+ GeeIterator* _tmp36_;
#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = from_tag;
+ _tmp32_ = from_tag;
#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = tag_get_sources (_tmp39_);
+ _tmp33_ = tag_get_sources (_tmp32_);
#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = _tmp40_;
+ _tmp34_ = _tmp33_;
#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp35_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ITERABLE, GeeIterable));
#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = _tmp42_;
+ _tmp36_ = _tmp35_;
#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp41_);
+ _g_object_unref0 (_tmp34_);
#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp43_;
+ _source_it = _tmp36_;
#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 18338 "Commands.c"
- GeeIterator* _tmp44_;
- gboolean _tmp45_;
+#line 18800 "Commands.c"
+ GeeIterator* _tmp37_;
MediaSource* source = NULL;
- GeeIterator* _tmp46_;
- gpointer _tmp47_;
- Tag* _tmp48_;
- MediaSource* _tmp49_;
+ GeeIterator* _tmp38_;
+ gpointer _tmp39_;
+ Tag* _tmp40_;
+ MediaSource* _tmp41_;
#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = _source_it;
+ _tmp37_ = _source_it;
#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = gee_iterator_next (_tmp44_);
-#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp45_) {
+ if (!gee_iterator_next (_tmp37_)) {
#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 18354 "Commands.c"
+#line 18813 "Commands.c"
}
#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp46_ = _source_it;
+ _tmp38_ = _source_it;
#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp47_ = gee_iterator_get (_tmp46_);
+ _tmp39_ = gee_iterator_get (_tmp38_);
#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (MediaSource*) _tmp47_;
+ source = (MediaSource*) _tmp39_;
#line 2049 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp48_ = to_tag;
+ _tmp40_ = to_tag;
#line 2049 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp49_ = source;
+ _tmp41_ = source;
#line 2049 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach (_tmp48_, _tmp49_);
+ tag_attach (_tmp40_, _tmp41_);
#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 18370 "Commands.c"
+#line 18829 "Commands.c"
}
#line 2048 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 18374 "Commands.c"
+#line 18833 "Commands.c"
}
#line 2053 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp50_ = from_tag;
+ _tmp42_ = from_tag;
#line 2053 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp51_ = tag_get_hierarchical_children (_tmp50_);
+ _tmp43_ = tag_get_hierarchical_children (_tmp42_);
#line 2053 "/home/jens/Source/shotwell/src/Commands.vala"
- from_children = _tmp51_;
-#line 18382 "Commands.c"
+ from_children = _tmp43_;
+#line 18841 "Commands.c"
{
gint i = 0;
- GeeList* _tmp52_;
- gint _tmp53_;
- gint _tmp54_;
+ GeeList* _tmp44_;
+ gint _tmp45_;
+ gint _tmp46_;
#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp52_ = from_children;
+ _tmp44_ = from_children;
#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp53_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp45_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_COLLECTION, GeeCollection));
#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp54_ = _tmp53_;
+ _tmp46_ = _tmp45_;
#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp54_ - 1;
-#line 18396 "Commands.c"
+ i = _tmp46_ - 1;
+#line 18855 "Commands.c"
{
- gboolean _tmp55_ = FALSE;
+ gboolean _tmp47_ = FALSE;
#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp55_ = TRUE;
+ _tmp47_ = TRUE;
#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 18403 "Commands.c"
- gint _tmp57_;
+#line 18862 "Commands.c"
+ gint _tmp49_;
Tag* from_child = NULL;
- GeeList* _tmp58_;
- gint _tmp59_;
- gpointer _tmp60_;
+ GeeList* _tmp50_;
+ gint _tmp51_;
+ gpointer _tmp52_;
gchar* child_subpath = NULL;
- Tag* _tmp61_;
+ Tag* _tmp53_;
+ gchar* _tmp54_;
+ gchar* _tmp55_;
+ gchar* _tmp56_;
+ gchar* _tmp57_;
+ gchar* _tmp58_;
+ gchar* _tmp59_;
+ Tag* to_child = NULL;
+ Tag* _tmp60_;
+ gchar* _tmp61_;
gchar* _tmp62_;
gchar* _tmp63_;
- const gchar* _tmp64_;
- gchar* _tmp65_;
+ gchar* _tmp64_;
+ const gchar* _tmp65_;
gchar* _tmp66_;
gchar* _tmp67_;
- gchar* _tmp68_;
- Tag* to_child = NULL;
+ Tag* _tmp68_;
Tag* _tmp69_;
- gchar* _tmp70_;
- gchar* _tmp71_;
- gchar* _tmp72_;
- gchar* _tmp73_;
- const gchar* _tmp74_;
- gchar* _tmp75_;
- gchar* _tmp76_;
- Tag* _tmp77_;
- Tag* _tmp78_;
#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp55_) {
-#line 18431 "Commands.c"
- gint _tmp56_;
+ if (!_tmp47_) {
+#line 18889 "Commands.c"
+ gint _tmp48_;
#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp56_ = i;
+ _tmp48_ = i;
#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp56_ - 1;
-#line 18437 "Commands.c"
+ i = _tmp48_ - 1;
+#line 18895 "Commands.c"
}
#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp55_ = FALSE;
+ _tmp47_ = FALSE;
#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp57_ = i;
+ _tmp49_ = i;
#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp57_ >= 0)) {
+ if (!(_tmp49_ >= 0)) {
#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 18447 "Commands.c"
+#line 18905 "Commands.c"
}
#line 2055 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp58_ = from_children;
+ _tmp50_ = from_children;
#line 2055 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp59_ = i;
+ _tmp51_ = i;
#line 2055 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp60_ = gee_list_get (_tmp58_, _tmp59_);
+ _tmp52_ = gee_list_get (_tmp50_, _tmp51_);
#line 2055 "/home/jens/Source/shotwell/src/Commands.vala"
- from_child = (Tag*) _tmp60_;
+ from_child = (Tag*) _tmp52_;
#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp61_ = from_child;
+ _tmp53_ = from_child;
#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp62_ = tag_get_path (_tmp61_);
+ _tmp54_ = tag_get_path (_tmp53_);
#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp63_ = _tmp62_;
+ _tmp55_ = _tmp54_;
#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp64_ = from;
+ _tmp56_ = g_strconcat (from, TAG_PATH_SEPARATOR_STRING, NULL);
#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp65_ = g_strconcat (_tmp64_, TAG_PATH_SEPARATOR_STRING, NULL);
+ _tmp57_ = _tmp56_;
#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp66_ = _tmp65_;
+ _tmp58_ = string_replace (_tmp55_, _tmp57_, "");
#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp67_ = string_replace (_tmp63_, _tmp66_, "");
+ _tmp59_ = _tmp58_;
#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp68_ = _tmp67_;
+ _g_free0 (_tmp57_);
#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp66_);
+ _g_free0 (_tmp55_);
#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp63_);
-#line 2057 "/home/jens/Source/shotwell/src/Commands.vala"
- child_subpath = _tmp68_;
+ child_subpath = _tmp59_;
#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp69_ = to_tag;
+ _tmp60_ = to_tag;
#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp70_ = tag_get_path (_tmp69_);
+ _tmp61_ = tag_get_path (_tmp60_);
#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp71_ = _tmp70_;
+ _tmp62_ = _tmp61_;
#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp72_ = g_strconcat (_tmp71_, TAG_PATH_SEPARATOR_STRING, NULL);
+ _tmp63_ = g_strconcat (_tmp62_, TAG_PATH_SEPARATOR_STRING, NULL);
#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp73_ = _tmp72_;
+ _tmp64_ = _tmp63_;
#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp74_ = child_subpath;
+ _tmp65_ = child_subpath;
#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp75_ = g_strconcat (_tmp73_, _tmp74_, NULL);
+ _tmp66_ = g_strconcat (_tmp64_, _tmp65_, NULL);
#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp76_ = _tmp75_;
+ _tmp67_ = _tmp66_;
#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp77_ = tag_for_path (_tmp76_);
+ _tmp68_ = tag_for_path (_tmp67_);
#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp78_ = _tmp77_;
+ _tmp69_ = _tmp68_;
#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp76_);
+ _g_free0 (_tmp67_);
#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp73_);
+ _g_free0 (_tmp64_);
#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp71_);
+ _g_free0 (_tmp62_);
#line 2060 "/home/jens/Source/shotwell/src/Commands.vala"
- to_child = _tmp78_;
-#line 18507 "Commands.c"
+ to_child = _tmp69_;
+#line 18963 "Commands.c"
{
GeeIterator* _source_it = NULL;
- Tag* _tmp79_;
- GeeCollection* _tmp80_;
- GeeCollection* _tmp81_;
- GeeIterator* _tmp82_;
- GeeIterator* _tmp83_;
+ Tag* _tmp70_;
+ GeeCollection* _tmp71_;
+ GeeCollection* _tmp72_;
+ GeeIterator* _tmp73_;
+ GeeIterator* _tmp74_;
#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp79_ = from_child;
+ _tmp70_ = from_child;
#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp80_ = tag_get_sources (_tmp79_);
+ _tmp71_ = tag_get_sources (_tmp70_);
#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp81_ = _tmp80_;
+ _tmp72_ = _tmp71_;
#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp82_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp73_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, GEE_TYPE_ITERABLE, GeeIterable));
#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp83_ = _tmp82_;
+ _tmp74_ = _tmp73_;
#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp81_);
+ _g_object_unref0 (_tmp72_);
#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp83_;
+ _source_it = _tmp74_;
#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 18531 "Commands.c"
- GeeIterator* _tmp84_;
- gboolean _tmp85_;
+#line 18987 "Commands.c"
+ GeeIterator* _tmp75_;
MediaSource* source = NULL;
- GeeIterator* _tmp86_;
- gpointer _tmp87_;
- Tag* _tmp88_;
- MediaSource* _tmp89_;
-#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp84_ = _source_it;
+ GeeIterator* _tmp76_;
+ gpointer _tmp77_;
+ Tag* _tmp78_;
+ MediaSource* _tmp79_;
#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp85_ = gee_iterator_next (_tmp84_);
+ _tmp75_ = _source_it;
#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp85_) {
+ if (!gee_iterator_next (_tmp75_)) {
#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 18547 "Commands.c"
+#line 19000 "Commands.c"
}
#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp86_ = _source_it;
+ _tmp76_ = _source_it;
#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp87_ = gee_iterator_get (_tmp86_);
+ _tmp77_ = gee_iterator_get (_tmp76_);
#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (MediaSource*) _tmp87_;
+ source = (MediaSource*) _tmp77_;
#line 2064 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp88_ = to_child;
+ _tmp78_ = to_child;
#line 2064 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp89_ = source;
+ _tmp79_ = source;
#line 2064 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach (_tmp88_, _tmp89_);
+ tag_attach (_tmp78_, _tmp79_);
#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 18563 "Commands.c"
+#line 19016 "Commands.c"
}
#line 2063 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 18567 "Commands.c"
+#line 19020 "Commands.c"
}
#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (to_child);
@@ -18571,7 +19024,7 @@ static void reparent_tag_command_copy_subtree (ReparentTagCommand* self, const g
_g_free0 (child_subpath);
#line 2054 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (from_child);
-#line 18575 "Commands.c"
+#line 19028 "Commands.c"
}
}
}
@@ -18581,184 +19034,180 @@ static void reparent_tag_command_copy_subtree (ReparentTagCommand* self, const g
_g_object_unref0 (to_tag);
#line 2024 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (from_tag);
-#line 18585 "Commands.c"
+#line 19038 "Commands.c"
}
-static void reparent_tag_command_destroy_subtree (ReparentTagCommand* self, const gchar* client_path) {
+static void
+reparent_tag_command_destroy_subtree (ReparentTagCommand* self,
+ const gchar* client_path)
+{
gchar* victim_path = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_;
- TagSourceCollection* _tmp5_;
- const gchar* _tmp6_;
- gboolean _tmp7_;
+ gchar* _tmp0_;
+ const gchar* _tmp1_;
+ TagSourceCollection* _tmp3_;
+ const gchar* _tmp4_;
Tag* victim = NULL;
- const gchar* _tmp8_;
- Tag* _tmp9_;
+ const gchar* _tmp5_;
+ Tag* _tmp6_;
GeeList* victim_children = NULL;
- Tag* _tmp10_;
- GeeList* _tmp11_;
- TagSourceCollection* _tmp26_;
- TagSourceCollection* _tmp27_;
- Tag* _tmp28_;
- Marker* _tmp29_;
- Marker* _tmp30_;
+ Tag* _tmp7_;
+ GeeList* _tmp8_;
+ TagSourceCollection* _tmp23_;
+ TagSourceCollection* _tmp24_;
+ Tag* _tmp25_;
+ Marker* _tmp26_;
+ Marker* _tmp27_;
#line 2068 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_REPARENT_TAG_COMMAND (self));
#line 2068 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (client_path != NULL);
#line 2069 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = client_path;
-#line 2069 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = hierarchical_tag_utilities_get_root_path_form (_tmp0_);
+ _tmp0_ = hierarchical_tag_utilities_get_root_path_form (client_path);
#line 2069 "/home/jens/Source/shotwell/src/Commands.vala"
- victim_path = _tmp1_;
+ victim_path = _tmp0_;
#line 2070 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = victim_path;
+ _tmp1_ = victim_path;
#line 2070 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_ == NULL) {
-#line 18622 "Commands.c"
- const gchar* _tmp3_;
- gchar* _tmp4_;
-#line 2071 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = client_path;
+ if (_tmp1_ == NULL) {
+#line 19074 "Commands.c"
+ gchar* _tmp2_;
#line 2071 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = g_strdup (_tmp3_);
+ _tmp2_ = g_strdup (client_path);
#line 2071 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (victim_path);
#line 2071 "/home/jens/Source/shotwell/src/Commands.vala"
- victim_path = _tmp4_;
-#line 18633 "Commands.c"
+ victim_path = _tmp2_;
+#line 19082 "Commands.c"
}
#line 2073 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = tag_global;
-#line 2073 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = victim_path;
+ _tmp3_ = tag_global;
#line 2073 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = tag_source_collection_exists (_tmp5_, _tmp6_, FALSE);
+ _tmp4_ = victim_path;
#line 2073 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp7_) {
+ if (!tag_source_collection_exists (_tmp3_, _tmp4_, FALSE)) {
#line 2074 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (victim_path);
#line 2074 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 18647 "Commands.c"
+#line 19094 "Commands.c"
}
#line 2076 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = victim_path;
+ _tmp5_ = victim_path;
#line 2076 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = tag_for_path (_tmp8_);
+ _tmp6_ = tag_for_path (_tmp5_);
#line 2076 "/home/jens/Source/shotwell/src/Commands.vala"
- victim = _tmp9_;
+ victim = _tmp6_;
#line 2079 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = victim;
+ _tmp7_ = victim;
#line 2079 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = tag_get_hierarchical_children (_tmp10_);
+ _tmp8_ = tag_get_hierarchical_children (_tmp7_);
#line 2079 "/home/jens/Source/shotwell/src/Commands.vala"
- victim_children = _tmp11_;
-#line 18661 "Commands.c"
+ victim_children = _tmp8_;
+#line 19108 "Commands.c"
{
gint i = 0;
#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
i = 0;
-#line 18666 "Commands.c"
+#line 19113 "Commands.c"
{
- gboolean _tmp12_ = FALSE;
+ gboolean _tmp9_ = FALSE;
#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = TRUE;
+ _tmp9_ = TRUE;
#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 18673 "Commands.c"
+#line 19120 "Commands.c"
+ gint _tmp11_;
+ GeeList* _tmp12_;
+ gint _tmp13_;
gint _tmp14_;
- GeeList* _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
- TagSourceCollection* _tmp18_;
- TagSourceCollection* _tmp19_;
- GeeList* _tmp20_;
- gint _tmp21_;
- gpointer _tmp22_;
- Tag* _tmp23_;
- Marker* _tmp24_;
- Marker* _tmp25_;
+ TagSourceCollection* _tmp15_;
+ TagSourceCollection* _tmp16_;
+ GeeList* _tmp17_;
+ gint _tmp18_;
+ gpointer _tmp19_;
+ Tag* _tmp20_;
+ Marker* _tmp21_;
+ Marker* _tmp22_;
#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp12_) {
-#line 18688 "Commands.c"
- gint _tmp13_;
+ if (!_tmp9_) {
+#line 19135 "Commands.c"
+ gint _tmp10_;
#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = i;
+ _tmp10_ = i;
#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- i = _tmp13_ + 1;
-#line 18694 "Commands.c"
+ i = _tmp10_ + 1;
+#line 19141 "Commands.c"
}
#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = FALSE;
+ _tmp9_ = FALSE;
#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = i;
+ _tmp11_ = i;
#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = victim_children;
+ _tmp12_ = victim_children;
#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection));
#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _tmp16_;
+ _tmp14_ = _tmp13_;
#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp14_ < _tmp17_)) {
+ if (!(_tmp11_ < _tmp14_)) {
#line 2080 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 18710 "Commands.c"
+#line 19157 "Commands.c"
}
#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = tag_global;
+ _tmp15_ = tag_global;
#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = tag_global;
+ _tmp16_ = tag_global;
#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = victim_children;
+ _tmp17_ = victim_children;
#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = i;
+ _tmp18_ = i;
#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = gee_list_get (_tmp20_, _tmp21_);
+ _tmp19_ = gee_list_get (_tmp17_, _tmp18_);
#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = (Tag*) _tmp22_;
+ _tmp20_ = (Tag*) _tmp19_;
#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_DATA_OBJECT, DataObject));
+ _tmp21_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_OBJECT, DataObject));
#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = _tmp24_;
+ _tmp22_ = _tmp21_;
#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp25_, TRUE, NULL, NULL, NULL);
+ source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp22_, TRUE, NULL, NULL, NULL);
#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp25_);
+ _g_object_unref0 (_tmp22_);
#line 2081 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp23_);
-#line 18734 "Commands.c"
+ _g_object_unref0 (_tmp20_);
+#line 19181 "Commands.c"
}
}
}
#line 2084 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = tag_global;
+ _tmp23_ = tag_global;
#line 2084 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = tag_global;
+ _tmp24_ = tag_global;
#line 2084 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = victim;
+ _tmp25_ = victim;
#line 2084 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_DATA_OBJECT, DataObject));
+ _tmp26_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_OBJECT, DataObject));
#line 2084 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = _tmp29_;
+ _tmp27_ = _tmp26_;
#line 2084 "/home/jens/Source/shotwell/src/Commands.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp30_, TRUE, NULL, NULL, NULL);
+ source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp27_, TRUE, NULL, NULL, NULL);
#line 2084 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp30_);
+ _g_object_unref0 (_tmp27_);
#line 2068 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (victim_children);
#line 2068 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (victim);
#line 2068 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (victim_path);
-#line 18758 "Commands.c"
+#line 19205 "Commands.c"
}
-static void reparent_tag_command_real_execute (Command* base) {
+static void
+reparent_tag_command_real_execute (Command* base)
+{
ReparentTagCommand * self;
GeeList* _tmp0_;
#line 2087 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -18767,7 +19216,7 @@ static void reparent_tag_command_real_execute (Command* base) {
_tmp0_ = self->priv->after_state;
#line 2088 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp0_ == NULL) {
-#line 18771 "Commands.c"
+#line 19220 "Commands.c"
const gchar* _tmp1_;
const gchar* _tmp2_;
const gchar* _tmp3_;
@@ -18792,7 +19241,7 @@ static void reparent_tag_command_real_execute (Command* base) {
_tmp4_ = self->priv->from_path;
#line 2099 "/home/jens/Source/shotwell/src/Commands.vala"
reparent_tag_command_destroy_subtree (self, _tmp4_);
-#line 18796 "Commands.c"
+#line 19245 "Commands.c"
} else {
const gchar* _tmp5_;
const gchar* _tmp6_;
@@ -18823,12 +19272,14 @@ static void reparent_tag_command_real_execute (Command* base) {
_tmp9_ = self->priv->from_path;
#line 2111 "/home/jens/Source/shotwell/src/Commands.vala"
reparent_tag_command_destroy_subtree (self, _tmp9_);
-#line 18827 "Commands.c"
+#line 19276 "Commands.c"
}
}
-static void reparent_tag_command_real_undo (Command* base) {
+static void
+reparent_tag_command_real_undo (Command* base)
+{
ReparentTagCommand * self;
GeeList* _tmp0_;
const gchar* _tmp1_;
@@ -18855,13 +19306,13 @@ static void reparent_tag_command_real_undo (Command* base) {
_tmp2_ = self->priv->to_path_exists;
#line 2122 "/home/jens/Source/shotwell/src/Commands.vala"
if (!_tmp2_) {
-#line 18859 "Commands.c"
+#line 19310 "Commands.c"
const gchar* _tmp3_;
#line 2123 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp3_ = self->priv->to_path;
#line 2123 "/home/jens/Source/shotwell/src/Commands.vala"
reparent_tag_command_destroy_subtree (self, _tmp3_);
-#line 18865 "Commands.c"
+#line 19316 "Commands.c"
}
#line 2125 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp4_ = self->priv->from_path;
@@ -18889,18 +19340,20 @@ static void reparent_tag_command_real_undo (Command* base) {
_tmp9_ = self->priv->to_path_parent_path;
#line 2133 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp9_ != NULL) {
-#line 18893 "Commands.c"
+#line 19344 "Commands.c"
const gchar* _tmp10_;
#line 2134 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp10_ = self->priv->to_path_parent_path;
#line 2134 "/home/jens/Source/shotwell/src/Commands.vala"
hierarchical_tag_utilities_cleanup_root_path (_tmp10_);
-#line 18899 "Commands.c"
+#line 19350 "Commands.c"
}
}
-static void reparent_tag_command_class_init (ReparentTagCommandClass * klass) {
+static void
+reparent_tag_command_class_init (ReparentTagCommandClass * klass)
+{
#line 1679 "/home/jens/Source/shotwell/src/Commands.vala"
reparent_tag_command_parent_class = g_type_class_peek_parent (klass);
#line 1679 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -18911,11 +19364,13 @@ static void reparent_tag_command_class_init (ReparentTagCommandClass * klass) {
((CommandClass *) klass)->undo = (void (*) (Command *)) reparent_tag_command_real_undo;
#line 1679 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = reparent_tag_command_finalize;
-#line 18915 "Commands.c"
+#line 19368 "Commands.c"
}
-static void reparent_tag_command_instance_init (ReparentTagCommand * self) {
+static void
+reparent_tag_command_instance_init (ReparentTagCommand * self)
+{
GeeHashSet* _tmp0_;
#line 1679 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = REPARENT_TAG_COMMAND_GET_PRIVATE (self);
@@ -18941,11 +19396,13 @@ static void reparent_tag_command_instance_init (ReparentTagCommand * self) {
self->priv->existing_dest_membership = NULL;
#line 1692 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->to_path_exists = FALSE;
-#line 18945 "Commands.c"
+#line 19400 "Commands.c"
}
-static void reparent_tag_command_finalize (GObject * obj) {
+static void
+reparent_tag_command_finalize (GObject * obj)
+{
ReparentTagCommand * self;
LibraryPhotoSourceCollection* _tmp0_;
guint _tmp1_;
@@ -18991,11 +19448,13 @@ static void reparent_tag_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->existing_dest_membership);
#line 1679 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (reparent_tag_command_parent_class)->finalize (obj);
-#line 18995 "Commands.c"
+#line 19452 "Commands.c"
}
-GType reparent_tag_command_get_type (void) {
+GType
+reparent_tag_command_get_type (void)
+{
static volatile gsize reparent_tag_command_type_id__volatile = 0;
if (g_once_init_enter (&reparent_tag_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (ReparentTagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) reparent_tag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ReparentTagCommand), 0, (GInstanceInitFunc) reparent_tag_command_instance_init, NULL };
@@ -19007,313 +19466,299 @@ GType reparent_tag_command_get_type (void) {
}
-static void _modify_tags_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, gpointer self) {
+static void
+_modify_tags_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender,
+ gpointer self)
+{
#line 2179 "/home/jens/Source/shotwell/src/Commands.vala"
modify_tags_command_on_proxy_broken ((ModifyTagsCommand*) self);
-#line 19014 "Commands.c"
+#line 19476 "Commands.c"
}
-ModifyTagsCommand* modify_tags_command_construct (GType object_type, MediaSource* media, GeeCollection* new_tag_list) {
+ModifyTagsCommand*
+modify_tags_command_construct (GType object_type,
+ MediaSource* media,
+ GeeCollection* new_tag_list)
+{
ModifyTagsCommand * self = NULL;
MediaSource* _tmp0_;
- MediaSource* _tmp1_;
- MediaSource* _tmp2_;
GeeList* original_tags = NULL;
- TagSourceCollection* _tmp3_;
- MediaSource* _tmp4_;
- GeeList* _tmp5_;
- GeeList* _tmp6_;
+ TagSourceCollection* _tmp1_;
+ GeeList* _tmp2_;
+ GeeList* _tmp3_;
GeeSortedSet* new_paths = NULL;
- GeeTreeSet* _tmp23_;
+ GeeTreeSet* _tmp20_;
#line 2143 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_MEDIA_SOURCE (media), NULL);
#line 2143 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_COLLECTION (new_tag_list), NULL);
#line 2144 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = media;
-#line 2144 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (ModifyTagsCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_SOURCE, DataSource), RESOURCES_MODIFY_TAGS_LABEL, "");
-#line 2146 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = media;
+ self = (ModifyTagsCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_DATA_SOURCE, DataSource), RESOURCES_MODIFY_TAGS_LABEL, "");
#line 2146 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
+ _tmp0_ = _g_object_ref0 (media);
#line 2146 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->media);
#line 2146 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->media = _tmp2_;
-#line 2149 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = tag_global;
+ self->priv->media = _tmp0_;
#line 2149 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = media;
+ _tmp1_ = tag_global;
#line 2149 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = tag_source_collection_fetch_for_source (_tmp3_, _tmp4_);
+ _tmp2_ = tag_source_collection_fetch_for_source (_tmp1_, media);
#line 2149 "/home/jens/Source/shotwell/src/Commands.vala"
- original_tags = _tmp5_;
+ original_tags = _tmp2_;
#line 2150 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = original_tags;
+ _tmp3_ = original_tags;
#line 2150 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp6_ != NULL) {
-#line 19058 "Commands.c"
+ if (_tmp3_ != NULL) {
+#line 19515 "Commands.c"
{
GeeList* _tag_list = NULL;
- GeeList* _tmp7_;
- GeeList* _tmp8_;
+ GeeList* _tmp4_;
+ GeeList* _tmp5_;
gint _tag_size = 0;
- GeeList* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
+ GeeList* _tmp6_;
+ gint _tmp7_;
+ gint _tmp8_;
gint _tag_index = 0;
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = original_tags;
+ _tmp4_ = original_tags;
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
+ _tmp5_ = _g_object_ref0 (_tmp4_);
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tag_list = _tmp8_;
+ _tag_list = _tmp5_;
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _tag_list;
+ _tmp6_ = _tag_list;
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
+ _tmp8_ = _tmp7_;
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tag_size = _tmp11_;
+ _tag_size = _tmp8_;
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
_tag_index = -1;
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 19086 "Commands.c"
- gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
+#line 19543 "Commands.c"
+ gint _tmp9_;
+ gint _tmp10_;
+ gint _tmp11_;
Tag* tag = NULL;
- GeeList* _tmp15_;
- gint _tmp16_;
- gpointer _tmp17_;
+ GeeList* _tmp12_;
+ gint _tmp13_;
+ gpointer _tmp14_;
SourceProxy* proxy = NULL;
- Tag* _tmp18_;
+ Tag* _tmp15_;
+ SourceProxy* _tmp16_;
+ GeeArrayList* _tmp17_;
+ SourceProxy* _tmp18_;
SourceProxy* _tmp19_;
- GeeArrayList* _tmp20_;
- SourceProxy* _tmp21_;
- SourceProxy* _tmp22_;
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _tag_index;
+ _tmp9_ = _tag_index;
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tag_index = _tmp12_ + 1;
+ _tag_index = _tmp9_ + 1;
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _tag_index;
+ _tmp10_ = _tag_index;
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _tag_size;
+ _tmp11_ = _tag_size;
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp13_ < _tmp14_)) {
+ if (!(_tmp10_ < _tmp11_)) {
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 19112 "Commands.c"
+#line 19569 "Commands.c"
}
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _tag_list;
+ _tmp12_ = _tag_list;
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _tag_index;
+ _tmp13_ = _tag_index;
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = gee_list_get (_tmp15_, _tmp16_);
+ _tmp14_ = gee_list_get (_tmp12_, _tmp13_);
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
- tag = (Tag*) _tmp17_;
+ tag = (Tag*) _tmp14_;
#line 2152 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = tag;
+ _tmp15_ = tag;
#line 2152 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PROXYABLE, Proxyable));
+ _tmp16_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PROXYABLE, Proxyable));
#line 2152 "/home/jens/Source/shotwell/src/Commands.vala"
- proxy = _tmp19_;
+ proxy = _tmp16_;
#line 2153 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = self->priv->to_remove;
+ _tmp17_ = self->priv->to_remove;
#line 2153 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = proxy;
+ _tmp18_ = proxy;
#line 2153 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp21_);
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp18_);
#line 2154 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = proxy;
+ _tmp19_ = proxy;
#line 2154 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp22_, "broken", (GCallback) _modify_tags_command_on_proxy_broken_source_proxy_broken, self, 0);
+ g_signal_connect_object (_tmp19_, "broken", (GCallback) _modify_tags_command_on_proxy_broken_source_proxy_broken, self, 0);
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (proxy);
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (tag);
-#line 19142 "Commands.c"
+#line 19599 "Commands.c"
}
#line 2151 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_tag_list);
-#line 19146 "Commands.c"
+#line 19603 "Commands.c"
}
}
#line 2160 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
+ _tmp20_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
#line 2160 "/home/jens/Source/shotwell/src/Commands.vala"
- new_paths = G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_SORTED_SET, GeeSortedSet);
-#line 19153 "Commands.c"
+ new_paths = G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_SORTED_SET, GeeSortedSet);
+#line 19610 "Commands.c"
{
GeeIterator* _new_tag_it = NULL;
- GeeCollection* _tmp24_;
- GeeIterator* _tmp25_;
-#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = new_tag_list;
+ GeeIterator* _tmp21_;
#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp21_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (new_tag_list, GEE_TYPE_ITERABLE, GeeIterable));
#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- _new_tag_it = _tmp25_;
+ _new_tag_it = _tmp21_;
#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 19166 "Commands.c"
- GeeIterator* _tmp26_;
- gboolean _tmp27_;
+#line 19620 "Commands.c"
+ GeeIterator* _tmp22_;
Tag* new_tag = NULL;
- GeeIterator* _tmp28_;
- gpointer _tmp29_;
+ GeeIterator* _tmp23_;
+ gpointer _tmp24_;
gchar* new_tag_path = NULL;
- Tag* _tmp30_;
- gchar* _tmp31_;
- GeeSortedSet* _tmp32_;
- const gchar* _tmp33_;
- GeeSortedSet* _tmp34_;
- const gchar* _tmp35_;
- GeeList* _tmp36_;
- GeeList* _tmp37_;
-#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = _new_tag_it;
+ Tag* _tmp25_;
+ gchar* _tmp26_;
+ GeeSortedSet* _tmp27_;
+ const gchar* _tmp28_;
+ GeeSortedSet* _tmp29_;
+ const gchar* _tmp30_;
+ GeeList* _tmp31_;
+ GeeList* _tmp32_;
#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = gee_iterator_next (_tmp26_);
+ _tmp22_ = _new_tag_it;
#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp27_) {
+ if (!gee_iterator_next (_tmp22_)) {
#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 19189 "Commands.c"
+#line 19640 "Commands.c"
}
#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = _new_tag_it;
+ _tmp23_ = _new_tag_it;
#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = gee_iterator_get (_tmp28_);
+ _tmp24_ = gee_iterator_get (_tmp23_);
#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
- new_tag = (Tag*) _tmp29_;
+ new_tag = (Tag*) _tmp24_;
#line 2162 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = new_tag;
+ _tmp25_ = new_tag;
#line 2162 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp31_ = tag_get_path (_tmp30_);
+ _tmp26_ = tag_get_path (_tmp25_);
#line 2162 "/home/jens/Source/shotwell/src/Commands.vala"
- new_tag_path = _tmp31_;
+ new_tag_path = _tmp26_;
#line 2164 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp32_ = new_paths;
+ _tmp27_ = new_paths;
#line 2164 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp33_ = new_tag_path;
+ _tmp28_ = new_tag_path;
#line 2164 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection), _tmp33_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection), _tmp28_);
#line 2165 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp34_ = new_paths;
+ _tmp29_ = new_paths;
#line 2165 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp35_ = new_tag_path;
+ _tmp30_ = new_tag_path;
#line 2165 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp36_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp35_);
+ _tmp31_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp30_);
#line 2165 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp37_ = _tmp36_;
+ _tmp32_ = _tmp31_;
#line 2165 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection));
+ gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection));
#line 2165 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp37_);
+ _g_object_unref0 (_tmp32_);
#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (new_tag_path);
#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (new_tag);
-#line 19225 "Commands.c"
+#line 19676 "Commands.c"
}
#line 2161 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_new_tag_it);
-#line 19229 "Commands.c"
+#line 19680 "Commands.c"
}
{
GeeIterator* _path_it = NULL;
- GeeSortedSet* _tmp38_;
- GeeIterator* _tmp39_;
+ GeeSortedSet* _tmp33_;
+ GeeIterator* _tmp34_;
#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp38_ = new_paths;
+ _tmp33_ = new_paths;
#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp39_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp34_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ITERABLE, GeeIterable));
#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- _path_it = _tmp39_;
+ _path_it = _tmp34_;
#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 19243 "Commands.c"
- GeeIterator* _tmp40_;
- gboolean _tmp41_;
+#line 19694 "Commands.c"
+ GeeIterator* _tmp35_;
gchar* path = NULL;
- GeeIterator* _tmp42_;
- gpointer _tmp43_;
- TagSourceCollection* _tmp44_;
- const gchar* _tmp45_;
- gboolean _tmp46_;
+ GeeIterator* _tmp36_;
+ gpointer _tmp37_;
+ TagSourceCollection* _tmp38_;
+ const gchar* _tmp39_;
SourceProxy* proxy = NULL;
- const gchar* _tmp47_;
- Tag* _tmp48_;
- Tag* _tmp49_;
- SourceProxy* _tmp50_;
- SourceProxy* _tmp51_;
- GeeArrayList* _tmp52_;
- SourceProxy* _tmp53_;
- SourceProxy* _tmp54_;
-#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp40_ = _path_it;
+ const gchar* _tmp40_;
+ Tag* _tmp41_;
+ Tag* _tmp42_;
+ SourceProxy* _tmp43_;
+ SourceProxy* _tmp44_;
+ GeeArrayList* _tmp45_;
+ SourceProxy* _tmp46_;
+ SourceProxy* _tmp47_;
#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp41_ = gee_iterator_next (_tmp40_);
+ _tmp35_ = _path_it;
#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp41_) {
+ if (!gee_iterator_next (_tmp35_)) {
#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 19269 "Commands.c"
+#line 19716 "Commands.c"
}
#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp42_ = _path_it;
+ _tmp36_ = _path_it;
#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp43_ = gee_iterator_get (_tmp42_);
+ _tmp37_ = gee_iterator_get (_tmp36_);
#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
- path = (gchar*) _tmp43_;
-#line 2169 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp44_ = tag_global;
+ path = (gchar*) _tmp37_;
#line 2169 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp45_ = path;
+ _tmp38_ = tag_global;
#line 2169 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp46_ = tag_source_collection_exists (_tmp44_, _tmp45_, FALSE);
+ _tmp39_ = path;
#line 2169 "/home/jens/Source/shotwell/src/Commands.vala"
- _vala_assert (_tmp46_, "Tag.global.exists(path)");
+ _vala_assert (tag_source_collection_exists (_tmp38_, _tmp39_, FALSE), "Tag.global.exists(path)");
#line 2171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp47_ = path;
+ _tmp40_ = path;
#line 2171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp48_ = tag_for_path (_tmp47_);
+ _tmp41_ = tag_for_path (_tmp40_);
#line 2171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp49_ = _tmp48_;
+ _tmp42_ = _tmp41_;
#line 2171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp50_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_PROXYABLE, Proxyable));
+ _tmp43_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_PROXYABLE, Proxyable));
#line 2171 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp51_ = _tmp50_;
+ _tmp44_ = _tmp43_;
#line 2171 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp49_);
+ _g_object_unref0 (_tmp42_);
#line 2171 "/home/jens/Source/shotwell/src/Commands.vala"
- proxy = _tmp51_;
+ proxy = _tmp44_;
#line 2172 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp52_ = self->priv->to_add;
+ _tmp45_ = self->priv->to_add;
#line 2172 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp53_ = proxy;
+ _tmp46_ = proxy;
#line 2172 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp53_);
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp46_);
#line 2173 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp54_ = proxy;
+ _tmp47_ = proxy;
#line 2173 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (_tmp54_, "broken", (GCallback) _modify_tags_command_on_proxy_broken_source_proxy_broken, self, 0);
+ g_signal_connect_object (_tmp47_, "broken", (GCallback) _modify_tags_command_on_proxy_broken_source_proxy_broken, self, 0);
#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (proxy);
#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (path);
-#line 19313 "Commands.c"
+#line 19758 "Commands.c"
}
#line 2168 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_path_it);
-#line 19317 "Commands.c"
+#line 19762 "Commands.c"
}
#line 2143 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (new_paths);
@@ -19321,22 +19766,27 @@ ModifyTagsCommand* modify_tags_command_construct (GType object_type, MediaSource
_g_object_unref0 (original_tags);
#line 2143 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 19325 "Commands.c"
+#line 19770 "Commands.c"
}
-ModifyTagsCommand* modify_tags_command_new (MediaSource* media, GeeCollection* new_tag_list) {
+ModifyTagsCommand*
+modify_tags_command_new (MediaSource* media,
+ GeeCollection* new_tag_list)
+{
#line 2143 "/home/jens/Source/shotwell/src/Commands.vala"
return modify_tags_command_construct (TYPE_MODIFY_TAGS_COMMAND, media, new_tag_list);
-#line 19332 "Commands.c"
+#line 19780 "Commands.c"
}
-static void modify_tags_command_real_execute (Command* base) {
+static void
+modify_tags_command_real_execute (Command* base)
+{
ModifyTagsCommand * self;
#line 2185 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommand);
-#line 19340 "Commands.c"
+#line 19790 "Commands.c"
{
GeeArrayList* _proxy_list = NULL;
GeeArrayList* _tmp0_;
@@ -19364,7 +19814,7 @@ static void modify_tags_command_real_execute (Command* base) {
_proxy_index = -1;
#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 19368 "Commands.c"
+#line 19818 "Commands.c"
gint _tmp5_;
gint _tmp6_;
gint _tmp7_;
@@ -19390,7 +19840,7 @@ static void modify_tags_command_real_execute (Command* base) {
if (!(_tmp6_ < _tmp7_)) {
#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 19394 "Commands.c"
+#line 19844 "Commands.c"
}
#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp8_ = _proxy_list;
@@ -19418,11 +19868,11 @@ static void modify_tags_command_real_execute (Command* base) {
_g_object_unref0 (_tmp13_);
#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (proxy);
-#line 19422 "Commands.c"
+#line 19872 "Commands.c"
}
#line 2186 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_proxy_list);
-#line 19426 "Commands.c"
+#line 19876 "Commands.c"
}
{
GeeArrayList* _proxy_list = NULL;
@@ -19451,7 +19901,7 @@ static void modify_tags_command_real_execute (Command* base) {
_proxy_index = -1;
#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 19455 "Commands.c"
+#line 19905 "Commands.c"
gint _tmp22_;
gint _tmp23_;
gint _tmp24_;
@@ -19475,7 +19925,7 @@ static void modify_tags_command_real_execute (Command* base) {
if (!(_tmp23_ < _tmp24_)) {
#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 19479 "Commands.c"
+#line 19929 "Commands.c"
}
#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp25_ = _proxy_list;
@@ -19499,20 +19949,22 @@ static void modify_tags_command_real_execute (Command* base) {
_g_object_unref0 (_tmp30_);
#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (proxy);
-#line 19503 "Commands.c"
+#line 19953 "Commands.c"
}
#line 2189 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_proxy_list);
-#line 19507 "Commands.c"
+#line 19957 "Commands.c"
}
}
-static void modify_tags_command_real_undo (Command* base) {
+static void
+modify_tags_command_real_undo (Command* base)
+{
ModifyTagsCommand * self;
#line 2193 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommand);
-#line 19516 "Commands.c"
+#line 19968 "Commands.c"
{
GeeArrayList* _proxy_list = NULL;
GeeArrayList* _tmp0_;
@@ -19540,7 +19992,7 @@ static void modify_tags_command_real_undo (Command* base) {
_proxy_index = -1;
#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 19544 "Commands.c"
+#line 19996 "Commands.c"
gint _tmp5_;
gint _tmp6_;
gint _tmp7_;
@@ -19566,7 +20018,7 @@ static void modify_tags_command_real_undo (Command* base) {
if (!(_tmp6_ < _tmp7_)) {
#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 19570 "Commands.c"
+#line 20022 "Commands.c"
}
#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp8_ = _proxy_list;
@@ -19594,11 +20046,11 @@ static void modify_tags_command_real_undo (Command* base) {
_g_object_unref0 (_tmp13_);
#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (proxy);
-#line 19598 "Commands.c"
+#line 20050 "Commands.c"
}
#line 2194 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_proxy_list);
-#line 19602 "Commands.c"
+#line 20054 "Commands.c"
}
{
GeeArrayList* _proxy_list = NULL;
@@ -19627,7 +20079,7 @@ static void modify_tags_command_real_undo (Command* base) {
_proxy_index = -1;
#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 19631 "Commands.c"
+#line 20083 "Commands.c"
gint _tmp22_;
gint _tmp23_;
gint _tmp24_;
@@ -19651,7 +20103,7 @@ static void modify_tags_command_real_undo (Command* base) {
if (!(_tmp23_ < _tmp24_)) {
#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 19655 "Commands.c"
+#line 20107 "Commands.c"
}
#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp25_ = _proxy_list;
@@ -19675,16 +20127,18 @@ static void modify_tags_command_real_undo (Command* base) {
_g_object_unref0 (_tmp30_);
#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (proxy);
-#line 19679 "Commands.c"
+#line 20131 "Commands.c"
}
#line 2197 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_proxy_list);
-#line 19683 "Commands.c"
+#line 20135 "Commands.c"
}
}
-static void modify_tags_command_on_proxy_broken (ModifyTagsCommand* self) {
+static void
+modify_tags_command_on_proxy_broken (ModifyTagsCommand* self)
+{
CommandManager* _tmp0_;
CommandManager* _tmp1_;
#line 2201 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -19697,11 +20151,13 @@ static void modify_tags_command_on_proxy_broken (ModifyTagsCommand* self) {
command_manager_reset (_tmp1_);
#line 2202 "/home/jens/Source/shotwell/src/Commands.vala"
_command_manager_unref0 (_tmp1_);
-#line 19701 "Commands.c"
+#line 20155 "Commands.c"
}
-static void modify_tags_command_class_init (ModifyTagsCommandClass * klass) {
+static void
+modify_tags_command_class_init (ModifyTagsCommandClass * klass)
+{
#line 2138 "/home/jens/Source/shotwell/src/Commands.vala"
modify_tags_command_parent_class = g_type_class_peek_parent (klass);
#line 2138 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -19712,11 +20168,13 @@ static void modify_tags_command_class_init (ModifyTagsCommandClass * klass) {
((CommandClass *) klass)->undo = (void (*) (Command *)) modify_tags_command_real_undo;
#line 2138 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = modify_tags_command_finalize;
-#line 19716 "Commands.c"
+#line 20172 "Commands.c"
}
-static void modify_tags_command_instance_init (ModifyTagsCommand * self) {
+static void
+modify_tags_command_instance_init (ModifyTagsCommand * self)
+{
GeeArrayList* _tmp0_;
GeeArrayList* _tmp1_;
#line 2138 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -19729,15 +20187,17 @@ static void modify_tags_command_instance_init (ModifyTagsCommand * self) {
_tmp1_ = gee_array_list_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL);
#line 2141 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->to_remove = _tmp1_;
-#line 19733 "Commands.c"
+#line 20191 "Commands.c"
}
-static void modify_tags_command_finalize (GObject * obj) {
+static void
+modify_tags_command_finalize (GObject * obj)
+{
ModifyTagsCommand * self;
#line 2138 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommand);
-#line 19741 "Commands.c"
+#line 20201 "Commands.c"
{
GeeArrayList* _proxy_list = NULL;
GeeArrayList* _tmp0_;
@@ -19765,7 +20225,7 @@ static void modify_tags_command_finalize (GObject * obj) {
_proxy_index = -1;
#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 19769 "Commands.c"
+#line 20229 "Commands.c"
gint _tmp5_;
gint _tmp6_;
gint _tmp7_;
@@ -19787,7 +20247,7 @@ static void modify_tags_command_finalize (GObject * obj) {
if (!(_tmp6_ < _tmp7_)) {
#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 19791 "Commands.c"
+#line 20251 "Commands.c"
}
#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp8_ = _proxy_list;
@@ -19805,11 +20265,11 @@ static void modify_tags_command_finalize (GObject * obj) {
g_signal_handlers_disconnect_matched (_tmp11_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _modify_tags_command_on_proxy_broken_source_proxy_broken, self);
#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (proxy);
-#line 19809 "Commands.c"
+#line 20269 "Commands.c"
}
#line 2178 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_proxy_list);
-#line 19813 "Commands.c"
+#line 20273 "Commands.c"
}
{
GeeArrayList* _proxy_list = NULL;
@@ -19838,7 +20298,7 @@ static void modify_tags_command_finalize (GObject * obj) {
_proxy_index = -1;
#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 19842 "Commands.c"
+#line 20302 "Commands.c"
gint _tmp18_;
gint _tmp19_;
gint _tmp20_;
@@ -19860,7 +20320,7 @@ static void modify_tags_command_finalize (GObject * obj) {
if (!(_tmp19_ < _tmp20_)) {
#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 19864 "Commands.c"
+#line 20324 "Commands.c"
}
#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp21_ = _proxy_list;
@@ -19878,11 +20338,11 @@ static void modify_tags_command_finalize (GObject * obj) {
g_signal_handlers_disconnect_matched (_tmp24_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp25_, 0, NULL, (GCallback) _modify_tags_command_on_proxy_broken_source_proxy_broken, self);
#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
_source_proxy_unref0 (proxy);
-#line 19882 "Commands.c"
+#line 20342 "Commands.c"
}
#line 2181 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_proxy_list);
-#line 19886 "Commands.c"
+#line 20346 "Commands.c"
}
#line 2139 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->media);
@@ -19892,11 +20352,13 @@ static void modify_tags_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->to_remove);
#line 2138 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (modify_tags_command_parent_class)->finalize (obj);
-#line 19896 "Commands.c"
+#line 20356 "Commands.c"
}
-GType modify_tags_command_get_type (void) {
+GType
+modify_tags_command_get_type (void)
+{
static volatile gsize modify_tags_command_type_id__volatile = 0;
if (g_once_init_enter (&modify_tags_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (ModifyTagsCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) modify_tags_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ModifyTagsCommand), 0, (GInstanceInitFunc) modify_tags_command_instance_init, NULL };
@@ -19908,129 +20370,120 @@ GType modify_tags_command_get_type (void) {
}
-static void _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, DataSource* source, gpointer self) {
+static void
+_tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
+ DataSource* source,
+ gpointer self)
+{
#line 2226 "/home/jens/Source/shotwell/src/Commands.vala"
tag_untag_photos_command_on_source_destroyed ((TagUntagPhotosCommand*) self, source);
-#line 19915 "Commands.c"
+#line 20381 "Commands.c"
}
-TagUntagPhotosCommand* tag_untag_photos_command_construct (GType object_type, Tag* tag, GeeCollection* sources, gint count, gboolean attach) {
+TagUntagPhotosCommand*
+tag_untag_photos_command_construct (GType object_type,
+ Tag* tag,
+ GeeCollection* sources,
+ gint count,
+ gboolean attach)
+{
TagUntagPhotosCommand * self = NULL;
gchar* _tmp0_ = NULL;
- gboolean _tmp1_;
- Tag* _tmp12_;
- Tag* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- GeeCollection* _tmp16_;
- GeeCollection* _tmp17_;
- gboolean _tmp18_;
- LibraryPhotoSourceCollection* _tmp19_;
- VideoSourceCollection* _tmp20_;
+ gchar* _tmp7_;
+ gchar* _tmp8_;
+ GeeCollection* _tmp9_;
+ LibraryPhotoSourceCollection* _tmp10_;
+ VideoSourceCollection* _tmp11_;
#line 2212 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_TAG (tag), NULL);
#line 2212 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL);
#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = attach;
-#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_) {
-#line 19940 "Commands.c"
- Tag* _tmp2_;
+ if (attach) {
+#line 20405 "Commands.c"
+ gchar* _tmp1_;
+ gchar* _tmp2_;
gchar* _tmp3_;
- gchar* _tmp4_;
- gint _tmp5_;
- gchar* _tmp6_;
-#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = tag;
#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = tag_get_user_visible_name (_tmp2_);
+ _tmp1_ = tag_get_user_visible_name (tag);
#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
-#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = count;
+ _tmp2_ = _tmp1_;
#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = resources_tag_photos_label (_tmp4_, _tmp5_);
+ _tmp3_ = resources_tag_photos_label (_tmp2_, count);
#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (_tmp0_);
#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _tmp6_;
+ _tmp0_ = _tmp3_;
#line 2214 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp4_);
-#line 19962 "Commands.c"
+ _g_free0 (_tmp2_);
+#line 20421 "Commands.c"
} else {
- Tag* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gint _tmp10_;
- gchar* _tmp11_;
-#line 2215 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = tag;
-#line 2215 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = tag_get_user_visible_name (_tmp7_);
+ gchar* _tmp4_;
+ gchar* _tmp5_;
+ gchar* _tmp6_;
#line 2215 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _tmp8_;
+ _tmp4_ = tag_get_user_visible_name (tag);
#line 2215 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = count;
+ _tmp5_ = _tmp4_;
#line 2215 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = resources_untag_photos_label (_tmp9_, _tmp10_);
+ _tmp6_ = resources_untag_photos_label (_tmp5_, count);
#line 2215 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (_tmp0_);
#line 2215 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = _tmp11_;
+ _tmp0_ = _tmp6_;
#line 2215 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp9_);
-#line 19985 "Commands.c"
+ _g_free0 (_tmp5_);
+#line 20438 "Commands.c"
}
#line 2213 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = tag;
-#line 2213 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = tag;
+ _tmp7_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject));
#line 2213 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_OBJECT, DataObject));
-#line 2213 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _tmp14_;
+ _tmp8_ = _tmp7_;
#line 2213 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (TagUntagPhotosCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PROXYABLE, Proxyable), _tmp0_, _tmp15_);
+ self = (TagUntagPhotosCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_PROXYABLE, Proxyable), _tmp0_, _tmp8_);
#line 2213 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp15_);
-#line 2218 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = sources;
+ _g_free0 (_tmp8_);
#line 2218 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = _g_object_ref0 (_tmp16_);
+ _tmp9_ = _g_object_ref0 (sources);
#line 2218 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->sources);
#line 2218 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->sources = _tmp17_;
-#line 2219 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = attach;
+ self->priv->sources = _tmp9_;
#line 2219 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->attach = _tmp18_;
+ self->priv->attach = attach;
#line 2221 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = library_photo_global;
+ _tmp10_ = library_photo_global;
#line 2221 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed, self, 0);
#line 2222 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = video_global;
+ _tmp11_ = video_global;
#line 2222 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed, self, 0);
#line 2212 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (_tmp0_);
#line 2212 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 20023 "Commands.c"
+#line 20468 "Commands.c"
}
-TagUntagPhotosCommand* tag_untag_photos_command_new (Tag* tag, GeeCollection* sources, gint count, gboolean attach) {
+TagUntagPhotosCommand*
+tag_untag_photos_command_new (Tag* tag,
+ GeeCollection* sources,
+ gint count,
+ gboolean attach)
+{
#line 2212 "/home/jens/Source/shotwell/src/Commands.vala"
return tag_untag_photos_command_construct (TYPE_TAG_UNTAG_PHOTOS_COMMAND, tag, sources, count, attach);
-#line 20030 "Commands.c"
+#line 20480 "Commands.c"
}
-static void tag_untag_photos_command_real_execute_on_source (SimpleProxyableCommand* base, DataSource* source) {
+static void
+tag_untag_photos_command_real_execute_on_source (SimpleProxyableCommand* base,
+ DataSource* source)
+{
TagUntagPhotosCommand * self;
gboolean _tmp0_;
#line 2230 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -20041,25 +20494,21 @@ static void tag_untag_photos_command_real_execute_on_source (SimpleProxyableComm
_tmp0_ = self->priv->attach;
#line 2231 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp0_) {
-#line 20045 "Commands.c"
- DataSource* _tmp1_;
-#line 2232 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = source;
#line 2232 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_untag_photos_command_do_attach (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_TAG, Tag));
-#line 20051 "Commands.c"
+ tag_untag_photos_command_do_attach (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag));
+#line 20500 "Commands.c"
} else {
- DataSource* _tmp2_;
-#line 2234 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = source;
#line 2234 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_untag_photos_command_do_detach (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_TAG, Tag));
-#line 20058 "Commands.c"
+ tag_untag_photos_command_do_detach (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag));
+#line 20504 "Commands.c"
}
}
-static void tag_untag_photos_command_real_undo_on_source (SimpleProxyableCommand* base, DataSource* source) {
+static void
+tag_untag_photos_command_real_undo_on_source (SimpleProxyableCommand* base,
+ DataSource* source)
+{
TagUntagPhotosCommand * self;
gboolean _tmp0_;
#line 2237 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -20070,25 +20519,21 @@ static void tag_untag_photos_command_real_undo_on_source (SimpleProxyableCommand
_tmp0_ = self->priv->attach;
#line 2238 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp0_) {
-#line 20074 "Commands.c"
- DataSource* _tmp1_;
-#line 2239 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = source;
#line 2239 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_untag_photos_command_do_detach (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_TAG, Tag));
-#line 20080 "Commands.c"
+ tag_untag_photos_command_do_detach (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag));
+#line 20525 "Commands.c"
} else {
- DataSource* _tmp2_;
#line 2241 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = source;
-#line 2241 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_untag_photos_command_do_attach (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_TAG, Tag));
-#line 20087 "Commands.c"
+ tag_untag_photos_command_do_attach (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag));
+#line 20529 "Commands.c"
}
}
-static void tag_untag_photos_command_do_attach (TagUntagPhotosCommand* self, Tag* tag) {
+static void
+tag_untag_photos_command_do_attach (TagUntagPhotosCommand* self,
+ Tag* tag)
+{
GeeMultiMap* _tmp0_;
#line 2244 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_TAG_UNTAG_PHOTOS_COMMAND (self));
@@ -20098,140 +20543,131 @@ static void tag_untag_photos_command_do_attach (TagUntagPhotosCommand* self, Tag
_tmp0_ = self->priv->detached_from;
#line 2246 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp0_ == NULL) {
-#line 20102 "Commands.c"
- Tag* _tmp1_;
- GeeCollection* _tmp2_;
- GeeArrayList* _tmp3_;
+#line 20547 "Commands.c"
+ GeeCollection* _tmp1_;
+ GeeArrayList* _tmp2_;
Tag* curr_tmp = NULL;
- Tag* _tmp4_;
- Tag* _tmp5_;
-#line 2247 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = tag;
+ Tag* _tmp3_;
#line 2247 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->sources;
+ _tmp1_ = self->priv->sources;
#line 2247 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach_many (_tmp1_, _tmp2_);
+ tag_attach_many (tag, _tmp1_);
#line 2249 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
+ _tmp2_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 2249 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->attached_to);
#line 2249 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->attached_to = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_LIST, GeeList);
+ self->priv->attached_to = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList);
#line 2251 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = tag;
+ _tmp3_ = _g_object_ref0 (tag);
#line 2251 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
-#line 2251 "/home/jens/Source/shotwell/src/Commands.vala"
- curr_tmp = _tmp5_;
+ curr_tmp = _tmp3_;
#line 2253 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 20129 "Commands.c"
+#line 20568 "Commands.c"
+ Tag* _tmp4_;
+ GeeList* _tmp5_;
Tag* _tmp6_;
- GeeList* _tmp7_;
+ Tag* _tmp7_;
Tag* _tmp8_;
- Tag* _tmp9_;
- Tag* _tmp10_;
#line 2253 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = curr_tmp;
+ _tmp4_ = curr_tmp;
#line 2253 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp6_ != NULL)) {
+ if (!(_tmp4_ != NULL)) {
#line 2253 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 20141 "Commands.c"
+#line 20580 "Commands.c"
}
#line 2254 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->attached_to;
+ _tmp5_ = self->priv->attached_to;
#line 2254 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = curr_tmp;
+ _tmp6_ = curr_tmp;
#line 2254 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection), _tmp8_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), _tmp6_);
#line 2255 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = curr_tmp;
+ _tmp7_ = curr_tmp;
#line 2255 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = tag_get_hierarchical_parent (_tmp9_);
+ _tmp8_ = tag_get_hierarchical_parent (_tmp7_);
#line 2255 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (curr_tmp);
#line 2255 "/home/jens/Source/shotwell/src/Commands.vala"
- curr_tmp = _tmp10_;
-#line 20157 "Commands.c"
+ curr_tmp = _tmp8_;
+#line 20596 "Commands.c"
}
#line 2258 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (curr_tmp);
#line 2258 "/home/jens/Source/shotwell/src/Commands.vala"
return;
-#line 20163 "Commands.c"
+#line 20602 "Commands.c"
}
{
GeeIterator* _detached_tag_it = NULL;
- GeeMultiMap* _tmp11_;
- GeeMultiSet* _tmp12_;
- GeeMultiSet* _tmp13_;
- GeeIterator* _tmp14_;
- GeeIterator* _tmp15_;
+ GeeMultiMap* _tmp9_;
+ GeeMultiSet* _tmp10_;
+ GeeMultiSet* _tmp11_;
+ GeeIterator* _tmp12_;
+ GeeIterator* _tmp13_;
#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = self->priv->detached_from;
+ _tmp9_ = self->priv->detached_from;
#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = gee_multi_map_get_all_keys (_tmp11_);
+ _tmp10_ = gee_multi_map_get_all_keys (_tmp9_);
#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _tmp12_;
+ _tmp11_ = _tmp10_;
#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable));
#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _tmp14_;
+ _tmp13_ = _tmp12_;
#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp13_);
+ _g_object_unref0 (_tmp11_);
#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _detached_tag_it = _tmp15_;
+ _detached_tag_it = _tmp13_;
#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 20188 "Commands.c"
- GeeIterator* _tmp16_;
- gboolean _tmp17_;
+#line 20627 "Commands.c"
+ GeeIterator* _tmp14_;
Tag* detached_tag = NULL;
- GeeIterator* _tmp18_;
- gpointer _tmp19_;
- Tag* _tmp20_;
- GeeMultiMap* _tmp21_;
- Tag* _tmp22_;
- GeeCollection* _tmp23_;
- GeeCollection* _tmp24_;
-#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _detached_tag_it;
+ GeeIterator* _tmp15_;
+ gpointer _tmp16_;
+ Tag* _tmp17_;
+ GeeMultiMap* _tmp18_;
+ Tag* _tmp19_;
+ GeeCollection* _tmp20_;
+ GeeCollection* _tmp21_;
#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = gee_iterator_next (_tmp16_);
+ _tmp14_ = _detached_tag_it;
#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp17_) {
+ if (!gee_iterator_next (_tmp14_)) {
#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 20207 "Commands.c"
+#line 20643 "Commands.c"
}
#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = _detached_tag_it;
+ _tmp15_ = _detached_tag_it;
#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = gee_iterator_get (_tmp18_);
+ _tmp16_ = gee_iterator_get (_tmp15_);
#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
- detached_tag = (Tag*) _tmp19_;
+ detached_tag = (Tag*) _tmp16_;
#line 2263 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = detached_tag;
+ _tmp17_ = detached_tag;
#line 2263 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = self->priv->detached_from;
+ _tmp18_ = self->priv->detached_from;
#line 2263 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = detached_tag;
+ _tmp19_ = detached_tag;
#line 2263 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = gee_multi_map_get (_tmp21_, _tmp22_);
+ _tmp20_ = gee_multi_map_get (_tmp18_, _tmp19_);
#line 2263 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = _tmp23_;
+ _tmp21_ = _tmp20_;
#line 2263 "/home/jens/Source/shotwell/src/Commands.vala"
- tag_attach_many (_tmp20_, _tmp24_);
+ tag_attach_many (_tmp17_, _tmp21_);
#line 2263 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp24_);
+ _g_object_unref0 (_tmp21_);
#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (detached_tag);
-#line 20231 "Commands.c"
+#line 20667 "Commands.c"
}
#line 2262 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_detached_tag_it);
-#line 20235 "Commands.c"
+#line 20671 "Commands.c"
}
#line 2265 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->detached_from);
@@ -20239,11 +20675,14 @@ static void tag_untag_photos_command_do_attach (TagUntagPhotosCommand* self, Tag
self->priv->detached_from = NULL;
#line 2266 "/home/jens/Source/shotwell/src/Commands.vala"
simple_proxyable_command_clear_added_proxies (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand));
-#line 20243 "Commands.c"
+#line 20679 "Commands.c"
}
-static void tag_untag_photos_command_do_detach (TagUntagPhotosCommand* self, Tag* tag) {
+static void
+tag_untag_photos_command_do_detach (TagUntagPhotosCommand* self,
+ Tag* tag)
+{
GeeList* _tmp0_;
#line 2269 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_TAG_UNTAG_PHOTOS_COMMAND (self));
@@ -20253,221 +20692,208 @@ static void tag_untag_photos_command_do_detach (TagUntagPhotosCommand* self, Tag
_tmp0_ = self->priv->attached_to;
#line 2270 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp0_ == NULL) {
-#line 20257 "Commands.c"
- Tag* _tmp1_;
- GeeCollection* _tmp2_;
+#line 20696 "Commands.c"
+ GeeCollection* _tmp1_;
+ GeeMultiMap* _tmp2_;
GeeMultiMap* _tmp3_;
- GeeMultiMap* _tmp4_;
+ GeeSet* _tmp4_;
GeeSet* _tmp5_;
- GeeSet* _tmp6_;
-#line 2274 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = tag;
#line 2274 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->sources;
+ _tmp1_ = self->priv->sources;
#line 2274 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = tag_detach_many (_tmp1_, _tmp2_);
+ _tmp2_ = tag_detach_many (tag, _tmp1_);
#line 2274 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->detached_from);
#line 2274 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->detached_from = _tmp3_;
+ self->priv->detached_from = _tmp2_;
#line 2278 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = self->priv->detached_from;
+ _tmp3_ = self->priv->detached_from;
#line 2278 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_multi_map_get_keys (_tmp4_);
+ _tmp4_ = gee_multi_map_get_keys (_tmp3_);
#line 2278 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
+ _tmp5_ = _tmp4_;
#line 2278 "/home/jens/Source/shotwell/src/Commands.vala"
- simple_proxyable_command_add_proxyables (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
+ simple_proxyable_command_add_proxyables (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
#line 2278 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp6_);
-#line 20284 "Commands.c"
+ _g_object_unref0 (_tmp5_);
+#line 20720 "Commands.c"
} else {
{
GeeList* _t_list = NULL;
+ GeeList* _tmp6_;
GeeList* _tmp7_;
- GeeList* _tmp8_;
gint _t_size = 0;
- GeeList* _tmp9_;
+ GeeList* _tmp8_;
+ gint _tmp9_;
gint _tmp10_;
- gint _tmp11_;
gint _t_index = 0;
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->attached_to;
+ _tmp6_ = self->priv->attached_to;
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
+ _tmp7_ = _g_object_ref0 (_tmp6_);
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_list = _tmp8_;
+ _t_list = _tmp7_;
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _t_list;
+ _tmp8_ = _t_list;
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection));
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _tmp10_;
+ _tmp10_ = _tmp9_;
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_size = _tmp11_;
+ _t_size = _tmp10_;
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
_t_index = -1;
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 20313 "Commands.c"
+#line 20749 "Commands.c"
+ gint _tmp11_;
gint _tmp12_;
gint _tmp13_;
- gint _tmp14_;
Tag* t = NULL;
- GeeList* _tmp15_;
- gint _tmp16_;
- gpointer _tmp17_;
+ GeeList* _tmp14_;
+ gint _tmp15_;
+ gpointer _tmp16_;
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _t_index;
+ _tmp11_ = _t_index;
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _t_index = _tmp12_ + 1;
+ _t_index = _tmp11_ + 1;
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _t_index;
+ _tmp12_ = _t_index;
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _t_size;
+ _tmp13_ = _t_size;
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!(_tmp13_ < _tmp14_)) {
+ if (!(_tmp12_ < _tmp13_)) {
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 20333 "Commands.c"
+#line 20769 "Commands.c"
}
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = _t_list;
+ _tmp14_ = _t_list;
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = _t_index;
+ _tmp15_ = _t_index;
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = gee_list_get (_tmp15_, _tmp16_);
+ _tmp16_ = gee_list_get (_tmp14_, _tmp15_);
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
- t = (Tag*) _tmp17_;
-#line 20343 "Commands.c"
+ t = (Tag*) _tmp16_;
+#line 20779 "Commands.c"
{
GeeIterator* _ms_it = NULL;
- GeeCollection* _tmp18_;
- GeeIterator* _tmp19_;
+ GeeCollection* _tmp17_;
+ GeeIterator* _tmp18_;
#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = self->priv->sources;
+ _tmp17_ = self->priv->sources;
#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp18_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ITERABLE, GeeIterable));
#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- _ms_it = _tmp19_;
+ _ms_it = _tmp18_;
#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 20356 "Commands.c"
- GeeIterator* _tmp20_;
- gboolean _tmp21_;
+#line 20792 "Commands.c"
+ GeeIterator* _tmp19_;
MediaSource* ms = NULL;
- GeeIterator* _tmp22_;
- gpointer _tmp23_;
- Tag* _tmp24_;
- MediaSource* _tmp25_;
- gint _tmp26_;
-#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = _ms_it;
+ GeeIterator* _tmp20_;
+ gpointer _tmp21_;
+ Tag* _tmp22_;
+ MediaSource* _tmp23_;
#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = gee_iterator_next (_tmp20_);
+ _tmp19_ = _ms_it;
#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp21_) {
+ if (!gee_iterator_next (_tmp19_)) {
#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 20373 "Commands.c"
+#line 20805 "Commands.c"
}
#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = _ms_it;
+ _tmp20_ = _ms_it;
#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = gee_iterator_get (_tmp22_);
+ _tmp21_ = gee_iterator_get (_tmp20_);
#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
- ms = (MediaSource*) _tmp23_;
-#line 2283 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = t;
+ ms = (MediaSource*) _tmp21_;
#line 2283 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = ms;
+ _tmp22_ = t;
#line 2283 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = tag_get_attachment_count (_tmp24_, _tmp25_);
+ _tmp23_ = ms;
#line 2283 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp26_ < 2) {
-#line 20389 "Commands.c"
- Tag* _tmp27_;
- MediaSource* _tmp28_;
- GeeList* _tmp29_;
- GeeList* _tmp30_;
+ if (tag_get_attachment_count (_tmp22_, _tmp23_) < 2) {
+#line 20819 "Commands.c"
+ Tag* _tmp24_;
+ MediaSource* _tmp25_;
+ GeeList* _tmp26_;
+ GeeList* _tmp27_;
#line 2285 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp27_ = t;
+ _tmp24_ = t;
#line 2285 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp28_ = ms;
+ _tmp25_ = ms;
#line 2285 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp29_ = tag_detach (_tmp27_, _tmp28_);
+ _tmp26_ = tag_detach (_tmp24_, _tmp25_);
#line 2285 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp30_ = _tmp29_;
+ _tmp27_ = _tmp26_;
#line 2285 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp30_);
-#line 20404 "Commands.c"
+ _g_object_unref0 (_tmp27_);
+#line 20834 "Commands.c"
}
#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (ms);
-#line 20408 "Commands.c"
+#line 20838 "Commands.c"
}
#line 2281 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_ms_it);
-#line 20412 "Commands.c"
+#line 20842 "Commands.c"
}
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (t);
-#line 20416 "Commands.c"
+#line 20846 "Commands.c"
}
#line 2280 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_t_list);
-#line 20420 "Commands.c"
+#line 20850 "Commands.c"
}
}
}
-static void tag_untag_photos_command_on_source_destroyed (TagUntagPhotosCommand* self, DataSource* source) {
- DataSource* _tmp0_;
+static void
+tag_untag_photos_command_on_source_destroyed (TagUntagPhotosCommand* self,
+ DataSource* source)
+{
+ gchar* _tmp0_;
gchar* _tmp1_;
- gchar* _tmp2_;
- GeeCollection* _tmp3_;
- DataSource* _tmp4_;
- gboolean _tmp5_;
+ GeeCollection* _tmp2_;
#line 2292 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_TAG_UNTAG_PHOTOS_COMMAND (self));
#line 2292 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 2293 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 2293 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject));
+ _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject));
#line 2293 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _tmp1_;
+ _tmp1_ = _tmp0_;
#line 2293 "/home/jens/Source/shotwell/src/Commands.vala"
- g_debug ("Commands.vala:2293: on_source_destroyed: %s", _tmp2_);
+ g_debug ("Commands.vala:2293: on_source_destroyed: %s", _tmp1_);
#line 2293 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp2_);
-#line 2294 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->sources;
-#line 2294 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = source;
+ _g_free0 (_tmp1_);
#line 2294 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_collection_contains (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource));
+ _tmp2_ = self->priv->sources;
#line 2294 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp5_) {
-#line 20455 "Commands.c"
- CommandManager* _tmp6_;
- CommandManager* _tmp7_;
+ if (gee_collection_contains (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource))) {
+#line 20879 "Commands.c"
+ CommandManager* _tmp3_;
+ CommandManager* _tmp4_;
#line 2295 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
+ _tmp3_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
#line 2295 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = _tmp6_;
+ _tmp4_ = _tmp3_;
#line 2295 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp7_);
+ command_manager_reset (_tmp4_);
#line 2295 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp7_);
-#line 20466 "Commands.c"
+ _command_manager_unref0 (_tmp4_);
+#line 20890 "Commands.c"
}
}
-static void tag_untag_photos_command_class_init (TagUntagPhotosCommandClass * klass) {
+static void
+tag_untag_photos_command_class_init (TagUntagPhotosCommandClass * klass)
+{
#line 2206 "/home/jens/Source/shotwell/src/Commands.vala"
tag_untag_photos_command_parent_class = g_type_class_peek_parent (klass);
#line 2206 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -20478,22 +20904,26 @@ static void tag_untag_photos_command_class_init (TagUntagPhotosCommandClass * kl
((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) tag_untag_photos_command_real_undo_on_source;
#line 2206 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = tag_untag_photos_command_finalize;
-#line 20482 "Commands.c"
+#line 20908 "Commands.c"
}
-static void tag_untag_photos_command_instance_init (TagUntagPhotosCommand * self) {
+static void
+tag_untag_photos_command_instance_init (TagUntagPhotosCommand * self)
+{
#line 2206 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = TAG_UNTAG_PHOTOS_COMMAND_GET_PRIVATE (self);
#line 2209 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->detached_from = NULL;
#line 2210 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->attached_to = NULL;
-#line 20493 "Commands.c"
+#line 20921 "Commands.c"
}
-static void tag_untag_photos_command_finalize (GObject * obj) {
+static void
+tag_untag_photos_command_finalize (GObject * obj)
+{
TagUntagPhotosCommand * self;
LibraryPhotoSourceCollection* _tmp0_;
guint _tmp1_;
@@ -20521,11 +20951,13 @@ static void tag_untag_photos_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->attached_to);
#line 2206 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (tag_untag_photos_command_parent_class)->finalize (obj);
-#line 20525 "Commands.c"
+#line 20955 "Commands.c"
}
-GType tag_untag_photos_command_get_type (void) {
+GType
+tag_untag_photos_command_get_type (void)
+{
static volatile gsize tag_untag_photos_command_type_id__volatile = 0;
if (g_once_init_enter (&tag_untag_photos_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (TagUntagPhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_untag_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagUntagPhotosCommand), 0, (GInstanceInitFunc) tag_untag_photos_command_instance_init, NULL };
@@ -20537,98 +20969,85 @@ GType tag_untag_photos_command_get_type (void) {
}
-RenameSavedSearchCommand* rename_saved_search_command_construct (GType object_type, SavedSearch* search, const gchar* new_name) {
+RenameSavedSearchCommand*
+rename_saved_search_command_construct (GType object_type,
+ SavedSearch* search,
+ const gchar* new_name)
+{
RenameSavedSearchCommand * self = NULL;
- SavedSearch* _tmp0_;
- SavedSearch* _tmp1_;
+ gchar* _tmp0_;
+ gchar* _tmp1_;
gchar* _tmp2_;
gchar* _tmp3_;
- const gchar* _tmp4_;
+ gchar* _tmp4_;
gchar* _tmp5_;
- gchar* _tmp6_;
- SavedSearch* _tmp7_;
+ SavedSearch* _tmp6_;
+ gchar* _tmp7_;
gchar* _tmp8_;
- gchar* _tmp9_;
- SavedSearch* _tmp10_;
- SavedSearch* _tmp11_;
- SavedSearch* _tmp12_;
- gchar* _tmp13_;
- const gchar* _tmp14_;
- gchar* _tmp15_;
#line 2304 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_SAVED_SEARCH (search), NULL);
#line 2304 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (new_name != NULL, NULL);
#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = search;
+ _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject));
#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = search;
+ _tmp1_ = _tmp0_;
#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject));
+ _tmp2_ = resources_rename_search_label (_tmp1_, new_name);
#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp3_ = _tmp2_;
#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = new_name;
-#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = resources_rename_search_label (_tmp3_, _tmp4_);
-#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
-#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = search;
-#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_OBJECT, DataObject));
-#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = _tmp8_;
+ _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject));
#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (RenameSavedSearchCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_SOURCE, DataSource), _tmp6_, _tmp9_);
+ _tmp5_ = _tmp4_;
#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp9_);
+ self = (RenameSavedSearchCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_SOURCE, DataSource), _tmp3_, _tmp5_);
#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp6_);
+ _g_free0 (_tmp5_);
#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (_tmp3_);
+#line 2305 "/home/jens/Source/shotwell/src/Commands.vala"
+ _g_free0 (_tmp1_);
#line 2307 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = search;
-#line 2307 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = _g_object_ref0 (_tmp10_);
+ _tmp6_ = _g_object_ref0 (search);
#line 2307 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->search);
#line 2307 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->search = _tmp11_;
-#line 2308 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = search;
+ self->priv->search = _tmp6_;
#line 2308 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject));
+ _tmp7_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject));
#line 2308 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->old_name);
#line 2308 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->old_name = _tmp13_;
+ self->priv->old_name = _tmp7_;
#line 2309 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = new_name;
-#line 2309 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = g_strdup (_tmp14_);
+ _tmp8_ = g_strdup (new_name);
#line 2309 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (self->priv->new_name);
#line 2309 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->new_name = _tmp15_;
+ self->priv->new_name = _tmp8_;
#line 2304 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 20617 "Commands.c"
+#line 21032 "Commands.c"
}
-RenameSavedSearchCommand* rename_saved_search_command_new (SavedSearch* search, const gchar* new_name) {
+RenameSavedSearchCommand*
+rename_saved_search_command_new (SavedSearch* search,
+ const gchar* new_name)
+{
#line 2304 "/home/jens/Source/shotwell/src/Commands.vala"
return rename_saved_search_command_construct (TYPE_RENAME_SAVED_SEARCH_COMMAND, search, new_name);
-#line 20624 "Commands.c"
+#line 21042 "Commands.c"
}
-static void rename_saved_search_command_real_execute (Command* base) {
+static void
+rename_saved_search_command_real_execute (Command* base)
+{
RenameSavedSearchCommand * self;
SavedSearch* _tmp0_;
const gchar* _tmp1_;
- gboolean _tmp2_;
#line 2312 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommand);
#line 2313 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -20636,33 +21055,32 @@ static void rename_saved_search_command_real_execute (Command* base) {
#line 2313 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp1_ = self->priv->new_name;
#line 2313 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = saved_search_rename (_tmp0_, _tmp1_);
-#line 2313 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp2_) {
-#line 20643 "Commands.c"
- const gchar* _tmp3_;
+ if (!saved_search_rename (_tmp0_, _tmp1_)) {
+#line 21060 "Commands.c"
+ const gchar* _tmp2_;
+ gchar* _tmp3_;
gchar* _tmp4_;
- gchar* _tmp5_;
#line 2314 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->new_name;
+ _tmp2_ = self->priv->new_name;
#line 2314 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = resources_rename_search_exists_message (_tmp3_);
+ _tmp3_ = resources_rename_search_exists_message (_tmp2_);
#line 2314 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
+ _tmp4_ = _tmp3_;
#line 2314 "/home/jens/Source/shotwell/src/Commands.vala"
- app_window_error_message (_tmp5_, NULL);
+ app_window_error_message (_tmp4_, NULL);
#line 2314 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp5_);
-#line 20657 "Commands.c"
+ _g_free0 (_tmp4_);
+#line 21074 "Commands.c"
}
}
-static void rename_saved_search_command_real_undo (Command* base) {
+static void
+rename_saved_search_command_real_undo (Command* base)
+{
RenameSavedSearchCommand * self;
SavedSearch* _tmp0_;
const gchar* _tmp1_;
- gboolean _tmp2_;
#line 2317 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommand);
#line 2318 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -20670,29 +21088,29 @@ static void rename_saved_search_command_real_undo (Command* base) {
#line 2318 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp1_ = self->priv->old_name;
#line 2318 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = saved_search_rename (_tmp0_, _tmp1_);
-#line 2318 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp2_) {
-#line 20677 "Commands.c"
- const gchar* _tmp3_;
+ if (!saved_search_rename (_tmp0_, _tmp1_)) {
+#line 21093 "Commands.c"
+ const gchar* _tmp2_;
+ gchar* _tmp3_;
gchar* _tmp4_;
- gchar* _tmp5_;
#line 2319 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = self->priv->old_name;
+ _tmp2_ = self->priv->old_name;
#line 2319 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = resources_rename_search_exists_message (_tmp3_);
+ _tmp3_ = resources_rename_search_exists_message (_tmp2_);
#line 2319 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _tmp4_;
+ _tmp4_ = _tmp3_;
#line 2319 "/home/jens/Source/shotwell/src/Commands.vala"
- app_window_error_message (_tmp5_, NULL);
+ app_window_error_message (_tmp4_, NULL);
#line 2319 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp5_);
-#line 20691 "Commands.c"
+ _g_free0 (_tmp4_);
+#line 21107 "Commands.c"
}
}
-static void rename_saved_search_command_class_init (RenameSavedSearchCommandClass * klass) {
+static void
+rename_saved_search_command_class_init (RenameSavedSearchCommandClass * klass)
+{
#line 2299 "/home/jens/Source/shotwell/src/Commands.vala"
rename_saved_search_command_parent_class = g_type_class_peek_parent (klass);
#line 2299 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -20703,18 +21121,22 @@ static void rename_saved_search_command_class_init (RenameSavedSearchCommandClas
((CommandClass *) klass)->undo = (void (*) (Command *)) rename_saved_search_command_real_undo;
#line 2299 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = rename_saved_search_command_finalize;
-#line 20707 "Commands.c"
+#line 21125 "Commands.c"
}
-static void rename_saved_search_command_instance_init (RenameSavedSearchCommand * self) {
+static void
+rename_saved_search_command_instance_init (RenameSavedSearchCommand * self)
+{
#line 2299 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = RENAME_SAVED_SEARCH_COMMAND_GET_PRIVATE (self);
-#line 20714 "Commands.c"
+#line 21134 "Commands.c"
}
-static void rename_saved_search_command_finalize (GObject * obj) {
+static void
+rename_saved_search_command_finalize (GObject * obj)
+{
RenameSavedSearchCommand * self;
#line 2299 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommand);
@@ -20726,11 +21148,13 @@ static void rename_saved_search_command_finalize (GObject * obj) {
_g_free0 (self->priv->new_name);
#line 2299 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (rename_saved_search_command_parent_class)->finalize (obj);
-#line 20730 "Commands.c"
+#line 21152 "Commands.c"
}
-GType rename_saved_search_command_get_type (void) {
+GType
+rename_saved_search_command_get_type (void)
+{
static volatile gsize rename_saved_search_command_type_id__volatile = 0;
if (g_once_init_enter (&rename_saved_search_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (RenameSavedSearchCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rename_saved_search_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RenameSavedSearchCommand), 0, (GInstanceInitFunc) rename_saved_search_command_instance_init, NULL };
@@ -20742,69 +21166,64 @@ GType rename_saved_search_command_get_type (void) {
}
-DeleteSavedSearchCommand* delete_saved_search_command_construct (GType object_type, SavedSearch* search) {
+DeleteSavedSearchCommand*
+delete_saved_search_command_construct (GType object_type,
+ SavedSearch* search)
+{
DeleteSavedSearchCommand * self = NULL;
- SavedSearch* _tmp0_;
- SavedSearch* _tmp1_;
+ gchar* _tmp0_;
+ gchar* _tmp1_;
gchar* _tmp2_;
gchar* _tmp3_;
gchar* _tmp4_;
gchar* _tmp5_;
SavedSearch* _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- SavedSearch* _tmp9_;
- SavedSearch* _tmp10_;
#line 2326 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_SAVED_SEARCH (search), NULL);
#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = search;
+ _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject));
#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = search;
+ _tmp1_ = _tmp0_;
#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject));
+ _tmp2_ = resources_delete_search_label (_tmp1_);
#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp3_ = _tmp2_;
#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = resources_delete_search_label (_tmp3_);
+ _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject));
#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp5_ = _tmp4_;
#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = search;
-#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_OBJECT, DataObject));
-#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_;
-#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (DeleteSavedSearchCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_SOURCE, DataSource), _tmp5_, _tmp8_);
-#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_free0 (_tmp8_);
+ self = (DeleteSavedSearchCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_SOURCE, DataSource), _tmp3_, _tmp5_);
#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (_tmp5_);
#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
_g_free0 (_tmp3_);
+#line 2327 "/home/jens/Source/shotwell/src/Commands.vala"
+ _g_free0 (_tmp1_);
#line 2329 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = search;
-#line 2329 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = _g_object_ref0 (_tmp9_);
+ _tmp6_ = _g_object_ref0 (search);
#line 2329 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->search);
#line 2329 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->search = _tmp10_;
+ self->priv->search = _tmp6_;
#line 2326 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 20797 "Commands.c"
+#line 21212 "Commands.c"
}
-DeleteSavedSearchCommand* delete_saved_search_command_new (SavedSearch* search) {
+DeleteSavedSearchCommand*
+delete_saved_search_command_new (SavedSearch* search)
+{
#line 2326 "/home/jens/Source/shotwell/src/Commands.vala"
return delete_saved_search_command_construct (TYPE_DELETE_SAVED_SEARCH_COMMAND, search);
-#line 20804 "Commands.c"
+#line 21221 "Commands.c"
}
-static void delete_saved_search_command_real_execute (Command* base) {
+static void
+delete_saved_search_command_real_execute (Command* base)
+{
DeleteSavedSearchCommand * self;
SavedSearchTable* _tmp0_;
SavedSearchTable* _tmp1_;
@@ -20821,11 +21240,13 @@ static void delete_saved_search_command_real_execute (Command* base) {
saved_search_table_remove (_tmp1_, _tmp2_);
#line 2333 "/home/jens/Source/shotwell/src/Commands.vala"
_saved_search_table_unref0 (_tmp1_);
-#line 20825 "Commands.c"
+#line 21244 "Commands.c"
}
-static void delete_saved_search_command_real_undo (Command* base) {
+static void
+delete_saved_search_command_real_undo (Command* base)
+{
DeleteSavedSearchCommand * self;
SavedSearch* _tmp0_;
#line 2336 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -20834,11 +21255,13 @@ static void delete_saved_search_command_real_undo (Command* base) {
_tmp0_ = self->priv->search;
#line 2337 "/home/jens/Source/shotwell/src/Commands.vala"
saved_search_reconstitute (_tmp0_);
-#line 20838 "Commands.c"
+#line 21259 "Commands.c"
}
-static void delete_saved_search_command_class_init (DeleteSavedSearchCommandClass * klass) {
+static void
+delete_saved_search_command_class_init (DeleteSavedSearchCommandClass * klass)
+{
#line 2323 "/home/jens/Source/shotwell/src/Commands.vala"
delete_saved_search_command_parent_class = g_type_class_peek_parent (klass);
#line 2323 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -20849,18 +21272,22 @@ static void delete_saved_search_command_class_init (DeleteSavedSearchCommandClas
((CommandClass *) klass)->undo = (void (*) (Command *)) delete_saved_search_command_real_undo;
#line 2323 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = delete_saved_search_command_finalize;
-#line 20853 "Commands.c"
+#line 21276 "Commands.c"
}
-static void delete_saved_search_command_instance_init (DeleteSavedSearchCommand * self) {
+static void
+delete_saved_search_command_instance_init (DeleteSavedSearchCommand * self)
+{
#line 2323 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = DELETE_SAVED_SEARCH_COMMAND_GET_PRIVATE (self);
-#line 20860 "Commands.c"
+#line 21285 "Commands.c"
}
-static void delete_saved_search_command_finalize (GObject * obj) {
+static void
+delete_saved_search_command_finalize (GObject * obj)
+{
DeleteSavedSearchCommand * self;
#line 2323 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommand);
@@ -20868,11 +21295,13 @@ static void delete_saved_search_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->search);
#line 2323 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (delete_saved_search_command_parent_class)->finalize (obj);
-#line 20872 "Commands.c"
+#line 21299 "Commands.c"
}
-GType delete_saved_search_command_get_type (void) {
+GType
+delete_saved_search_command_get_type (void)
+{
static volatile gsize delete_saved_search_command_type_id__volatile = 0;
if (g_once_init_enter (&delete_saved_search_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (DeleteSavedSearchCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) delete_saved_search_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DeleteSavedSearchCommand), 0, (GInstanceInitFunc) delete_saved_search_command_instance_init, NULL };
@@ -20884,102 +21313,102 @@ GType delete_saved_search_command_get_type (void) {
}
-static void _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender, DataSource* source, gpointer self) {
+static void
+_trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
+ DataSource* source,
+ gpointer self)
+{
#line 2358 "/home/jens/Source/shotwell/src/Commands.vala"
trash_untrash_photos_command_on_photo_destroyed ((TrashUntrashPhotosCommand*) self, source);
-#line 20891 "Commands.c"
+#line 21324 "Commands.c"
}
-TrashUntrashPhotosCommand* trash_untrash_photos_command_construct (GType object_type, GeeCollection* sources, gboolean to_trash) {
+TrashUntrashPhotosCommand*
+trash_untrash_photos_command_construct (GType object_type,
+ GeeCollection* sources,
+ gboolean to_trash)
+{
TrashUntrashPhotosCommand * self = NULL;
const gchar* _tmp0_ = NULL;
- gboolean _tmp1_;
- const gchar* _tmp2_ = NULL;
- gboolean _tmp3_;
- GeeCollection* _tmp4_;
- GeeCollection* _tmp5_;
- gboolean _tmp6_;
- LibraryPhotoSourceCollection* _tmp7_;
- VideoSourceCollection* _tmp8_;
+ const gchar* _tmp1_ = NULL;
+ GeeCollection* _tmp2_;
+ LibraryPhotoSourceCollection* _tmp3_;
+ VideoSourceCollection* _tmp4_;
#line 2345 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL);
#line 2347 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = to_trash;
-#line 2347 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_) {
+ if (to_trash) {
#line 2347 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp0_ = _ ("Move Photos to Trash");
-#line 20914 "Commands.c"
+#line 21345 "Commands.c"
} else {
#line 2347 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp0_ = _ ("Restore Photos from Trash");
-#line 20918 "Commands.c"
+#line 21349 "Commands.c"
}
#line 2348 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = to_trash;
-#line 2348 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_) {
+ if (to_trash) {
#line 2348 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _ ("Move the photos to the Shotwell trash");
-#line 20926 "Commands.c"
+ _tmp1_ = _ ("Move the photos to the Shotwell trash");
+#line 21355 "Commands.c"
} else {
#line 2348 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _ ("Restore the photos back to the Shotwell library");
-#line 20930 "Commands.c"
+ _tmp1_ = _ ("Restore the photos back to the Shotwell library");
+#line 21359 "Commands.c"
}
#line 2346 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (TrashUntrashPhotosCommand*) page_command_construct (object_type, _tmp0_, _tmp2_);
+ self = (TrashUntrashPhotosCommand*) page_command_construct (object_type, _tmp0_, _tmp1_);
#line 2350 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = sources;
-#line 2350 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
+ _tmp2_ = _g_object_ref0 (sources);
#line 2350 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->sources);
#line 2350 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->sources = _tmp5_;
-#line 2351 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = to_trash;
+ self->priv->sources = _tmp2_;
#line 2351 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->to_trash = _tmp6_;
+ self->priv->to_trash = to_trash;
#line 2353 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = library_photo_global;
+ _tmp3_ = library_photo_global;
#line 2353 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed, self, 0);
#line 2354 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = video_global;
+ _tmp4_ = video_global;
#line 2354 "/home/jens/Source/shotwell/src/Commands.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed, self, 0);
#line 2345 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 20956 "Commands.c"
+#line 21381 "Commands.c"
}
-TrashUntrashPhotosCommand* trash_untrash_photos_command_new (GeeCollection* sources, gboolean to_trash) {
+TrashUntrashPhotosCommand*
+trash_untrash_photos_command_new (GeeCollection* sources,
+ gboolean to_trash)
+{
#line 2345 "/home/jens/Source/shotwell/src/Commands.vala"
return trash_untrash_photos_command_construct (TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, sources, to_trash);
-#line 20963 "Commands.c"
+#line 21391 "Commands.c"
}
-static ProgressDialog* trash_untrash_photos_command_get_progress_dialog (TrashUntrashPhotosCommand* self, gboolean to_trash) {
+static ProgressDialog*
+trash_untrash_photos_command_get_progress_dialog (TrashUntrashPhotosCommand* self,
+ gboolean to_trash)
+{
ProgressDialog* result = NULL;
GeeCollection* _tmp0_;
gint _tmp1_;
gint _tmp2_;
const gchar* _tmp3_ = NULL;
- gboolean _tmp4_;
ProgressDialog* dialog = NULL;
+ AppWindow* _tmp4_;
AppWindow* _tmp5_;
- AppWindow* _tmp6_;
+ ProgressDialog* _tmp6_;
ProgressDialog* _tmp7_;
ProgressDialog* _tmp8_;
- ProgressDialog* _tmp9_;
- GeeCollection* _tmp10_;
+ GeeCollection* _tmp9_;
+ gint _tmp10_;
gint _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
#line 2362 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (IS_TRASH_UNTRASH_PHOTOS_COMMAND (self), NULL);
#line 2363 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -20994,64 +21423,67 @@ static ProgressDialog* trash_untrash_photos_command_get_progress_dialog (TrashUn
result = NULL;
#line 2364 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 20998 "Commands.c"
+#line 21427 "Commands.c"
}
#line 2367 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = to_trash;
-#line 2367 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp4_) {
+ if (to_trash) {
#line 2367 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp3_ = _ ("Moving Photos to Trash");
-#line 21006 "Commands.c"
+#line 21433 "Commands.c"
} else {
#line 2367 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp3_ = _ ("Restoring Photos From Trash");
-#line 21010 "Commands.c"
+#line 21437 "Commands.c"
}
#line 2366 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = app_window_get_instance ();
+ _tmp4_ = app_window_get_instance ();
#line 2366 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
+ _tmp5_ = _tmp4_;
#line 2366 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow), _tmp3_, NULL);
+ _tmp6_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_window_get_type (), GtkWindow), _tmp3_, NULL);
#line 2366 "/home/jens/Source/shotwell/src/Commands.vala"
- g_object_ref_sink (_tmp7_);
+ g_object_ref_sink (_tmp6_);
#line 2366 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_;
+ _tmp7_ = _tmp6_;
#line 2366 "/home/jens/Source/shotwell/src/Commands.vala"
- _g_object_unref0 (_tmp6_);
+ _g_object_unref0 (_tmp5_);
#line 2366 "/home/jens/Source/shotwell/src/Commands.vala"
- dialog = _tmp8_;
+ dialog = _tmp7_;
#line 2368 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = dialog;
+ _tmp8_ = dialog;
#line 2368 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = self->priv->sources;
+ _tmp9_ = self->priv->sources;
#line 2368 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = gee_collection_get_size (_tmp10_);
+ _tmp10_ = gee_collection_get_size (_tmp9_);
#line 2368 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = _tmp11_;
-#line 2368 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = CLAMP (_tmp12_ / 5, 2, 10);
+ _tmp11_ = _tmp10_;
#line 2368 "/home/jens/Source/shotwell/src/Commands.vala"
- progress_dialog_update_display_every (_tmp9_, _tmp13_);
+ progress_dialog_update_display_every (_tmp8_, CLAMP (_tmp11_ / 5, 2, 10));
#line 2370 "/home/jens/Source/shotwell/src/Commands.vala"
result = dialog;
#line 2370 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 21042 "Commands.c"
+#line 21467 "Commands.c"
}
-static gboolean _progress_dialog_monitor_progress_monitor (guint64 current, guint64 total, gboolean do_event_loop, gpointer self) {
+static gboolean
+_progress_dialog_monitor_progress_monitor (guint64 current,
+ guint64 total,
+ gboolean do_event_loop,
+ gpointer self)
+{
gboolean result;
result = progress_dialog_monitor ((ProgressDialog*) self, current, total, do_event_loop);
#line 2378 "/home/jens/Source/shotwell/src/Commands.vala"
return result;
-#line 21051 "Commands.c"
+#line 21481 "Commands.c"
}
-static void trash_untrash_photos_command_real_execute (Command* base) {
+static void
+trash_untrash_photos_command_real_execute (Command* base)
+{
TrashUntrashPhotosCommand * self;
ProgressDialog* dialog = NULL;
gboolean _tmp0_;
@@ -21080,7 +21512,7 @@ static void trash_untrash_photos_command_real_execute (Command* base) {
_tmp2_ = dialog;
#line 2377 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp2_ != NULL) {
-#line 21084 "Commands.c"
+#line 21516 "Commands.c"
ProgressDialog* _tmp3_;
#line 2378 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp3_ = dialog;
@@ -21098,13 +21530,13 @@ static void trash_untrash_photos_command_real_execute (Command* base) {
monitor_target = g_object_ref (_tmp3_);
#line 2378 "/home/jens/Source/shotwell/src/Commands.vala"
monitor_target_destroy_notify = g_object_unref;
-#line 21102 "Commands.c"
+#line 21534 "Commands.c"
}
#line 2380 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp4_ = self->priv->to_trash;
#line 2380 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp4_) {
-#line 21108 "Commands.c"
+#line 21540 "Commands.c"
ProgressMonitor _tmp5_;
void* _tmp5__target;
#line 2381 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -21113,7 +21545,7 @@ static void trash_untrash_photos_command_real_execute (Command* base) {
_tmp5__target = monitor_target;
#line 2381 "/home/jens/Source/shotwell/src/Commands.vala"
trash_untrash_photos_command_trash (self, _tmp5_, _tmp5__target);
-#line 21117 "Commands.c"
+#line 21549 "Commands.c"
} else {
ProgressMonitor _tmp6_;
void* _tmp6__target;
@@ -21123,19 +21555,19 @@ static void trash_untrash_photos_command_real_execute (Command* base) {
_tmp6__target = monitor_target;
#line 2383 "/home/jens/Source/shotwell/src/Commands.vala"
trash_untrash_photos_command_untrash (self, _tmp6_, _tmp6__target);
-#line 21127 "Commands.c"
+#line 21559 "Commands.c"
}
#line 2385 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp7_ = dialog;
#line 2385 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp7_ != NULL) {
-#line 21133 "Commands.c"
+#line 21565 "Commands.c"
ProgressDialog* _tmp8_;
#line 2386 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp8_ = dialog;
#line 2386 "/home/jens/Source/shotwell/src/Commands.vala"
progress_dialog_close (_tmp8_);
-#line 21139 "Commands.c"
+#line 21571 "Commands.c"
}
#line 2373 "/home/jens/Source/shotwell/src/Commands.vala"
(monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL);
@@ -21147,11 +21579,13 @@ static void trash_untrash_photos_command_real_execute (Command* base) {
monitor_target_destroy_notify = NULL;
#line 2373 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (dialog);
-#line 21151 "Commands.c"
+#line 21583 "Commands.c"
}
-static void trash_untrash_photos_command_real_undo (Command* base) {
+static void
+trash_untrash_photos_command_real_undo (Command* base)
+{
TrashUntrashPhotosCommand * self;
ProgressDialog* dialog = NULL;
gboolean _tmp0_;
@@ -21180,7 +21614,7 @@ static void trash_untrash_photos_command_real_undo (Command* base) {
_tmp2_ = dialog;
#line 2393 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp2_ != NULL) {
-#line 21184 "Commands.c"
+#line 21618 "Commands.c"
ProgressDialog* _tmp3_;
#line 2394 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp3_ = dialog;
@@ -21198,13 +21632,13 @@ static void trash_untrash_photos_command_real_undo (Command* base) {
monitor_target = g_object_ref (_tmp3_);
#line 2394 "/home/jens/Source/shotwell/src/Commands.vala"
monitor_target_destroy_notify = g_object_unref;
-#line 21202 "Commands.c"
+#line 21636 "Commands.c"
}
#line 2396 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp4_ = self->priv->to_trash;
#line 2396 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp4_) {
-#line 21208 "Commands.c"
+#line 21642 "Commands.c"
ProgressMonitor _tmp5_;
void* _tmp5__target;
#line 2397 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -21213,7 +21647,7 @@ static void trash_untrash_photos_command_real_undo (Command* base) {
_tmp5__target = monitor_target;
#line 2397 "/home/jens/Source/shotwell/src/Commands.vala"
trash_untrash_photos_command_untrash (self, _tmp5_, _tmp5__target);
-#line 21217 "Commands.c"
+#line 21651 "Commands.c"
} else {
ProgressMonitor _tmp6_;
void* _tmp6__target;
@@ -21223,19 +21657,19 @@ static void trash_untrash_photos_command_real_undo (Command* base) {
_tmp6__target = monitor_target;
#line 2399 "/home/jens/Source/shotwell/src/Commands.vala"
trash_untrash_photos_command_trash (self, _tmp6_, _tmp6__target);
-#line 21227 "Commands.c"
+#line 21661 "Commands.c"
}
#line 2401 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp7_ = dialog;
#line 2401 "/home/jens/Source/shotwell/src/Commands.vala"
if (_tmp7_ != NULL) {
-#line 21233 "Commands.c"
+#line 21667 "Commands.c"
ProgressDialog* _tmp8_;
#line 2402 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp8_ = dialog;
#line 2402 "/home/jens/Source/shotwell/src/Commands.vala"
progress_dialog_close (_tmp8_);
-#line 21239 "Commands.c"
+#line 21673 "Commands.c"
}
#line 2389 "/home/jens/Source/shotwell/src/Commands.vala"
(monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL);
@@ -21247,11 +21681,15 @@ static void trash_untrash_photos_command_real_undo (Command* base) {
monitor_target_destroy_notify = NULL;
#line 2389 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (dialog);
-#line 21251 "Commands.c"
+#line 21685 "Commands.c"
}
-static void trash_untrash_photos_command_trash (TrashUntrashPhotosCommand* self, ProgressMonitor monitor, void* monitor_target) {
+static void
+trash_untrash_photos_command_trash (TrashUntrashPhotosCommand* self,
+ ProgressMonitor monitor,
+ void* monitor_target)
+{
gint ctr = 0;
gint count = 0;
GeeCollection* _tmp0_;
@@ -21263,12 +21701,12 @@ static void trash_untrash_photos_command_trash (TrashUntrashPhotosCommand* self,
VideoSourceCollection* _tmp6_;
TransactionController* _tmp7_;
TransactionController* _tmp8_;
- LibraryPhotoSourceCollection* _tmp21_;
+ LibraryPhotoSourceCollection* _tmp18_;
+ TransactionController* _tmp19_;
+ TransactionController* _tmp20_;
+ VideoSourceCollection* _tmp21_;
TransactionController* _tmp22_;
TransactionController* _tmp23_;
- VideoSourceCollection* _tmp24_;
- TransactionController* _tmp25_;
- TransactionController* _tmp26_;
#line 2405 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_TRASH_UNTRASH_PHOTOS_COMMAND (self));
#line 2406 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -21297,7 +21735,7 @@ static void trash_untrash_photos_command_trash (TrashUntrashPhotosCommand* self,
_tmp8_ = _tmp7_;
#line 2410 "/home/jens/Source/shotwell/src/Commands.vala"
transaction_controller_begin (_tmp8_);
-#line 21301 "Commands.c"
+#line 21739 "Commands.c"
{
GeeIterator* _source_it = NULL;
GeeCollection* _tmp9_;
@@ -21310,92 +21748,81 @@ static void trash_untrash_photos_command_trash (TrashUntrashPhotosCommand* self,
_source_it = _tmp10_;
#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 21314 "Commands.c"
+#line 21752 "Commands.c"
GeeIterator* _tmp11_;
- gboolean _tmp12_;
MediaSource* source = NULL;
- GeeIterator* _tmp13_;
- gpointer _tmp14_;
- MediaSource* _tmp15_;
- ProgressMonitor _tmp16_;
- void* _tmp16__target;
+ GeeIterator* _tmp12_;
+ gpointer _tmp13_;
+ MediaSource* _tmp14_;
#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp11_ = _source_it;
#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = gee_iterator_next (_tmp11_);
-#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp12_) {
+ if (!gee_iterator_next (_tmp11_)) {
#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 21331 "Commands.c"
+#line 21764 "Commands.c"
}
#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _source_it;
+ _tmp12_ = _source_it;
#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = gee_iterator_get (_tmp13_);
+ _tmp13_ = gee_iterator_get (_tmp12_);
#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (MediaSource*) _tmp14_;
+ source = (MediaSource*) _tmp13_;
#line 2413 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = source;
+ _tmp14_ = source;
#line 2413 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_trash (_tmp15_);
-#line 2414 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = monitor;
+ media_source_trash (_tmp14_);
#line 2414 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16__target = monitor_target;
-#line 2414 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp16_ != NULL) {
-#line 21349 "Commands.c"
- ProgressMonitor _tmp17_;
- void* _tmp17__target;
- gint _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
-#line 2415 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = monitor;
-#line 2415 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17__target = monitor_target;
+ if (monitor != NULL) {
+#line 21778 "Commands.c"
+ gint _tmp15_;
+ gint _tmp16_;
+ gint _tmp17_;
#line 2415 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = ctr;
+ _tmp15_ = ctr;
#line 2415 "/home/jens/Source/shotwell/src/Commands.vala"
- ctr = _tmp18_ + 1;
+ ctr = _tmp15_ + 1;
#line 2415 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = ctr;
+ _tmp16_ = ctr;
#line 2415 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = count;
+ _tmp17_ = count;
#line 2415 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ ((guint64) _tmp19_, (guint64) _tmp20_, TRUE, _tmp17__target);
-#line 21369 "Commands.c"
+ monitor ((guint64) _tmp16_, (guint64) _tmp17_, TRUE, monitor_target);
+#line 21792 "Commands.c"
}
#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 21373 "Commands.c"
+#line 21796 "Commands.c"
}
#line 2412 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 21377 "Commands.c"
+#line 21800 "Commands.c"
}
#line 2418 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = library_photo_global;
+ _tmp18_ = library_photo_global;
#line 2418 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
+ _tmp19_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 2418 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _tmp22_;
+ _tmp20_ = _tmp19_;
#line 2418 "/home/jens/Source/shotwell/src/Commands.vala"
- transaction_controller_commit (_tmp23_);
+ transaction_controller_commit (_tmp20_);
#line 2419 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = video_global;
+ _tmp21_ = video_global;
#line 2419 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
+ _tmp22_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 2419 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = _tmp25_;
+ _tmp23_ = _tmp22_;
#line 2419 "/home/jens/Source/shotwell/src/Commands.vala"
- transaction_controller_commit (_tmp26_);
-#line 21395 "Commands.c"
+ transaction_controller_commit (_tmp23_);
+#line 21818 "Commands.c"
}
-static void trash_untrash_photos_command_untrash (TrashUntrashPhotosCommand* self, ProgressMonitor monitor, void* monitor_target) {
+static void
+trash_untrash_photos_command_untrash (TrashUntrashPhotosCommand* self,
+ ProgressMonitor monitor,
+ void* monitor_target)
+{
gint ctr = 0;
gint count = 0;
GeeCollection* _tmp0_;
@@ -21407,12 +21834,12 @@ static void trash_untrash_photos_command_untrash (TrashUntrashPhotosCommand* sel
VideoSourceCollection* _tmp6_;
TransactionController* _tmp7_;
TransactionController* _tmp8_;
- LibraryPhotoSourceCollection* _tmp21_;
+ LibraryPhotoSourceCollection* _tmp18_;
+ TransactionController* _tmp19_;
+ TransactionController* _tmp20_;
+ VideoSourceCollection* _tmp21_;
TransactionController* _tmp22_;
TransactionController* _tmp23_;
- VideoSourceCollection* _tmp24_;
- TransactionController* _tmp25_;
- TransactionController* _tmp26_;
#line 2422 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_TRASH_UNTRASH_PHOTOS_COMMAND (self));
#line 2423 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -21441,7 +21868,7 @@ static void trash_untrash_photos_command_untrash (TrashUntrashPhotosCommand* sel
_tmp8_ = _tmp7_;
#line 2427 "/home/jens/Source/shotwell/src/Commands.vala"
transaction_controller_begin (_tmp8_);
-#line 21445 "Commands.c"
+#line 21872 "Commands.c"
{
GeeIterator* _source_it = NULL;
GeeCollection* _tmp9_;
@@ -21454,97 +21881,84 @@ static void trash_untrash_photos_command_untrash (TrashUntrashPhotosCommand* sel
_source_it = _tmp10_;
#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 21458 "Commands.c"
+#line 21885 "Commands.c"
GeeIterator* _tmp11_;
- gboolean _tmp12_;
MediaSource* source = NULL;
- GeeIterator* _tmp13_;
- gpointer _tmp14_;
- MediaSource* _tmp15_;
- ProgressMonitor _tmp16_;
- void* _tmp16__target;
+ GeeIterator* _tmp12_;
+ gpointer _tmp13_;
+ MediaSource* _tmp14_;
#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp11_ = _source_it;
#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = gee_iterator_next (_tmp11_);
-#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp12_) {
+ if (!gee_iterator_next (_tmp11_)) {
#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 21475 "Commands.c"
+#line 21897 "Commands.c"
}
#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = _source_it;
+ _tmp12_ = _source_it;
#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = gee_iterator_get (_tmp13_);
+ _tmp13_ = gee_iterator_get (_tmp12_);
#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (MediaSource*) _tmp14_;
+ source = (MediaSource*) _tmp13_;
#line 2430 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = source;
+ _tmp14_ = source;
#line 2430 "/home/jens/Source/shotwell/src/Commands.vala"
- media_source_untrash (_tmp15_);
-#line 2431 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = monitor;
+ media_source_untrash (_tmp14_);
#line 2431 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16__target = monitor_target;
-#line 2431 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp16_ != NULL) {
-#line 21493 "Commands.c"
- ProgressMonitor _tmp17_;
- void* _tmp17__target;
- gint _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
-#line 2432 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = monitor;
-#line 2432 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17__target = monitor_target;
+ if (monitor != NULL) {
+#line 21911 "Commands.c"
+ gint _tmp15_;
+ gint _tmp16_;
+ gint _tmp17_;
#line 2432 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp18_ = ctr;
+ _tmp15_ = ctr;
#line 2432 "/home/jens/Source/shotwell/src/Commands.vala"
- ctr = _tmp18_ + 1;
+ ctr = _tmp15_ + 1;
#line 2432 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp19_ = ctr;
+ _tmp16_ = ctr;
#line 2432 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp20_ = count;
+ _tmp17_ = count;
#line 2432 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ ((guint64) _tmp19_, (guint64) _tmp20_, TRUE, _tmp17__target);
-#line 21513 "Commands.c"
+ monitor ((guint64) _tmp16_, (guint64) _tmp17_, TRUE, monitor_target);
+#line 21925 "Commands.c"
}
#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 21517 "Commands.c"
+#line 21929 "Commands.c"
}
#line 2429 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 21521 "Commands.c"
+#line 21933 "Commands.c"
}
#line 2435 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp21_ = library_photo_global;
+ _tmp18_ = library_photo_global;
#line 2435 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp22_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
+ _tmp19_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 2435 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp23_ = _tmp22_;
+ _tmp20_ = _tmp19_;
#line 2435 "/home/jens/Source/shotwell/src/Commands.vala"
- transaction_controller_commit (_tmp23_);
+ transaction_controller_commit (_tmp20_);
#line 2436 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp24_ = video_global;
+ _tmp21_ = video_global;
#line 2436 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp25_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
+ _tmp22_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 2436 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp26_ = _tmp25_;
+ _tmp23_ = _tmp22_;
#line 2436 "/home/jens/Source/shotwell/src/Commands.vala"
- transaction_controller_commit (_tmp26_);
-#line 21539 "Commands.c"
+ transaction_controller_commit (_tmp23_);
+#line 21951 "Commands.c"
}
-static void trash_untrash_photos_command_on_photo_destroyed (TrashUntrashPhotosCommand* self, DataSource* source) {
+static void
+trash_untrash_photos_command_on_photo_destroyed (TrashUntrashPhotosCommand* self,
+ DataSource* source)
+{
GeeCollection* _tmp0_;
- DataSource* _tmp1_;
- GeeCollection* _tmp2_;
+ GeeCollection* _tmp1_;
+ gint _tmp2_;
gint _tmp3_;
- gint _tmp4_;
#line 2439 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_TRASH_UNTRASH_PHOTOS_COMMAND (self));
#line 2439 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -21552,34 +21966,34 @@ static void trash_untrash_photos_command_on_photo_destroyed (TrashUntrashPhotosC
#line 2442 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp0_ = self->priv->sources;
#line 2442 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = source;
-#line 2442 "/home/jens/Source/shotwell/src/Commands.vala"
- gee_collection_remove (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource));
+ gee_collection_remove (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource));
#line 2446 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = self->priv->sources;
+ _tmp1_ = self->priv->sources;
#line 2446 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_collection_get_size (_tmp2_);
+ _tmp2_ = gee_collection_get_size (_tmp1_);
#line 2446 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _tmp3_;
+ _tmp3_ = _tmp2_;
#line 2446 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp4_ == 0) {
-#line 21567 "Commands.c"
+ if (_tmp3_ == 0) {
+#line 21979 "Commands.c"
+ CommandManager* _tmp4_;
CommandManager* _tmp5_;
- CommandManager* _tmp6_;
#line 2447 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
+ _tmp4_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command));
#line 2447 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = _tmp5_;
+ _tmp5_ = _tmp4_;
#line 2447 "/home/jens/Source/shotwell/src/Commands.vala"
- command_manager_reset (_tmp6_);
+ command_manager_reset (_tmp5_);
#line 2447 "/home/jens/Source/shotwell/src/Commands.vala"
- _command_manager_unref0 (_tmp6_);
-#line 21578 "Commands.c"
+ _command_manager_unref0 (_tmp5_);
+#line 21990 "Commands.c"
}
}
-static void trash_untrash_photos_command_class_init (TrashUntrashPhotosCommandClass * klass) {
+static void
+trash_untrash_photos_command_class_init (TrashUntrashPhotosCommandClass * klass)
+{
#line 2341 "/home/jens/Source/shotwell/src/Commands.vala"
trash_untrash_photos_command_parent_class = g_type_class_peek_parent (klass);
#line 2341 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -21590,18 +22004,22 @@ static void trash_untrash_photos_command_class_init (TrashUntrashPhotosCommandCl
((CommandClass *) klass)->undo = (void (*) (Command *)) trash_untrash_photos_command_real_undo;
#line 2341 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = trash_untrash_photos_command_finalize;
-#line 21594 "Commands.c"
+#line 22008 "Commands.c"
}
-static void trash_untrash_photos_command_instance_init (TrashUntrashPhotosCommand * self) {
+static void
+trash_untrash_photos_command_instance_init (TrashUntrashPhotosCommand * self)
+{
#line 2341 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = TRASH_UNTRASH_PHOTOS_COMMAND_GET_PRIVATE (self);
-#line 21601 "Commands.c"
+#line 22017 "Commands.c"
}
-static void trash_untrash_photos_command_finalize (GObject * obj) {
+static void
+trash_untrash_photos_command_finalize (GObject * obj)
+{
TrashUntrashPhotosCommand * self;
LibraryPhotoSourceCollection* _tmp0_;
guint _tmp1_;
@@ -21625,11 +22043,13 @@ static void trash_untrash_photos_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->sources);
#line 2341 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (trash_untrash_photos_command_parent_class)->finalize (obj);
-#line 21629 "Commands.c"
+#line 22047 "Commands.c"
}
-GType trash_untrash_photos_command_get_type (void) {
+GType
+trash_untrash_photos_command_get_type (void)
+{
static volatile gsize trash_untrash_photos_command_type_id__volatile = 0;
if (g_once_init_enter (&trash_untrash_photos_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (TrashUntrashPhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) trash_untrash_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrashUntrashPhotosCommand), 0, (GInstanceInitFunc) trash_untrash_photos_command_instance_init, NULL };
@@ -21641,324 +22061,303 @@ GType trash_untrash_photos_command_get_type (void) {
}
-FlagUnflagCommand* flag_unflag_command_construct (GType object_type, GeeCollection* sources, gboolean flag) {
+FlagUnflagCommand*
+flag_unflag_command_construct (GType object_type,
+ GeeCollection* sources,
+ gboolean flag)
+{
FlagUnflagCommand * self = NULL;
const gchar* _tmp0_ = NULL;
- gboolean _tmp1_;
- const gchar* _tmp2_ = NULL;
- gboolean _tmp3_;
- GeeCollection* _tmp4_;
- gboolean _tmp5_;
- GeeCollection* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
+ const gchar* _tmp1_ = NULL;
+ gint _tmp2_;
+ gint _tmp3_;
#line 2461 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL);
#line 2463 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = flag;
-#line 2463 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp1_) {
+ if (flag) {
#line 2463 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp0_ = _ ("Flag");
-#line 21664 "Commands.c"
+#line 22081 "Commands.c"
} else {
#line 2463 "/home/jens/Source/shotwell/src/Commands.vala"
_tmp0_ = _ ("Unflag");
-#line 21668 "Commands.c"
+#line 22085 "Commands.c"
}
#line 2464 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = flag;
-#line 2464 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_) {
+ if (flag) {
#line 2464 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = FLAG_UNFLAG_COMMAND_FLAG_SELECTED_STRING;
-#line 21676 "Commands.c"
+ _tmp1_ = FLAG_UNFLAG_COMMAND_FLAG_SELECTED_STRING;
+#line 22091 "Commands.c"
} else {
#line 2464 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = FLAG_UNFLAG_COMMAND_UNFLAG_SELECTED_STRING;
-#line 21680 "Commands.c"
+ _tmp1_ = FLAG_UNFLAG_COMMAND_UNFLAG_SELECTED_STRING;
+#line 22095 "Commands.c"
}
#line 2462 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = sources;
-#line 2462 "/home/jens/Source/shotwell/src/Commands.vala"
- self = (FlagUnflagCommand*) multiple_data_source_at_once_command_construct (object_type, _tmp4_, _tmp0_, _tmp2_);
-#line 2466 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = flag;
+ self = (FlagUnflagCommand*) multiple_data_source_at_once_command_construct (object_type, sources, _tmp0_, _tmp1_);
#line 2466 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->flag = _tmp5_;
+ self->priv->flag = flag;
#line 2468 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = sources;
+ _tmp2_ = gee_collection_get_size (sources);
#line 2468 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = gee_collection_get_size (_tmp6_);
-#line 2468 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = _tmp7_;
+ _tmp3_ = _tmp2_;
#line 2468 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp8_ >= FLAG_UNFLAG_COMMAND_MIN_PROGRESS_BAR_THRESHOLD) {
-#line 21698 "Commands.c"
- const gchar* _tmp9_ = NULL;
- gboolean _tmp10_;
- ProgressDialog* _tmp11_;
- ProgressDialog* _tmp12_;
+ if (_tmp3_ >= FLAG_UNFLAG_COMMAND_MIN_PROGRESS_BAR_THRESHOLD) {
+#line 22107 "Commands.c"
+ const gchar* _tmp4_ = NULL;
+ ProgressDialog* _tmp5_;
+ ProgressDialog* _tmp6_;
#line 2470 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = flag;
+ if (flag) {
#line 2470 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp10_) {
-#line 2470 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = FLAG_UNFLAG_COMMAND_FLAG_PROGRESS;
-#line 21709 "Commands.c"
+ _tmp4_ = FLAG_UNFLAG_COMMAND_FLAG_PROGRESS;
+#line 22115 "Commands.c"
} else {
#line 2470 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = FLAG_UNFLAG_COMMAND_UNFLAG_PROGRESS;
-#line 21713 "Commands.c"
+ _tmp4_ = FLAG_UNFLAG_COMMAND_UNFLAG_PROGRESS;
+#line 22119 "Commands.c"
}
#line 2469 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = progress_dialog_new (NULL, _tmp9_, NULL);
+ _tmp5_ = progress_dialog_new (NULL, _tmp4_, NULL);
#line 2469 "/home/jens/Source/shotwell/src/Commands.vala"
- g_object_ref_sink (_tmp11_);
+ g_object_ref_sink (_tmp5_);
#line 2469 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (self->priv->progress_dialog);
#line 2469 "/home/jens/Source/shotwell/src/Commands.vala"
- self->priv->progress_dialog = _tmp11_;
+ self->priv->progress_dialog = _tmp5_;
#line 2472 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = self->priv->progress_dialog;
+ _tmp6_ = self->priv->progress_dialog;
#line 2472 "/home/jens/Source/shotwell/src/Commands.vala"
- gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget));
-#line 21727 "Commands.c"
+ gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget));
+#line 22133 "Commands.c"
}
#line 2461 "/home/jens/Source/shotwell/src/Commands.vala"
return self;
-#line 21731 "Commands.c"
+#line 22137 "Commands.c"
}
-FlagUnflagCommand* flag_unflag_command_new (GeeCollection* sources, gboolean flag) {
+FlagUnflagCommand*
+flag_unflag_command_new (GeeCollection* sources,
+ gboolean flag)
+{
#line 2461 "/home/jens/Source/shotwell/src/Commands.vala"
return flag_unflag_command_construct (TYPE_FLAG_UNFLAG_COMMAND, sources, flag);
-#line 21738 "Commands.c"
+#line 22147 "Commands.c"
}
-static void flag_unflag_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base, GeeCollection* sources) {
+static void
+flag_unflag_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base,
+ GeeCollection* sources)
+{
FlagUnflagCommand * self;
gint num_processed = 0;
- ProgressDialog* _tmp16_;
+ ProgressDialog* _tmp13_;
#line 2476 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand);
#line 2476 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (GEE_IS_COLLECTION (sources));
#line 2477 "/home/jens/Source/shotwell/src/Commands.vala"
num_processed = 0;
-#line 21752 "Commands.c"
+#line 22164 "Commands.c"
{
GeeIterator* _source_it = NULL;
- GeeCollection* _tmp0_;
- GeeIterator* _tmp1_;
+ GeeIterator* _tmp0_;
#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = sources;
+ _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp1_;
+ _source_it = _tmp0_;
#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 21765 "Commands.c"
- GeeIterator* _tmp2_;
- gboolean _tmp3_;
+#line 22174 "Commands.c"
+ GeeIterator* _tmp1_;
DataSource* source = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- DataSource* _tmp6_;
- gboolean _tmp7_;
- gint _tmp8_;
- ProgressDialog* _tmp9_;
-#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_it;
+ GeeIterator* _tmp2_;
+ gpointer _tmp3_;
+ DataSource* _tmp4_;
+ gboolean _tmp5_;
+ gint _tmp6_;
+ ProgressDialog* _tmp7_;
#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
+ _tmp1_ = _source_it;
#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp1_)) {
#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 21783 "Commands.c"
+#line 22189 "Commands.c"
}
#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _source_it;
+ _tmp2_ = _source_it;
#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp3_ = gee_iterator_get (_tmp2_);
#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp5_;
+ source = (DataSource*) _tmp3_;
#line 2480 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = source;
+ _tmp4_ = source;
#line 2480 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->flag;
+ _tmp5_ = self->priv->flag;
#line 2480 "/home/jens/Source/shotwell/src/Commands.vala"
- flag_unflag_command_flag_unflag (self, _tmp6_, _tmp7_);
+ flag_unflag_command_flag_unflag (self, _tmp4_, _tmp5_);
#line 2482 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp8_ = num_processed;
+ _tmp6_ = num_processed;
#line 2482 "/home/jens/Source/shotwell/src/Commands.vala"
- num_processed = _tmp8_ + 1;
+ num_processed = _tmp6_ + 1;
#line 2484 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp9_ = self->priv->progress_dialog;
+ _tmp7_ = self->priv->progress_dialog;
#line 2484 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp9_ != NULL) {
-#line 21805 "Commands.c"
- ProgressDialog* _tmp10_;
+ if (_tmp7_ != NULL) {
+#line 22211 "Commands.c"
+ ProgressDialog* _tmp8_;
+ gint _tmp9_;
+ gint _tmp10_;
gint _tmp11_;
- GeeCollection* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- ProgressDialog* _tmp15_;
-#line 2485 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp10_ = self->priv->progress_dialog;
+ ProgressDialog* _tmp12_;
#line 2485 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp11_ = num_processed;
+ _tmp8_ = self->priv->progress_dialog;
#line 2485 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp12_ = sources;
+ _tmp9_ = num_processed;
#line 2485 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp13_ = gee_collection_get_size (_tmp12_);
+ _tmp10_ = gee_collection_get_size (sources);
#line 2485 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp14_ = _tmp13_;
+ _tmp11_ = _tmp10_;
#line 2485 "/home/jens/Source/shotwell/src/Commands.vala"
- progress_dialog_set_fraction (_tmp10_, _tmp11_, _tmp14_);
+ progress_dialog_set_fraction (_tmp8_, _tmp9_, _tmp11_);
#line 2486 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp15_ = self->priv->progress_dialog;
+ _tmp12_ = self->priv->progress_dialog;
#line 2486 "/home/jens/Source/shotwell/src/Commands.vala"
- gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_widget_get_type (), GtkWidget));
+ gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget));
#line 2487 "/home/jens/Source/shotwell/src/Commands.vala"
spin_event_loop ();
-#line 21830 "Commands.c"
+#line 22233 "Commands.c"
}
#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 21834 "Commands.c"
+#line 22237 "Commands.c"
}
#line 2479 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 21838 "Commands.c"
+#line 22241 "Commands.c"
}
#line 2491 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp16_ = self->priv->progress_dialog;
+ _tmp13_ = self->priv->progress_dialog;
#line 2491 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp16_ != NULL) {
-#line 21844 "Commands.c"
- ProgressDialog* _tmp17_;
+ if (_tmp13_ != NULL) {
+#line 22247 "Commands.c"
+ ProgressDialog* _tmp14_;
#line 2492 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp17_ = self->priv->progress_dialog;
+ _tmp14_ = self->priv->progress_dialog;
#line 2492 "/home/jens/Source/shotwell/src/Commands.vala"
- gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget));
-#line 21850 "Commands.c"
+ gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget));
+#line 22253 "Commands.c"
}
}
-static void flag_unflag_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base, GeeCollection* sources) {
+static void
+flag_unflag_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base,
+ GeeCollection* sources)
+{
FlagUnflagCommand * self;
#line 2495 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand);
#line 2495 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 21861 "Commands.c"
+#line 22267 "Commands.c"
{
GeeIterator* _source_it = NULL;
- GeeCollection* _tmp0_;
- GeeIterator* _tmp1_;
+ GeeIterator* _tmp0_;
#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = sources;
+ _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable));
#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- _source_it = _tmp1_;
+ _source_it = _tmp0_;
#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
while (TRUE) {
-#line 21874 "Commands.c"
- GeeIterator* _tmp2_;
- gboolean _tmp3_;
+#line 22277 "Commands.c"
+ GeeIterator* _tmp1_;
DataSource* source = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- DataSource* _tmp6_;
- gboolean _tmp7_;
-#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = _source_it;
+ GeeIterator* _tmp2_;
+ gpointer _tmp3_;
+ DataSource* _tmp4_;
+ gboolean _tmp5_;
#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
+ _tmp1_ = _source_it;
#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp1_)) {
#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
break;
-#line 21890 "Commands.c"
+#line 22290 "Commands.c"
}
#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = _source_it;
+ _tmp2_ = _source_it;
#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp3_ = gee_iterator_get (_tmp2_);
#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
- source = (DataSource*) _tmp5_;
+ source = (DataSource*) _tmp3_;
#line 2497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp6_ = source;
+ _tmp4_ = source;
#line 2497 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp7_ = self->priv->flag;
+ _tmp5_ = self->priv->flag;
#line 2497 "/home/jens/Source/shotwell/src/Commands.vala"
- flag_unflag_command_flag_unflag (self, _tmp6_, !_tmp7_);
+ flag_unflag_command_flag_unflag (self, _tmp4_, !_tmp5_);
#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (source);
-#line 21906 "Commands.c"
+#line 22306 "Commands.c"
}
#line 2496 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (_source_it);
-#line 21910 "Commands.c"
+#line 22310 "Commands.c"
}
}
-static void flag_unflag_command_flag_unflag (FlagUnflagCommand* self, DataSource* source, gboolean flag) {
+static void
+flag_unflag_command_flag_unflag (FlagUnflagCommand* self,
+ DataSource* source,
+ gboolean flag)
+{
Flaggable* flaggable = NULL;
- DataSource* _tmp0_;
+ Flaggable* _tmp0_;
Flaggable* _tmp1_;
- Flaggable* _tmp2_;
#line 2500 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_FLAG_UNFLAG_COMMAND (self));
#line 2500 "/home/jens/Source/shotwell/src/Commands.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
#line 2501 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp0_ = source;
-#line 2501 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp0_) : NULL);
+ _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_FLAGGABLE) ? ((Flaggable*) source) : NULL);
#line 2501 "/home/jens/Source/shotwell/src/Commands.vala"
- flaggable = _tmp1_;
+ flaggable = _tmp0_;
#line 2502 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp2_ = flaggable;
+ _tmp1_ = flaggable;
#line 2502 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp2_ != NULL) {
-#line 21934 "Commands.c"
- gboolean _tmp3_;
-#line 2503 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp3_ = flag;
+ if (_tmp1_ != NULL) {
#line 2503 "/home/jens/Source/shotwell/src/Commands.vala"
- if (_tmp3_) {
-#line 21940 "Commands.c"
- Flaggable* _tmp4_;
+ if (flag) {
+#line 22337 "Commands.c"
+ Flaggable* _tmp2_;
#line 2504 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp4_ = flaggable;
+ _tmp2_ = flaggable;
#line 2504 "/home/jens/Source/shotwell/src/Commands.vala"
- flaggable_mark_flagged (_tmp4_);
-#line 21946 "Commands.c"
+ flaggable_mark_flagged (_tmp2_);
+#line 22343 "Commands.c"
} else {
- Flaggable* _tmp5_;
+ Flaggable* _tmp3_;
#line 2506 "/home/jens/Source/shotwell/src/Commands.vala"
- _tmp5_ = flaggable;
+ _tmp3_ = flaggable;
#line 2506 "/home/jens/Source/shotwell/src/Commands.vala"
- flaggable_mark_unflagged (_tmp5_);
-#line 21953 "Commands.c"
+ flaggable_mark_unflagged (_tmp3_);
+#line 22350 "Commands.c"
}
}
#line 2500 "/home/jens/Source/shotwell/src/Commands.vala"
_g_object_unref0 (flaggable);
-#line 21958 "Commands.c"
+#line 22355 "Commands.c"
}
-static void flag_unflag_command_class_init (FlagUnflagCommandClass * klass) {
+static void
+flag_unflag_command_class_init (FlagUnflagCommandClass * klass)
+{
#line 2451 "/home/jens/Source/shotwell/src/Commands.vala"
flag_unflag_command_parent_class = g_type_class_peek_parent (klass);
#line 2451 "/home/jens/Source/shotwell/src/Commands.vala"
@@ -21969,20 +22368,24 @@ static void flag_unflag_command_class_init (FlagUnflagCommandClass * klass) {
((MultipleDataSourceAtOnceCommandClass *) klass)->undo_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) flag_unflag_command_real_undo_on_all;
#line 2451 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (klass)->finalize = flag_unflag_command_finalize;
-#line 21973 "Commands.c"
+#line 22372 "Commands.c"
}
-static void flag_unflag_command_instance_init (FlagUnflagCommand * self) {
+static void
+flag_unflag_command_instance_init (FlagUnflagCommand * self)
+{
#line 2451 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv = FLAG_UNFLAG_COMMAND_GET_PRIVATE (self);
#line 2459 "/home/jens/Source/shotwell/src/Commands.vala"
self->priv->progress_dialog = NULL;
-#line 21982 "Commands.c"
+#line 22383 "Commands.c"
}
-static void flag_unflag_command_finalize (GObject * obj) {
+static void
+flag_unflag_command_finalize (GObject * obj)
+{
FlagUnflagCommand * self;
#line 2451 "/home/jens/Source/shotwell/src/Commands.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand);
@@ -21990,11 +22393,13 @@ static void flag_unflag_command_finalize (GObject * obj) {
_g_object_unref0 (self->priv->progress_dialog);
#line 2451 "/home/jens/Source/shotwell/src/Commands.vala"
G_OBJECT_CLASS (flag_unflag_command_parent_class)->finalize (obj);
-#line 21994 "Commands.c"
+#line 22397 "Commands.c"
}
-GType flag_unflag_command_get_type (void) {
+GType
+flag_unflag_command_get_type (void)
+{
static volatile gsize flag_unflag_command_type_id__volatile = 0;
if (g_once_init_enter (&flag_unflag_command_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (FlagUnflagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) flag_unflag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FlagUnflagCommand), 0, (GInstanceInitFunc) flag_unflag_command_instance_init, NULL };