summaryrefslogtreecommitdiff
path: root/src/dialogs/ExportDialog.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-06-25 21:12:13 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-06-25 21:12:13 +0200
commit059a62ee3c820a42fbce980c3256049adecc9100 (patch)
treee51eab94fd7d65459640ca227fb2257bb41d2acb /src/dialogs/ExportDialog.c
parent55778740c211992cc86ea87588ab62c6750f36d1 (diff)
parente8f4d7a9cdd37c5a9fb3b6991a4e9173829808da (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/dialogs/ExportDialog.c')
-rw-r--r--src/dialogs/ExportDialog.c1743
1 files changed, 860 insertions, 883 deletions
diff --git a/src/dialogs/ExportDialog.c b/src/dialogs/ExportDialog.c
index f74f962..f20dd78 100644
--- a/src/dialogs/ExportDialog.c
+++ b/src/dialogs/ExportDialog.c
@@ -1,4 +1,4 @@
-/* ExportDialog.c generated by valac 0.36.6, the Vala compiler
+/* ExportDialog.c generated by valac 0.40.4, the Vala compiler
* generated from ExportDialog.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -8,6 +8,7 @@
* See the COPYING file in this distribution.
*/
+
#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
@@ -27,6 +28,11 @@
typedef struct _ExportDialog ExportDialog;
typedef struct _ExportDialogClass ExportDialogClass;
typedef struct _ExportDialogPrivate ExportDialogPrivate;
+enum {
+ EXPORT_DIALOG_0_PROPERTY,
+ EXPORT_DIALOG_NUM_PROPERTIES
+};
+static GParamSpec* export_dialog_properties[EXPORT_DIALOG_NUM_PROPERTIES];
#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
@@ -146,9 +152,6 @@ static gint export_dialog_current_scale = 0;
GType export_dialog_get_type (void) G_GNUC_CONST;
#define EXPORT_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EXPORT_DIALOG, ExportDialogPrivate))
-enum {
- EXPORT_DIALOG_DUMMY_PROPERTY
-};
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;
@@ -162,7 +165,8 @@ void export_format_parameters_current (ExportFormatParameters* result);
#define EXPORT_DIALOG_UNMODIFIED_FORMAT_LABEL _ ("Unmodified")
#define EXPORT_DIALOG_CURRENT_FORMAT_LABEL _ ("Current")
ExportDialog* export_dialog_new (const gchar* title);
-ExportDialog* export_dialog_construct (GType object_type, const gchar* title);
+ExportDialog* export_dialog_construct (GType object_type,
+ const gchar* title);
gint resources_use_header_bar (void);
GType configuration_facade_get_type (void) G_GNUC_CONST;
GType config_facade_get_type (void) G_GNUC_CONST;
@@ -175,213 +179,248 @@ ScaleConstraint configuration_facade_get_export_constraint (ConfigurationFacade*
gint configuration_facade_get_export_scale (ConfigurationFacade* self);
gchar* jpeg_quality_to_string (JpegQuality self);
gchar* scale_constraint_to_string (ScaleConstraint self);
-static void export_dialog_format_add_option (ExportDialog* self, const gchar* format_name);
+static void export_dialog_format_add_option (ExportDialog* self,
+ const gchar* format_name);
PhotoFileFormat* photo_file_format_get_writeable (int* result_length1);
gpointer photo_file_format_properties_ref (gpointer instance);
void photo_file_format_properties_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_properties (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_photo_file_format_properties (GValue* value, gpointer v_object);
-void value_take_photo_file_format_properties (GValue* value, gpointer v_object);
+GParamSpec* param_spec_photo_file_format_properties (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_photo_file_format_properties (GValue* value,
+ gpointer v_object);
+void value_take_photo_file_format_properties (GValue* value,
+ gpointer v_object);
gpointer value_get_photo_file_format_properties (const GValue* value);
GType photo_file_format_properties_get_type (void) G_GNUC_CONST;
PhotoFileFormatProperties* photo_file_format_get_properties (PhotoFileFormat self);
gchar* photo_file_format_properties_get_user_visible_name (PhotoFileFormatProperties* self);
static void export_dialog_on_constraint_changed (ExportDialog* self);
-static void _export_dialog_on_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
+static void _export_dialog_on_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender,
+ gpointer self);
static void export_dialog_on_format_changed (ExportDialog* self);
-static void _export_dialog_on_format_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
+static void _export_dialog_on_format_changed_gtk_combo_box_changed (GtkComboBox* _sender,
+ gpointer self);
static void export_dialog_on_pixels_changed (ExportDialog* self);
-static void _export_dialog_on_pixels_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
-static void export_dialog_on_pixels_insert_text (ExportDialog* self, const gchar* text, gint length, gint* position);
-static void _export_dialog_on_pixels_insert_text_gtk_editable_insert_text (GtkEditable* _sender, const gchar* new_text, gint new_text_length, gint* position, gpointer self);
+static void _export_dialog_on_pixels_changed_gtk_editable_changed (GtkEditable* _sender,
+ gpointer self);
+static void export_dialog_on_pixels_insert_text (ExportDialog* self,
+ const gchar* text,
+ gint length,
+ gint* position);
+static void _export_dialog_on_pixels_insert_text_gtk_editable_insert_text (GtkEditable* _sender,
+ const gchar* new_text,
+ gint new_text_length,
+ gint* position,
+ gpointer self);
static void export_dialog_on_activate (ExportDialog* self);
-static void _export_dialog_on_activate_gtk_entry_activate (GtkEntry* _sender, gpointer self);
-static void export_dialog_add_label (ExportDialog* self, const gchar* text, gint x, gint y, GtkWidget* widget);
-static void export_dialog_add_control (ExportDialog* self, GtkWidget* widget, gint x, gint y);
+static void _export_dialog_on_activate_gtk_entry_activate (GtkEntry* _sender,
+ gpointer self);
+static void export_dialog_add_label (ExportDialog* self,
+ const gchar* text,
+ gint x,
+ gint y,
+ GtkWidget* widget);
+static void export_dialog_add_control (ExportDialog* self,
+ GtkWidget* widget,
+ gint x,
+ gint y);
#define RESOURCES_CANCEL_LABEL _ ("_Cancel")
#define RESOURCES_OK_LABEL _ ("_OK")
-static void export_dialog_format_set_active_text (ExportDialog* self, const gchar* text);
+static void export_dialog_format_set_active_text (ExportDialog* self,
+ const gchar* text);
static PhotoFileFormat export_dialog_get_specified_format (ExportDialog* self);
-static gchar* export_dialog_get_label_for_parameters (ExportDialog* self, ExportFormatParameters* params);
-gboolean export_dialog_execute (ExportDialog* self, gint* scale, ScaleConstraint* constraint, ExportFormatParameters* parameters);
+static gchar* export_dialog_get_label_for_parameters (ExportDialog* self,
+ ExportFormatParameters* params);
+gboolean export_dialog_execute (ExportDialog* self,
+ gint* scale,
+ ScaleConstraint* constraint,
+ ExportFormatParameters* parameters);
gboolean photo_file_format_can_write (PhotoFileFormat self);
PhotoFileFormat photo_file_format_get_system_default_format (void);
-void configuration_facade_set_export_export_format_mode (ConfigurationFacade* self, ExportFormatMode export_format_mode);
-void configuration_facade_set_export_photo_file_format (ConfigurationFacade* self, PhotoFileFormat photo_file_format);
-void configuration_facade_set_export_quality (ConfigurationFacade* self, JpegQuality quality);
-void configuration_facade_set_export_export_metadata (ConfigurationFacade* self, gboolean export_metadata);
-void configuration_facade_set_export_constraint (ConfigurationFacade* self, ScaleConstraint constraint);
-void configuration_facade_set_export_scale (ConfigurationFacade* self, gint scale);
+void configuration_facade_set_export_export_format_mode (ConfigurationFacade* self,
+ ExportFormatMode export_format_mode);
+void configuration_facade_set_export_photo_file_format (ConfigurationFacade* self,
+ PhotoFileFormat photo_file_format);
+void configuration_facade_set_export_quality (ConfigurationFacade* self,
+ JpegQuality quality);
+void configuration_facade_set_export_export_metadata (ConfigurationFacade* self,
+ gboolean export_metadata);
+void configuration_facade_set_export_constraint (ConfigurationFacade* self,
+ ScaleConstraint constraint);
+void configuration_facade_set_export_scale (ConfigurationFacade* self,
+ gint scale);
static void export_dialog_finalize (GObject * obj);
const ScaleConstraint EXPORT_DIALOG_CONSTRAINT_ARRAY[4] = {SCALE_CONSTRAINT_ORIGINAL, SCALE_CONSTRAINT_DIMENSIONS, SCALE_CONSTRAINT_WIDTH, SCALE_CONSTRAINT_HEIGHT};
const JpegQuality EXPORT_DIALOG_QUALITY_ARRAY[4] = {JPEG_QUALITY_LOW, JPEG_QUALITY_MEDIUM, JPEG_QUALITY_HIGH, JPEG_QUALITY_MAXIMUM};
-static void _export_dialog_on_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
+static void
+_export_dialog_on_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender,
+ gpointer self)
+{
#line 83 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
export_dialog_on_constraint_changed ((ExportDialog*) self);
-#line 224 "ExportDialog.c"
+#line 267 "ExportDialog.c"
}
-static void _export_dialog_on_format_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
+static void
+_export_dialog_on_format_changed_gtk_combo_box_changed (GtkComboBox* _sender,
+ gpointer self)
+{
#line 84 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
export_dialog_on_format_changed ((ExportDialog*) self);
-#line 231 "ExportDialog.c"
+#line 277 "ExportDialog.c"
}
-static void _export_dialog_on_pixels_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
+static void
+_export_dialog_on_pixels_changed_gtk_editable_changed (GtkEditable* _sender,
+ gpointer self)
+{
#line 85 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
export_dialog_on_pixels_changed ((ExportDialog*) self);
-#line 238 "ExportDialog.c"
+#line 287 "ExportDialog.c"
}
-static void _export_dialog_on_pixels_insert_text_gtk_editable_insert_text (GtkEditable* _sender, const gchar* new_text, gint new_text_length, gint* position, gpointer self) {
+static void
+_export_dialog_on_pixels_insert_text_gtk_editable_insert_text (GtkEditable* _sender,
+ const gchar* new_text,
+ gint new_text_length,
+ gint* position,
+ gpointer self)
+{
#line 86 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
export_dialog_on_pixels_insert_text ((ExportDialog*) self, new_text, new_text_length, position);
-#line 245 "ExportDialog.c"
+#line 300 "ExportDialog.c"
}
-static void _export_dialog_on_activate_gtk_entry_activate (GtkEntry* _sender, gpointer self) {
+static void
+_export_dialog_on_activate_gtk_entry_activate (GtkEntry* _sender,
+ gpointer self)
+{
#line 87 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
export_dialog_on_activate ((ExportDialog*) self);
-#line 252 "ExportDialog.c"
+#line 310 "ExportDialog.c"
}
-static gpointer _g_object_ref0 (gpointer self) {
+static gpointer
+_g_object_ref0 (gpointer self)
+{
#line 116 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
return self ? g_object_ref (self) : NULL;
-#line 259 "ExportDialog.c"
+#line 319 "ExportDialog.c"
}
-ExportDialog* export_dialog_construct (GType object_type, const gchar* title) {
+ExportDialog*
+export_dialog_construct (GType object_type,
+ const gchar* title)
+{
ExportDialog * self = NULL;
- gint _tmp0_;
- const gchar* _tmp1_;
ConfigFacade* config = NULL;
+ ConfigFacade* _tmp0_;
+ ConfigFacade* _tmp1_;
ConfigFacade* _tmp2_;
ConfigFacade* _tmp3_;
- ExportFormatMode _tmp4_;
+ ConfigFacade* _tmp4_;
ConfigFacade* _tmp5_;
- PhotoFileFormat _tmp6_;
- ConfigFacade* _tmp7_;
- JpegQuality _tmp8_;
- ConfigFacade* _tmp9_;
- gboolean _tmp10_;
- ConfigFacade* _tmp11_;
- ScaleConstraint _tmp12_;
- ConfigFacade* _tmp13_;
- gint _tmp14_;
- GtkComboBoxText* _tmp15_;
+ ConfigFacade* _tmp6_;
+ GtkComboBoxText* _tmp7_;
gint ctr = 0;
- GtkComboBoxText* _tmp26_;
- GtkComboBoxText* _tmp36_;
- gint _tmp37_;
- PhotoFileFormat* _tmp38_;
+ GtkComboBoxText* _tmp18_;
+ GtkComboBoxText* _tmp28_;
+ gint _tmp29_;
+ PhotoFileFormat* _tmp30_;
+ GtkEntry* _tmp36_;
+ GtkEntry* _tmp37_;
+ GtkEntry* _tmp38_;
+ gint _tmp39_;
+ gchar* _tmp40_;
+ gchar* _tmp41_;
+ GtkComboBoxText* _tmp42_;
+ GtkComboBoxText* _tmp43_;
GtkEntry* _tmp44_;
GtkEntry* _tmp45_;
GtkEntry* _tmp46_;
- gint _tmp47_;
- gchar* _tmp48_;
- gchar* _tmp49_;
+ GtkComboBoxText* _tmp47_;
+ GtkComboBoxText* _tmp48_;
+ GtkComboBoxText* _tmp49_;
GtkComboBoxText* _tmp50_;
GtkComboBoxText* _tmp51_;
- GtkEntry* _tmp52_;
+ GtkComboBoxText* _tmp52_;
GtkEntry* _tmp53_;
GtkEntry* _tmp54_;
- GtkComboBoxText* _tmp55_;
- GtkComboBoxText* _tmp56_;
- GtkComboBoxText* _tmp57_;
- GtkComboBoxText* _tmp58_;
- GtkComboBoxText* _tmp59_;
- GtkComboBoxText* _tmp60_;
- GtkEntry* _tmp61_;
- GtkEntry* _tmp62_;
- GtkSwitch* _tmp63_;
- GtkSwitch* _tmp64_;
- GtkSwitch* _tmp65_;
- GtkSwitch* _tmp66_;
- GtkSwitch* _tmp67_;
- GtkGrid* _tmp68_;
- GtkGrid* _tmp69_;
- GtkGrid* _tmp70_;
- GtkBox* _tmp71_;
- GtkGrid* _tmp72_;
+ GtkSwitch* _tmp55_;
+ GtkSwitch* _tmp56_;
+ GtkSwitch* _tmp57_;
+ GtkSwitch* _tmp58_;
+ GtkSwitch* _tmp59_;
+ GtkGrid* _tmp60_;
+ GtkGrid* _tmp61_;
+ GtkGrid* _tmp62_;
+ GtkBox* _tmp63_;
+ GtkGrid* _tmp64_;
+ GtkWidget* _tmp65_;
+ GtkWidget* _tmp66_;
+ GtkWidget* _tmp67_;
+ GtkWidget* _tmp68_;
+ GtkWidget* _tmp69_;
+ ScaleConstraint _tmp70_;
GtkWidget* _tmp73_;
- GtkWidget* _tmp74_;
- GtkWidget* _tmp75_;
- GtkWidget* _tmp76_;
- GtkWidget* _tmp77_;
- ScaleConstraint _tmp78_;
- GtkWidget* _tmp81_;
#line 38 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_return_val_if_fail (title != NULL, NULL);
#line 39 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = resources_use_header_bar ();
-#line 39 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self = (ExportDialog*) g_object_new (object_type, "use-header-bar", _tmp0_, NULL);
+ self = (ExportDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL);
#line 41 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = title;
-#line 41 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp1_);
+ gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), title);
#line 42 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
#line 45 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = config_facade_get_instance ();
+ _tmp0_ = config_facade_get_instance ();
#line 45 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- config = _tmp2_;
-#line 46 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = config;
+ config = _tmp0_;
#line 46 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = configuration_facade_get_export_export_format_mode (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
+ _tmp1_ = config;
#line 46 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_parameters.mode = _tmp4_;
-#line 47 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = config;
+ export_dialog_current_parameters.mode = configuration_facade_get_export_export_format_mode (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 47 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = configuration_facade_get_export_photo_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
+ _tmp2_ = config;
#line 47 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_parameters.specified_format = _tmp6_;
+ export_dialog_current_parameters.specified_format = configuration_facade_get_export_photo_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 48 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp7_ = config;
-#line 48 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp8_ = configuration_facade_get_export_quality (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
+ _tmp3_ = config;
#line 48 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_parameters.quality = _tmp8_;
+ export_dialog_current_parameters.quality = configuration_facade_get_export_quality (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 49 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp9_ = config;
+ _tmp4_ = config;
#line 49 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp10_ = configuration_facade_get_export_export_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 49 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_parameters.export_metadata = _tmp10_;
-#line 50 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp11_ = config;
+ export_dialog_current_parameters.export_metadata = configuration_facade_get_export_export_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 50 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp12_ = configuration_facade_get_export_constraint (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
+ _tmp5_ = config;
#line 50 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_constraint = _tmp12_;
-#line 51 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp13_ = config;
+ export_dialog_current_constraint = configuration_facade_get_export_constraint (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 51 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp14_ = configuration_facade_get_export_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
+ _tmp6_ = config;
#line 51 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_scale = _tmp14_;
+ export_dialog_current_scale = configuration_facade_get_export_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 53 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp15_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
+ _tmp7_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
#line 53 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_object_ref_sink (_tmp15_);
+ g_object_ref_sink (_tmp7_);
#line 53 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_g_object_unref0 (self->priv->quality_combo);
#line 53 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->quality_combo = _tmp15_;
+ self->priv->quality_combo = _tmp7_;
#line 54 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
ctr = 0;
-#line 385 "ExportDialog.c"
+#line 424 "ExportDialog.c"
{
JpegQuality* quality_collection = NULL;
gint quality_collection_length1 = 0;
@@ -393,70 +432,70 @@ ExportDialog* export_dialog_construct (GType object_type, const gchar* title) {
quality_collection_length1 = G_N_ELEMENTS (EXPORT_DIALOG_QUALITY_ARRAY);
#line 55 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
for (quality_it = 0; quality_it < G_N_ELEMENTS (EXPORT_DIALOG_QUALITY_ARRAY); quality_it = quality_it + 1) {
-#line 397 "ExportDialog.c"
+#line 436 "ExportDialog.c"
JpegQuality quality = 0;
#line 55 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
quality = quality_collection[quality_it];
-#line 401 "ExportDialog.c"
+#line 440 "ExportDialog.c"
{
- GtkComboBoxText* _tmp16_;
- JpegQuality _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- JpegQuality _tmp20_;
- ExportFormatParameters _tmp21_;
- JpegQuality _tmp22_;
- gint _tmp25_;
+ GtkComboBoxText* _tmp8_;
+ JpegQuality _tmp9_;
+ gchar* _tmp10_;
+ gchar* _tmp11_;
+ JpegQuality _tmp12_;
+ ExportFormatParameters _tmp13_;
+ JpegQuality _tmp14_;
+ gint _tmp17_;
#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp16_ = self->priv->quality_combo;
+ _tmp8_ = self->priv->quality_combo;
#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp17_ = quality;
+ _tmp9_ = quality;
#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp18_ = jpeg_quality_to_string (_tmp17_);
+ _tmp10_ = jpeg_quality_to_string (_tmp9_);
#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp19_ = _tmp18_;
+ _tmp11_ = _tmp10_;
#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_combo_box_text_append_text (_tmp16_, _tmp19_);
+ gtk_combo_box_text_append_text (_tmp8_, _tmp11_);
#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp19_);
+ _g_free0 (_tmp11_);
#line 57 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp20_ = quality;
+ _tmp12_ = quality;
#line 57 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp21_ = export_dialog_current_parameters;
+ _tmp13_ = export_dialog_current_parameters;
#line 57 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp22_ = _tmp21_.quality;
+ _tmp14_ = _tmp13_.quality;
#line 57 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp20_ == _tmp22_) {
-#line 431 "ExportDialog.c"
- GtkComboBoxText* _tmp23_;
- gint _tmp24_;
+ if (_tmp12_ == _tmp14_) {
+#line 470 "ExportDialog.c"
+ GtkComboBoxText* _tmp15_;
+ gint _tmp16_;
#line 58 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp23_ = self->priv->quality_combo;
+ _tmp15_ = self->priv->quality_combo;
#line 58 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp24_ = ctr;
+ _tmp16_ = ctr;
#line 58 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_combo_box_get_type (), GtkComboBox), _tmp24_);
-#line 440 "ExportDialog.c"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_combo_box_get_type (), GtkComboBox), _tmp16_);
+#line 479 "ExportDialog.c"
}
#line 59 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp25_ = ctr;
+ _tmp17_ = ctr;
#line 59 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- ctr = _tmp25_ + 1;
-#line 446 "ExportDialog.c"
+ ctr = _tmp17_ + 1;
+#line 485 "ExportDialog.c"
}
}
}
#line 62 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp26_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
+ _tmp18_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
#line 62 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_object_ref_sink (_tmp26_);
+ g_object_ref_sink (_tmp18_);
#line 62 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_g_object_unref0 (self->priv->constraint_combo);
#line 62 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->constraint_combo = _tmp26_;
+ self->priv->constraint_combo = _tmp18_;
#line 63 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
ctr = 0;
-#line 460 "ExportDialog.c"
+#line 499 "ExportDialog.c"
{
ScaleConstraint* constraint_collection = NULL;
gint constraint_collection_length1 = 0;
@@ -468,299 +507,302 @@ ExportDialog* export_dialog_construct (GType object_type, const gchar* title) {
constraint_collection_length1 = G_N_ELEMENTS (EXPORT_DIALOG_CONSTRAINT_ARRAY);
#line 64 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
for (constraint_it = 0; constraint_it < G_N_ELEMENTS (EXPORT_DIALOG_CONSTRAINT_ARRAY); constraint_it = constraint_it + 1) {
-#line 472 "ExportDialog.c"
+#line 511 "ExportDialog.c"
ScaleConstraint constraint = 0;
#line 64 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
constraint = constraint_collection[constraint_it];
-#line 476 "ExportDialog.c"
+#line 515 "ExportDialog.c"
{
- GtkComboBoxText* _tmp27_;
- ScaleConstraint _tmp28_;
- gchar* _tmp29_;
- gchar* _tmp30_;
- ScaleConstraint _tmp31_;
- ScaleConstraint _tmp32_;
- gint _tmp35_;
+ GtkComboBoxText* _tmp19_;
+ ScaleConstraint _tmp20_;
+ gchar* _tmp21_;
+ gchar* _tmp22_;
+ ScaleConstraint _tmp23_;
+ ScaleConstraint _tmp24_;
+ gint _tmp27_;
#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp27_ = self->priv->constraint_combo;
+ _tmp19_ = self->priv->constraint_combo;
#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp28_ = constraint;
+ _tmp20_ = constraint;
#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp29_ = scale_constraint_to_string (_tmp28_);
+ _tmp21_ = scale_constraint_to_string (_tmp20_);
#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp30_ = _tmp29_;
+ _tmp22_ = _tmp21_;
#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_combo_box_text_append_text (_tmp27_, _tmp30_);
+ gtk_combo_box_text_append_text (_tmp19_, _tmp22_);
#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp30_);
+ _g_free0 (_tmp22_);
#line 66 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp31_ = constraint;
+ _tmp23_ = constraint;
#line 66 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp32_ = export_dialog_current_constraint;
+ _tmp24_ = export_dialog_current_constraint;
#line 66 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp31_ == _tmp32_) {
-#line 503 "ExportDialog.c"
- GtkComboBoxText* _tmp33_;
- gint _tmp34_;
+ if (_tmp23_ == _tmp24_) {
+#line 542 "ExportDialog.c"
+ GtkComboBoxText* _tmp25_;
+ gint _tmp26_;
#line 67 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp33_ = self->priv->constraint_combo;
+ _tmp25_ = self->priv->constraint_combo;
#line 67 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp34_ = ctr;
+ _tmp26_ = ctr;
#line 67 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_combo_box_get_type (), GtkComboBox), _tmp34_);
-#line 512 "ExportDialog.c"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_combo_box_get_type (), GtkComboBox), _tmp26_);
+#line 551 "ExportDialog.c"
}
#line 68 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp35_ = ctr;
+ _tmp27_ = ctr;
#line 68 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- ctr = _tmp35_ + 1;
-#line 518 "ExportDialog.c"
+ ctr = _tmp27_ + 1;
+#line 557 "ExportDialog.c"
}
}
}
#line 71 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp36_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
+ _tmp28_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
#line 71 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_object_ref_sink (_tmp36_);
+ g_object_ref_sink (_tmp28_);
#line 71 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_g_object_unref0 (self->priv->format_combo);
#line 71 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->format_combo = _tmp36_;
+ self->priv->format_combo = _tmp28_;
#line 72 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
export_dialog_format_add_option (self, EXPORT_DIALOG_UNMODIFIED_FORMAT_LABEL);
#line 73 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
export_dialog_format_add_option (self, EXPORT_DIALOG_CURRENT_FORMAT_LABEL);
#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp38_ = photo_file_format_get_writeable (&_tmp37_);
-#line 536 "ExportDialog.c"
+ _tmp30_ = photo_file_format_get_writeable (&_tmp29_);
+#line 575 "ExportDialog.c"
{
PhotoFileFormat* format_collection = NULL;
gint format_collection_length1 = 0;
gint _format_collection_size_ = 0;
gint format_it = 0;
#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- format_collection = _tmp38_;
+ format_collection = _tmp30_;
#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- format_collection_length1 = _tmp37_;
+ format_collection_length1 = _tmp29_;
#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- for (format_it = 0; format_it < _tmp37_; format_it = format_it + 1) {
-#line 548 "ExportDialog.c"
+ for (format_it = 0; format_it < _tmp29_; format_it = format_it + 1) {
+#line 587 "ExportDialog.c"
PhotoFileFormat format = 0;
#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
format = format_collection[format_it];
-#line 552 "ExportDialog.c"
+#line 591 "ExportDialog.c"
{
- PhotoFileFormat _tmp39_;
- PhotoFileFormatProperties* _tmp40_;
- PhotoFileFormatProperties* _tmp41_;
- gchar* _tmp42_;
- gchar* _tmp43_;
+ PhotoFileFormat _tmp31_;
+ PhotoFileFormatProperties* _tmp32_;
+ PhotoFileFormatProperties* _tmp33_;
+ gchar* _tmp34_;
+ gchar* _tmp35_;
#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp39_ = format;
+ _tmp31_ = format;
#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp40_ = photo_file_format_get_properties (_tmp39_);
+ _tmp32_ = photo_file_format_get_properties (_tmp31_);
#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp41_ = _tmp40_;
+ _tmp33_ = _tmp32_;
#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp42_ = photo_file_format_properties_get_user_visible_name (_tmp41_);
+ _tmp34_ = photo_file_format_properties_get_user_visible_name (_tmp33_);
#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp43_ = _tmp42_;
+ _tmp35_ = _tmp34_;
#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_format_add_option (self, _tmp43_);
+ export_dialog_format_add_option (self, _tmp35_);
#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp43_);
+ _g_free0 (_tmp35_);
#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _photo_file_format_properties_unref0 (_tmp41_);
-#line 575 "ExportDialog.c"
+ _photo_file_format_properties_unref0 (_tmp33_);
+#line 614 "ExportDialog.c"
}
}
#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
format_collection = (g_free (format_collection), NULL);
-#line 580 "ExportDialog.c"
+#line 619 "ExportDialog.c"
}
#line 78 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp44_ = (GtkEntry*) gtk_entry_new ();
+ _tmp36_ = (GtkEntry*) gtk_entry_new ();
#line 78 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_object_ref_sink (_tmp44_);
+ g_object_ref_sink (_tmp36_);
#line 78 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_g_object_unref0 (self->priv->pixels_entry);
#line 78 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->pixels_entry = _tmp44_;
+ self->priv->pixels_entry = _tmp36_;
#line 79 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp45_ = self->priv->pixels_entry;
+ _tmp37_ = self->priv->pixels_entry;
#line 79 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_entry_set_max_length (_tmp45_, 6);
+ gtk_entry_set_max_length (_tmp37_, 6);
#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp46_ = self->priv->pixels_entry;
+ _tmp38_ = self->priv->pixels_entry;
#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp47_ = export_dialog_current_scale;
+ _tmp39_ = export_dialog_current_scale;
#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp48_ = g_strdup_printf ("%d", _tmp47_);
+ _tmp40_ = g_strdup_printf ("%d", _tmp39_);
#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp49_ = _tmp48_;
+ _tmp41_ = _tmp40_;
#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_entry_set_text (_tmp46_, _tmp49_);
+ gtk_entry_set_text (_tmp38_, _tmp41_);
#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp49_);
+ _g_free0 (_tmp41_);
#line 83 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp50_ = self->priv->constraint_combo;
+ _tmp42_ = self->priv->constraint_combo;
#line 83 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _export_dialog_on_constraint_changed_gtk_combo_box_changed, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _export_dialog_on_constraint_changed_gtk_combo_box_changed, self, 0);
#line 84 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp51_ = self->priv->format_combo;
+ _tmp43_ = self->priv->format_combo;
#line 84 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _export_dialog_on_format_changed_gtk_combo_box_changed, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _export_dialog_on_format_changed_gtk_combo_box_changed, self, 0);
#line 85 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp52_ = self->priv->pixels_entry;
+ _tmp44_ = self->priv->pixels_entry;
#line 85 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _export_dialog_on_pixels_changed_gtk_editable_changed, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _export_dialog_on_pixels_changed_gtk_editable_changed, self, 0);
#line 86 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp53_ = self->priv->pixels_entry;
+ _tmp45_ = self->priv->pixels_entry;
#line 86 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GTK_TYPE_EDITABLE, GtkEditable), "insert-text", (GCallback) _export_dialog_on_pixels_insert_text_gtk_editable_insert_text, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_editable_get_type (), GtkEditable), "insert-text", (GCallback) _export_dialog_on_pixels_insert_text_gtk_editable_insert_text, self, 0);
#line 87 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp54_ = self->priv->pixels_entry;
+ _tmp46_ = self->priv->pixels_entry;
#line 87 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_signal_connect_object (_tmp54_, "activate", (GCallback) _export_dialog_on_activate_gtk_entry_activate, self, 0);
+ g_signal_connect_object (_tmp46_, "activate", (GCallback) _export_dialog_on_activate_gtk_entry_activate, self, 0);
#line 90 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp55_ = self->priv->format_combo;
+ _tmp47_ = self->priv->format_combo;
#line 90 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_label (self, _ ("_Format:"), 0, 0, G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, gtk_widget_get_type (), GtkWidget));
+ export_dialog_add_label (self, _ ("_Format:"), 0, 0, G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_widget_get_type (), GtkWidget));
#line 91 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp56_ = self->priv->format_combo;
+ _tmp48_ = self->priv->format_combo;
#line 91 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, gtk_widget_get_type (), GtkWidget), 1, 0);
+ export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_widget_get_type (), GtkWidget), 1, 0);
#line 93 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp57_ = self->priv->quality_combo;
+ _tmp49_ = self->priv->quality_combo;
#line 93 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_label (self, _ ("_Quality:"), 0, 1, G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_widget_get_type (), GtkWidget));
+ export_dialog_add_label (self, _ ("_Quality:"), 0, 1, G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_widget_get_type (), GtkWidget));
#line 94 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp58_ = self->priv->quality_combo;
+ _tmp50_ = self->priv->quality_combo;
#line 94 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_widget_get_type (), GtkWidget), 1, 1);
+ export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_widget_get_type (), GtkWidget), 1, 1);
#line 96 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp59_ = self->priv->constraint_combo;
+ _tmp51_ = self->priv->constraint_combo;
#line 96 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_label (self, _ ("_Scaling constraint:"), 0, 2, G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, gtk_widget_get_type (), GtkWidget));
+ export_dialog_add_label (self, _ ("_Scaling constraint:"), 0, 2, G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, gtk_widget_get_type (), GtkWidget));
#line 97 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp60_ = self->priv->constraint_combo;
+ _tmp52_ = self->priv->constraint_combo;
#line 97 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, gtk_widget_get_type (), GtkWidget), 1, 2);
+ export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_widget_get_type (), GtkWidget), 1, 2);
#line 99 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp61_ = self->priv->pixels_entry;
+ _tmp53_ = self->priv->pixels_entry;
#line 99 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_label (self, _ ("_Pixels:"), 0, 3, G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, gtk_widget_get_type (), GtkWidget));
+ export_dialog_add_label (self, _ ("_Pixels:"), 0, 3, G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_widget_get_type (), GtkWidget));
#line 100 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp62_ = self->priv->pixels_entry;
+ _tmp54_ = self->priv->pixels_entry;
#line 100 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_widget_get_type (), GtkWidget), 1, 3);
+ export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_widget_get_type (), GtkWidget), 1, 3);
#line 102 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp63_ = (GtkSwitch*) gtk_switch_new ();
+ _tmp55_ = (GtkSwitch*) gtk_switch_new ();
#line 102 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_object_ref_sink (_tmp63_);
+ g_object_ref_sink (_tmp55_);
#line 102 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_g_object_unref0 (self->priv->export_metadata);
#line 102 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->export_metadata = _tmp63_;
+ self->priv->export_metadata = _tmp55_;
#line 103 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp64_ = self->priv->export_metadata;
+ _tmp56_ = self->priv->export_metadata;
#line 103 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_label (self, _ ("Export _metadata:"), 0, 4, G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_widget_get_type (), GtkWidget));
+ export_dialog_add_label (self, _ ("Export _metadata:"), 0, 4, G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, gtk_widget_get_type (), GtkWidget));
#line 104 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp65_ = self->priv->export_metadata;
+ _tmp57_ = self->priv->export_metadata;
#line 104 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_widget_get_type (), GtkWidget), 1, 4);
+ export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_widget_get_type (), GtkWidget), 1, 4);
#line 105 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp66_ = self->priv->export_metadata;
+ _tmp58_ = self->priv->export_metadata;
#line 105 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_switch_set_active (_tmp66_, TRUE);
+ gtk_switch_set_active (_tmp58_, TRUE);
#line 106 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp67_ = self->priv->export_metadata;
+ _tmp59_ = self->priv->export_metadata;
#line 106 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
+ gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
#line 108 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp68_ = self->priv->table;
+ _tmp60_ = self->priv->table;
#line 108 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_grid_set_row_spacing (_tmp68_, (guint) 6);
+ gtk_grid_set_row_spacing (_tmp60_, (guint) 6);
#line 109 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp69_ = self->priv->table;
+ _tmp61_ = self->priv->table;
#line 109 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_grid_set_column_spacing (_tmp69_, (guint) 12);
+ gtk_grid_set_column_spacing (_tmp61_, (guint) 12);
#line 110 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp70_ = self->priv->table;
+ _tmp62_ = self->priv->table;
#line 110 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, gtk_container_get_type (), GtkContainer), (guint) 18);
+ gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_container_get_type (), GtkContainer), (guint) 18);
#line 112 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp71_ = (GtkBox*) gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
+ _tmp63_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
#line 112 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp72_ = self->priv->table;
+ _tmp64_ = self->priv->table;
#line 112 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_box_get_type (), GtkBox), gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, gtk_widget_get_type (), GtkWidget));
+ gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, gtk_box_get_type (), GtkBox), gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_widget_get_type (), GtkWidget));
#line 115 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), RESOURCES_CANCEL_LABEL, (gint) GTK_RESPONSE_CANCEL);
#line 116 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp73_ = gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), RESOURCES_OK_LABEL, (gint) GTK_RESPONSE_OK);
+ _tmp65_ = gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), RESOURCES_OK_LABEL, (gint) GTK_RESPONSE_OK);
#line 116 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp74_ = _g_object_ref0 (_tmp73_);
+ _tmp66_ = _g_object_ref0 (_tmp65_);
#line 116 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_g_object_unref0 (self->priv->ok_button);
#line 116 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- self->priv->ok_button = _tmp74_;
+ self->priv->ok_button = _tmp66_;
#line 117 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
gtk_dialog_set_default_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK);
#line 119 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp75_ = self->priv->ok_button;
+ _tmp67_ = self->priv->ok_button;
#line 119 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_can_default (_tmp75_, TRUE);
+ gtk_widget_set_can_default (_tmp67_, TRUE);
#line 120 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp76_ = self->priv->ok_button;
+ _tmp68_ = self->priv->ok_button;
#line 120 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_object_set (_tmp76_, "has-default", TRUE, NULL);
+ g_object_set (_tmp68_, "has-default", TRUE, NULL);
#line 121 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp77_ = self->priv->ok_button;
+ _tmp69_ = self->priv->ok_button;
#line 121 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_window_set_default (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp77_);
+ gtk_window_set_default (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp69_);
#line 123 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp78_ = export_dialog_current_constraint;
+ _tmp70_ = export_dialog_current_constraint;
#line 123 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp78_ == SCALE_CONSTRAINT_ORIGINAL) {
-#line 728 "ExportDialog.c"
- GtkEntry* _tmp79_;
- GtkComboBoxText* _tmp80_;
+ if (_tmp70_ == SCALE_CONSTRAINT_ORIGINAL) {
+#line 767 "ExportDialog.c"
+ GtkEntry* _tmp71_;
+ GtkComboBoxText* _tmp72_;
#line 124 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp79_ = self->priv->pixels_entry;
+ _tmp71_ = self->priv->pixels_entry;
#line 124 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp79_, gtk_widget_get_type (), GtkWidget), FALSE);
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_widget_get_type (), GtkWidget), FALSE);
#line 125 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp80_ = self->priv->quality_combo;
+ _tmp72_ = self->priv->quality_combo;
#line 125 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 739 "ExportDialog.c"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 778 "ExportDialog.c"
}
#line 128 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp81_ = self->priv->ok_button;
+ _tmp73_ = self->priv->ok_button;
#line 128 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_grab_focus (_tmp81_);
+ gtk_widget_grab_focus (_tmp73_);
#line 38 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_g_object_unref0 (config);
#line 38 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
return self;
-#line 749 "ExportDialog.c"
+#line 788 "ExportDialog.c"
}
-ExportDialog* export_dialog_new (const gchar* title) {
+ExportDialog*
+export_dialog_new (const gchar* title)
+{
#line 38 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
return export_dialog_construct (TYPE_EXPORT_DIALOG, title);
-#line 756 "ExportDialog.c"
+#line 797 "ExportDialog.c"
}
-static void export_dialog_format_add_option (ExportDialog* self, const gchar* format_name) {
+static void
+export_dialog_format_add_option (ExportDialog* self,
+ const gchar* format_name)
+{
GeeArrayList* _tmp0_;
- const gchar* _tmp1_;
- GtkComboBoxText* _tmp2_;
- const gchar* _tmp3_;
+ GtkComboBoxText* _tmp1_;
#line 131 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_return_if_fail (IS_EXPORT_DIALOG (self));
#line 131 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
@@ -768,29 +810,27 @@ static void export_dialog_format_add_option (ExportDialog* self, const gchar* fo
#line 132 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_tmp0_ = self->priv->format_options;
#line 132 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = format_name;
-#line 132 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp1_);
-#line 133 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = self->priv->format_combo;
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), format_name);
#line 133 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = format_name;
+ _tmp1_ = self->priv->format_combo;
#line 133 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_combo_box_text_append_text (_tmp2_, _tmp3_);
-#line 781 "ExportDialog.c"
+ gtk_combo_box_text_append_text (_tmp1_, format_name);
+#line 819 "ExportDialog.c"
}
-static void export_dialog_format_set_active_text (ExportDialog* self, const gchar* text) {
+static void
+export_dialog_format_set_active_text (ExportDialog* self,
+ const gchar* text)
+{
gint selection_ticker = 0;
- const gchar* _tmp16_;
#line 136 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_return_if_fail (IS_EXPORT_DIALOG (self));
#line 136 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_return_if_fail (text != NULL);
#line 137 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
selection_ticker = 0;
-#line 794 "ExportDialog.c"
+#line 834 "ExportDialog.c"
{
GeeArrayList* _current_text_list = NULL;
GeeArrayList* _tmp0_;
@@ -818,7 +858,7 @@ static void export_dialog_format_set_active_text (ExportDialog* self, const gcha
_current_text_index = -1;
#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
while (TRUE) {
-#line 822 "ExportDialog.c"
+#line 862 "ExportDialog.c"
gint _tmp5_;
gint _tmp6_;
gint _tmp7_;
@@ -827,8 +867,7 @@ static void export_dialog_format_set_active_text (ExportDialog* self, const gcha
gint _tmp9_;
gpointer _tmp10_;
const gchar* _tmp11_;
- const gchar* _tmp12_;
- gint _tmp15_;
+ gint _tmp14_;
#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_tmp5_ = _current_text_index;
#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
@@ -841,7 +880,7 @@ static void export_dialog_format_set_active_text (ExportDialog* self, const gcha
if (!(_tmp6_ < _tmp7_)) {
#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
break;
-#line 845 "ExportDialog.c"
+#line 884 "ExportDialog.c"
}
#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_tmp8_ = _current_text_list;
@@ -854,104 +893,102 @@ static void export_dialog_format_set_active_text (ExportDialog* self, const gcha
#line 140 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_tmp11_ = current_text;
#line 140 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp12_ = text;
-#line 140 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (g_strcmp0 (_tmp11_, _tmp12_) == 0) {
-#line 861 "ExportDialog.c"
- GtkComboBoxText* _tmp13_;
- gint _tmp14_;
+ if (g_strcmp0 (_tmp11_, text) == 0) {
+#line 898 "ExportDialog.c"
+ GtkComboBoxText* _tmp12_;
+ gint _tmp13_;
#line 141 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp13_ = self->priv->format_combo;
+ _tmp12_ = self->priv->format_combo;
#line 141 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp14_ = selection_ticker;
+ _tmp13_ = selection_ticker;
#line 141 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_combo_box_get_type (), GtkComboBox), _tmp14_);
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_combo_box_get_type (), GtkComboBox), _tmp13_);
#line 142 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_g_free0 (current_text);
#line 142 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_g_object_unref0 (_current_text_list);
#line 142 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
return;
-#line 876 "ExportDialog.c"
+#line 913 "ExportDialog.c"
}
#line 144 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp15_ = selection_ticker;
+ _tmp14_ = selection_ticker;
#line 144 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- selection_ticker = _tmp15_ + 1;
+ selection_ticker = _tmp14_ + 1;
#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_g_free0 (current_text);
-#line 884 "ExportDialog.c"
+#line 921 "ExportDialog.c"
}
#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_g_object_unref0 (_current_text_list);
-#line 888 "ExportDialog.c"
+#line 925 "ExportDialog.c"
}
#line 147 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp16_ = text;
-#line 147 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_error ("ExportDialog.vala:147: format_set_active_text: text '%s' isn't in comb" \
-"o box", _tmp16_);
-#line 894 "ExportDialog.c"
+"o box", text);
+#line 929 "ExportDialog.c"
}
-static PhotoFileFormat export_dialog_get_specified_format (ExportDialog* self) {
+static PhotoFileFormat
+export_dialog_get_specified_format (ExportDialog* self)
+{
PhotoFileFormat result = 0;
gint index = 0;
GtkComboBoxText* _tmp0_;
gint _tmp1_;
gint _tmp2_;
- gint _tmp3_;
PhotoFileFormat* writeable_formats = NULL;
- gint _tmp4_;
- PhotoFileFormat* _tmp5_;
+ gint _tmp3_;
+ PhotoFileFormat* _tmp4_;
gint writeable_formats_length1;
gint _writeable_formats_size_;
- gint _tmp6_;
- PhotoFileFormat _tmp7_;
+ gint _tmp5_;
+ PhotoFileFormat _tmp6_;
#line 150 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_return_val_if_fail (IS_EXPORT_DIALOG (self), 0);
#line 151 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_tmp0_ = self->priv->format_combo;
#line 151 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox));
-#line 151 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- index = _tmp1_;
+ index = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox));
#line 152 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = index;
+ _tmp1_ = index;
#line 152 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp2_ < EXPORT_DIALOG_NUM_SPECIAL_FORMATS) {
+ if (_tmp1_ < EXPORT_DIALOG_NUM_SPECIAL_FORMATS) {
#line 153 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
index = EXPORT_DIALOG_NUM_SPECIAL_FORMATS;
-#line 926 "ExportDialog.c"
+#line 960 "ExportDialog.c"
}
#line 155 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = index;
+ _tmp2_ = index;
#line 155 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- index = _tmp3_ - EXPORT_DIALOG_NUM_SPECIAL_FORMATS;
+ index = _tmp2_ - EXPORT_DIALOG_NUM_SPECIAL_FORMATS;
#line 156 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = photo_file_format_get_writeable (&_tmp4_);
+ _tmp4_ = photo_file_format_get_writeable (&_tmp3_);
#line 156 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- writeable_formats = _tmp5_;
+ writeable_formats = _tmp4_;
#line 156 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- writeable_formats_length1 = _tmp4_;
+ writeable_formats_length1 = _tmp3_;
#line 156 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_writeable_formats_size_ = writeable_formats_length1;
#line 157 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = index;
+ _tmp5_ = index;
#line 157 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp7_ = writeable_formats[_tmp6_];
+ _tmp6_ = writeable_formats[_tmp5_];
#line 157 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- result = _tmp7_;
+ result = _tmp6_;
#line 157 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
writeable_formats = (g_free (writeable_formats), NULL);
#line 157 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
return result;
-#line 950 "ExportDialog.c"
+#line 984 "ExportDialog.c"
}
-static gchar* export_dialog_get_label_for_parameters (ExportDialog* self, ExportFormatParameters* params) {
+static gchar*
+export_dialog_get_label_for_parameters (ExportDialog* self,
+ ExportFormatParameters* params)
+{
gchar* result = NULL;
ExportFormatParameters _tmp0_;
ExportFormatMode _tmp1_;
@@ -967,7 +1004,7 @@ static gchar* export_dialog_get_label_for_parameters (ExportDialog* self, Export
switch (_tmp1_) {
#line 161 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
case EXPORT_FORMAT_MODE_UNMODIFIED:
-#line 970 "ExportDialog.c"
+#line 1007 "ExportDialog.c"
{
gchar* _tmp2_;
#line 163 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
@@ -976,11 +1013,11 @@ static gchar* export_dialog_get_label_for_parameters (ExportDialog* self, Export
result = _tmp2_;
#line 163 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
return result;
-#line 979 "ExportDialog.c"
+#line 1016 "ExportDialog.c"
}
#line 161 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
case EXPORT_FORMAT_MODE_CURRENT:
-#line 983 "ExportDialog.c"
+#line 1020 "ExportDialog.c"
{
gchar* _tmp3_;
#line 166 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
@@ -989,11 +1026,11 @@ static gchar* export_dialog_get_label_for_parameters (ExportDialog* self, Export
result = _tmp3_;
#line 166 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
return result;
-#line 992 "ExportDialog.c"
+#line 1029 "ExportDialog.c"
}
#line 161 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
case EXPORT_FORMAT_MODE_SPECIFIED:
-#line 996 "ExportDialog.c"
+#line 1033 "ExportDialog.c"
{
ExportFormatParameters _tmp4_;
PhotoFileFormat _tmp5_;
@@ -1019,20 +1056,25 @@ static gchar* export_dialog_get_label_for_parameters (ExportDialog* self, Export
result = _tmp9_;
#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
return result;
-#line 1022 "ExportDialog.c"
+#line 1059 "ExportDialog.c"
}
default:
{
#line 172 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_error ("ExportDialog.vala:172: get_label_for_parameters: unrecognized export f" \
"ormat mode");
-#line 1028 "ExportDialog.c"
+#line 1065 "ExportDialog.c"
}
}
}
-gboolean export_dialog_execute (ExportDialog* self, gint* scale, ScaleConstraint* constraint, ExportFormatParameters* parameters) {
+gboolean
+export_dialog_execute (ExportDialog* self,
+ gint* scale,
+ ScaleConstraint* constraint,
+ ExportFormatParameters* parameters)
+{
gint _vala_scale = 0;
ScaleConstraint _vala_constraint = 0;
gboolean result = FALSE;
@@ -1040,12 +1082,11 @@ gboolean export_dialog_execute (ExportDialog* self, gint* scale, ScaleConstraint
ExportFormatMode _tmp1_;
ExportFormatParameters _tmp4_;
ExportFormatMode _tmp5_;
- ExportFormatParameters _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
+ ExportFormatParameters _tmp12_;
+ gchar* _tmp13_;
+ gchar* _tmp14_;
gboolean ok = FALSE;
- gint _tmp17_;
- gboolean _tmp18_;
+ gboolean _tmp15_;
#line 179 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_return_val_if_fail (IS_EXPORT_DIALOG (self), FALSE);
#line 179 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
@@ -1058,7 +1099,7 @@ gboolean export_dialog_execute (ExportDialog* self, gint* scale, ScaleConstraint
_tmp1_ = _tmp0_.mode;
#line 185 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
if (_tmp1_ != EXPORT_FORMAT_MODE_LAST) {
-#line 1060 "ExportDialog.c"
+#line 1101 "ExportDialog.c"
ScaleConstraint _tmp2_;
GtkComboBoxText* _tmp3_;
#line 186 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
@@ -1071,7 +1112,7 @@ gboolean export_dialog_execute (ExportDialog* self, gint* scale, ScaleConstraint
_tmp3_ = self->priv->constraint_combo;
#line 187 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_combo_box_get_type (), GtkComboBox), 0);
-#line 1073 "ExportDialog.c"
+#line 1114 "ExportDialog.c"
}
#line 190 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_tmp4_ = *parameters;
@@ -1079,13 +1120,13 @@ gboolean export_dialog_execute (ExportDialog* self, gint* scale, ScaleConstraint
_tmp5_ = _tmp4_.mode;
#line 190 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
if (_tmp5_ == EXPORT_FORMAT_MODE_LAST) {
-#line 1081 "ExportDialog.c"
+#line 1122 "ExportDialog.c"
ExportFormatParameters _tmp6_;
#line 191 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_tmp6_ = export_dialog_current_parameters;
#line 191 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
*parameters = _tmp6_;
-#line 1087 "ExportDialog.c"
+#line 1128 "ExportDialog.c"
} else {
gboolean _tmp7_ = FALSE;
ExportFormatParameters _tmp8_;
@@ -1096,317 +1137,296 @@ gboolean export_dialog_execute (ExportDialog* self, gint* scale, ScaleConstraint
_tmp9_ = _tmp8_.mode;
#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
if (_tmp9_ == EXPORT_FORMAT_MODE_SPECIFIED) {
-#line 1098 "ExportDialog.c"
+#line 1139 "ExportDialog.c"
ExportFormatParameters _tmp10_;
PhotoFileFormat _tmp11_;
- gboolean _tmp12_;
#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_tmp10_ = *parameters;
#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_tmp11_ = _tmp10_.specified_format;
#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp12_ = photo_file_format_can_write (_tmp11_);
-#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp7_ = !_tmp12_;
-#line 1110 "ExportDialog.c"
+ _tmp7_ = !photo_file_format_can_write (_tmp11_);
+#line 1148 "ExportDialog.c"
} else {
#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_tmp7_ = FALSE;
-#line 1114 "ExportDialog.c"
+#line 1152 "ExportDialog.c"
}
#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
if (_tmp7_) {
-#line 1118 "ExportDialog.c"
- PhotoFileFormat _tmp13_;
-#line 193 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp13_ = photo_file_format_get_system_default_format ();
#line 193 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- (*parameters).specified_format = _tmp13_;
-#line 1124 "ExportDialog.c"
+ (*parameters).specified_format = photo_file_format_get_system_default_format ();
+#line 1158 "ExportDialog.c"
}
}
#line 195 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp14_ = *parameters;
+ _tmp12_ = *parameters;
#line 195 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp15_ = export_dialog_get_label_for_parameters (self, &_tmp14_);
+ _tmp13_ = export_dialog_get_label_for_parameters (self, &_tmp12_);
#line 195 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp16_ = _tmp15_;
+ _tmp14_ = _tmp13_;
#line 195 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_format_set_active_text (self, _tmp16_);
+ export_dialog_format_set_active_text (self, _tmp14_);
#line 195 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp16_);
+ _g_free0 (_tmp14_);
#line 196 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
export_dialog_on_format_changed (self);
#line 198 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp17_ = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 198 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- ok = _tmp17_ == ((gint) GTK_RESPONSE_OK);
+ ok = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_OK);
#line 199 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp18_ = ok;
+ _tmp15_ = ok;
#line 199 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp18_) {
-#line 1147 "ExportDialog.c"
+ if (_tmp15_) {
+#line 1179 "ExportDialog.c"
gint index = 0;
- GtkComboBoxText* _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
+ GtkComboBoxText* _tmp16_;
+ gint _tmp17_;
+ gint _tmp18_;
+ ScaleConstraint _tmp19_;
+ ScaleConstraint _tmp20_;
+ GtkEntry* _tmp21_;
+ const gchar* _tmp22_;
ScaleConstraint _tmp23_;
- ScaleConstraint _tmp24_;
- GtkEntry* _tmp25_;
- const gchar* _tmp26_;
- gint _tmp27_;
- ScaleConstraint _tmp28_;
- gint _tmp30_;
- gboolean _tmp31_ = FALSE;
- GtkSwitch* _tmp32_;
- gboolean _tmp33_;
- gboolean _tmp34_;
- GtkComboBoxText* _tmp38_;
- gchar* _tmp39_;
- gchar* _tmp40_;
- gboolean _tmp41_;
+ gint _tmp25_;
+ gboolean _tmp26_ = FALSE;
+ GtkSwitch* _tmp27_;
+ gboolean _tmp28_;
+ gboolean _tmp29_;
+ GtkComboBoxText* _tmp33_;
+ gchar* _tmp34_;
+ gchar* _tmp35_;
+ gboolean _tmp36_;
ConfigFacade* config = NULL;
+ ConfigFacade* _tmp50_;
+ ConfigFacade* _tmp51_;
+ ExportFormatParameters _tmp52_;
+ ExportFormatMode _tmp53_;
+ ConfigFacade* _tmp54_;
+ ExportFormatParameters _tmp55_;
+ PhotoFileFormat _tmp56_;
ConfigFacade* _tmp57_;
- ConfigFacade* _tmp58_;
- ExportFormatParameters _tmp59_;
- ExportFormatMode _tmp60_;
- ConfigFacade* _tmp61_;
- ExportFormatParameters _tmp62_;
- PhotoFileFormat _tmp63_;
- ConfigFacade* _tmp64_;
- ExportFormatParameters _tmp65_;
- JpegQuality _tmp66_;
- ConfigFacade* _tmp67_;
- ExportFormatParameters _tmp68_;
- gboolean _tmp69_;
- ConfigFacade* _tmp70_;
- ScaleConstraint _tmp71_;
- ConfigFacade* _tmp72_;
- gint _tmp73_;
-#line 200 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp19_ = self->priv->constraint_combo;
+ ExportFormatParameters _tmp58_;
+ JpegQuality _tmp59_;
+ ConfigFacade* _tmp60_;
+ ExportFormatParameters _tmp61_;
+ gboolean _tmp62_;
+ ConfigFacade* _tmp63_;
+ ScaleConstraint _tmp64_;
+ ConfigFacade* _tmp65_;
+ gint _tmp66_;
#line 200 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp20_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_combo_box_get_type (), GtkComboBox));
+ _tmp16_ = self->priv->constraint_combo;
#line 200 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- index = _tmp20_;
+ index = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_combo_box_get_type (), GtkComboBox));
#line 201 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp21_ = index;
+ _tmp17_ = index;
#line 201 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _vala_assert (_tmp21_ >= 0, "index >= 0");
+ _vala_assert (_tmp17_ >= 0, "index >= 0");
#line 202 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp22_ = index;
+ _tmp18_ = index;
#line 202 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp23_ = EXPORT_DIALOG_CONSTRAINT_ARRAY[_tmp22_];
+ _tmp19_ = EXPORT_DIALOG_CONSTRAINT_ARRAY[_tmp18_];
#line 202 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _vala_constraint = _tmp23_;
+ _vala_constraint = _tmp19_;
#line 203 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp24_ = _vala_constraint;
+ _tmp20_ = _vala_constraint;
#line 203 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_constraint = _tmp24_;
+ export_dialog_current_constraint = _tmp20_;
#line 205 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp25_ = self->priv->pixels_entry;
+ _tmp21_ = self->priv->pixels_entry;
#line 205 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp26_ = gtk_entry_get_text (_tmp25_);
+ _tmp22_ = gtk_entry_get_text (_tmp21_);
#line 205 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp27_ = atoi (_tmp26_);
-#line 205 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _vala_scale = _tmp27_;
+ _vala_scale = atoi (_tmp22_);
#line 206 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp28_ = _vala_constraint;
+ _tmp23_ = _vala_constraint;
#line 206 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp28_ != SCALE_CONSTRAINT_ORIGINAL) {
-#line 1218 "ExportDialog.c"
- gint _tmp29_;
+ if (_tmp23_ != SCALE_CONSTRAINT_ORIGINAL) {
+#line 1244 "ExportDialog.c"
+ gint _tmp24_;
#line 207 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp29_ = _vala_scale;
+ _tmp24_ = _vala_scale;
#line 207 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _vala_assert (_tmp29_ > 0, "scale > 0");
-#line 1224 "ExportDialog.c"
+ _vala_assert (_tmp24_ > 0, "scale > 0");
+#line 1250 "ExportDialog.c"
}
#line 208 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp30_ = _vala_scale;
+ _tmp25_ = _vala_scale;
#line 208 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_scale = _tmp30_;
+ export_dialog_current_scale = _tmp25_;
#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp32_ = self->priv->export_metadata;
+ _tmp27_ = self->priv->export_metadata;
#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp33_ = gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget));
+ _tmp28_ = gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget));
#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp34_ = _tmp33_;
+ _tmp29_ = _tmp28_;
#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp34_) {
-#line 1238 "ExportDialog.c"
- GtkSwitch* _tmp35_;
- gboolean _tmp36_;
- gboolean _tmp37_;
+ if (_tmp29_) {
+#line 1264 "ExportDialog.c"
+ GtkSwitch* _tmp30_;
+ gboolean _tmp31_;
+ gboolean _tmp32_;
#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp35_ = self->priv->export_metadata;
+ _tmp30_ = self->priv->export_metadata;
#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp36_ = gtk_switch_get_active (_tmp35_);
+ _tmp31_ = gtk_switch_get_active (_tmp30_);
#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp37_ = _tmp36_;
+ _tmp32_ = _tmp31_;
#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp31_ = _tmp37_;
-#line 1250 "ExportDialog.c"
+ _tmp26_ = _tmp32_;
+#line 1276 "ExportDialog.c"
} else {
#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp31_ = FALSE;
-#line 1254 "ExportDialog.c"
+ _tmp26_ = FALSE;
+#line 1280 "ExportDialog.c"
}
#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- (*parameters).export_metadata = _tmp31_;
+ (*parameters).export_metadata = _tmp26_;
#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp38_ = self->priv->format_combo;
+ _tmp33_ = self->priv->format_combo;
#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp39_ = gtk_combo_box_text_get_active_text (_tmp38_);
+ _tmp34_ = gtk_combo_box_text_get_active_text (_tmp33_);
#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp40_ = _tmp39_;
+ _tmp35_ = _tmp34_;
#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp41_ = g_strcmp0 (_tmp40_, EXPORT_DIALOG_UNMODIFIED_FORMAT_LABEL) == 0;
+ _tmp36_ = g_strcmp0 (_tmp35_, EXPORT_DIALOG_UNMODIFIED_FORMAT_LABEL) == 0;
#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp40_);
+ _g_free0 (_tmp35_);
#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp41_) {
-#line 1270 "ExportDialog.c"
- ExportFormatMode _tmp42_;
+ if (_tmp36_) {
+#line 1296 "ExportDialog.c"
+ ExportFormatMode _tmp37_;
#line 213 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
export_dialog_current_parameters.mode = EXPORT_FORMAT_MODE_UNMODIFIED;
#line 213 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp42_ = export_dialog_current_parameters.mode;
+ _tmp37_ = export_dialog_current_parameters.mode;
#line 213 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- (*parameters).mode = _tmp42_;
-#line 1278 "ExportDialog.c"
+ (*parameters).mode = _tmp37_;
+#line 1304 "ExportDialog.c"
} else {
- GtkComboBoxText* _tmp43_;
- gchar* _tmp44_;
- gchar* _tmp45_;
- gboolean _tmp46_;
+ GtkComboBoxText* _tmp38_;
+ gchar* _tmp39_;
+ gchar* _tmp40_;
+ gboolean _tmp41_;
#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp43_ = self->priv->format_combo;
+ _tmp38_ = self->priv->format_combo;
#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp44_ = gtk_combo_box_text_get_active_text (_tmp43_);
+ _tmp39_ = gtk_combo_box_text_get_active_text (_tmp38_);
#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp45_ = _tmp44_;
+ _tmp40_ = _tmp39_;
#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp46_ = g_strcmp0 (_tmp45_, EXPORT_DIALOG_CURRENT_FORMAT_LABEL) == 0;
+ _tmp41_ = g_strcmp0 (_tmp40_, EXPORT_DIALOG_CURRENT_FORMAT_LABEL) == 0;
#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp45_);
+ _g_free0 (_tmp40_);
#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp46_) {
-#line 1296 "ExportDialog.c"
- ExportFormatMode _tmp47_;
+ if (_tmp41_) {
+#line 1322 "ExportDialog.c"
+ ExportFormatMode _tmp42_;
#line 215 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
export_dialog_current_parameters.mode = EXPORT_FORMAT_MODE_CURRENT;
#line 215 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp47_ = export_dialog_current_parameters.mode;
+ _tmp42_ = export_dialog_current_parameters.mode;
#line 215 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- (*parameters).mode = _tmp47_;
-#line 1304 "ExportDialog.c"
+ (*parameters).mode = _tmp42_;
+#line 1330 "ExportDialog.c"
} else {
- ExportFormatMode _tmp48_;
- PhotoFileFormat _tmp49_;
- PhotoFileFormat _tmp50_;
- ExportFormatParameters _tmp51_;
- PhotoFileFormat _tmp52_;
+ ExportFormatMode _tmp43_;
+ PhotoFileFormat _tmp44_;
+ ExportFormatParameters _tmp45_;
+ PhotoFileFormat _tmp46_;
#line 217 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
export_dialog_current_parameters.mode = EXPORT_FORMAT_MODE_SPECIFIED;
#line 217 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp48_ = export_dialog_current_parameters.mode;
+ _tmp43_ = export_dialog_current_parameters.mode;
#line 217 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- (*parameters).mode = _tmp48_;
-#line 218 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp49_ = export_dialog_get_specified_format (self);
+ (*parameters).mode = _tmp43_;
#line 218 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_parameters.specified_format = _tmp49_;
+ export_dialog_current_parameters.specified_format = export_dialog_get_specified_format (self);
#line 218 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp50_ = export_dialog_current_parameters.specified_format;
+ _tmp44_ = export_dialog_current_parameters.specified_format;
#line 218 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- (*parameters).specified_format = _tmp50_;
+ (*parameters).specified_format = _tmp44_;
#line 219 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp51_ = export_dialog_current_parameters;
+ _tmp45_ = export_dialog_current_parameters;
#line 219 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp52_ = _tmp51_.specified_format;
+ _tmp46_ = _tmp45_.specified_format;
#line 219 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp52_ == PHOTO_FILE_FORMAT_JFIF) {
-#line 1331 "ExportDialog.c"
- GtkComboBoxText* _tmp53_;
- gint _tmp54_;
- JpegQuality _tmp55_;
- JpegQuality _tmp56_;
+ if (_tmp46_ == PHOTO_FILE_FORMAT_JFIF) {
+#line 1354 "ExportDialog.c"
+ GtkComboBoxText* _tmp47_;
+ JpegQuality _tmp48_;
+ JpegQuality _tmp49_;
#line 220 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp53_ = self->priv->quality_combo;
+ _tmp47_ = self->priv->quality_combo;
#line 220 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp54_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_combo_box_get_type (), GtkComboBox));
+ _tmp48_ = EXPORT_DIALOG_QUALITY_ARRAY[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_combo_box_get_type (), GtkComboBox))];
#line 220 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp55_ = EXPORT_DIALOG_QUALITY_ARRAY[_tmp54_];
+ export_dialog_current_parameters.quality = _tmp48_;
#line 220 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- export_dialog_current_parameters.quality = _tmp55_;
+ _tmp49_ = export_dialog_current_parameters.quality;
#line 220 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp56_ = export_dialog_current_parameters.quality;
-#line 220 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- (*parameters).quality = _tmp56_;
-#line 1348 "ExportDialog.c"
+ (*parameters).quality = _tmp49_;
+#line 1368 "ExportDialog.c"
}
}
}
#line 224 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp57_ = config_facade_get_instance ();
+ _tmp50_ = config_facade_get_instance ();
#line 224 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- config = _tmp57_;
+ config = _tmp50_;
#line 225 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp58_ = config;
+ _tmp51_ = config;
#line 225 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp59_ = export_dialog_current_parameters;
+ _tmp52_ = export_dialog_current_parameters;
#line 225 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp60_ = _tmp59_.mode;
+ _tmp53_ = _tmp52_.mode;
#line 225 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- configuration_facade_set_export_export_format_mode (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp60_);
+ configuration_facade_set_export_export_format_mode (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp53_);
#line 226 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp61_ = config;
+ _tmp54_ = config;
#line 226 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp62_ = export_dialog_current_parameters;
+ _tmp55_ = export_dialog_current_parameters;
#line 226 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp63_ = _tmp62_.specified_format;
+ _tmp56_ = _tmp55_.specified_format;
#line 226 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- configuration_facade_set_export_photo_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp63_);
+ configuration_facade_set_export_photo_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp56_);
#line 227 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp64_ = config;
+ _tmp57_ = config;
#line 227 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp65_ = export_dialog_current_parameters;
+ _tmp58_ = export_dialog_current_parameters;
#line 227 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp66_ = _tmp65_.quality;
+ _tmp59_ = _tmp58_.quality;
#line 227 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- configuration_facade_set_export_quality (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp66_);
+ configuration_facade_set_export_quality (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp59_);
#line 228 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp67_ = config;
+ _tmp60_ = config;
#line 228 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp68_ = export_dialog_current_parameters;
+ _tmp61_ = export_dialog_current_parameters;
#line 228 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp69_ = _tmp68_.export_metadata;
+ _tmp62_ = _tmp61_.export_metadata;
#line 228 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- configuration_facade_set_export_export_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp69_);
+ configuration_facade_set_export_export_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp62_);
#line 229 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp70_ = config;
+ _tmp63_ = config;
#line 229 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp71_ = export_dialog_current_constraint;
+ _tmp64_ = export_dialog_current_constraint;
#line 229 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- configuration_facade_set_export_constraint (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp71_);
+ configuration_facade_set_export_constraint (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp64_);
#line 230 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp72_ = config;
+ _tmp65_ = config;
#line 230 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp73_ = export_dialog_current_scale;
+ _tmp66_ = export_dialog_current_scale;
#line 230 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- configuration_facade_set_export_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp73_);
+ configuration_facade_set_export_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp66_);
#line 199 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_g_object_unref0 (config);
-#line 1402 "ExportDialog.c"
+#line 1422 "ExportDialog.c"
} else {
#line 232 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_vala_scale = 0;
#line 233 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_vala_constraint = SCALE_CONSTRAINT_ORIGINAL;
-#line 1408 "ExportDialog.c"
+#line 1428 "ExportDialog.c"
}
#line 236 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
@@ -1416,32 +1436,34 @@ gboolean export_dialog_execute (ExportDialog* self, gint* scale, ScaleConstraint
if (scale) {
#line 238 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
*scale = _vala_scale;
-#line 1418 "ExportDialog.c"
+#line 1438 "ExportDialog.c"
}
#line 238 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
if (constraint) {
#line 238 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
*constraint = _vala_constraint;
-#line 1424 "ExportDialog.c"
+#line 1444 "ExportDialog.c"
}
#line 238 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
return result;
-#line 1428 "ExportDialog.c"
+#line 1448 "ExportDialog.c"
}
-static void export_dialog_add_label (ExportDialog* self, const gchar* text, gint x, gint y, GtkWidget* widget) {
+static void
+export_dialog_add_label (ExportDialog* self,
+ const gchar* text,
+ gint x,
+ gint y,
+ GtkWidget* widget)
+{
GtkLabel* new_label = NULL;
- const gchar* _tmp0_;
+ GtkLabel* _tmp0_;
GtkLabel* _tmp1_;
GtkLabel* _tmp2_;
GtkLabel* _tmp3_;
- GtkLabel* _tmp4_;
- GtkWidget* _tmp5_;
- GtkGrid* _tmp8_;
- GtkLabel* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
+ GtkGrid* _tmp5_;
+ GtkLabel* _tmp6_;
#line 241 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_return_if_fail (IS_EXPORT_DIALOG (self));
#line 241 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
@@ -1449,424 +1471,394 @@ static void export_dialog_add_label (ExportDialog* self, const gchar* text, gint
#line 241 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_return_if_fail ((widget == NULL) || GTK_IS_WIDGET (widget));
#line 242 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = text;
-#line 242 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = (GtkLabel*) gtk_label_new_with_mnemonic (_tmp0_);
+ _tmp0_ = (GtkLabel*) gtk_label_new_with_mnemonic (text);
#line 242 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_object_ref_sink (_tmp1_);
+ g_object_ref_sink (_tmp0_);
#line 242 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- new_label = _tmp1_;
+ new_label = _tmp0_;
#line 243 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = new_label;
+ _tmp1_ = new_label;
#line 243 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_END);
+ gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_END);
#line 244 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = new_label;
+ _tmp2_ = new_label;
#line 244 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
+ gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
#line 245 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = new_label;
+ _tmp3_ = new_label;
#line 245 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_label_set_use_underline (_tmp4_, TRUE);
+ gtk_label_set_use_underline (_tmp3_, TRUE);
#line 247 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = widget;
-#line 247 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp5_ != NULL) {
-#line 1474 "ExportDialog.c"
- GtkLabel* _tmp6_;
- GtkWidget* _tmp7_;
-#line 248 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = new_label;
+ if (widget != NULL) {
+#line 1492 "ExportDialog.c"
+ GtkLabel* _tmp4_;
#line 248 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp7_ = widget;
+ _tmp4_ = new_label;
#line 248 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_label_set_mnemonic_widget (_tmp6_, _tmp7_);
-#line 1483 "ExportDialog.c"
+ gtk_label_set_mnemonic_widget (_tmp4_, widget);
+#line 1498 "ExportDialog.c"
}
#line 250 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp8_ = self->priv->table;
-#line 250 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp9_ = new_label;
-#line 250 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp10_ = x;
+ _tmp5_ = self->priv->table;
#line 250 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp11_ = y;
+ _tmp6_ = new_label;
#line 250 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_grid_attach (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), _tmp10_, _tmp11_, 1, 1);
+ gtk_grid_attach (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), x, y, 1, 1);
#line 241 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_g_object_unref0 (new_label);
-#line 1497 "ExportDialog.c"
+#line 1508 "ExportDialog.c"
}
-static void export_dialog_add_control (ExportDialog* self, GtkWidget* widget, gint x, gint y) {
- GtkWidget* _tmp0_;
- GtkWidget* _tmp1_;
- GtkWidget* _tmp2_;
- GtkWidget* _tmp3_;
- GtkGrid* _tmp4_;
- GtkWidget* _tmp5_;
- gint _tmp6_;
- gint _tmp7_;
+static void
+export_dialog_add_control (ExportDialog* self,
+ GtkWidget* widget,
+ gint x,
+ gint y)
+{
+ GtkGrid* _tmp0_;
#line 253 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_return_if_fail (IS_EXPORT_DIALOG (self));
#line 253 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_return_if_fail (GTK_IS_WIDGET (widget));
#line 254 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = widget;
-#line 254 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_halign (_tmp0_, GTK_ALIGN_FILL);
-#line 255 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = widget;
+ gtk_widget_set_halign (widget, GTK_ALIGN_FILL);
#line 255 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_valign (_tmp1_, GTK_ALIGN_CENTER);
+ gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
#line 256 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = widget;
-#line 256 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_hexpand (_tmp2_, TRUE);
-#line 257 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = widget;
+ gtk_widget_set_hexpand (widget, TRUE);
#line 257 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_vexpand (_tmp3_, TRUE);
+ gtk_widget_set_vexpand (widget, TRUE);
#line 259 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = self->priv->table;
+ _tmp0_ = self->priv->table;
#line 259 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = widget;
-#line 259 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = x;
-#line 259 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp7_ = y;
-#line 259 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_grid_attach (_tmp4_, _tmp5_, _tmp6_, _tmp7_, 1, 1);
-#line 1540 "ExportDialog.c"
+ gtk_grid_attach (_tmp0_, widget, x, y, 1, 1);
+#line 1535 "ExportDialog.c"
}
-static void export_dialog_on_constraint_changed (ExportDialog* self) {
+static void
+export_dialog_on_constraint_changed (ExportDialog* self)
+{
gboolean original = FALSE;
GtkComboBoxText* _tmp0_;
- gint _tmp1_;
- ScaleConstraint _tmp2_;
+ ScaleConstraint _tmp1_;
gboolean jpeg = FALSE;
- GtkComboBoxText* _tmp3_;
+ GtkComboBoxText* _tmp2_;
+ gchar* _tmp3_;
gchar* _tmp4_;
- gchar* _tmp5_;
+ PhotoFileFormatProperties* _tmp5_;
PhotoFileFormatProperties* _tmp6_;
- PhotoFileFormatProperties* _tmp7_;
+ gchar* _tmp7_;
gchar* _tmp8_;
- gchar* _tmp9_;
- gboolean _tmp10_;
- GtkEntry* _tmp11_;
- gboolean _tmp12_;
- gboolean _tmp13_ = FALSE;
- gboolean _tmp14_;
- GtkComboBoxText* _tmp16_;
- gboolean _tmp17_;
+ gboolean _tmp9_;
+ GtkEntry* _tmp10_;
+ gboolean _tmp11_;
+ gboolean _tmp12_ = FALSE;
+ gboolean _tmp13_;
+ GtkComboBoxText* _tmp15_;
+ gboolean _tmp16_;
#line 262 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_return_if_fail (IS_EXPORT_DIALOG (self));
#line 263 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_tmp0_ = self->priv->constraint_combo;
#line 263 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox));
-#line 263 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = EXPORT_DIALOG_CONSTRAINT_ARRAY[_tmp1_];
+ _tmp1_ = EXPORT_DIALOG_CONSTRAINT_ARRAY[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox))];
#line 263 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- original = _tmp2_ == SCALE_CONSTRAINT_ORIGINAL;
+ original = _tmp1_ == SCALE_CONSTRAINT_ORIGINAL;
#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = self->priv->format_combo;
+ _tmp2_ = self->priv->format_combo;
#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = gtk_combo_box_text_get_active_text (_tmp3_);
+ _tmp3_ = gtk_combo_box_text_get_active_text (_tmp2_);
#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = _tmp4_;
+ _tmp4_ = _tmp3_;
#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = photo_file_format_get_properties (PHOTO_FILE_FORMAT_JFIF);
+ _tmp5_ = photo_file_format_get_properties (PHOTO_FILE_FORMAT_JFIF);
#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp7_ = _tmp6_;
+ _tmp6_ = _tmp5_;
#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp8_ = photo_file_format_properties_get_user_visible_name (_tmp7_);
+ _tmp7_ = photo_file_format_properties_get_user_visible_name (_tmp6_);
#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp9_ = _tmp8_;
+ _tmp8_ = _tmp7_;
#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp10_ = g_strcmp0 (_tmp5_, _tmp9_) == 0;
+ _tmp9_ = g_strcmp0 (_tmp4_, _tmp8_) == 0;
#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp9_);
+ _g_free0 (_tmp8_);
#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _photo_file_format_properties_unref0 (_tmp7_);
+ _photo_file_format_properties_unref0 (_tmp6_);
#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp5_);
+ _g_free0 (_tmp4_);
#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- jpeg = _tmp10_;
+ jpeg = _tmp9_;
#line 266 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp11_ = self->priv->pixels_entry;
+ _tmp10_ = self->priv->pixels_entry;
#line 266 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp12_ = original;
+ _tmp11_ = original;
#line 266 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), !_tmp12_);
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), !_tmp11_);
#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp14_ = original;
+ _tmp13_ = original;
#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (!_tmp14_) {
-#line 1608 "ExportDialog.c"
- gboolean _tmp15_;
+ if (!_tmp13_) {
+#line 1602 "ExportDialog.c"
+ gboolean _tmp14_;
#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp15_ = jpeg;
+ _tmp14_ = jpeg;
#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp13_ = _tmp15_;
-#line 1614 "ExportDialog.c"
+ _tmp12_ = _tmp14_;
+#line 1608 "ExportDialog.c"
} else {
#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp13_ = FALSE;
-#line 1618 "ExportDialog.c"
+ _tmp12_ = FALSE;
+#line 1612 "ExportDialog.c"
}
#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp16_ = self->priv->quality_combo;
+ _tmp15_ = self->priv->quality_combo;
#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), _tmp13_);
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_widget_get_type (), GtkWidget), _tmp12_);
#line 268 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp17_ = original;
+ _tmp16_ = original;
#line 268 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp17_) {
-#line 1628 "ExportDialog.c"
- GtkWidget* _tmp18_;
+ if (_tmp16_) {
+#line 1622 "ExportDialog.c"
+ GtkWidget* _tmp17_;
#line 269 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp18_ = self->priv->ok_button;
+ _tmp17_ = self->priv->ok_button;
#line 269 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (_tmp18_, TRUE);
-#line 1634 "ExportDialog.c"
+ gtk_widget_set_sensitive (_tmp17_, TRUE);
+#line 1628 "ExportDialog.c"
} else {
#line 271 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
export_dialog_on_pixels_changed (self);
-#line 1638 "ExportDialog.c"
+#line 1632 "ExportDialog.c"
}
}
-static void export_dialog_on_format_changed (ExportDialog* self) {
+static void
+export_dialog_on_format_changed (ExportDialog* self)
+{
gboolean original = FALSE;
GtkComboBoxText* _tmp0_;
- gint _tmp1_;
- ScaleConstraint _tmp2_;
- GtkComboBoxText* _tmp3_;
+ ScaleConstraint _tmp1_;
+ GtkComboBoxText* _tmp2_;
+ gchar* _tmp3_;
gchar* _tmp4_;
- gchar* _tmp5_;
- gboolean _tmp6_;
+ gboolean _tmp5_;
#line 274 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_return_if_fail (IS_EXPORT_DIALOG (self));
#line 275 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_tmp0_ = self->priv->constraint_combo;
#line 275 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox));
+ _tmp1_ = EXPORT_DIALOG_CONSTRAINT_ARRAY[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox))];
#line 275 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = EXPORT_DIALOG_CONSTRAINT_ARRAY[_tmp1_];
-#line 275 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- original = _tmp2_ == SCALE_CONSTRAINT_ORIGINAL;
+ original = _tmp1_ == SCALE_CONSTRAINT_ORIGINAL;
#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = self->priv->format_combo;
+ _tmp2_ = self->priv->format_combo;
#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = gtk_combo_box_text_get_active_text (_tmp3_);
+ _tmp3_ = gtk_combo_box_text_get_active_text (_tmp2_);
#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = _tmp4_;
+ _tmp4_ = _tmp3_;
#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = g_strcmp0 (_tmp5_, EXPORT_DIALOG_UNMODIFIED_FORMAT_LABEL) == 0;
+ _tmp5_ = g_strcmp0 (_tmp4_, EXPORT_DIALOG_UNMODIFIED_FORMAT_LABEL) == 0;
#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp5_);
+ _g_free0 (_tmp4_);
#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp6_) {
-#line 1674 "ExportDialog.c"
+ if (_tmp5_) {
+#line 1667 "ExportDialog.c"
+ GtkComboBoxText* _tmp6_;
GtkComboBoxText* _tmp7_;
GtkComboBoxText* _tmp8_;
- GtkComboBoxText* _tmp9_;
- GtkEntry* _tmp10_;
+ GtkEntry* _tmp9_;
+ GtkSwitch* _tmp10_;
GtkSwitch* _tmp11_;
- GtkSwitch* _tmp12_;
#line 282 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp7_ = self->priv->constraint_combo;
+ _tmp6_ = self->priv->constraint_combo;
#line 282 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_combo_box_get_type (), GtkComboBox), 0);
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox), 0);
#line 283 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp8_ = self->priv->constraint_combo;
+ _tmp7_ = self->priv->constraint_combo;
#line 283 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), FALSE);
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), FALSE);
#line 284 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp9_ = self->priv->quality_combo;
+ _tmp8_ = self->priv->quality_combo;
#line 284 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), FALSE);
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), FALSE);
#line 285 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp10_ = self->priv->pixels_entry;
+ _tmp9_ = self->priv->pixels_entry;
#line 285 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), FALSE);
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), FALSE);
#line 286 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp11_ = self->priv->export_metadata;
+ _tmp10_ = self->priv->export_metadata;
#line 286 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_switch_set_active (_tmp11_, FALSE);
+ gtk_switch_set_active (_tmp10_, FALSE);
#line 287 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp12_ = self->priv->export_metadata;
+ _tmp11_ = self->priv->export_metadata;
#line 287 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), FALSE);
-#line 1705 "ExportDialog.c"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 1698 "ExportDialog.c"
} else {
- GtkComboBoxText* _tmp13_;
+ GtkComboBoxText* _tmp12_;
+ gchar* _tmp13_;
gchar* _tmp14_;
- gchar* _tmp15_;
- gboolean _tmp16_;
+ gboolean _tmp15_;
#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp13_ = self->priv->format_combo;
+ _tmp12_ = self->priv->format_combo;
#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp14_ = gtk_combo_box_text_get_active_text (_tmp13_);
+ _tmp13_ = gtk_combo_box_text_get_active_text (_tmp12_);
#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp15_ = _tmp14_;
+ _tmp14_ = _tmp13_;
#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp16_ = g_strcmp0 (_tmp15_, EXPORT_DIALOG_CURRENT_FORMAT_LABEL) == 0;
+ _tmp15_ = g_strcmp0 (_tmp14_, EXPORT_DIALOG_CURRENT_FORMAT_LABEL) == 0;
#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp15_);
+ _g_free0 (_tmp14_);
#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp16_) {
-#line 1723 "ExportDialog.c"
+ if (_tmp15_) {
+#line 1716 "ExportDialog.c"
+ GtkComboBoxText* _tmp16_;
GtkComboBoxText* _tmp17_;
- GtkComboBoxText* _tmp18_;
- GtkEntry* _tmp19_;
- gboolean _tmp20_;
- GtkSwitch* _tmp21_;
+ GtkEntry* _tmp18_;
+ gboolean _tmp19_;
+ GtkSwitch* _tmp20_;
#line 295 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp17_ = self->priv->constraint_combo;
+ _tmp16_ = self->priv->constraint_combo;
#line 295 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), TRUE);
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), TRUE);
#line 296 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp18_ = self->priv->quality_combo;
+ _tmp17_ = self->priv->quality_combo;
#line 296 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), FALSE);
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), FALSE);
#line 297 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp19_ = self->priv->pixels_entry;
+ _tmp18_ = self->priv->pixels_entry;
#line 297 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp20_ = original;
+ _tmp19_ = original;
#line 297 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget), !_tmp20_);
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), !_tmp19_);
#line 298 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp21_ = self->priv->export_metadata;
+ _tmp20_ = self->priv->export_metadata;
#line 298 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 1747 "ExportDialog.c"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1740 "ExportDialog.c"
} else {
- GtkComboBoxText* _tmp22_;
+ GtkComboBoxText* _tmp21_;
gboolean jpeg = FALSE;
- PhotoFileFormat _tmp23_;
- gboolean _tmp24_ = FALSE;
- gboolean _tmp25_;
- GtkComboBoxText* _tmp27_;
- GtkSwitch* _tmp28_;
+ gboolean _tmp22_ = FALSE;
+ gboolean _tmp23_;
+ GtkComboBoxText* _tmp25_;
+ GtkSwitch* _tmp26_;
#line 303 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp22_ = self->priv->constraint_combo;
+ _tmp21_ = self->priv->constraint_combo;
#line 303 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 304 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp23_ = export_dialog_get_specified_format (self);
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), TRUE);
#line 304 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- jpeg = _tmp23_ == PHOTO_FILE_FORMAT_JFIF;
+ jpeg = export_dialog_get_specified_format (self) == PHOTO_FILE_FORMAT_JFIF;
#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp25_ = original;
+ _tmp23_ = original;
#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (!_tmp25_) {
-#line 1768 "ExportDialog.c"
- gboolean _tmp26_;
+ if (!_tmp23_) {
+#line 1758 "ExportDialog.c"
+ gboolean _tmp24_;
#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp26_ = jpeg;
+ _tmp24_ = jpeg;
#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp24_ = _tmp26_;
-#line 1774 "ExportDialog.c"
+ _tmp22_ = _tmp24_;
+#line 1764 "ExportDialog.c"
} else {
#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp24_ = FALSE;
-#line 1778 "ExportDialog.c"
+ _tmp22_ = FALSE;
+#line 1768 "ExportDialog.c"
}
#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp27_ = self->priv->quality_combo;
+ _tmp25_ = self->priv->quality_combo;
#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), _tmp24_);
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget), _tmp22_);
#line 306 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp28_ = self->priv->export_metadata;
+ _tmp26_ = self->priv->export_metadata;
#line 306 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget), TRUE);
-#line 1788 "ExportDialog.c"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 1778 "ExportDialog.c"
}
}
}
-static void export_dialog_on_activate (ExportDialog* self) {
+static void
+export_dialog_on_activate (ExportDialog* self)
+{
#line 310 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_return_if_fail (IS_EXPORT_DIALOG (self));
#line 311 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
gtk_dialog_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK);
-#line 1799 "ExportDialog.c"
+#line 1791 "ExportDialog.c"
}
-static void export_dialog_on_pixels_changed (ExportDialog* self) {
+static void
+export_dialog_on_pixels_changed (ExportDialog* self)
+{
gboolean _tmp0_ = FALSE;
GtkEntry* _tmp1_;
- guint16 _tmp2_;
- GtkWidget* _tmp6_;
+ GtkWidget* _tmp4_;
#line 314 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_return_if_fail (IS_EXPORT_DIALOG (self));
#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_tmp1_ = self->priv->pixels_entry;
#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = gtk_entry_get_text_length (_tmp1_);
-#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (((gint) _tmp2_) > 0) {
-#line 1816 "ExportDialog.c"
- GtkEntry* _tmp3_;
- const gchar* _tmp4_;
- gint _tmp5_;
-#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = self->priv->pixels_entry;
+ if (((gint) gtk_entry_get_text_length (_tmp1_)) > 0) {
+#line 1807 "ExportDialog.c"
+ GtkEntry* _tmp2_;
+ const gchar* _tmp3_;
#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = gtk_entry_get_text (_tmp3_);
+ _tmp2_ = self->priv->pixels_entry;
#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = atoi (_tmp4_);
+ _tmp3_ = gtk_entry_get_text (_tmp2_);
#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp0_ = _tmp5_ > 0;
-#line 1828 "ExportDialog.c"
+ _tmp0_ = atoi (_tmp3_) > 0;
+#line 1816 "ExportDialog.c"
} else {
#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_tmp0_ = FALSE;
-#line 1832 "ExportDialog.c"
+#line 1820 "ExportDialog.c"
}
#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = self->priv->ok_button;
+ _tmp4_ = self->priv->ok_button;
#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_widget_set_sensitive (_tmp6_, _tmp0_);
-#line 1838 "ExportDialog.c"
+ gtk_widget_set_sensitive (_tmp4_, _tmp0_);
+#line 1826 "ExportDialog.c"
}
-static gchar string_get (const gchar* self, glong index) {
+static gchar
+string_get (const gchar* self,
+ glong index)
+{
gchar result = '\0';
- glong _tmp0_;
- gchar _tmp1_;
-#line 1110 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ gchar _tmp0_;
+#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, '\0');
-#line 1111 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp0_ = index;
-#line 1111 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp1_ = ((gchar*) self)[_tmp0_];
-#line 1111 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- result = _tmp1_;
-#line 1111 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp0_ = ((gchar*) self)[index];
+#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ result = _tmp0_;
+#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return result;
-#line 1856 "ExportDialog.c"
+#line 1844 "ExportDialog.c"
}
-static void export_dialog_on_pixels_insert_text (ExportDialog* self, const gchar* text, gint length, gint* position) {
+static void
+export_dialog_on_pixels_insert_text (ExportDialog* self,
+ const gchar* text,
+ gint length,
+ gint* position)
+{
gboolean _tmp0_;
- gint _tmp1_;
gchar* new_text = NULL;
- gchar* _tmp5_;
- const gchar* _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
- GtkEntry* _tmp29_;
+ gchar* _tmp3_;
+ const gchar* _tmp13_;
+ gint _tmp14_;
+ gint _tmp15_;
+ GtkEntry* _tmp21_;
#line 318 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
g_return_if_fail (IS_EXPORT_DIALOG (self));
#line 318 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
@@ -1877,157 +1869,136 @@ static void export_dialog_on_pixels_insert_text (ExportDialog* self, const gchar
if (_tmp0_) {
#line 321 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
return;
-#line 1879 "ExportDialog.c"
+#line 1871 "ExportDialog.c"
}
#line 323 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
self->priv->in_insert = TRUE;
#line 325 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp1_ = length;
-#line 325 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp1_ == -1) {
-#line 1887 "ExportDialog.c"
- const gchar* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
+ if (length == -1) {
+#line 1877 "ExportDialog.c"
+ gint _tmp1_;
+ gint _tmp2_;
#line 326 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp2_ = text;
+ _tmp1_ = strlen (text);
#line 326 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp3_ = strlen (_tmp2_);
+ _tmp2_ = _tmp1_;
#line 326 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp4_ = _tmp3_;
-#line 326 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- length = (gint) _tmp4_;
-#line 1899 "ExportDialog.c"
+ length = (gint) _tmp2_;
+#line 1886 "ExportDialog.c"
}
#line 329 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp5_ = g_strdup ("");
+ _tmp3_ = g_strdup ("");
#line 329 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- new_text = _tmp5_;
-#line 1905 "ExportDialog.c"
+ new_text = _tmp3_;
+#line 1892 "ExportDialog.c"
{
gint ctr = 0;
#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
ctr = 0;
-#line 1910 "ExportDialog.c"
+#line 1897 "ExportDialog.c"
{
- gboolean _tmp6_ = FALSE;
+ gboolean _tmp4_ = FALSE;
#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = TRUE;
+ _tmp4_ = TRUE;
#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
while (TRUE) {
-#line 1917 "ExportDialog.c"
- gint _tmp8_;
- gint _tmp9_;
- const gchar* _tmp10_;
- gint _tmp11_;
- gchar _tmp12_;
- gboolean _tmp13_;
+#line 1904 "ExportDialog.c"
+ gint _tmp6_;
+ gint _tmp7_;
#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (!_tmp6_) {
-#line 1926 "ExportDialog.c"
- gint _tmp7_;
+ if (!_tmp4_) {
+#line 1909 "ExportDialog.c"
+ gint _tmp5_;
#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp7_ = ctr;
+ _tmp5_ = ctr;
#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- ctr = _tmp7_ + 1;
-#line 1932 "ExportDialog.c"
+ ctr = _tmp5_ + 1;
+#line 1915 "ExportDialog.c"
}
#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp6_ = FALSE;
-#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp8_ = ctr;
+ _tmp4_ = FALSE;
#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp9_ = length;
+ _tmp6_ = ctr;
#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (!(_tmp8_ < _tmp9_)) {
+ if (!(_tmp6_ < length)) {
#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
break;
-#line 1944 "ExportDialog.c"
+#line 1925 "ExportDialog.c"
}
#line 331 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp10_ = text;
-#line 331 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp11_ = ctr;
-#line 331 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp12_ = string_get (_tmp10_, (glong) _tmp11_);
+ _tmp7_ = ctr;
#line 331 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp13_ = g_ascii_isdigit (_tmp12_);
-#line 331 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp13_) {
-#line 1956 "ExportDialog.c"
- const gchar* _tmp14_;
- const gchar* _tmp15_;
- gint _tmp16_;
- gchar _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
-#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp14_ = new_text;
-#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp15_ = text;
+ if (g_ascii_isdigit (string_get (text, (glong) _tmp7_))) {
+#line 1931 "ExportDialog.c"
+ const gchar* _tmp8_;
+ gint _tmp9_;
+ gchar* _tmp10_;
+ gchar* _tmp11_;
+ gchar* _tmp12_;
#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp16_ = ctr;
+ _tmp8_ = new_text;
#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp17_ = string_get (_tmp15_, (glong) _tmp16_);
+ _tmp9_ = ctr;
#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp18_ = g_strdup_printf ("%c", (gchar) _tmp17_);
+ _tmp10_ = g_strdup_printf ("%c", (gchar) string_get (text, (glong) _tmp9_));
#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp19_ = _tmp18_;
+ _tmp11_ = _tmp10_;
#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp20_ = g_strconcat (_tmp14_, _tmp19_, NULL);
+ _tmp12_ = g_strconcat (_tmp8_, _tmp11_, NULL);
#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_g_free0 (new_text);
#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- new_text = _tmp20_;
+ new_text = _tmp12_;
#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _g_free0 (_tmp19_);
-#line 1984 "ExportDialog.c"
+ _g_free0 (_tmp11_);
+#line 1953 "ExportDialog.c"
}
}
}
}
#line 336 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp21_ = new_text;
+ _tmp13_ = new_text;
#line 336 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp22_ = strlen (_tmp21_);
+ _tmp14_ = strlen (_tmp13_);
#line 336 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp23_ = _tmp22_;
+ _tmp15_ = _tmp14_;
#line 336 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- if (_tmp23_ > 0) {
-#line 1997 "ExportDialog.c"
- GtkEntry* _tmp24_;
- const gchar* _tmp25_;
- const gchar* _tmp26_;
- gint _tmp27_;
- gint _tmp28_;
+ if (_tmp15_ > 0) {
+#line 1966 "ExportDialog.c"
+ GtkEntry* _tmp16_;
+ const gchar* _tmp17_;
+ const gchar* _tmp18_;
+ gint _tmp19_;
+ gint _tmp20_;
#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp24_ = self->priv->pixels_entry;
+ _tmp16_ = self->priv->pixels_entry;
#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp25_ = new_text;
+ _tmp17_ = new_text;
#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp26_ = new_text;
+ _tmp18_ = new_text;
#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp27_ = strlen (_tmp26_);
+ _tmp19_ = strlen (_tmp18_);
#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp28_ = _tmp27_;
+ _tmp20_ = _tmp19_;
#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- gtk_editable_insert_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GTK_TYPE_EDITABLE, GtkEditable), _tmp25_, (gint) _tmp28_, position);
-#line 2015 "ExportDialog.c"
+ g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_editable_get_type (), GtkEditable), "insert-text", _tmp17_, (gint) _tmp20_, position);
+#line 1984 "ExportDialog.c"
}
#line 339 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- _tmp29_ = self->priv->pixels_entry;
+ _tmp21_ = self->priv->pixels_entry;
#line 339 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
- g_signal_stop_emission_by_name (_tmp29_, "insert-text");
+ g_signal_stop_emission_by_name (_tmp21_, "insert-text");
#line 341 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
self->priv->in_insert = FALSE;
#line 318 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
_g_free0 (new_text);
-#line 2025 "ExportDialog.c"
+#line 1994 "ExportDialog.c"
}
-static void export_dialog_class_init (ExportDialogClass * klass) {
+static void
+export_dialog_class_init (ExportDialogClass * klass)
+{
ExportFormatParameters _tmp0_ = {0};
#line 8 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
export_dialog_parent_class = g_type_class_peek_parent (klass);
@@ -2041,11 +2012,13 @@ static void export_dialog_class_init (ExportDialogClass * klass) {
export_dialog_current_parameters = _tmp0_;
#line 26 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
export_dialog_current_scale = EXPORT_DIALOG_DEFAULT_SCALE;
-#line 2043 "ExportDialog.c"
+#line 2014 "ExportDialog.c"
}
-static void export_dialog_instance_init (ExportDialog * self) {
+static void
+export_dialog_instance_init (ExportDialog * self)
+{
GtkGrid* _tmp0_;
GeeArrayList* _tmp1_;
#line 8 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
@@ -2062,11 +2035,13 @@ static void export_dialog_instance_init (ExportDialog * self) {
self->priv->format_options = _tmp1_;
#line 36 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
self->priv->in_insert = FALSE;
-#line 2064 "ExportDialog.c"
+#line 2037 "ExportDialog.c"
}
-static void export_dialog_finalize (GObject * obj) {
+static void
+export_dialog_finalize (GObject * obj)
+{
ExportDialog * self;
#line 8 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EXPORT_DIALOG, ExportDialog);
@@ -2088,11 +2063,13 @@ static void export_dialog_finalize (GObject * obj) {
_g_object_unref0 (self->priv->ok_button);
#line 8 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala"
G_OBJECT_CLASS (export_dialog_parent_class)->finalize (obj);
-#line 2090 "ExportDialog.c"
+#line 2065 "ExportDialog.c"
}
-GType export_dialog_get_type (void) {
+GType
+export_dialog_get_type (void)
+{
static volatile gsize export_dialog_type_id__volatile = 0;
if (g_once_init_enter (&export_dialog_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (ExportDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) export_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExportDialog), 0, (GInstanceInitFunc) export_dialog_instance_init, NULL };