summaryrefslogtreecommitdiff
path: root/src/DesktopIntegration.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/DesktopIntegration.c
parent49120f48474fc8fdc2448c75d961bc238213cfac (diff)
New upstream version 0.28.3upstream/0.28.3
Diffstat (limited to 'src/DesktopIntegration.c')
-rw-r--r--src/DesktopIntegration.c2154
1 files changed, 1110 insertions, 1044 deletions
diff --git a/src/DesktopIntegration.c b/src/DesktopIntegration.c
index 7d24773..5fb90ef 100644
--- a/src/DesktopIntegration.c
+++ b/src/DesktopIntegration.c
@@ -1,4 +1,4 @@
-/* DesktopIntegration.c generated by valac 0.36.6, the Vala compiler
+/* DesktopIntegration.c generated by valac 0.40.4, the Vala compiler
* generated from DesktopIntegration.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -7,6 +7,7 @@
* (version 2.1 or later). See the COPYING file in this distribution.
*/
+
#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
@@ -321,32 +322,55 @@ static gpointer desktop_integration_background_slideshow_xml_builder_parent_clas
#define DESKTOP_INTEGRATION_DESKTOP_SLIDESHOW_XML_FILENAME "wallpaper.xml"
gpointer exporter_ui_ref (gpointer instance);
void exporter_ui_unref (gpointer instance);
-GParamSpec* param_spec_exporter_ui (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_exporter_ui (GValue* value, gpointer v_object);
-void value_take_exporter_ui (GValue* value, gpointer v_object);
+GParamSpec* param_spec_exporter_ui (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_exporter_ui (GValue* value,
+ gpointer v_object);
+void value_take_exporter_ui (GValue* value,
+ gpointer v_object);
gpointer value_get_exporter_ui (const GValue* value);
GType exporter_ui_get_type (void) G_GNUC_CONST;
void desktop_integration_init (void);
void desktop_integration_terminate (void);
-GAppInfo* desktop_integration_get_default_app_for_mime_types (gchar** mime_types, int mime_types_length1, GeeArrayList* preferred_apps);
+GAppInfo* desktop_integration_get_default_app_for_mime_types (gchar** mime_types,
+ int mime_types_length1,
+ GeeArrayList* preferred_apps);
GType sorted_list_get_type (void) G_GNUC_CONST;
-SortedList* desktop_integration_get_apps_for_mime_types (gchar** mime_types, int mime_types_length1);
-gint64 desktop_integration_app_info_comparator (void* a, void* b);
-static gint64 _desktop_integration_app_info_comparator_comparator (void* a, void* b, gpointer self);
-SortedList* sorted_list_new (GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, Comparator cmp, void* cmp_target);
-SortedList* sorted_list_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, Comparator cmp, void* cmp_target);
+SortedList* desktop_integration_get_apps_for_mime_types (gchar** mime_types,
+ int mime_types_length1);
+gint64 desktop_integration_app_info_comparator (void* a,
+ void* b);
+static gint64 _desktop_integration_app_info_comparator_comparator (void* a,
+ void* b,
+ gpointer self);
+SortedList* sorted_list_new (GType g_type,
+ GBoxedCopyFunc g_dup_func,
+ GDestroyNotify g_destroy_func,
+ Comparator cmp,
+ void* cmp_target);
+SortedList* sorted_list_construct (GType object_type,
+ GType g_type,
+ GBoxedCopyFunc g_dup_func,
+ GDestroyNotify g_destroy_func,
+ Comparator cmp,
+ void* cmp_target);
#define RESOURCES_APP_TITLE "Shotwell"
static void _g_object_unref0_ (gpointer var);
-static void _g_list_free__g_object_unref0_ (GList* self);
+static inline void _g_list_free__g_object_unref0_ (GList* self);
gchar* desktop_integration_get_app_open_command (GAppInfo* app_info);
gboolean desktop_integration_is_send_to_installed (void);
-void desktop_integration_files_send_to (GFile** files, int files_length1);
+void desktop_integration_files_send_to (GFile** files,
+ int files_length1);
GType page_window_get_type (void) G_GNUC_CONST;
GType app_window_get_type (void) G_GNUC_CONST;
AppWindow* app_window_get_instance (void);
void page_window_set_busy_cursor (PageWindow* self);
void page_window_set_normal_cursor (PageWindow* self);
-void app_window_error_message (const gchar* message, GtkWindow* parent);
+void app_window_error_message (const gchar* message,
+ GtkWindow* parent);
GType data_object_get_type (void) G_GNUC_CONST;
GType data_source_get_type (void) G_GNUC_CONST;
GType thumbnail_source_get_type (void) G_GNUC_CONST;
@@ -354,15 +378,22 @@ GType media_source_get_type (void) G_GNUC_CONST;
void desktop_integration_send_to (GeeCollection* media);
GType export_dialog_get_type (void) G_GNUC_CONST;
ExportDialog* export_dialog_new (const gchar* title);
-ExportDialog* export_dialog_construct (GType object_type, const gchar* title);
+ExportDialog* export_dialog_construct (GType object_type,
+ const gchar* title);
gboolean media_source_collection_has_video (GeeCollection* media);
gboolean media_source_collection_has_photo (GeeCollection* media);
GType video_source_get_type (void) G_GNUC_CONST;
GType video_get_type (void) G_GNUC_CONST;
GType exporter_get_type (void) G_GNUC_CONST;
-ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback done, void* done_target, gboolean export_in_place);
-void desktop_integration_on_send_to_export_completed (Exporter* exporter, gboolean is_cancelled);
-static void _desktop_integration_on_send_to_export_completed_exporter_completion_callback (Exporter* exporter, gboolean is_cancelled, gpointer self);
+ExporterUI* video_export_many (GeeCollection* videos,
+ ExporterCompletionCallback done,
+ void* done_target,
+ gboolean export_in_place);
+void desktop_integration_on_send_to_export_completed (Exporter* exporter,
+ gboolean is_cancelled);
+static void _desktop_integration_on_send_to_export_completed_exporter_completion_callback (Exporter* exporter,
+ gboolean is_cancelled,
+ gpointer self);
GType scale_constraint_get_type (void) G_GNUC_CONST;
GType export_format_parameters_get_type (void) G_GNUC_CONST;
GType export_format_mode_get_type (void) G_GNUC_CONST;
@@ -371,65 +402,139 @@ GType jpeg_quality_get_type (void) G_GNUC_CONST;
ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self);
void export_format_parameters_free (ExportFormatParameters* self);
void export_format_parameters_current (ExportFormatParameters* result);
-gboolean export_dialog_execute (ExportDialog* self, gint* scale, ScaleConstraint* constraint, ExportFormatParameters* parameters);
+gboolean export_dialog_execute (ExportDialog* self,
+ gint* scale,
+ ScaleConstraint* constraint,
+ ExportFormatParameters* parameters);
GType scaling_get_type (void) G_GNUC_CONST;
GType dimensions_get_type (void) G_GNUC_CONST;
Dimensions* dimensions_dup (const Dimensions* self);
void dimensions_free (Dimensions* self);
Scaling* scaling_dup (const Scaling* self);
void scaling_free (Scaling* self);
-void scaling_for_constraint (ScaleConstraint constraint, gint scale, gboolean scale_up, Scaling* result);
-Exporter* exporter_new_for_temp_file (GeeCollection* to_export, Scaling* scaling, ExportFormatParameters* export_params);
-Exporter* exporter_construct_for_temp_file (GType object_type, GeeCollection* to_export, Scaling* scaling, ExportFormatParameters* export_params);
+void scaling_for_constraint (ScaleConstraint constraint,
+ gint scale,
+ gboolean scale_up,
+ Scaling* result);
+Exporter* exporter_new_for_temp_file (GeeCollection* to_export,
+ Scaling* scaling,
+ ExportFormatParameters* export_params);
+Exporter* exporter_construct_for_temp_file (GType object_type,
+ GeeCollection* to_export,
+ Scaling* scaling,
+ ExportFormatParameters* export_params);
ExporterUI* exporter_ui_new (Exporter* exporter);
-ExporterUI* exporter_ui_construct (GType object_type, Exporter* exporter);
-void exporter_ui_export (ExporterUI* self, ExporterCompletionCallback completion_callback, void* completion_callback_target);
-GFile** exporter_get_exported_files (Exporter* self, int* result_length1);
+ExporterUI* exporter_ui_construct (GType object_type,
+ Exporter* exporter);
+void exporter_ui_export (ExporterUI* self,
+ ExporterCompletionCallback completion_callback,
+ void* completion_callback_target);
+GFile** exporter_get_exported_files (Exporter* self,
+ int* result_length1);
GType photo_source_get_type (void) G_GNUC_CONST;
GType photo_get_type (void) G_GNUC_CONST;
-void desktop_integration_set_background (Photo* photo, gboolean desktop, gboolean screensaver);
+void desktop_integration_set_background (Photo* photo,
+ gboolean desktop,
+ gboolean screensaver);
PhotoFileFormat photo_get_best_export_file_format (Photo* self);
-GFile* app_dirs_get_data_subdir (const gchar* name, const gchar* subname);
-gchar* photo_file_format_get_default_basename (PhotoFileFormat self, const gchar* name);
+GFile* app_dirs_get_data_subdir (const gchar* name,
+ const gchar* subname);
+gchar* photo_file_format_get_default_basename (PhotoFileFormat self,
+ const gchar* name);
GType configuration_facade_get_type (void) G_GNUC_CONST;
GType config_facade_get_type (void) G_GNUC_CONST;
ConfigFacade* config_facade_get_instance (void);
gchar* configuration_facade_get_desktop_background (ConfigurationFacade* self);
-void photo_export (Photo* self, GFile* dest_file, Scaling* scaling, JpegQuality quality, PhotoFileFormat export_format, gboolean direct_copy_unmodified, gboolean export_metadata, GError** error);
+void photo_export (Photo* self,
+ GFile* dest_file,
+ Scaling* scaling,
+ JpegQuality quality,
+ PhotoFileFormat export_format,
+ gboolean direct_copy_unmodified,
+ gboolean export_metadata,
+ GError** error);
void scaling_for_original (Scaling* result);
-void configuration_facade_set_desktop_background (ConfigurationFacade* self, const gchar* filename);
-void configuration_facade_set_screensaver (ConfigurationFacade* self, const gchar* filename);
+void configuration_facade_set_desktop_background (ConfigurationFacade* self,
+ const gchar* filename);
+void configuration_facade_set_screensaver (ConfigurationFacade* self,
+ const gchar* filename);
gpointer desktop_integration_background_slideshow_xml_builder_ref (gpointer instance);
void desktop_integration_background_slideshow_xml_builder_unref (gpointer instance);
-GParamSpec* desktop_integration_param_spec_background_slideshow_xml_builder (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void desktop_integration_value_set_background_slideshow_xml_builder (GValue* value, gpointer v_object);
-void desktop_integration_value_take_background_slideshow_xml_builder (GValue* value, gpointer v_object);
+GParamSpec* desktop_integration_param_spec_background_slideshow_xml_builder (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void desktop_integration_value_set_background_slideshow_xml_builder (GValue* value,
+ gpointer v_object);
+void desktop_integration_value_take_background_slideshow_xml_builder (GValue* value,
+ gpointer v_object);
gpointer desktop_integration_value_get_background_slideshow_xml_builder (const GValue* value);
GType desktop_integration_background_slideshow_xml_builder_get_type (void) G_GNUC_CONST;
#define DESKTOP_INTEGRATION_BACKGROUND_SLIDESHOW_XML_BUILDER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER, DesktopIntegrationBackgroundSlideshowXMLBuilderPrivate))
-enum {
- DESKTOP_INTEGRATION_BACKGROUND_SLIDESHOW_XML_BUILDER_DUMMY_PROPERTY
-};
-DesktopIntegrationBackgroundSlideshowXMLBuilder* desktop_integration_background_slideshow_xml_builder_new (GFile* destination, gdouble duration, gdouble transition);
-DesktopIntegrationBackgroundSlideshowXMLBuilder* desktop_integration_background_slideshow_xml_builder_construct (GType object_type, GFile* destination, gdouble duration, gdouble transition);
-void desktop_integration_background_slideshow_xml_builder_open (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, GError** error);
-static void desktop_integration_background_slideshow_xml_builder_write_transition (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, GFile* from, GFile* to, GError** error);
-static void desktop_integration_background_slideshow_xml_builder_write_static (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, GFile* file, GError** error);
-void desktop_integration_background_slideshow_xml_builder_add_photo (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, GFile* file, GError** error);
-GFile* desktop_integration_background_slideshow_xml_builder_close (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, GError** error);
+DesktopIntegrationBackgroundSlideshowXMLBuilder* desktop_integration_background_slideshow_xml_builder_new (GFile* destination,
+ gdouble duration,
+ gdouble transition);
+DesktopIntegrationBackgroundSlideshowXMLBuilder* desktop_integration_background_slideshow_xml_builder_construct (GType object_type,
+ GFile* destination,
+ gdouble duration,
+ gdouble transition);
+void desktop_integration_background_slideshow_xml_builder_open (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
+ GError** error);
+static void desktop_integration_background_slideshow_xml_builder_write_transition (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
+ GFile* from,
+ GFile* to,
+ GError** error);
+static void desktop_integration_background_slideshow_xml_builder_write_static (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
+ GFile* file,
+ GError** error);
+void desktop_integration_background_slideshow_xml_builder_add_photo (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
+ GFile* file,
+ GError** error);
+GFile* desktop_integration_background_slideshow_xml_builder_close (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
+ GError** error);
static void desktop_integration_background_slideshow_xml_builder_finalize (DesktopIntegrationBackgroundSlideshowXMLBuilder * obj);
-void desktop_integration_set_background_slideshow (GeeCollection* photos, gdouble duration, gdouble transition, gboolean desktop_background, gboolean screensaver);
-void delete_all_files (GFile* dir, GeeSet* exceptions, ProgressMonitor monitor, void* monitor_target, guint64 file_count, GCancellable* cancellable, GError** error);
-void scaling_to_fill_screen (GtkWindow* window, Scaling* result);
-Exporter* exporter_new (GeeCollection* to_export, GFile* dir, Scaling* scaling, ExportFormatParameters* export_params, gboolean auto_replace_all);
-Exporter* exporter_construct (GType object_type, GeeCollection* to_export, GFile* dir, Scaling* scaling, ExportFormatParameters* export_params, gboolean auto_replace_all);
-void desktop_integration_on_desktop_slideshow_exported (Exporter* exporter, gboolean is_cancelled);
-static void _desktop_integration_on_desktop_slideshow_exported_exporter_completion_callback (Exporter* exporter, gboolean is_cancelled, gpointer self);
-static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
-static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
-
-
-void desktop_integration_init (void) {
+void desktop_integration_set_background_slideshow (GeeCollection* photos,
+ gdouble duration,
+ gdouble transition,
+ gboolean desktop_background,
+ gboolean screensaver);
+void delete_all_files (GFile* dir,
+ GeeSet* exceptions,
+ ProgressMonitor monitor,
+ void* monitor_target,
+ guint64 file_count,
+ GCancellable* cancellable,
+ GError** error);
+void scaling_to_fill_screen (GtkWindow* window,
+ Scaling* result);
+Exporter* exporter_new (GeeCollection* to_export,
+ GFile* dir,
+ Scaling* scaling,
+ ExportFormatParameters* export_params,
+ gboolean auto_replace_all);
+Exporter* exporter_construct (GType object_type,
+ GeeCollection* to_export,
+ GFile* dir,
+ Scaling* scaling,
+ ExportFormatParameters* export_params,
+ gboolean auto_replace_all);
+void desktop_integration_on_desktop_slideshow_exported (Exporter* exporter,
+ gboolean is_cancelled);
+static void _desktop_integration_on_desktop_slideshow_exported_exporter_completion_callback (Exporter* exporter,
+ gboolean is_cancelled,
+ gpointer self);
+static void _vala_array_destroy (gpointer array,
+ gint array_length,
+ GDestroyNotify destroy_func);
+static void _vala_array_free (gpointer array,
+ gint array_length,
+ GDestroyNotify destroy_func);
+
+
+void
+desktop_integration_init (void)
+{
gint _tmp0_;
gchar* _tmp1_;
gchar* _tmp2_;
@@ -441,7 +546,7 @@ void desktop_integration_init (void) {
if (_tmp0_ != 0) {
#line 24 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 445 "DesktopIntegration.c"
+#line 550 "DesktopIntegration.c"
}
#line 26 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_tmp1_ = g_find_program_in_path (DESKTOP_INTEGRATION_SENDTO_EXEC);
@@ -451,11 +556,13 @@ void desktop_integration_init (void) {
desktop_integration_send_to_installed = _tmp2_ != NULL;
#line 26 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_free0 (_tmp2_);
-#line 455 "DesktopIntegration.c"
+#line 560 "DesktopIntegration.c"
}
-void desktop_integration_terminate (void) {
+void
+desktop_integration_terminate (void)
+{
gint _tmp0_;
gint _tmp1_;
#line 30 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
@@ -468,161 +575,152 @@ void desktop_integration_terminate (void) {
if (_tmp1_ == 0) {
#line 31 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 472 "DesktopIntegration.c"
+#line 579 "DesktopIntegration.c"
}
}
-static gpointer _g_object_ref0 (gpointer self) {
+static gpointer
+_g_object_ref0 (gpointer self)
+{
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return self ? g_object_ref (self) : NULL;
-#line 480 "DesktopIntegration.c"
+#line 589 "DesktopIntegration.c"
}
-static gboolean string_contains (const gchar* self, const gchar* needle) {
+static gboolean
+string_contains (const gchar* self,
+ const gchar* needle)
+{
gboolean result = FALSE;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1403 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ gchar* _tmp0_;
+#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, FALSE);
-#line 1403 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_return_val_if_fail (needle != NULL, FALSE);
-#line 1404 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp0_ = needle;
-#line 1404 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
-#line 1404 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- result = _tmp1_ != NULL;
-#line 1404 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp0_ = strstr ((gchar*) self, (gchar*) needle);
+#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ result = _tmp0_ != NULL;
+#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return result;
-#line 500 "DesktopIntegration.c"
+#line 609 "DesktopIntegration.c"
}
-GAppInfo* desktop_integration_get_default_app_for_mime_types (gchar** mime_types, int mime_types_length1, GeeArrayList* preferred_apps) {
+GAppInfo*
+desktop_integration_get_default_app_for_mime_types (gchar** mime_types,
+ int mime_types_length1,
+ GeeArrayList* preferred_apps)
+{
GAppInfo* result = NULL;
SortedList* external_apps = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
- SortedList* _tmp1_;
+ SortedList* _tmp0_;
#line 34 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_return_val_if_fail (GEE_IS_ARRAY_LIST (preferred_apps), NULL);
#line 36 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = mime_types;
-#line 36 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0__length1 = mime_types_length1;
-#line 36 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = desktop_integration_get_apps_for_mime_types (_tmp0_, _tmp0__length1);
+ _tmp0_ = desktop_integration_get_apps_for_mime_types (mime_types, mime_types_length1);
#line 36 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- external_apps = _tmp1_;
-#line 520 "DesktopIntegration.c"
+ external_apps = _tmp0_;
+#line 627 "DesktopIntegration.c"
{
GeeArrayList* _preferred_app_list = NULL;
- GeeArrayList* _tmp2_;
- GeeArrayList* _tmp3_;
+ GeeArrayList* _tmp1_;
gint _preferred_app_size = 0;
- GeeArrayList* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
+ GeeArrayList* _tmp2_;
+ gint _tmp3_;
+ gint _tmp4_;
gint _preferred_app_index = 0;
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = preferred_apps;
-#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
+ _tmp1_ = _g_object_ref0 (preferred_apps);
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _preferred_app_list = _tmp3_;
+ _preferred_app_list = _tmp1_;
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = _preferred_app_list;
+ _tmp2_ = _preferred_app_list;
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = _tmp5_;
+ _tmp4_ = _tmp3_;
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _preferred_app_size = _tmp6_;
+ _preferred_app_size = _tmp4_;
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_preferred_app_index = -1;
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
while (TRUE) {
-#line 548 "DesktopIntegration.c"
+#line 652 "DesktopIntegration.c"
+ gint _tmp5_;
+ gint _tmp6_;
gint _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
gchar* preferred_app = NULL;
- GeeArrayList* _tmp10_;
- gint _tmp11_;
- gpointer _tmp12_;
+ GeeArrayList* _tmp8_;
+ gint _tmp9_;
+ gpointer _tmp10_;
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = _preferred_app_index;
+ _tmp5_ = _preferred_app_index;
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _preferred_app_index = _tmp7_ + 1;
+ _preferred_app_index = _tmp5_ + 1;
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = _preferred_app_index;
+ _tmp6_ = _preferred_app_index;
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = _preferred_app_size;
+ _tmp7_ = _preferred_app_size;
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!(_tmp8_ < _tmp9_)) {
+ if (!(_tmp6_ < _tmp7_)) {
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
break;
-#line 568 "DesktopIntegration.c"
+#line 672 "DesktopIntegration.c"
}
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = _preferred_app_list;
+ _tmp8_ = _preferred_app_list;
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = _preferred_app_index;
+ _tmp9_ = _preferred_app_index;
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp11_);
+ _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_);
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- preferred_app = (gchar*) _tmp12_;
-#line 578 "DesktopIntegration.c"
+ preferred_app = (gchar*) _tmp10_;
+#line 682 "DesktopIntegration.c"
{
GeeIterator* _external_app_it = NULL;
- SortedList* _tmp13_;
- GeeIterator* _tmp14_;
+ SortedList* _tmp11_;
+ GeeIterator* _tmp12_;
#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = external_apps;
+ _tmp11_ = external_apps;
#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.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 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _external_app_it = _tmp14_;
+ _external_app_it = _tmp12_;
#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
while (TRUE) {
-#line 591 "DesktopIntegration.c"
- GeeIterator* _tmp15_;
- gboolean _tmp16_;
+#line 695 "DesktopIntegration.c"
+ GeeIterator* _tmp13_;
GAppInfo* external_app = NULL;
- GeeIterator* _tmp17_;
- gpointer _tmp18_;
- GAppInfo* _tmp19_;
- const gchar* _tmp20_;
- const gchar* _tmp21_;
- gboolean _tmp22_;
+ GeeIterator* _tmp14_;
+ gpointer _tmp15_;
+ GAppInfo* _tmp16_;
+ const gchar* _tmp17_;
+ const gchar* _tmp18_;
#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp15_ = _external_app_it;
+ _tmp13_ = _external_app_it;
#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp16_ = gee_iterator_next (_tmp15_);
-#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!_tmp16_) {
+ if (!gee_iterator_next (_tmp13_)) {
#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
break;
-#line 609 "DesktopIntegration.c"
+#line 709 "DesktopIntegration.c"
}
#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp17_ = _external_app_it;
+ _tmp14_ = _external_app_it;
#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp18_ = gee_iterator_get (_tmp17_);
+ _tmp15_ = gee_iterator_get (_tmp14_);
#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- external_app = (GAppInfo*) _tmp18_;
-#line 40 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp19_ = external_app;
+ external_app = (GAppInfo*) _tmp15_;
#line 40 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp20_ = g_app_info_get_name (_tmp19_);
+ _tmp16_ = external_app;
#line 40 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp21_ = preferred_app;
+ _tmp17_ = g_app_info_get_name (_tmp16_);
#line 40 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp22_ = string_contains (_tmp20_, _tmp21_);
+ _tmp18_ = preferred_app;
#line 40 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp22_) {
+ if (string_contains (_tmp17_, _tmp18_)) {
#line 41 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
result = external_app;
#line 41 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
@@ -635,23 +733,23 @@ GAppInfo* desktop_integration_get_default_app_for_mime_types (gchar** mime_types
_g_object_unref0 (external_apps);
#line 41 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return result;
-#line 639 "DesktopIntegration.c"
+#line 737 "DesktopIntegration.c"
}
#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (external_app);
-#line 643 "DesktopIntegration.c"
+#line 741 "DesktopIntegration.c"
}
#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (_external_app_it);
-#line 647 "DesktopIntegration.c"
+#line 745 "DesktopIntegration.c"
}
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_free0 (preferred_app);
-#line 651 "DesktopIntegration.c"
+#line 749 "DesktopIntegration.c"
}
#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (_preferred_app_list);
-#line 655 "DesktopIntegration.c"
+#line 753 "DesktopIntegration.c"
}
#line 45 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
result = NULL;
@@ -659,292 +757,276 @@ GAppInfo* desktop_integration_get_default_app_for_mime_types (gchar** mime_types
_g_object_unref0 (external_apps);
#line 45 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return result;
-#line 663 "DesktopIntegration.c"
+#line 761 "DesktopIntegration.c"
}
-gint64 desktop_integration_app_info_comparator (void* a, void* b) {
+gint64
+desktop_integration_app_info_comparator (void* a,
+ void* b)
+{
gint64 result = 0LL;
- void* _tmp0_;
- const gchar* _tmp1_;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
gchar* _tmp2_;
- gchar* _tmp3_;
- void* _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gint _tmp8_;
- gint64 _tmp9_;
-#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = a;
-#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = g_app_info_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_app_info_get_type (), GAppInfo));
+ const gchar* _tmp3_;
+ gchar* _tmp4_;
+ gchar* _tmp5_;
+ gint64 _tmp6_;
#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = g_utf8_strdown (_tmp1_, (gssize) -1);
+ _tmp0_ = g_app_info_get_name (G_TYPE_CHECK_INSTANCE_CAST (a, g_app_info_get_type (), GAppInfo));
#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = _tmp2_;
+ _tmp1_ = g_utf8_strdown (_tmp0_, (gssize) -1);
#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = b;
+ _tmp2_ = _tmp1_;
#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = g_app_info_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, g_app_info_get_type (), GAppInfo));
+ _tmp3_ = g_app_info_get_name (G_TYPE_CHECK_INSTANCE_CAST (b, g_app_info_get_type (), GAppInfo));
#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = g_utf8_strdown (_tmp5_, (gssize) -1);
+ _tmp4_ = g_utf8_strdown (_tmp3_, (gssize) -1);
#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = _tmp6_;
+ _tmp5_ = _tmp4_;
#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = g_utf8_collate (_tmp3_, _tmp7_);
+ _tmp6_ = (gint64) g_utf8_collate (_tmp2_, _tmp5_);
#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = (gint64) _tmp8_;
+ _g_free0 (_tmp5_);
#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp7_);
-#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp3_);
+ _g_free0 (_tmp2_);
#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- result = _tmp9_;
+ result = _tmp6_;
#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return result;
-#line 707 "DesktopIntegration.c"
+#line 799 "DesktopIntegration.c"
}
-static gint64 _desktop_integration_app_info_comparator_comparator (void* a, void* b, gpointer self) {
+static gint64
+_desktop_integration_app_info_comparator_comparator (void* a,
+ void* b,
+ gpointer self)
+{
gint64 result;
result = desktop_integration_app_info_comparator (a, b);
#line 54 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return result;
-#line 716 "DesktopIntegration.c"
+#line 812 "DesktopIntegration.c"
}
-static void _g_object_unref0_ (gpointer var) {
+static void
+_g_object_unref0_ (gpointer var)
+{
#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
-#line 723 "DesktopIntegration.c"
+#line 821 "DesktopIntegration.c"
}
-static void _g_list_free__g_object_unref0_ (GList* self) {
+static inline void
+_g_list_free__g_object_unref0_ (GList* self)
+{
#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
-#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_list_free (self);
-#line 732 "DesktopIntegration.c"
+ g_list_free_full (self, (GDestroyNotify) _g_object_unref0_);
+#line 830 "DesktopIntegration.c"
}
-SortedList* desktop_integration_get_apps_for_mime_types (gchar** mime_types, int mime_types_length1) {
+SortedList*
+desktop_integration_get_apps_for_mime_types (gchar** mime_types,
+ int mime_types_length1)
+{
SortedList* result = NULL;
SortedList* external_apps = NULL;
SortedList* _tmp0_;
- gchar** _tmp1_;
- gint _tmp1__length1;
- gchar** _tmp2_;
- gint _tmp2__length1;
#line 54 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_tmp0_ = sorted_list_new (g_app_info_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _desktop_integration_app_info_comparator_comparator, NULL);
#line 54 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
external_apps = _tmp0_;
#line 56 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = mime_types;
-#line 56 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1__length1 = mime_types_length1;
-#line 56 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp1__length1 == 0) {
+ if (mime_types_length1 == 0) {
#line 57 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
result = external_apps;
#line 57 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return result;
-#line 758 "DesktopIntegration.c"
+#line 851 "DesktopIntegration.c"
}
-#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = mime_types;
-#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2__length1 = mime_types_length1;
-#line 764 "DesktopIntegration.c"
{
gchar** mime_type_collection = NULL;
gint mime_type_collection_length1 = 0;
gint _mime_type_collection_size_ = 0;
gint mime_type_it = 0;
#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- mime_type_collection = _tmp2_;
+ mime_type_collection = mime_types;
#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- mime_type_collection_length1 = _tmp2__length1;
+ mime_type_collection_length1 = mime_types_length1;
#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- for (mime_type_it = 0; mime_type_it < _tmp2__length1; mime_type_it = mime_type_it + 1) {
-#line 776 "DesktopIntegration.c"
- gchar* _tmp3_;
+ for (mime_type_it = 0; mime_type_it < mime_types_length1; mime_type_it = mime_type_it + 1) {
+#line 864 "DesktopIntegration.c"
+ gchar* _tmp1_;
gchar* mime_type = NULL;
#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = g_strdup (mime_type_collection[mime_type_it]);
+ _tmp1_ = g_strdup (mime_type_collection[mime_type_it]);
#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- mime_type = _tmp3_;
-#line 783 "DesktopIntegration.c"
+ mime_type = _tmp1_;
+#line 871 "DesktopIntegration.c"
{
gchar* content_type = NULL;
+ const gchar* _tmp2_;
+ gchar* _tmp3_;
const gchar* _tmp4_;
- gchar* _tmp5_;
- const gchar* _tmp6_;
- const gchar* _tmp7_;
- GList* _tmp8_;
+ const gchar* _tmp5_;
+ GList* _tmp6_;
#line 62 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = mime_type;
+ _tmp2_ = mime_type;
#line 62 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = g_content_type_from_mime_type (_tmp4_);
+ _tmp3_ = g_content_type_from_mime_type (_tmp2_);
#line 62 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- content_type = _tmp5_;
+ content_type = _tmp3_;
#line 63 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = content_type;
+ _tmp4_ = content_type;
#line 63 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp6_ == NULL) {
+ if (_tmp4_ == NULL) {
#line 64 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_free0 (content_type);
#line 64 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_free0 (mime_type);
#line 64 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
break;
-#line 807 "DesktopIntegration.c"
+#line 895 "DesktopIntegration.c"
}
#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = content_type;
+ _tmp5_ = content_type;
#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = g_app_info_get_all_for_type (_tmp7_);
-#line 813 "DesktopIntegration.c"
+ _tmp6_ = g_app_info_get_all_for_type (_tmp5_);
+#line 901 "DesktopIntegration.c"
{
GList* external_app_collection = NULL;
GList* external_app_it = NULL;
#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- external_app_collection = _tmp8_;
+ external_app_collection = _tmp6_;
#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
for (external_app_it = external_app_collection; external_app_it != NULL; external_app_it = external_app_it->next) {
-#line 821 "DesktopIntegration.c"
- GAppInfo* _tmp9_;
+#line 909 "DesktopIntegration.c"
+ GAppInfo* _tmp7_;
GAppInfo* external_app = NULL;
#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = _g_object_ref0 ((GAppInfo*) external_app_it->data);
+ _tmp7_ = _g_object_ref0 ((GAppInfo*) external_app_it->data);
#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- external_app = _tmp9_;
-#line 828 "DesktopIntegration.c"
+ external_app = _tmp7_;
+#line 916 "DesktopIntegration.c"
{
gboolean already_contains = FALSE;
- gboolean _tmp20_ = FALSE;
- gboolean _tmp21_;
+ gboolean _tmp17_ = FALSE;
+ gboolean _tmp18_;
#line 68 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
already_contains = FALSE;
-#line 835 "DesktopIntegration.c"
+#line 923 "DesktopIntegration.c"
{
GeeIterator* _app_it = NULL;
- SortedList* _tmp10_;
- GeeIterator* _tmp11_;
+ SortedList* _tmp8_;
+ GeeIterator* _tmp9_;
#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = external_apps;
+ _tmp8_ = external_apps;
#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable));
#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _app_it = _tmp11_;
+ _app_it = _tmp9_;
#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
while (TRUE) {
-#line 848 "DesktopIntegration.c"
- GeeIterator* _tmp12_;
- gboolean _tmp13_;
+#line 936 "DesktopIntegration.c"
+ GeeIterator* _tmp10_;
GAppInfo* app = NULL;
- GeeIterator* _tmp14_;
- gpointer _tmp15_;
- GAppInfo* _tmp16_;
- const gchar* _tmp17_;
- GAppInfo* _tmp18_;
- const gchar* _tmp19_;
-#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = _app_it;
+ GeeIterator* _tmp11_;
+ gpointer _tmp12_;
+ GAppInfo* _tmp13_;
+ const gchar* _tmp14_;
+ GAppInfo* _tmp15_;
+ const gchar* _tmp16_;
#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = gee_iterator_next (_tmp12_);
+ _tmp10_ = _app_it;
#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!_tmp13_) {
+ if (!gee_iterator_next (_tmp10_)) {
#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
break;
-#line 866 "DesktopIntegration.c"
+#line 951 "DesktopIntegration.c"
}
#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp14_ = _app_it;
+ _tmp11_ = _app_it;
#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp15_ = gee_iterator_get (_tmp14_);
+ _tmp12_ = gee_iterator_get (_tmp11_);
#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- app = (GAppInfo*) _tmp15_;
+ app = (GAppInfo*) _tmp12_;
#line 71 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp16_ = app;
+ _tmp13_ = app;
#line 71 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp17_ = g_app_info_get_name (_tmp16_);
+ _tmp14_ = g_app_info_get_name (_tmp13_);
#line 71 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp18_ = external_app;
+ _tmp15_ = external_app;
#line 71 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp19_ = g_app_info_get_name (_tmp18_);
+ _tmp16_ = g_app_info_get_name (_tmp15_);
#line 71 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (g_strcmp0 (_tmp17_, _tmp19_) == 0) {
+ if (g_strcmp0 (_tmp14_, _tmp16_) == 0) {
#line 72 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
already_contains = TRUE;
#line 73 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (app);
#line 73 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
break;
-#line 890 "DesktopIntegration.c"
+#line 975 "DesktopIntegration.c"
}
#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (app);
-#line 894 "DesktopIntegration.c"
+#line 979 "DesktopIntegration.c"
}
#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (_app_it);
-#line 898 "DesktopIntegration.c"
+#line 983 "DesktopIntegration.c"
}
#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp21_ = already_contains;
-#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!_tmp21_) {
-#line 904 "DesktopIntegration.c"
- GAppInfo* _tmp22_;
- const gchar* _tmp23_;
- gboolean _tmp24_;
+ _tmp18_ = already_contains;
#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp22_ = external_app;
+ if (!_tmp18_) {
+#line 989 "DesktopIntegration.c"
+ GAppInfo* _tmp19_;
+ const gchar* _tmp20_;
#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp23_ = g_app_info_get_name (_tmp22_);
+ _tmp19_ = external_app;
#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp24_ = string_contains (_tmp23_, RESOURCES_APP_TITLE);
+ _tmp20_ = g_app_info_get_name (_tmp19_);
#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp20_ = !_tmp24_;
-#line 916 "DesktopIntegration.c"
+ _tmp17_ = !string_contains (_tmp20_, RESOURCES_APP_TITLE);
+#line 998 "DesktopIntegration.c"
} else {
#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp20_ = FALSE;
-#line 920 "DesktopIntegration.c"
+ _tmp17_ = FALSE;
+#line 1002 "DesktopIntegration.c"
}
#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp20_) {
-#line 924 "DesktopIntegration.c"
- SortedList* _tmp25_;
- GAppInfo* _tmp26_;
+ if (_tmp17_) {
+#line 1006 "DesktopIntegration.c"
+ SortedList* _tmp21_;
+ GAppInfo* _tmp22_;
#line 79 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp25_ = external_apps;
+ _tmp21_ = external_apps;
#line 79 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp26_ = external_app;
+ _tmp22_ = external_app;
#line 79 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection), _tmp26_);
-#line 933 "DesktopIntegration.c"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection), _tmp22_);
+#line 1015 "DesktopIntegration.c"
}
#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (external_app);
-#line 937 "DesktopIntegration.c"
+#line 1019 "DesktopIntegration.c"
}
}
#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
__g_list_free__g_object_unref0_0 (external_app_collection);
-#line 942 "DesktopIntegration.c"
+#line 1024 "DesktopIntegration.c"
}
#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_free0 (content_type);
#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_free0 (mime_type);
-#line 948 "DesktopIntegration.c"
+#line 1030 "DesktopIntegration.c"
}
}
}
@@ -952,64 +1034,62 @@ SortedList* desktop_integration_get_apps_for_mime_types (gchar** mime_types, int
result = external_apps;
#line 83 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return result;
-#line 956 "DesktopIntegration.c"
+#line 1038 "DesktopIntegration.c"
}
-gchar* desktop_integration_get_app_open_command (GAppInfo* app_info) {
+gchar*
+desktop_integration_get_app_open_command (GAppInfo* app_info)
+{
gchar* result = NULL;
gchar* str = NULL;
- GAppInfo* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- const gchar* _tmp3_ = NULL;
- const gchar* _tmp4_;
- gchar* _tmp8_;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
+ const gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_;
+ gchar* _tmp6_;
#line 86 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_return_val_if_fail (G_IS_APP_INFO (app_info), NULL);
#line 87 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = app_info;
+ _tmp0_ = g_app_info_get_commandline (app_info);
#line 87 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = g_app_info_get_commandline (_tmp0_);
+ _tmp1_ = g_strdup (_tmp0_);
#line 87 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 87 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- str = _tmp2_;
+ str = _tmp1_;
#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = str;
+ _tmp3_ = str;
#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp4_ != NULL) {
-#line 983 "DesktopIntegration.c"
- const gchar* _tmp5_;
+ if (_tmp3_ != NULL) {
+#line 1064 "DesktopIntegration.c"
+ const gchar* _tmp4_;
#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = str;
+ _tmp4_ = str;
#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = _tmp5_;
-#line 989 "DesktopIntegration.c"
+ _tmp2_ = _tmp4_;
+#line 1070 "DesktopIntegration.c"
} else {
- GAppInfo* _tmp6_;
- const gchar* _tmp7_;
-#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = app_info;
+ const gchar* _tmp5_;
#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = g_app_info_get_executable (_tmp6_);
+ _tmp5_ = g_app_info_get_executable (app_info);
#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = _tmp7_;
-#line 999 "DesktopIntegration.c"
+ _tmp2_ = _tmp5_;
+#line 1077 "DesktopIntegration.c"
}
#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = g_strdup (_tmp3_);
+ _tmp6_ = g_strdup (_tmp2_);
#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- result = _tmp8_;
+ result = _tmp6_;
#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_free0 (str);
#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return result;
-#line 1009 "DesktopIntegration.c"
+#line 1087 "DesktopIntegration.c"
}
-gboolean desktop_integration_is_send_to_installed (void) {
+gboolean
+desktop_integration_is_send_to_installed (void)
+{
gboolean result = FALSE;
gboolean _tmp0_;
#line 93 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
@@ -1018,210 +1098,189 @@ gboolean desktop_integration_is_send_to_installed (void) {
result = _tmp0_;
#line 93 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return result;
-#line 1022 "DesktopIntegration.c"
+#line 1102 "DesktopIntegration.c"
}
-void desktop_integration_files_send_to (GFile** files, int files_length1) {
- GFile** _tmp0_;
- gint _tmp0__length1;
+void
+desktop_integration_files_send_to (GFile** files,
+ int files_length1)
+{
gchar** argv = NULL;
- GFile** _tmp1_;
- gint _tmp1__length1;
- gchar** _tmp2_;
+ gchar** _tmp0_;
gint argv_length1;
gint _argv_size_;
- gchar** _tmp3_;
- gint _tmp3__length1;
- gchar* _tmp4_;
- gchar* _tmp5_;
+ gchar** _tmp1_;
+ gint _tmp1__length1;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
GError * _inner_error_ = NULL;
#line 97 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = files;
-#line 97 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0__length1 = files_length1;
-#line 97 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp0__length1 == 0) {
+ if (files_length1 == 0) {
#line 98 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 1048 "DesktopIntegration.c"
+#line 1123 "DesktopIntegration.c"
}
#line 100 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = files;
-#line 100 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1__length1 = files_length1;
+ _tmp0_ = g_new0 (gchar*, (files_length1 + 1) + 1);
#line 100 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = g_new0 (gchar*, (_tmp1__length1 + 1) + 1);
+ argv = _tmp0_;
#line 100 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- argv = _tmp2_;
-#line 100 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- argv_length1 = _tmp1__length1 + 1;
+ argv_length1 = files_length1 + 1;
#line 100 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_argv_size_ = argv_length1;
#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = argv;
+ _tmp1_ = argv;
#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3__length1 = argv_length1;
+ _tmp1__length1 = argv_length1;
#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = g_strdup (DESKTOP_INTEGRATION_SENDTO_EXEC);
+ _tmp2_ = g_strdup (DESKTOP_INTEGRATION_SENDTO_EXEC);
#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp3_[0]);
+ _g_free0 (_tmp1_[0]);
#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_[0] = _tmp4_;
+ _tmp1_[0] = _tmp2_;
#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = _tmp3_[0];
-#line 1074 "DesktopIntegration.c"
+ _tmp3_ = _tmp1_[0];
+#line 1145 "DesktopIntegration.c"
{
gint ctr = 0;
#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
ctr = 0;
-#line 1079 "DesktopIntegration.c"
+#line 1150 "DesktopIntegration.c"
{
- gboolean _tmp6_ = FALSE;
+ gboolean _tmp4_ = FALSE;
#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = TRUE;
+ _tmp4_ = TRUE;
#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
while (TRUE) {
-#line 1086 "DesktopIntegration.c"
+#line 1157 "DesktopIntegration.c"
+ gint _tmp6_;
+ gchar** _tmp7_;
+ gint _tmp7__length1;
gint _tmp8_;
- GFile** _tmp9_;
- gint _tmp9__length1;
- gchar** _tmp10_;
- gint _tmp10__length1;
- gint _tmp11_;
- GFile** _tmp12_;
- gint _tmp12__length1;
- gint _tmp13_;
- GFile* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
+ gint _tmp9_;
+ GFile* _tmp10_;
+ gchar* _tmp11_;
+ gchar* _tmp12_;
#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!_tmp6_) {
-#line 1101 "DesktopIntegration.c"
- gint _tmp7_;
+ if (!_tmp4_) {
+#line 1168 "DesktopIntegration.c"
+ gint _tmp5_;
#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = ctr;
+ _tmp5_ = ctr;
#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- ctr = _tmp7_ + 1;
-#line 1107 "DesktopIntegration.c"
+ ctr = _tmp5_ + 1;
+#line 1174 "DesktopIntegration.c"
}
#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = FALSE;
+ _tmp4_ = FALSE;
#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = ctr;
-#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = files;
-#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9__length1 = files_length1;
+ _tmp6_ = ctr;
#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!(_tmp8_ < _tmp9__length1)) {
+ if (!(_tmp6_ < files_length1)) {
#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
break;
-#line 1121 "DesktopIntegration.c"
+#line 1184 "DesktopIntegration.c"
}
#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = argv;
-#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10__length1 = argv_length1;
-#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = ctr;
+ _tmp7_ = argv;
#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = files;
+ _tmp7__length1 = argv_length1;
#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12__length1 = files_length1;
+ _tmp8_ = ctr;
#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = ctr;
+ _tmp9_ = ctr;
#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp14_ = _tmp12_[_tmp13_];
+ _tmp10_ = files[_tmp9_];
#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp15_ = g_file_get_path (_tmp14_);
+ _tmp11_ = g_file_get_path (_tmp10_);
#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp10_[_tmp11_ + 1]);
+ _g_free0 (_tmp7_[_tmp8_ + 1]);
#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_[_tmp11_ + 1] = _tmp15_;
+ _tmp7_[_tmp8_ + 1] = _tmp11_;
#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp16_ = _tmp10_[_tmp11_ + 1];
-#line 1145 "DesktopIntegration.c"
+ _tmp12_ = _tmp7_[_tmp8_ + 1];
+#line 1204 "DesktopIntegration.c"
}
}
}
{
+ AppWindow* _tmp13_;
+ AppWindow* _tmp14_;
+ GPid child_pid = 0;
+ gchar** _tmp15_;
+ gint _tmp15__length1;
+ GPid _tmp16_ = 0;
AppWindow* _tmp17_;
AppWindow* _tmp18_;
- GPid child_pid = 0;
- gchar** _tmp19_;
- gint _tmp19__length1;
- GPid _tmp20_ = 0;
- AppWindow* _tmp21_;
- AppWindow* _tmp22_;
#line 107 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp17_ = app_window_get_instance ();
+ _tmp13_ = app_window_get_instance ();
#line 107 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp18_ = _tmp17_;
+ _tmp14_ = _tmp13_;
#line 107 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PAGE_WINDOW, PageWindow));
+ page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PAGE_WINDOW, PageWindow));
#line 107 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp18_);
+ _g_object_unref0 (_tmp14_);
#line 110 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp19_ = argv;
+ _tmp15_ = argv;
#line 110 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp19__length1 = argv_length1;
+ _tmp15__length1 = argv_length1;
#line 110 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_spawn_async ("/", _tmp19_, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &_tmp20_, &_inner_error_);
+ g_spawn_async ("/", _tmp15_, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &_tmp16_, &_inner_error_);
#line 110 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- child_pid = _tmp20_;
+ child_pid = _tmp16_;
#line 110 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1176 "DesktopIntegration.c"
+#line 1235 "DesktopIntegration.c"
goto __catch577_g_error;
}
#line 118 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp21_ = app_window_get_instance ();
+ _tmp17_ = app_window_get_instance ();
#line 118 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp22_ = _tmp21_;
+ _tmp18_ = _tmp17_;
#line 118 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PAGE_WINDOW, PageWindow));
+ page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PAGE_WINDOW, PageWindow));
#line 118 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp22_);
-#line 1187 "DesktopIntegration.c"
+ _g_object_unref0 (_tmp18_);
+#line 1246 "DesktopIntegration.c"
}
goto __finally577;
__catch577_g_error:
{
GError* err = NULL;
- AppWindow* _tmp23_;
- AppWindow* _tmp24_;
- GError* _tmp25_;
- const gchar* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
+ AppWindow* _tmp19_;
+ AppWindow* _tmp20_;
+ GError* _tmp21_;
+ const gchar* _tmp22_;
+ gchar* _tmp23_;
+ gchar* _tmp24_;
#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
err = _inner_error_;
#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_inner_error_ = NULL;
#line 120 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp23_ = app_window_get_instance ();
+ _tmp19_ = app_window_get_instance ();
#line 120 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp24_ = _tmp23_;
+ _tmp20_ = _tmp19_;
#line 120 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_PAGE_WINDOW, PageWindow));
+ page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PAGE_WINDOW, PageWindow));
#line 120 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp24_);
+ _g_object_unref0 (_tmp20_);
#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp25_ = err;
+ _tmp21_ = err;
#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp26_ = _tmp25_->message;
+ _tmp22_ = _tmp21_->message;
#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp27_ = g_strdup_printf (_ ("Unable to launch Nautilus Send-To: %s"), _tmp26_);
+ _tmp23_ = g_strdup_printf (_ ("Unable to launch Nautilus Send-To: %s"), _tmp22_);
#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp28_ = _tmp27_;
+ _tmp24_ = _tmp23_;
#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- app_window_error_message (_tmp28_, NULL);
+ app_window_error_message (_tmp24_, NULL);
#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp28_);
+ _g_free0 (_tmp24_);
#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_error_free0 (err);
-#line 1225 "DesktopIntegration.c"
+#line 1284 "DesktopIntegration.c"
}
__finally577:
#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
@@ -1234,334 +1293,308 @@ void desktop_integration_files_send_to (GFile** files, int files_length1) {
g_clear_error (&_inner_error_);
#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 1238 "DesktopIntegration.c"
+#line 1297 "DesktopIntegration.c"
}
#line 96 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
-#line 1242 "DesktopIntegration.c"
+#line 1301 "DesktopIntegration.c"
}
-static void _desktop_integration_on_send_to_export_completed_exporter_completion_callback (Exporter* exporter, gboolean is_cancelled, gpointer self) {
+static void
+_desktop_integration_on_send_to_export_completed_exporter_completion_callback (Exporter* exporter,
+ gboolean is_cancelled,
+ gpointer self)
+{
#line 135 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
desktop_integration_on_send_to_export_completed (exporter, is_cancelled);
-#line 1249 "DesktopIntegration.c"
+#line 1312 "DesktopIntegration.c"
}
-void desktop_integration_send_to (GeeCollection* media) {
+void
+desktop_integration_send_to (GeeCollection* media)
+{
gboolean _tmp0_ = FALSE;
- GeeCollection* _tmp1_;
+ gint _tmp1_;
gint _tmp2_;
- gint _tmp3_;
ExportDialog* dialog = NULL;
- ExportDialog* _tmp5_;
- gboolean _tmp6_ = FALSE;
- GeeCollection* _tmp7_;
- gboolean _tmp8_;
+ ExportDialog* _tmp4_;
+ gboolean _tmp5_ = FALSE;
gint scale = 0;
ScaleConstraint constraint = 0;
ExportFormatParameters export_params = {0};
- ExportFormatParameters _tmp13_ = {0};
- ExportDialog* _tmp14_;
- gint _tmp15_ = 0;
- ScaleConstraint _tmp16_ = 0;
- gboolean _tmp17_;
- GeeCollection* _tmp18_;
- ScaleConstraint _tmp19_;
- gint _tmp20_;
- Scaling _tmp21_ = {0};
- ExportFormatParameters _tmp22_;
- Exporter* _tmp23_;
- Exporter* _tmp24_;
- ExporterUI* _tmp25_;
- ExporterUI* _tmp26_;
+ ExportFormatParameters _tmp7_ = {0};
+ ExportDialog* _tmp8_;
+ gint _tmp9_ = 0;
+ ScaleConstraint _tmp10_ = 0;
+ gboolean _tmp11_;
+ ScaleConstraint _tmp12_;
+ gint _tmp13_;
+ Scaling _tmp14_ = {0};
+ ExportFormatParameters _tmp15_;
+ Exporter* _tmp16_;
+ Exporter* _tmp17_;
+ ExporterUI* _tmp18_;
+ ExporterUI* _tmp19_;
#line 125 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_return_if_fail (GEE_IS_COLLECTION (media));
#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = media;
+ _tmp1_ = gee_collection_get_size (media);
#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = gee_collection_get_size (_tmp1_);
-#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = _tmp2_;
+ _tmp2_ = _tmp1_;
#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp3_ == 0) {
+ if (_tmp2_ == 0) {
#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_tmp0_ = TRUE;
-#line 1292 "DesktopIntegration.c"
+#line 1351 "DesktopIntegration.c"
} else {
- ExporterUI* _tmp4_;
+ ExporterUI* _tmp3_;
#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = desktop_integration_send_to_exporter;
+ _tmp3_ = desktop_integration_send_to_exporter;
#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = _tmp4_ != NULL;
-#line 1299 "DesktopIntegration.c"
+ _tmp0_ = _tmp3_ != NULL;
+#line 1358 "DesktopIntegration.c"
}
#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (_tmp0_) {
#line 127 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 1305 "DesktopIntegration.c"
+#line 1364 "DesktopIntegration.c"
}
#line 129 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = export_dialog_new (_ ("Send To"));
+ _tmp4_ = export_dialog_new (_ ("Send To"));
#line 129 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_object_ref_sink (_tmp5_);
+ g_object_ref_sink (_tmp4_);
#line 129 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- dialog = _tmp5_;
-#line 134 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = media;
+ dialog = _tmp4_;
#line 134 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = media_source_collection_has_video (_tmp7_);
+ if (media_source_collection_has_video (media)) {
#line 134 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp8_) {
-#line 1319 "DesktopIntegration.c"
- GeeCollection* _tmp9_;
- gboolean _tmp10_;
-#line 134 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = media;
-#line 134 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = media_source_collection_has_photo (_tmp9_);
-#line 134 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = !_tmp10_;
-#line 1328 "DesktopIntegration.c"
+ _tmp5_ = !media_source_collection_has_photo (media);
+#line 1376 "DesktopIntegration.c"
} else {
#line 134 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = FALSE;
-#line 1332 "DesktopIntegration.c"
+ _tmp5_ = FALSE;
+#line 1380 "DesktopIntegration.c"
}
#line 134 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp6_) {
-#line 1336 "DesktopIntegration.c"
- GeeCollection* _tmp11_;
- ExporterUI* _tmp12_;
+ if (_tmp5_) {
+#line 1384 "DesktopIntegration.c"
+ ExporterUI* _tmp6_;
#line 135 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = media;
-#line 135 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = video_export_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection), _desktop_integration_on_send_to_export_completed_exporter_completion_callback, NULL, TRUE);
+ _tmp6_ = video_export_many (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_COLLECTION, GeeCollection), _desktop_integration_on_send_to_export_completed_exporter_completion_callback, NULL, TRUE);
#line 135 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_exporter_ui_unref0 (desktop_integration_send_to_exporter);
#line 135 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_send_to_exporter = _tmp12_;
+ desktop_integration_send_to_exporter = _tmp6_;
#line 137 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (dialog);
#line 137 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 1351 "DesktopIntegration.c"
+#line 1396 "DesktopIntegration.c"
}
#line 142 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- export_format_parameters_current (&_tmp13_);
+ export_format_parameters_current (&_tmp7_);
#line 142 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- export_params = _tmp13_;
+ export_params = _tmp7_;
#line 143 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp14_ = dialog;
+ _tmp8_ = dialog;
#line 143 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp17_ = export_dialog_execute (_tmp14_, &_tmp15_, &_tmp16_, &export_params);
+ _tmp11_ = export_dialog_execute (_tmp8_, &_tmp9_, &_tmp10_, &export_params);
#line 143 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- scale = _tmp15_;
+ scale = _tmp9_;
#line 143 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- constraint = _tmp16_;
+ constraint = _tmp10_;
#line 143 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!_tmp17_) {
+ if (!_tmp11_) {
#line 144 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (dialog);
#line 144 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 1371 "DesktopIntegration.c"
+#line 1416 "DesktopIntegration.c"
}
#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp18_ = media;
-#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp19_ = constraint;
+ _tmp12_ = constraint;
#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp20_ = scale;
+ _tmp13_ = scale;
#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- scaling_for_constraint (_tmp19_, _tmp20_, FALSE, &_tmp21_);
+ scaling_for_constraint (_tmp12_, _tmp13_, FALSE, &_tmp14_);
#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp22_ = export_params;
+ _tmp15_ = export_params;
#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp23_ = exporter_new_for_temp_file (_tmp18_, &_tmp21_, &_tmp22_);
+ _tmp16_ = exporter_new_for_temp_file (media, &_tmp14_, &_tmp15_);
#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp24_ = _tmp23_;
+ _tmp17_ = _tmp16_;
#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp25_ = exporter_ui_new (_tmp24_);
+ _tmp18_ = exporter_ui_new (_tmp17_);
#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_exporter_ui_unref0 (desktop_integration_send_to_exporter);
#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_send_to_exporter = _tmp25_;
+ desktop_integration_send_to_exporter = _tmp18_;
#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp24_);
+ _g_object_unref0 (_tmp17_);
#line 148 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp26_ = desktop_integration_send_to_exporter;
+ _tmp19_ = desktop_integration_send_to_exporter;
#line 148 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- exporter_ui_export (_tmp26_, _desktop_integration_on_send_to_export_completed_exporter_completion_callback, NULL);
+ exporter_ui_export (_tmp19_, _desktop_integration_on_send_to_export_completed_exporter_completion_callback, NULL);
#line 125 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (dialog);
-#line 1401 "DesktopIntegration.c"
+#line 1444 "DesktopIntegration.c"
}
-void desktop_integration_on_send_to_export_completed (Exporter* exporter, gboolean is_cancelled) {
- gboolean _tmp0_;
+void
+desktop_integration_on_send_to_export_completed (Exporter* exporter,
+ gboolean is_cancelled)
+{
#line 151 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_return_if_fail (IS_EXPORTER (exporter));
#line 152 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = is_cancelled;
-#line 152 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (!_tmp0_) {
-#line 1413 "DesktopIntegration.c"
- Exporter* _tmp1_;
- gint _tmp2_;
- GFile** _tmp3_;
- GFile** _tmp4_;
- gint _tmp4__length1;
+ if (!is_cancelled) {
+#line 1456 "DesktopIntegration.c"
+ gint _tmp0_;
+ GFile** _tmp1_;
+ GFile** _tmp2_;
+ gint _tmp2__length1;
#line 153 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = exporter;
+ _tmp1_ = exporter_get_exported_files (exporter, &_tmp0_);
#line 153 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = exporter_get_exported_files (_tmp1_, &_tmp2_);
+ _tmp2_ = _tmp1_;
#line 153 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = _tmp3_;
+ _tmp2__length1 = _tmp0_;
#line 153 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4__length1 = _tmp2_;
+ desktop_integration_files_send_to (_tmp2_, _tmp0_);
#line 153 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_files_send_to (_tmp4_, _tmp2_);
-#line 153 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = (_vala_array_free (_tmp4_, _tmp4__length1, (GDestroyNotify) g_object_unref), NULL);
-#line 1431 "DesktopIntegration.c"
+ _tmp2_ = (_vala_array_free (_tmp2_, _tmp2__length1, (GDestroyNotify) g_object_unref), NULL);
+#line 1471 "DesktopIntegration.c"
}
#line 155 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_exporter_ui_unref0 (desktop_integration_send_to_exporter);
#line 155 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
desktop_integration_send_to_exporter = NULL;
-#line 1437 "DesktopIntegration.c"
+#line 1477 "DesktopIntegration.c"
}
-void desktop_integration_set_background (Photo* photo, gboolean desktop, gboolean screensaver) {
+void
+desktop_integration_set_background (Photo* photo,
+ gboolean desktop,
+ gboolean screensaver)
+{
PhotoFileFormat file_format = 0;
- Photo* _tmp0_;
- PhotoFileFormat _tmp1_;
GFile* save_as = NULL;
- GFile* _tmp2_;
- GFile* _tmp3_;
- PhotoFileFormat _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- GFile* _tmp7_;
- GFile* _tmp8_;
- ConfigFacade* _tmp9_;
- ConfigFacade* _tmp10_;
- gchar* _tmp11_;
+ GFile* _tmp0_;
+ GFile* _tmp1_;
+ PhotoFileFormat _tmp2_;
+ gchar* _tmp3_;
+ gchar* _tmp4_;
+ GFile* _tmp5_;
+ GFile* _tmp6_;
+ ConfigFacade* _tmp7_;
+ ConfigFacade* _tmp8_;
+ gchar* _tmp9_;
+ gchar* _tmp10_;
+ GFile* _tmp11_;
gchar* _tmp12_;
- GFile* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gboolean _tmp16_;
- gboolean _tmp34_;
- gboolean _tmp40_;
- GFile* _tmp46_;
- gchar* _tmp47_;
- gchar* _tmp48_;
+ gchar* _tmp13_;
+ gboolean _tmp14_;
+ GFile* _tmp41_;
+ gchar* _tmp42_;
+ gchar* _tmp43_;
GError * _inner_error_ = NULL;
#line 158 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_return_if_fail (IS_PHOTO (photo));
#line 161 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = photo;
-#line 161 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = photo_get_best_export_file_format (_tmp0_);
-#line 161 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- file_format = _tmp1_;
+ file_format = photo_get_best_export_file_format (photo);
#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = app_dirs_get_data_subdir ("wallpaper", NULL);
+ _tmp0_ = app_dirs_get_data_subdir ("wallpaper", NULL);
#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = _tmp2_;
+ _tmp1_ = _tmp0_;
#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = file_format;
+ _tmp2_ = file_format;
#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = photo_file_format_get_default_basename (_tmp4_, "wallpaper");
+ _tmp3_ = photo_file_format_get_default_basename (_tmp2_, "wallpaper");
#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = _tmp5_;
+ _tmp4_ = _tmp3_;
#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = g_file_get_child (_tmp3_, _tmp6_);
+ _tmp5_ = g_file_get_child (_tmp1_, _tmp4_);
#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = _tmp7_;
+ _tmp6_ = _tmp5_;
#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp6_);
+ _g_free0 (_tmp4_);
#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp3_);
+ _g_object_unref0 (_tmp1_);
#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- save_as = _tmp8_;
+ save_as = _tmp6_;
#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = config_facade_get_instance ();
+ _tmp7_ = config_facade_get_instance ();
#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = _tmp9_;
+ _tmp8_ = _tmp7_;
#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = configuration_facade_get_desktop_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
+ _tmp9_ = configuration_facade_get_desktop_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = _tmp11_;
+ _tmp10_ = _tmp9_;
#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = save_as;
+ _tmp11_ = save_as;
#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp14_ = g_file_get_path (_tmp13_);
+ _tmp12_ = g_file_get_path (_tmp11_);
#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp15_ = _tmp14_;
+ _tmp13_ = _tmp12_;
#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp16_ = g_strcmp0 (_tmp12_, _tmp15_) == 0;
+ _tmp14_ = g_strcmp0 (_tmp10_, _tmp13_) == 0;
#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp15_);
+ _g_free0 (_tmp13_);
#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp12_);
+ _g_free0 (_tmp10_);
#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp10_);
+ _g_object_unref0 (_tmp8_);
#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp16_) {
-#line 1519 "DesktopIntegration.c"
- GFile* _tmp17_;
- GFile* _tmp18_;
- PhotoFileFormat _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- GFile* _tmp22_;
+ if (_tmp14_) {
+#line 1555 "DesktopIntegration.c"
+ GFile* _tmp15_;
+ GFile* _tmp16_;
+ PhotoFileFormat _tmp17_;
+ gchar* _tmp18_;
+ gchar* _tmp19_;
+ GFile* _tmp20_;
#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp17_ = app_dirs_get_data_subdir ("wallpaper", NULL);
+ _tmp15_ = app_dirs_get_data_subdir ("wallpaper", NULL);
#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp18_ = _tmp17_;
+ _tmp16_ = _tmp15_;
#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp19_ = file_format;
+ _tmp17_ = file_format;
#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp20_ = photo_file_format_get_default_basename (_tmp19_, "wallpaper_alt");
+ _tmp18_ = photo_file_format_get_default_basename (_tmp17_, "wallpaper_alt");
#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp21_ = _tmp20_;
+ _tmp19_ = _tmp18_;
#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp22_ = g_file_get_child (_tmp18_, _tmp21_);
+ _tmp20_ = g_file_get_child (_tmp16_, _tmp19_);
#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (save_as);
#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- save_as = _tmp22_;
+ save_as = _tmp20_;
#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp21_);
+ _g_free0 (_tmp19_);
#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp18_);
-#line 1546 "DesktopIntegration.c"
+ _g_object_unref0 (_tmp16_);
+#line 1582 "DesktopIntegration.c"
}
{
- Photo* _tmp23_;
- GFile* _tmp24_;
- Scaling _tmp25_ = {0};
- PhotoFileFormat _tmp26_;
+ GFile* _tmp21_;
+ Scaling _tmp22_ = {0};
+ PhotoFileFormat _tmp23_;
#line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp23_ = photo;
+ _tmp21_ = save_as;
#line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp24_ = save_as;
+ scaling_for_original (&_tmp22_);
#line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- scaling_for_original (&_tmp25_);
+ _tmp23_ = file_format;
#line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp26_ = file_format;
-#line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- photo_export (_tmp23_, _tmp24_, &_tmp25_, JPEG_QUALITY_HIGH, _tmp26_, FALSE, TRUE, &_inner_error_);
+ photo_export (photo, _tmp21_, &_tmp22_, JPEG_QUALITY_HIGH, _tmp23_, FALSE, TRUE, &_inner_error_);
#line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1565 "DesktopIntegration.c"
+#line 1598 "DesktopIntegration.c"
goto __catch578_g_error;
}
}
@@ -1569,44 +1602,44 @@ void desktop_integration_set_background (Photo* photo, gboolean desktop, gboolea
__catch578_g_error:
{
GError* err = NULL;
- GFile* _tmp27_;
- gchar* _tmp28_;
+ GFile* _tmp24_;
+ gchar* _tmp25_;
+ gchar* _tmp26_;
+ GError* _tmp27_;
+ const gchar* _tmp28_;
gchar* _tmp29_;
- GError* _tmp30_;
- const gchar* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
+ gchar* _tmp30_;
#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
err = _inner_error_;
#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_inner_error_ = NULL;
#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp27_ = save_as;
+ _tmp24_ = save_as;
#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp28_ = g_file_get_path (_tmp27_);
+ _tmp25_ = g_file_get_path (_tmp24_);
#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp29_ = _tmp28_;
+ _tmp26_ = _tmp25_;
#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp30_ = err;
+ _tmp27_ = err;
#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp31_ = _tmp30_->message;
+ _tmp28_ = _tmp27_->message;
#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp32_ = g_strdup_printf (_ ("Unable to export background to %s: %s"), _tmp29_, _tmp31_);
+ _tmp29_ = g_strdup_printf (_ ("Unable to export background to %s: %s"), _tmp26_, _tmp28_);
#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp33_ = _tmp32_;
+ _tmp30_ = _tmp29_;
#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- app_window_error_message (_tmp33_, NULL);
+ app_window_error_message (_tmp30_, NULL);
#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp33_);
+ _g_free0 (_tmp30_);
#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp29_);
+ _g_free0 (_tmp26_);
#line 177 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_error_free0 (err);
#line 177 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (save_as);
#line 177 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 1610 "DesktopIntegration.c"
+#line 1643 "DesktopIntegration.c"
}
__finally578:
#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
@@ -1619,157 +1652,150 @@ void desktop_integration_set_background (Photo* photo, gboolean desktop, gboolea
g_clear_error (&_inner_error_);
#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 1623 "DesktopIntegration.c"
+#line 1656 "DesktopIntegration.c"
}
#line 180 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp34_ = desktop;
-#line 180 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp34_) {
-#line 1629 "DesktopIntegration.c"
- ConfigFacade* _tmp35_;
- ConfigFacade* _tmp36_;
- GFile* _tmp37_;
- gchar* _tmp38_;
- gchar* _tmp39_;
+ if (desktop) {
+#line 1660 "DesktopIntegration.c"
+ ConfigFacade* _tmp31_;
+ ConfigFacade* _tmp32_;
+ GFile* _tmp33_;
+ gchar* _tmp34_;
+ gchar* _tmp35_;
#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp35_ = config_facade_get_instance ();
+ _tmp31_ = config_facade_get_instance ();
#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp36_ = _tmp35_;
+ _tmp32_ = _tmp31_;
#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp37_ = save_as;
+ _tmp33_ = save_as;
#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp38_ = g_file_get_path (_tmp37_);
+ _tmp34_ = g_file_get_path (_tmp33_);
#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp39_ = _tmp38_;
+ _tmp35_ = _tmp34_;
#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- configuration_facade_set_desktop_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp39_);
+ configuration_facade_set_desktop_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp35_);
#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp39_);
+ _g_free0 (_tmp35_);
#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp36_);
-#line 1651 "DesktopIntegration.c"
+ _g_object_unref0 (_tmp32_);
+#line 1682 "DesktopIntegration.c"
}
#line 183 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp40_ = screensaver;
-#line 183 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp40_) {
-#line 1657 "DesktopIntegration.c"
- ConfigFacade* _tmp41_;
- ConfigFacade* _tmp42_;
- GFile* _tmp43_;
- gchar* _tmp44_;
- gchar* _tmp45_;
+ if (screensaver) {
+#line 1686 "DesktopIntegration.c"
+ ConfigFacade* _tmp36_;
+ ConfigFacade* _tmp37_;
+ GFile* _tmp38_;
+ gchar* _tmp39_;
+ gchar* _tmp40_;
#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp41_ = config_facade_get_instance ();
+ _tmp36_ = config_facade_get_instance ();
#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp42_ = _tmp41_;
+ _tmp37_ = _tmp36_;
#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp43_ = save_as;
+ _tmp38_ = save_as;
#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp44_ = g_file_get_path (_tmp43_);
+ _tmp39_ = g_file_get_path (_tmp38_);
#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp45_ = _tmp44_;
+ _tmp40_ = _tmp39_;
#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- configuration_facade_set_screensaver (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp45_);
+ configuration_facade_set_screensaver (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp40_);
#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp45_);
+ _g_free0 (_tmp40_);
#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp42_);
-#line 1679 "DesktopIntegration.c"
+ _g_object_unref0 (_tmp37_);
+#line 1708 "DesktopIntegration.c"
}
#line 187 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp46_ = save_as;
+ _tmp41_ = save_as;
#line 187 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp47_ = g_file_get_parse_name (_tmp46_);
+ _tmp42_ = g_file_get_parse_name (_tmp41_);
#line 187 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp48_ = _tmp47_;
+ _tmp43_ = _tmp42_;
#line 187 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_chmod (_tmp48_, 0644);
+ g_chmod (_tmp43_, 0644);
#line 187 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp48_);
+ _g_free0 (_tmp43_);
#line 158 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (save_as);
-#line 1693 "DesktopIntegration.c"
+#line 1722 "DesktopIntegration.c"
}
-DesktopIntegrationBackgroundSlideshowXMLBuilder* desktop_integration_background_slideshow_xml_builder_construct (GType object_type, GFile* destination, gdouble duration, gdouble transition) {
+DesktopIntegrationBackgroundSlideshowXMLBuilder*
+desktop_integration_background_slideshow_xml_builder_construct (GType object_type,
+ GFile* destination,
+ gdouble duration,
+ gdouble transition)
+{
DesktopIntegrationBackgroundSlideshowXMLBuilder* self = NULL;
GFile* _tmp0_;
GFile* _tmp1_;
- gdouble _tmp2_;
- gdouble _tmp3_;
- GFile* _tmp4_;
- GFile* _tmp5_;
- GFile* _tmp6_;
+ GFile* _tmp2_;
+ gchar* _tmp3_;
+ gchar* _tmp4_;
+ gchar* _tmp5_;
+ gchar* _tmp6_;
GFile* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- GFile* _tmp12_;
#line 202 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_return_val_if_fail (G_IS_FILE (destination), NULL);
#line 202 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
self = (DesktopIntegrationBackgroundSlideshowXMLBuilder*) g_type_create_instance (object_type);
#line 203 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = destination;
-#line 203 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
+ _tmp0_ = _g_object_ref0 (destination);
#line 203 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (self->priv->destination);
#line 203 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv->destination = _tmp1_;
-#line 204 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = duration;
+ self->priv->destination = _tmp0_;
#line 204 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv->duration = _tmp2_;
+ self->priv->duration = duration;
#line 205 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = transition;
-#line 205 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv->transition = _tmp3_;
-#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = destination;
+ self->priv->transition = transition;
#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = g_file_get_parent (_tmp4_);
+ _tmp1_ = g_file_get_parent (destination);
#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = _tmp5_;
-#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = destination;
+ _tmp2_ = _tmp1_;
#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = g_file_get_basename (_tmp7_);
+ _tmp3_ = g_file_get_basename (destination);
#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = _tmp8_;
+ _tmp4_ = _tmp3_;
#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = g_strconcat (_tmp9_, ".tmp", NULL);
+ _tmp5_ = g_strconcat (_tmp4_, ".tmp", NULL);
#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = _tmp10_;
+ _tmp6_ = _tmp5_;
#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = g_file_get_child (_tmp6_, _tmp11_);
+ _tmp7_ = g_file_get_child (_tmp2_, _tmp6_);
#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (self->priv->tmp_file);
#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv->tmp_file = _tmp12_;
+ self->priv->tmp_file = _tmp7_;
#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp11_);
+ _g_free0 (_tmp6_);
#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp9_);
+ _g_free0 (_tmp4_);
#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp6_);
+ _g_object_unref0 (_tmp2_);
#line 202 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return self;
-#line 1762 "DesktopIntegration.c"
+#line 1781 "DesktopIntegration.c"
}
-DesktopIntegrationBackgroundSlideshowXMLBuilder* desktop_integration_background_slideshow_xml_builder_new (GFile* destination, gdouble duration, gdouble transition) {
+DesktopIntegrationBackgroundSlideshowXMLBuilder*
+desktop_integration_background_slideshow_xml_builder_new (GFile* destination,
+ gdouble duration,
+ gdouble transition)
+{
#line 202 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return desktop_integration_background_slideshow_xml_builder_construct (DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER, destination, duration, transition);
-#line 1769 "DesktopIntegration.c"
+#line 1792 "DesktopIntegration.c"
}
-void desktop_integration_background_slideshow_xml_builder_open (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, GError** error) {
+void
+desktop_integration_background_slideshow_xml_builder_open (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
+ GError** error)
+{
GFileOutputStream* _tmp0_ = NULL;
GFile* _tmp1_;
GFileOutputStream* _tmp2_;
@@ -1790,7 +1816,7 @@ void desktop_integration_background_slideshow_xml_builder_open (DesktopIntegrati
g_propagate_error (error, _inner_error_);
#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 1794 "DesktopIntegration.c"
+#line 1820 "DesktopIntegration.c"
}
#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_tmp3_ = g_data_output_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_output_stream_get_type (), GOutputStream));
@@ -1810,37 +1836,40 @@ void desktop_integration_background_slideshow_xml_builder_open (DesktopIntegrati
_g_object_unref0 (_tmp0_);
#line 212 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 1814 "DesktopIntegration.c"
+#line 1840 "DesktopIntegration.c"
}
#line 210 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (_tmp0_);
-#line 1818 "DesktopIntegration.c"
+#line 1844 "DesktopIntegration.c"
}
-static void desktop_integration_background_slideshow_xml_builder_write_transition (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, GFile* from, GFile* to, GError** error) {
+static void
+desktop_integration_background_slideshow_xml_builder_write_transition (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
+ GFile* from,
+ GFile* to,
+ GError** error)
+{
GDataOutputStream* _tmp0_;
GDataOutputStream* _tmp1_;
gdouble _tmp2_;
gchar* _tmp3_;
gchar* _tmp4_;
GDataOutputStream* _tmp5_;
- GFile* _tmp6_;
+ gchar* _tmp6_;
gchar* _tmp7_;
gchar* _tmp8_;
gchar* _tmp9_;
gchar* _tmp10_;
gchar* _tmp11_;
- gchar* _tmp12_;
- GDataOutputStream* _tmp13_;
- GFile* _tmp14_;
+ GDataOutputStream* _tmp12_;
+ gchar* _tmp13_;
+ gchar* _tmp14_;
gchar* _tmp15_;
gchar* _tmp16_;
gchar* _tmp17_;
gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- GDataOutputStream* _tmp21_;
+ GDataOutputStream* _tmp19_;
GError * _inner_error_ = NULL;
#line 215 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_return_if_fail (DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER (self));
@@ -1858,7 +1887,7 @@ static void desktop_integration_background_slideshow_xml_builder_write_transitio
g_propagate_error (error, _inner_error_);
#line 216 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 1862 "DesktopIntegration.c"
+#line 1891 "DesktopIntegration.c"
}
#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_tmp1_ = self->priv->outs;
@@ -1878,102 +1907,101 @@ static void desktop_integration_background_slideshow_xml_builder_write_transitio
g_propagate_error (error, _inner_error_);
#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 1882 "DesktopIntegration.c"
+#line 1911 "DesktopIntegration.c"
}
#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_tmp5_ = self->priv->outs;
#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = from;
+ _tmp6_ = g_file_get_path (from);
#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = g_file_get_path (_tmp6_);
-#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = _tmp7_;
+ _tmp7_ = _tmp6_;
#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = g_markup_escape_text (_tmp8_, (gssize) -1);
+ _tmp8_ = g_markup_escape_text (_tmp7_, (gssize) -1);
#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = _tmp9_;
+ _tmp9_ = _tmp8_;
#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = g_strdup_printf (" <from>%s</from>\n", _tmp10_);
+ _tmp10_ = g_strdup_printf (" <from>%s</from>\n", _tmp9_);
#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = _tmp11_;
+ _tmp11_ = _tmp10_;
#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_data_output_stream_put_string (_tmp5_, _tmp12_, NULL, &_inner_error_);
+ g_data_output_stream_put_string (_tmp5_, _tmp11_, NULL, &_inner_error_);
#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp12_);
+ _g_free0 (_tmp11_);
#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp10_);
+ _g_free0 (_tmp9_);
#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp8_);
+ _g_free0 (_tmp7_);
#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_propagate_error (error, _inner_error_);
#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 1914 "DesktopIntegration.c"
+#line 1941 "DesktopIntegration.c"
}
#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = self->priv->outs;
+ _tmp12_ = self->priv->outs;
#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp14_ = to;
+ _tmp13_ = g_file_get_path (to);
#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp15_ = g_file_get_path (_tmp14_);
+ _tmp14_ = _tmp13_;
+#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
+ _tmp15_ = g_markup_escape_text (_tmp14_, (gssize) -1);
#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_tmp16_ = _tmp15_;
#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp17_ = g_markup_escape_text (_tmp16_, (gssize) -1);
+ _tmp17_ = g_strdup_printf (" <to>%s</to>\n", _tmp16_);
#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_tmp18_ = _tmp17_;
#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp19_ = g_strdup_printf (" <to>%s</to>\n", _tmp18_);
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp20_ = _tmp19_;
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_data_output_stream_put_string (_tmp13_, _tmp20_, NULL, &_inner_error_);
-#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp20_);
+ g_data_output_stream_put_string (_tmp12_, _tmp18_, NULL, &_inner_error_);
#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_free0 (_tmp18_);
#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_free0 (_tmp16_);
#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
+ _g_free0 (_tmp14_);
+#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_propagate_error (error, _inner_error_);
#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 1946 "DesktopIntegration.c"
+#line 1971 "DesktopIntegration.c"
}
#line 220 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp21_ = self->priv->outs;
+ _tmp19_ = self->priv->outs;
#line 220 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_data_output_stream_put_string (_tmp21_, " </transition>\n", NULL, &_inner_error_);
+ g_data_output_stream_put_string (_tmp19_, " </transition>\n", NULL, &_inner_error_);
#line 220 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 220 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_propagate_error (error, _inner_error_);
#line 220 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 1958 "DesktopIntegration.c"
+#line 1983 "DesktopIntegration.c"
}
}
-static void desktop_integration_background_slideshow_xml_builder_write_static (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, GFile* file, GError** error) {
+static void
+desktop_integration_background_slideshow_xml_builder_write_static (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
+ GFile* file,
+ GError** error)
+{
GDataOutputStream* _tmp0_;
GDataOutputStream* _tmp1_;
gdouble _tmp2_;
gchar* _tmp3_;
gchar* _tmp4_;
GDataOutputStream* _tmp5_;
- GFile* _tmp6_;
+ gchar* _tmp6_;
gchar* _tmp7_;
gchar* _tmp8_;
gchar* _tmp9_;
gchar* _tmp10_;
gchar* _tmp11_;
- gchar* _tmp12_;
- GDataOutputStream* _tmp13_;
+ GDataOutputStream* _tmp12_;
GError * _inner_error_ = NULL;
#line 223 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_return_if_fail (DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER (self));
@@ -1989,7 +2017,7 @@ static void desktop_integration_background_slideshow_xml_builder_write_static (D
g_propagate_error (error, _inner_error_);
#line 224 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 1993 "DesktopIntegration.c"
+#line 2021 "DesktopIntegration.c"
}
#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_tmp1_ = self->priv->outs;
@@ -2009,62 +2037,62 @@ static void desktop_integration_background_slideshow_xml_builder_write_static (D
g_propagate_error (error, _inner_error_);
#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 2013 "DesktopIntegration.c"
+#line 2041 "DesktopIntegration.c"
}
#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_tmp5_ = self->priv->outs;
#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = file;
+ _tmp6_ = g_file_get_path (file);
#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = g_file_get_path (_tmp6_);
-#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = _tmp7_;
+ _tmp7_ = _tmp6_;
#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = g_markup_escape_text (_tmp8_, (gssize) -1);
+ _tmp8_ = g_markup_escape_text (_tmp7_, (gssize) -1);
#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = _tmp9_;
+ _tmp9_ = _tmp8_;
#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = g_strdup_printf (" <file>%s</file>\n", _tmp10_);
+ _tmp10_ = g_strdup_printf (" <file>%s</file>\n", _tmp9_);
#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = _tmp11_;
+ _tmp11_ = _tmp10_;
#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_data_output_stream_put_string (_tmp5_, _tmp12_, NULL, &_inner_error_);
+ g_data_output_stream_put_string (_tmp5_, _tmp11_, NULL, &_inner_error_);
#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp12_);
+ _g_free0 (_tmp11_);
#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp10_);
+ _g_free0 (_tmp9_);
#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp8_);
+ _g_free0 (_tmp7_);
#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_propagate_error (error, _inner_error_);
#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 2045 "DesktopIntegration.c"
+#line 2071 "DesktopIntegration.c"
}
#line 227 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = self->priv->outs;
+ _tmp12_ = self->priv->outs;
#line 227 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- g_data_output_stream_put_string (_tmp13_, " </static>\n", NULL, &_inner_error_);
+ g_data_output_stream_put_string (_tmp12_, " </static>\n", NULL, &_inner_error_);
#line 227 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 227 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_propagate_error (error, _inner_error_);
#line 227 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 2057 "DesktopIntegration.c"
+#line 2083 "DesktopIntegration.c"
}
}
-void desktop_integration_background_slideshow_xml_builder_add_photo (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, GFile* file, GError** error) {
+void
+desktop_integration_background_slideshow_xml_builder_add_photo (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
+ GFile* file,
+ GError** error)
+{
GDataOutputStream* _tmp0_;
GFile* _tmp1_;
- GFile* _tmp4_;
- GFile* _tmp7_;
- GFile* _tmp8_;
- GFile* _tmp9_;
+ GFile* _tmp3_;
+ GFile* _tmp5_;
GError * _inner_error_ = NULL;
#line 230 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_return_if_fail (DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER (self));
@@ -2078,66 +2106,59 @@ void desktop_integration_background_slideshow_xml_builder_add_photo (DesktopInte
_tmp1_ = self->priv->first_file;
#line 233 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (_tmp1_ == NULL) {
-#line 2082 "DesktopIntegration.c"
+#line 2110 "DesktopIntegration.c"
GFile* _tmp2_;
- GFile* _tmp3_;
#line 234 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = file;
-#line 234 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
+ _tmp2_ = _g_object_ref0 (file);
#line 234 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (self->priv->first_file);
#line 234 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv->first_file = _tmp3_;
-#line 2093 "DesktopIntegration.c"
+ self->priv->first_file = _tmp2_;
+#line 2118 "DesktopIntegration.c"
}
#line 236 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = self->priv->last_file;
+ _tmp3_ = self->priv->last_file;
#line 236 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp4_ != NULL) {
-#line 2099 "DesktopIntegration.c"
- GFile* _tmp5_;
- GFile* _tmp6_;
-#line 237 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = self->priv->last_file;
+ if (_tmp3_ != NULL) {
+#line 2124 "DesktopIntegration.c"
+ GFile* _tmp4_;
#line 237 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = file;
+ _tmp4_ = self->priv->last_file;
#line 237 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_background_slideshow_xml_builder_write_transition (self, _tmp5_, _tmp6_, &_inner_error_);
+ desktop_integration_background_slideshow_xml_builder_write_transition (self, _tmp4_, file, &_inner_error_);
#line 237 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 237 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_propagate_error (error, _inner_error_);
#line 237 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 2114 "DesktopIntegration.c"
+#line 2136 "DesktopIntegration.c"
}
}
#line 239 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = file;
-#line 239 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_background_slideshow_xml_builder_write_static (self, _tmp7_, &_inner_error_);
+ desktop_integration_background_slideshow_xml_builder_write_static (self, file, &_inner_error_);
#line 239 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 239 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_propagate_error (error, _inner_error_);
#line 239 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 2127 "DesktopIntegration.c"
+#line 2147 "DesktopIntegration.c"
}
#line 241 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = file;
-#line 241 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = _g_object_ref0 (_tmp8_);
+ _tmp5_ = _g_object_ref0 (file);
#line 241 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (self->priv->last_file);
#line 241 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- self->priv->last_file = _tmp9_;
-#line 2137 "DesktopIntegration.c"
+ self->priv->last_file = _tmp5_;
+#line 2155 "DesktopIntegration.c"
}
-GFile* desktop_integration_background_slideshow_xml_builder_close (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, GError** error) {
+GFile*
+desktop_integration_background_slideshow_xml_builder_close (DesktopIntegrationBackgroundSlideshowXMLBuilder* self,
+ GError** error)
+{
GFile* result = NULL;
GDataOutputStream* _tmp0_;
gboolean _tmp1_ = FALSE;
@@ -2162,27 +2183,27 @@ GFile* desktop_integration_background_slideshow_xml_builder_close (DesktopIntegr
result = NULL;
#line 246 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return result;
-#line 2166 "DesktopIntegration.c"
+#line 2187 "DesktopIntegration.c"
}
#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_tmp2_ = self->priv->first_file;
#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (_tmp2_ != NULL) {
-#line 2172 "DesktopIntegration.c"
+#line 2193 "DesktopIntegration.c"
GFile* _tmp3_;
#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_tmp3_ = self->priv->last_file;
#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_tmp1_ = _tmp3_ != NULL;
-#line 2178 "DesktopIntegration.c"
+#line 2199 "DesktopIntegration.c"
} else {
#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_tmp1_ = FALSE;
-#line 2182 "DesktopIntegration.c"
+#line 2203 "DesktopIntegration.c"
}
#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (_tmp1_) {
-#line 2186 "DesktopIntegration.c"
+#line 2207 "DesktopIntegration.c"
GFile* _tmp4_;
GFile* _tmp5_;
#line 250 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
@@ -2197,7 +2218,7 @@ GFile* desktop_integration_background_slideshow_xml_builder_close (DesktopIntegr
g_propagate_error (error, _inner_error_);
#line 250 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return NULL;
-#line 2201 "DesktopIntegration.c"
+#line 2222 "DesktopIntegration.c"
}
}
#line 252 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
@@ -2210,7 +2231,7 @@ GFile* desktop_integration_background_slideshow_xml_builder_close (DesktopIntegr
g_propagate_error (error, _inner_error_);
#line 252 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return NULL;
-#line 2214 "DesktopIntegration.c"
+#line 2235 "DesktopIntegration.c"
}
#line 254 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_tmp7_ = self->priv->outs;
@@ -2222,7 +2243,7 @@ GFile* desktop_integration_background_slideshow_xml_builder_close (DesktopIntegr
g_propagate_error (error, _inner_error_);
#line 254 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return NULL;
-#line 2226 "DesktopIntegration.c"
+#line 2247 "DesktopIntegration.c"
}
#line 255 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (self->priv->outs);
@@ -2240,7 +2261,7 @@ GFile* desktop_integration_background_slideshow_xml_builder_close (DesktopIntegr
g_propagate_error (error, _inner_error_);
#line 258 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return NULL;
-#line 2244 "DesktopIntegration.c"
+#line 2265 "DesktopIntegration.c"
}
#line 259 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_tmp10_ = self->priv->destination;
@@ -2260,108 +2281,133 @@ GFile* desktop_integration_background_slideshow_xml_builder_close (DesktopIntegr
result = _tmp14_;
#line 261 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return result;
-#line 2264 "DesktopIntegration.c"
+#line 2285 "DesktopIntegration.c"
}
-static void desktop_integration_value_background_slideshow_xml_builder_init (GValue* value) {
+static void
+desktop_integration_value_background_slideshow_xml_builder_init (GValue* value)
+{
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
value->data[0].v_pointer = NULL;
-#line 2271 "DesktopIntegration.c"
+#line 2294 "DesktopIntegration.c"
}
-static void desktop_integration_value_background_slideshow_xml_builder_free_value (GValue* value) {
+static void
+desktop_integration_value_background_slideshow_xml_builder_free_value (GValue* value)
+{
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (value->data[0].v_pointer) {
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
desktop_integration_background_slideshow_xml_builder_unref (value->data[0].v_pointer);
-#line 2280 "DesktopIntegration.c"
+#line 2305 "DesktopIntegration.c"
}
}
-static void desktop_integration_value_background_slideshow_xml_builder_copy_value (const GValue* src_value, GValue* dest_value) {
+static void
+desktop_integration_value_background_slideshow_xml_builder_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (src_value->data[0].v_pointer) {
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
dest_value->data[0].v_pointer = desktop_integration_background_slideshow_xml_builder_ref (src_value->data[0].v_pointer);
-#line 2290 "DesktopIntegration.c"
+#line 2318 "DesktopIntegration.c"
} else {
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
dest_value->data[0].v_pointer = NULL;
-#line 2294 "DesktopIntegration.c"
+#line 2322 "DesktopIntegration.c"
}
}
-static gpointer desktop_integration_value_background_slideshow_xml_builder_peek_pointer (const GValue* value) {
+static gpointer
+desktop_integration_value_background_slideshow_xml_builder_peek_pointer (const GValue* value)
+{
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return value->data[0].v_pointer;
-#line 2302 "DesktopIntegration.c"
+#line 2332 "DesktopIntegration.c"
}
-static gchar* desktop_integration_value_background_slideshow_xml_builder_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+desktop_integration_value_background_slideshow_xml_builder_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (collect_values[0].v_pointer) {
-#line 2309 "DesktopIntegration.c"
+#line 2344 "DesktopIntegration.c"
DesktopIntegrationBackgroundSlideshowXMLBuilder * object;
object = collect_values[0].v_pointer;
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (object->parent_instance.g_class == NULL) {
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2316 "DesktopIntegration.c"
+#line 2351 "DesktopIntegration.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2320 "DesktopIntegration.c"
+#line 2355 "DesktopIntegration.c"
}
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
value->data[0].v_pointer = desktop_integration_background_slideshow_xml_builder_ref (object);
-#line 2324 "DesktopIntegration.c"
+#line 2359 "DesktopIntegration.c"
} else {
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
value->data[0].v_pointer = NULL;
-#line 2328 "DesktopIntegration.c"
+#line 2363 "DesktopIntegration.c"
}
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return NULL;
-#line 2332 "DesktopIntegration.c"
+#line 2367 "DesktopIntegration.c"
}
-static gchar* desktop_integration_value_background_slideshow_xml_builder_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+desktop_integration_value_background_slideshow_xml_builder_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
DesktopIntegrationBackgroundSlideshowXMLBuilder ** object_p;
object_p = collect_values[0].v_pointer;
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (!object_p) {
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2343 "DesktopIntegration.c"
+#line 2383 "DesktopIntegration.c"
}
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (!value->data[0].v_pointer) {
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
*object_p = NULL;
-#line 2349 "DesktopIntegration.c"
+#line 2389 "DesktopIntegration.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
*object_p = value->data[0].v_pointer;
-#line 2353 "DesktopIntegration.c"
+#line 2393 "DesktopIntegration.c"
} else {
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
*object_p = desktop_integration_background_slideshow_xml_builder_ref (value->data[0].v_pointer);
-#line 2357 "DesktopIntegration.c"
+#line 2397 "DesktopIntegration.c"
}
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return NULL;
-#line 2361 "DesktopIntegration.c"
+#line 2401 "DesktopIntegration.c"
}
-GParamSpec* desktop_integration_param_spec_background_slideshow_xml_builder (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+desktop_integration_param_spec_background_slideshow_xml_builder (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
DesktopIntegrationParamSpecBackgroundSlideshowXMLBuilder* spec;
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_return_val_if_fail (g_type_is_a (object_type, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER), NULL);
@@ -2371,20 +2417,25 @@ GParamSpec* desktop_integration_param_spec_background_slideshow_xml_builder (con
G_PARAM_SPEC (spec)->value_type = object_type;
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return G_PARAM_SPEC (spec);
-#line 2375 "DesktopIntegration.c"
+#line 2421 "DesktopIntegration.c"
}
-gpointer desktop_integration_value_get_background_slideshow_xml_builder (const GValue* value) {
+gpointer
+desktop_integration_value_get_background_slideshow_xml_builder (const GValue* value)
+{
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER), NULL);
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return value->data[0].v_pointer;
-#line 2384 "DesktopIntegration.c"
+#line 2432 "DesktopIntegration.c"
}
-void desktop_integration_value_set_background_slideshow_xml_builder (GValue* value, gpointer v_object) {
+void
+desktop_integration_value_set_background_slideshow_xml_builder (GValue* value,
+ gpointer v_object)
+{
DesktopIntegrationBackgroundSlideshowXMLBuilder * old;
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER));
@@ -2400,22 +2451,25 @@ void desktop_integration_value_set_background_slideshow_xml_builder (GValue* val
value->data[0].v_pointer = v_object;
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
desktop_integration_background_slideshow_xml_builder_ref (value->data[0].v_pointer);
-#line 2404 "DesktopIntegration.c"
+#line 2455 "DesktopIntegration.c"
} else {
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
value->data[0].v_pointer = NULL;
-#line 2408 "DesktopIntegration.c"
+#line 2459 "DesktopIntegration.c"
}
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (old) {
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
desktop_integration_background_slideshow_xml_builder_unref (old);
-#line 2414 "DesktopIntegration.c"
+#line 2465 "DesktopIntegration.c"
}
}
-void desktop_integration_value_take_background_slideshow_xml_builder (GValue* value, gpointer v_object) {
+void
+desktop_integration_value_take_background_slideshow_xml_builder (GValue* value,
+ gpointer v_object)
+{
DesktopIntegrationBackgroundSlideshowXMLBuilder * old;
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER));
@@ -2429,33 +2483,37 @@ void desktop_integration_value_take_background_slideshow_xml_builder (GValue* va
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
value->data[0].v_pointer = v_object;
-#line 2433 "DesktopIntegration.c"
+#line 2487 "DesktopIntegration.c"
} else {
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
value->data[0].v_pointer = NULL;
-#line 2437 "DesktopIntegration.c"
+#line 2491 "DesktopIntegration.c"
}
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (old) {
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
desktop_integration_background_slideshow_xml_builder_unref (old);
-#line 2443 "DesktopIntegration.c"
+#line 2497 "DesktopIntegration.c"
}
}
-static void desktop_integration_background_slideshow_xml_builder_class_init (DesktopIntegrationBackgroundSlideshowXMLBuilderClass * klass) {
+static void
+desktop_integration_background_slideshow_xml_builder_class_init (DesktopIntegrationBackgroundSlideshowXMLBuilderClass * klass)
+{
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
desktop_integration_background_slideshow_xml_builder_parent_class = g_type_class_peek_parent (klass);
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
((DesktopIntegrationBackgroundSlideshowXMLBuilderClass *) klass)->finalize = desktop_integration_background_slideshow_xml_builder_finalize;
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_type_class_add_private (klass, sizeof (DesktopIntegrationBackgroundSlideshowXMLBuilderPrivate));
-#line 2455 "DesktopIntegration.c"
+#line 2511 "DesktopIntegration.c"
}
-static void desktop_integration_background_slideshow_xml_builder_instance_init (DesktopIntegrationBackgroundSlideshowXMLBuilder * self) {
+static void
+desktop_integration_background_slideshow_xml_builder_instance_init (DesktopIntegrationBackgroundSlideshowXMLBuilder * self)
+{
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
self->priv = DESKTOP_INTEGRATION_BACKGROUND_SLIDESHOW_XML_BUILDER_GET_PRIVATE (self);
#line 198 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
@@ -2466,11 +2524,13 @@ static void desktop_integration_background_slideshow_xml_builder_instance_init (
self->priv->last_file = NULL;
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
self->ref_count = 1;
-#line 2470 "DesktopIntegration.c"
+#line 2528 "DesktopIntegration.c"
}
-static void desktop_integration_background_slideshow_xml_builder_finalize (DesktopIntegrationBackgroundSlideshowXMLBuilder * obj) {
+static void
+desktop_integration_background_slideshow_xml_builder_finalize (DesktopIntegrationBackgroundSlideshowXMLBuilder * obj)
+{
DesktopIntegrationBackgroundSlideshowXMLBuilder * self;
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER, DesktopIntegrationBackgroundSlideshowXMLBuilder);
@@ -2486,11 +2546,13 @@ static void desktop_integration_background_slideshow_xml_builder_finalize (Deskt
_g_object_unref0 (self->priv->first_file);
#line 200 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (self->priv->last_file);
-#line 2490 "DesktopIntegration.c"
+#line 2550 "DesktopIntegration.c"
}
-GType desktop_integration_background_slideshow_xml_builder_get_type (void) {
+GType
+desktop_integration_background_slideshow_xml_builder_get_type (void)
+{
static volatile gsize desktop_integration_background_slideshow_xml_builder_type_id__volatile = 0;
if (g_once_init_enter (&desktop_integration_background_slideshow_xml_builder_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { desktop_integration_value_background_slideshow_xml_builder_init, desktop_integration_value_background_slideshow_xml_builder_free_value, desktop_integration_value_background_slideshow_xml_builder_copy_value, desktop_integration_value_background_slideshow_xml_builder_peek_pointer, "p", desktop_integration_value_background_slideshow_xml_builder_collect_value, "p", desktop_integration_value_background_slideshow_xml_builder_lcopy_value };
@@ -2504,18 +2566,22 @@ GType desktop_integration_background_slideshow_xml_builder_get_type (void) {
}
-gpointer desktop_integration_background_slideshow_xml_builder_ref (gpointer instance) {
+gpointer
+desktop_integration_background_slideshow_xml_builder_ref (gpointer instance)
+{
DesktopIntegrationBackgroundSlideshowXMLBuilder * self;
self = instance;
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_atomic_int_inc (&self->ref_count);
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return instance;
-#line 2515 "DesktopIntegration.c"
+#line 2579 "DesktopIntegration.c"
}
-void desktop_integration_background_slideshow_xml_builder_unref (gpointer instance) {
+void
+desktop_integration_background_slideshow_xml_builder_unref (gpointer instance)
+{
DesktopIntegrationBackgroundSlideshowXMLBuilder * self;
self = instance;
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
@@ -2524,41 +2590,46 @@ void desktop_integration_background_slideshow_xml_builder_unref (gpointer instan
DESKTOP_INTEGRATION_BACKGROUND_SLIDESHOW_XML_BUILDER_GET_CLASS (self)->finalize (self);
#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 2528 "DesktopIntegration.c"
+#line 2594 "DesktopIntegration.c"
}
}
-static void _desktop_integration_on_desktop_slideshow_exported_exporter_completion_callback (Exporter* exporter, gboolean is_cancelled, gpointer self) {
+static void
+_desktop_integration_on_desktop_slideshow_exported_exporter_completion_callback (Exporter* exporter,
+ gboolean is_cancelled,
+ gpointer self)
+{
#line 290 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
desktop_integration_on_desktop_slideshow_exported (exporter, is_cancelled);
-#line 2536 "DesktopIntegration.c"
+#line 2606 "DesktopIntegration.c"
}
-void desktop_integration_set_background_slideshow (GeeCollection* photos, gdouble duration, gdouble transition, gboolean desktop_background, gboolean screensaver) {
+void
+desktop_integration_set_background_slideshow (GeeCollection* photos,
+ gdouble duration,
+ gdouble transition,
+ gboolean desktop_background,
+ gboolean screensaver)
+{
ExporterUI* _tmp0_;
- gboolean _tmp1_;
- gboolean _tmp2_;
GFile* wallpaper_dir = NULL;
- GFile* _tmp3_;
+ GFile* _tmp1_;
GeeSet* exceptions = NULL;
- GeeHashSet* _tmp4_;
- GeeSet* _tmp5_;
- gdouble _tmp10_;
- gdouble _tmp11_;
+ GeeHashSet* _tmp2_;
+ GeeSet* _tmp3_;
Exporter* exporter = NULL;
- GeeCollection* _tmp12_;
- GFile* _tmp13_;
- AppWindow* _tmp14_;
- AppWindow* _tmp15_;
- Scaling _tmp16_ = {0};
- ExportFormatParameters _tmp17_ = {0};
- Exporter* _tmp18_;
- Exporter* _tmp19_;
- Exporter* _tmp20_;
- ExporterUI* _tmp21_;
- ExporterUI* _tmp22_;
+ GFile* _tmp8_;
+ AppWindow* _tmp9_;
+ AppWindow* _tmp10_;
+ Scaling _tmp11_ = {0};
+ ExportFormatParameters _tmp12_ = {0};
+ Exporter* _tmp13_;
+ Exporter* _tmp14_;
+ Exporter* _tmp15_;
+ ExporterUI* _tmp16_;
+ ExporterUI* _tmp17_;
GError * _inner_error_ = NULL;
#line 265 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_return_if_fail (GEE_IS_COLLECTION (photos));
@@ -2568,41 +2639,37 @@ void desktop_integration_set_background_slideshow (GeeCollection* photos, gdoubl
if (_tmp0_ != NULL) {
#line 268 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 2572 "DesktopIntegration.c"
+#line 2643 "DesktopIntegration.c"
}
#line 270 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = desktop_background;
-#line 270 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_set_desktop_background = _tmp1_;
-#line 271 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = screensaver;
+ desktop_integration_set_desktop_background = desktop_background;
#line 271 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_set_screensaver = _tmp2_;
+ desktop_integration_set_screensaver = screensaver;
#line 273 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = app_dirs_get_data_subdir ("wallpaper", NULL);
+ _tmp1_ = app_dirs_get_data_subdir ("wallpaper", NULL);
#line 273 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- wallpaper_dir = _tmp3_;
+ wallpaper_dir = _tmp1_;
#line 275 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
+ _tmp2_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
#line 275 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- exceptions = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_SET, GeeSet);
+ exceptions = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_SET, GeeSet);
#line 276 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = exceptions;
+ _tmp3_ = exceptions;
#line 276 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), DESKTOP_INTEGRATION_DESKTOP_SLIDESHOW_XML_FILENAME);
-#line 2594 "DesktopIntegration.c"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection), DESKTOP_INTEGRATION_DESKTOP_SLIDESHOW_XML_FILENAME);
+#line 2661 "DesktopIntegration.c"
{
- GFile* _tmp6_;
- GeeSet* _tmp7_;
+ GFile* _tmp4_;
+ GeeSet* _tmp5_;
#line 278 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = wallpaper_dir;
+ _tmp4_ = wallpaper_dir;
#line 278 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = exceptions;
+ _tmp5_ = exceptions;
#line 278 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- delete_all_files (_tmp6_, _tmp7_, NULL, NULL, (guint64) 0, NULL, &_inner_error_);
+ delete_all_files (_tmp4_, _tmp5_, NULL, NULL, (guint64) 0, NULL, &_inner_error_);
#line 278 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2606 "DesktopIntegration.c"
+#line 2673 "DesktopIntegration.c"
goto __catch579_g_error;
}
}
@@ -2610,22 +2677,22 @@ void desktop_integration_set_background_slideshow (GeeCollection* photos, gdoubl
__catch579_g_error:
{
GError* err = NULL;
- GError* _tmp8_;
- const gchar* _tmp9_;
+ GError* _tmp6_;
+ const gchar* _tmp7_;
#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
err = _inner_error_;
#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_inner_error_ = NULL;
#line 280 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = err;
+ _tmp6_ = err;
#line 280 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = _tmp8_->message;
+ _tmp7_ = _tmp6_->message;
#line 280 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_warning ("DesktopIntegration.vala:280: Error attempting to clear wallpaper direc" \
-"tory: %s", _tmp9_);
+"tory: %s", _tmp7_);
#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_error_free0 (err);
-#line 2628 "DesktopIntegration.c"
+#line 2695 "DesktopIntegration.c"
}
__finally579:
#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
@@ -2640,72 +2707,68 @@ void desktop_integration_set_background_slideshow (GeeCollection* photos, gdoubl
g_clear_error (&_inner_error_);
#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 2643 "DesktopIntegration.c"
+#line 2710 "DesktopIntegration.c"
}
#line 283 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = duration;
-#line 283 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_desktop_slideshow_duration = _tmp10_;
+ desktop_integration_desktop_slideshow_duration = duration;
#line 284 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp11_ = transition;
-#line 284 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_desktop_slideshow_transition = _tmp11_;
-#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = photos;
+ desktop_integration_desktop_slideshow_transition = transition;
#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = wallpaper_dir;
+ _tmp8_ = wallpaper_dir;
#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp14_ = app_window_get_instance ();
+ _tmp9_ = app_window_get_instance ();
#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp15_ = _tmp14_;
+ _tmp10_ = _tmp9_;
#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- scaling_to_fill_screen (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_window_get_type (), GtkWindow), &_tmp16_);
+ scaling_to_fill_screen (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_window_get_type (), GtkWindow), &_tmp11_);
#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- export_format_parameters_current (&_tmp17_);
+ export_format_parameters_current (&_tmp12_);
#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp18_ = exporter_new (_tmp12_, _tmp13_, &_tmp16_, &_tmp17_, TRUE);
+ _tmp13_ = exporter_new (photos, _tmp8_, &_tmp11_, &_tmp12_, TRUE);
#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp19_ = _tmp18_;
+ _tmp14_ = _tmp13_;
#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp15_);
+ _g_object_unref0 (_tmp10_);
#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- exporter = _tmp19_;
+ exporter = _tmp14_;
#line 289 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp20_ = exporter;
+ _tmp15_ = exporter;
#line 289 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp21_ = exporter_ui_new (_tmp20_);
+ _tmp16_ = exporter_ui_new (_tmp15_);
#line 289 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_exporter_ui_unref0 (desktop_integration_desktop_slideshow_exporter);
#line 289 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_desktop_slideshow_exporter = _tmp21_;
+ desktop_integration_desktop_slideshow_exporter = _tmp16_;
#line 290 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp22_ = desktop_integration_desktop_slideshow_exporter;
+ _tmp17_ = desktop_integration_desktop_slideshow_exporter;
#line 290 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- exporter_ui_export (_tmp22_, _desktop_integration_on_desktop_slideshow_exported_exporter_completion_callback, NULL);
+ exporter_ui_export (_tmp17_, _desktop_integration_on_desktop_slideshow_exported_exporter_completion_callback, NULL);
#line 265 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (exporter);
#line 265 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (exceptions);
#line 265 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (wallpaper_dir);
-#line 2691 "DesktopIntegration.c"
+#line 2752 "DesktopIntegration.c"
}
-void desktop_integration_on_desktop_slideshow_exported (Exporter* exporter, gboolean is_cancelled) {
- gboolean _tmp0_;
+void
+desktop_integration_on_desktop_slideshow_exported (Exporter* exporter,
+ gboolean is_cancelled)
+{
GFile* xml_file = NULL;
DesktopIntegrationBackgroundSlideshowXMLBuilder* xml_builder = NULL;
+ GFile* _tmp0_;
GFile* _tmp1_;
GFile* _tmp2_;
GFile* _tmp3_;
- GFile* _tmp4_;
+ gdouble _tmp4_;
gdouble _tmp5_;
- gdouble _tmp6_;
+ DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp6_;
DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp7_;
- DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp8_;
- gboolean _tmp24_;
- gboolean _tmp30_;
+ gboolean _tmp22_;
+ gboolean _tmp28_;
GError * _inner_error_ = NULL;
#line 293 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
g_return_if_fail (IS_EXPORTER (exporter));
@@ -2714,154 +2777,149 @@ void desktop_integration_on_desktop_slideshow_exported (Exporter* exporter, gboo
#line 294 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
desktop_integration_desktop_slideshow_exporter = NULL;
#line 296 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp0_ = is_cancelled;
-#line 296 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp0_) {
+ if (is_cancelled) {
#line 297 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 2722 "DesktopIntegration.c"
+#line 2783 "DesktopIntegration.c"
}
#line 299 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
xml_file = NULL;
#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp1_ = app_dirs_get_data_subdir ("wallpaper", NULL);
+ _tmp0_ = app_dirs_get_data_subdir ("wallpaper", NULL);
#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp2_ = _tmp1_;
+ _tmp1_ = _tmp0_;
#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp3_ = g_file_get_child (_tmp2_, DESKTOP_INTEGRATION_DESKTOP_SLIDESHOW_XML_FILENAME);
+ _tmp2_ = g_file_get_child (_tmp1_, DESKTOP_INTEGRATION_DESKTOP_SLIDESHOW_XML_FILENAME);
#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp4_ = _tmp3_;
+ _tmp3_ = _tmp2_;
#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp5_ = desktop_integration_desktop_slideshow_duration;
+ _tmp4_ = desktop_integration_desktop_slideshow_duration;
#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp6_ = desktop_integration_desktop_slideshow_transition;
+ _tmp5_ = desktop_integration_desktop_slideshow_transition;
#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp7_ = desktop_integration_background_slideshow_xml_builder_new (_tmp4_, _tmp5_, _tmp6_);
+ _tmp6_ = desktop_integration_background_slideshow_xml_builder_new (_tmp3_, _tmp4_, _tmp5_);
#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp8_ = _tmp7_;
+ _tmp7_ = _tmp6_;
#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp4_);
+ _g_object_unref0 (_tmp3_);
#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp2_);
+ _g_object_unref0 (_tmp1_);
#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- xml_builder = _tmp8_;
-#line 2748 "DesktopIntegration.c"
+ xml_builder = _tmp7_;
+#line 2809 "DesktopIntegration.c"
{
- DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp9_;
- Exporter* _tmp10_;
- gint _tmp11_;
- GFile** _tmp12_;
- GFile* _tmp16_ = NULL;
- DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp17_;
- GFile* _tmp18_;
- GFile* _tmp19_;
+ DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp8_;
+ gint _tmp9_;
+ GFile** _tmp10_;
+ GFile* _tmp14_ = NULL;
+ DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp15_;
+ GFile* _tmp16_;
+ GFile* _tmp17_;
#line 304 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp9_ = xml_builder;
+ _tmp8_ = xml_builder;
#line 304 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_background_slideshow_xml_builder_open (_tmp9_, &_inner_error_);
+ desktop_integration_background_slideshow_xml_builder_open (_tmp8_, &_inner_error_);
#line 304 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2764 "DesktopIntegration.c"
+#line 2824 "DesktopIntegration.c"
goto __catch580_g_error;
}
#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp10_ = exporter;
-#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp12_ = exporter_get_exported_files (_tmp10_, &_tmp11_);
-#line 2771 "DesktopIntegration.c"
+ _tmp10_ = exporter_get_exported_files (exporter, &_tmp9_);
+#line 2829 "DesktopIntegration.c"
{
GFile** file_collection = NULL;
gint file_collection_length1 = 0;
gint _file_collection_size_ = 0;
gint file_it = 0;
#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- file_collection = _tmp12_;
+ file_collection = _tmp10_;
#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- file_collection_length1 = _tmp11_;
+ file_collection_length1 = _tmp9_;
#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- for (file_it = 0; file_it < _tmp11_; file_it = file_it + 1) {
-#line 2783 "DesktopIntegration.c"
- GFile* _tmp13_;
+ for (file_it = 0; file_it < _tmp9_; file_it = file_it + 1) {
+#line 2841 "DesktopIntegration.c"
+ GFile* _tmp11_;
GFile* file = NULL;
#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp13_ = _g_object_ref0 (file_collection[file_it]);
+ _tmp11_ = _g_object_ref0 (file_collection[file_it]);
#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- file = _tmp13_;
-#line 2790 "DesktopIntegration.c"
+ file = _tmp11_;
+#line 2848 "DesktopIntegration.c"
{
- DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp14_;
- GFile* _tmp15_;
+ DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp12_;
+ GFile* _tmp13_;
#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp14_ = xml_builder;
+ _tmp12_ = xml_builder;
#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp15_ = file;
+ _tmp13_ = file;
#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- desktop_integration_background_slideshow_xml_builder_add_photo (_tmp14_, _tmp15_, &_inner_error_);
+ desktop_integration_background_slideshow_xml_builder_add_photo (_tmp12_, _tmp13_, &_inner_error_);
#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (file);
#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
file_collection = (_vala_array_free (file_collection, file_collection_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 2806 "DesktopIntegration.c"
+#line 2864 "DesktopIntegration.c"
goto __catch580_g_error;
}
#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (file);
-#line 2811 "DesktopIntegration.c"
+#line 2869 "DesktopIntegration.c"
}
}
#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
file_collection = (_vala_array_free (file_collection, file_collection_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 2816 "DesktopIntegration.c"
+#line 2874 "DesktopIntegration.c"
}
#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp17_ = xml_builder;
+ _tmp15_ = xml_builder;
#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp18_ = desktop_integration_background_slideshow_xml_builder_close (_tmp17_, &_inner_error_);
+ _tmp16_ = desktop_integration_background_slideshow_xml_builder_close (_tmp15_, &_inner_error_);
#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp16_ = _tmp18_;
+ _tmp14_ = _tmp16_;
#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2826 "DesktopIntegration.c"
+#line 2884 "DesktopIntegration.c"
goto __catch580_g_error;
}
#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp19_ = _tmp16_;
+ _tmp17_ = _tmp14_;
#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp16_ = NULL;
+ _tmp14_ = NULL;
#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (xml_file);
#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- xml_file = _tmp19_;
+ xml_file = _tmp17_;
#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp16_);
-#line 2839 "DesktopIntegration.c"
+ _g_object_unref0 (_tmp14_);
+#line 2897 "DesktopIntegration.c"
}
goto __finally580;
__catch580_g_error:
{
GError* err = NULL;
- GError* _tmp20_;
- const gchar* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
+ GError* _tmp18_;
+ const gchar* _tmp19_;
+ gchar* _tmp20_;
+ gchar* _tmp21_;
#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
err = _inner_error_;
#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_inner_error_ = NULL;
#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp20_ = err;
+ _tmp18_ = err;
#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp21_ = _tmp20_->message;
+ _tmp19_ = _tmp18_->message;
#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp22_ = g_strdup_printf (_ ("Unable to prepare desktop slideshow: %s"), _tmp21_);
+ _tmp20_ = g_strdup_printf (_ ("Unable to prepare desktop slideshow: %s"), _tmp19_);
#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp23_ = _tmp22_;
+ _tmp21_ = _tmp20_;
#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- app_window_error_message (_tmp23_, NULL);
+ app_window_error_message (_tmp21_, NULL);
#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp23_);
+ _g_free0 (_tmp21_);
#line 314 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_error_free0 (err);
#line 314 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
@@ -2870,7 +2928,7 @@ void desktop_integration_on_desktop_slideshow_exported (Exporter* exporter, gboo
_g_object_unref0 (xml_file);
#line 314 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 2873 "DesktopIntegration.c"
+#line 2931 "DesktopIntegration.c"
}
__finally580:
#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
@@ -2885,73 +2943,77 @@ void desktop_integration_on_desktop_slideshow_exported (Exporter* exporter, gboo
g_clear_error (&_inner_error_);
#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
return;
-#line 2888 "DesktopIntegration.c"
+#line 2946 "DesktopIntegration.c"
}
#line 317 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp24_ = desktop_integration_set_desktop_background;
+ _tmp22_ = desktop_integration_set_desktop_background;
#line 317 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp24_) {
-#line 2894 "DesktopIntegration.c"
- ConfigFacade* _tmp25_;
- ConfigFacade* _tmp26_;
- GFile* _tmp27_;
- gchar* _tmp28_;
- gchar* _tmp29_;
+ if (_tmp22_) {
+#line 2952 "DesktopIntegration.c"
+ ConfigFacade* _tmp23_;
+ ConfigFacade* _tmp24_;
+ GFile* _tmp25_;
+ gchar* _tmp26_;
+ gchar* _tmp27_;
#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp25_ = config_facade_get_instance ();
+ _tmp23_ = config_facade_get_instance ();
#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp26_ = _tmp25_;
+ _tmp24_ = _tmp23_;
#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp27_ = xml_file;
+ _tmp25_ = xml_file;
#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp28_ = g_file_get_path (_tmp27_);
+ _tmp26_ = g_file_get_path (_tmp25_);
#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp29_ = _tmp28_;
+ _tmp27_ = _tmp26_;
#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- configuration_facade_set_desktop_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp29_);
+ configuration_facade_set_desktop_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp27_);
#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp29_);
+ _g_free0 (_tmp27_);
#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp26_);
-#line 2916 "DesktopIntegration.c"
+ _g_object_unref0 (_tmp24_);
+#line 2974 "DesktopIntegration.c"
}
#line 320 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp30_ = desktop_integration_set_screensaver;
+ _tmp28_ = desktop_integration_set_screensaver;
#line 320 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- if (_tmp30_) {
-#line 2922 "DesktopIntegration.c"
- ConfigFacade* _tmp31_;
- ConfigFacade* _tmp32_;
- GFile* _tmp33_;
- gchar* _tmp34_;
- gchar* _tmp35_;
+ if (_tmp28_) {
+#line 2980 "DesktopIntegration.c"
+ ConfigFacade* _tmp29_;
+ ConfigFacade* _tmp30_;
+ GFile* _tmp31_;
+ gchar* _tmp32_;
+ gchar* _tmp33_;
#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp31_ = config_facade_get_instance ();
+ _tmp29_ = config_facade_get_instance ();
#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp32_ = _tmp31_;
+ _tmp30_ = _tmp29_;
#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp33_ = xml_file;
+ _tmp31_ = xml_file;
#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp34_ = g_file_get_path (_tmp33_);
+ _tmp32_ = g_file_get_path (_tmp31_);
#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _tmp35_ = _tmp34_;
+ _tmp33_ = _tmp32_;
#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- configuration_facade_set_screensaver (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp35_);
+ configuration_facade_set_screensaver (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp33_);
#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_free0 (_tmp35_);
+ _g_free0 (_tmp33_);
#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
- _g_object_unref0 (_tmp32_);
-#line 2944 "DesktopIntegration.c"
+ _g_object_unref0 (_tmp30_);
+#line 3002 "DesktopIntegration.c"
}
#line 293 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_desktop_integration_background_slideshow_xml_builder_unref0 (xml_builder);
#line 293 "/home/jens/Source/shotwell/src/DesktopIntegration.vala"
_g_object_unref0 (xml_file);
-#line 2950 "DesktopIntegration.c"
+#line 3008 "DesktopIntegration.c"
}
-static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+static void
+_vala_array_destroy (gpointer array,
+ gint array_length,
+ GDestroyNotify destroy_func)
+{
if ((array != NULL) && (destroy_func != NULL)) {
int i;
for (i = 0; i < array_length; i = i + 1) {
@@ -2963,7 +3025,11 @@ static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNoti
}
-static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+static void
+_vala_array_free (gpointer array,
+ gint array_length,
+ GDestroyNotify destroy_func)
+{
_vala_array_destroy (array, array_length, destroy_func);
g_free (array);
}