summaryrefslogtreecommitdiff
path: root/src/dialogs/TextEntry.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/TextEntry.c
parent55778740c211992cc86ea87588ab62c6750f36d1 (diff)
parente8f4d7a9cdd37c5a9fb3b6991a4e9173829808da (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/dialogs/TextEntry.c')
-rw-r--r--src/dialogs/TextEntry.c258
1 files changed, 130 insertions, 128 deletions
diff --git a/src/dialogs/TextEntry.c b/src/dialogs/TextEntry.c
index 6fa478f..97716a3 100644
--- a/src/dialogs/TextEntry.c
+++ b/src/dialogs/TextEntry.c
@@ -1,4 +1,4 @@
-/* TextEntry.c generated by valac 0.36.6, the Vala compiler
+/* TextEntry.c generated by valac 0.40.4, the Vala compiler
* generated from TextEntry.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>
@@ -26,6 +27,11 @@
typedef struct _TextEntryDialog TextEntryDialog;
typedef struct _TextEntryDialogClass TextEntryDialogClass;
typedef struct _TextEntryDialogPrivate TextEntryDialogPrivate;
+enum {
+ TEXT_ENTRY_DIALOG_0_PROPERTY,
+ TEXT_ENTRY_DIALOG_NUM_PROPERTIES
+};
+static GParamSpec* text_entry_dialog_properties[TEXT_ENTRY_DIALOG_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define TYPE_PAGE_WINDOW (page_window_get_type ())
@@ -81,69 +87,84 @@ static gpointer text_entry_dialog_parent_class = NULL;
GType text_entry_dialog_get_type (void) G_GNUC_CONST;
#define TEXT_ENTRY_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialogPrivate))
-enum {
- TEXT_ENTRY_DIALOG_DUMMY_PROPERTY
-};
TextEntryDialog* text_entry_dialog_new (void);
TextEntryDialog* text_entry_dialog_construct (GType object_type);
gint resources_use_header_bar (void);
-void text_entry_dialog_setup (TextEntryDialog* self, TextEntryDialogOnModifyValidateType modify_validate, void* modify_validate_target, const gchar* title, const gchar* label, const gchar* initial_text, GeeCollection* completion_list, const gchar* completion_delimiter);
+void text_entry_dialog_setup (TextEntryDialog* self,
+ TextEntryDialogOnModifyValidateType modify_validate,
+ void* modify_validate_target,
+ const gchar* title,
+ const gchar* label,
+ const gchar* initial_text,
+ GeeCollection* completion_list,
+ const gchar* completion_delimiter);
GType page_window_get_type (void) G_GNUC_CONST;
GType app_window_get_type (void) G_GNUC_CONST;
AppWindow* app_window_get_instance (void);
void text_entry_dialog_on_entry_changed (TextEntryDialog* self);
-static void _text_entry_dialog_on_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
+static void _text_entry_dialog_on_entry_changed_gtk_editable_changed (GtkEditable* _sender,
+ gpointer self);
GType entry_multi_completion_get_type (void) G_GNUC_CONST;
-EntryMultiCompletion* entry_multi_completion_new (GeeCollection* completion_list, const gchar* delimiter);
-EntryMultiCompletion* entry_multi_completion_construct (GType object_type, GeeCollection* completion_list, const gchar* delimiter);
+EntryMultiCompletion* entry_multi_completion_new (GeeCollection* completion_list,
+ const gchar* delimiter);
+EntryMultiCompletion* entry_multi_completion_construct (GType object_type,
+ GeeCollection* completion_list,
+ const gchar* delimiter);
gchar* text_entry_dialog_execute (TextEntryDialog* self);
static void text_entry_dialog_finalize (GObject * obj);
-TextEntryDialog* text_entry_dialog_construct (GType object_type) {
+TextEntryDialog*
+text_entry_dialog_construct (GType object_type)
+{
TextEntryDialog * self = NULL;
- gint _tmp0_;
-#line 21 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp0_ = resources_use_header_bar ();
#line 21 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- self = (TextEntryDialog*) g_object_new (object_type, "use-header-bar", _tmp0_, NULL);
+ self = (TextEntryDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL);
#line 20 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
return self;
-#line 113 "TextEntry.c"
+#line 126 "TextEntry.c"
}
-TextEntryDialog* text_entry_dialog_new (void) {
+TextEntryDialog*
+text_entry_dialog_new (void)
+{
#line 20 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
return text_entry_dialog_construct (TYPE_TEXT_ENTRY_DIALOG);
-#line 120 "TextEntry.c"
+#line 135 "TextEntry.c"
}
-static void _text_entry_dialog_on_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
+static void
+_text_entry_dialog_on_entry_changed_gtk_editable_changed (GtkEditable* _sender,
+ gpointer self)
+{
#line 35 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
text_entry_dialog_on_entry_changed ((TextEntryDialog*) self);
-#line 127 "TextEntry.c"
+#line 145 "TextEntry.c"
}
-void text_entry_dialog_setup (TextEntryDialog* self, TextEntryDialogOnModifyValidateType modify_validate, void* modify_validate_target, const gchar* title, const gchar* label, const gchar* initial_text, GeeCollection* completion_list, const gchar* completion_delimiter) {
- const gchar* _tmp0_;
+void
+text_entry_dialog_setup (TextEntryDialog* self,
+ TextEntryDialogOnModifyValidateType modify_validate,
+ void* modify_validate_target,
+ const gchar* title,
+ const gchar* label,
+ const gchar* initial_text,
+ GeeCollection* completion_list,
+ const gchar* completion_delimiter)
+{
+ AppWindow* _tmp0_;
AppWindow* _tmp1_;
- AppWindow* _tmp2_;
- GdkWindow* _tmp3_;
+ GdkWindow* _tmp2_;
+ AppWindow* _tmp3_;
AppWindow* _tmp4_;
- AppWindow* _tmp5_;
- TextEntryDialogOnModifyValidateType _tmp6_;
- void* _tmp6__target;
- GtkLabel* _tmp7_;
- const gchar* _tmp8_;
- const gchar* _tmp9_ = NULL;
- const gchar* _tmp10_;
- GtkEntry* _tmp12_;
- GtkEntry* _tmp13_;
- GtkEntry* _tmp14_;
- GeeCollection* _tmp15_;
+ GtkLabel* _tmp5_;
+ const gchar* _tmp6_ = NULL;
+ GtkEntry* _tmp7_;
+ GtkEntry* _tmp8_;
+ GtkEntry* _tmp9_;
#line 24 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
g_return_if_fail (IS_TEXT_ENTRY_DIALOG (self));
#line 24 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
@@ -153,115 +174,93 @@ void text_entry_dialog_setup (TextEntryDialog* self, TextEntryDialogOnModifyVali
#line 24 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
g_return_if_fail ((completion_list == NULL) || GEE_IS_COLLECTION (completion_list));
#line 26 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp0_ = title;
-#line 26 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp0_);
+ gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), title);
#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp1_ = app_window_get_instance ();
+ _tmp0_ = app_window_get_instance ();
#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp2_ = _tmp1_;
+ _tmp1_ = _tmp0_;
#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp3_ = gtk_widget_get_parent_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
+ _tmp2_ = gtk_widget_get_parent_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_widget_set_parent_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp3_);
+ gtk_widget_set_parent_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp2_);
#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _g_object_unref0 (_tmp2_);
+ _g_object_unref0 (_tmp1_);
#line 28 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp4_ = app_window_get_instance ();
+ _tmp3_ = app_window_get_instance ();
#line 28 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp5_ = _tmp4_;
+ _tmp4_ = _tmp3_;
#line 28 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_window_get_type (), GtkWindow));
+ gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow));
#line 28 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _g_object_unref0 (_tmp5_);
-#line 29 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp6_ = modify_validate;
+ _g_object_unref0 (_tmp4_);
#line 29 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp6__target = modify_validate_target;
+ self->priv->on_modify_validate = modify_validate;
#line 29 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- self->priv->on_modify_validate = _tmp6_;
-#line 29 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- self->priv->on_modify_validate_target = _tmp6__target;
-#line 31 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp7_ = self->priv->label;
+ self->priv->on_modify_validate_target = modify_validate_target;
#line 31 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp8_ = label;
+ _tmp5_ = self->priv->label;
#line 31 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_label_set_text (_tmp7_, _tmp8_);
+ gtk_label_set_text (_tmp5_, label);
#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp10_ = initial_text;
+ if (initial_text != NULL) {
#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- if (_tmp10_ != NULL) {
-#line 196 "TextEntry.c"
- const gchar* _tmp11_;
-#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp11_ = initial_text;
-#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp9_ = _tmp11_;
-#line 202 "TextEntry.c"
+ _tmp6_ = initial_text;
+#line 209 "TextEntry.c"
} else {
#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp9_ = "";
-#line 206 "TextEntry.c"
+ _tmp6_ = "";
+#line 213 "TextEntry.c"
}
#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp12_ = self->priv->entry;
+ _tmp7_ = self->priv->entry;
#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_entry_set_text (_tmp12_, _tmp9_);
+ gtk_entry_set_text (_tmp7_, _tmp6_);
#line 34 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp13_ = self->priv->entry;
+ _tmp8_ = self->priv->entry;
#line 34 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget));
+ gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget));
#line 35 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp14_ = self->priv->entry;
+ _tmp9_ = self->priv->entry;
#line 35 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _text_entry_dialog_on_entry_changed_gtk_editable_changed, self, 0);
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _text_entry_dialog_on_entry_changed_gtk_editable_changed, self, 0);
#line 37 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp15_ = completion_list;
-#line 37 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- if (_tmp15_ != NULL) {
-#line 224 "TextEntry.c"
+ if (completion_list != NULL) {
+#line 229 "TextEntry.c"
EntryMultiCompletion* completion = NULL;
- GeeCollection* _tmp16_;
- const gchar* _tmp17_;
- EntryMultiCompletion* _tmp18_;
- GtkEntry* _tmp19_;
- EntryMultiCompletion* _tmp20_;
-#line 38 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp16_ = completion_list;
-#line 38 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp17_ = completion_delimiter;
+ EntryMultiCompletion* _tmp10_;
+ GtkEntry* _tmp11_;
+ EntryMultiCompletion* _tmp12_;
#line 38 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp18_ = entry_multi_completion_new (_tmp16_, _tmp17_);
+ _tmp10_ = entry_multi_completion_new (completion_list, completion_delimiter);
#line 38 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- completion = _tmp18_;
+ completion = _tmp10_;
#line 40 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp19_ = self->priv->entry;
+ _tmp11_ = self->priv->entry;
#line 40 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp20_ = completion;
+ _tmp12_ = completion;
#line 40 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_entry_set_completion (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_entry_completion_get_type (), GtkEntryCompletion));
+ gtk_entry_set_completion (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_entry_completion_get_type (), GtkEntryCompletion));
#line 37 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_g_object_unref0 (completion);
-#line 247 "TextEntry.c"
+#line 246 "TextEntry.c"
}
#line 43 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
gtk_dialog_set_default_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK);
-#line 251 "TextEntry.c"
+#line 250 "TextEntry.c"
}
-gchar* text_entry_dialog_execute (TextEntryDialog* self) {
+gchar*
+text_entry_dialog_execute (TextEntryDialog* self)
+{
gchar* result = NULL;
gchar* text = NULL;
TextEntryDialogOnModifyValidateType _tmp0_;
void* _tmp0__target;
GtkEntry* _tmp1_;
const gchar* _tmp2_;
- gboolean _tmp3_;
- gint _tmp4_;
- GtkEntry* _tmp8_;
- guint _tmp9_;
+ GtkEntry* _tmp6_;
+ guint _tmp7_;
#line 46 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
g_return_val_if_fail (IS_TEXT_ENTRY_DIALOG (self), NULL);
#line 47 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
@@ -275,53 +274,50 @@ gchar* text_entry_dialog_execute (TextEntryDialog* self) {
#line 50 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp2_ = gtk_entry_get_text (_tmp1_);
#line 50 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp3_ = _tmp0_ (_tmp2_, _tmp0__target);
-#line 50 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_dialog_set_response_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK, _tmp3_);
+ gtk_dialog_set_response_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK, _tmp0_ (_tmp2_, _tmp0__target));
#line 52 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
#line 54 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp4_ = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
-#line 54 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- if (_tmp4_ == ((gint) GTK_RESPONSE_OK)) {
-#line 288 "TextEntry.c"
- GtkEntry* _tmp5_;
- const gchar* _tmp6_;
- gchar* _tmp7_;
+ if (gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_OK)) {
+#line 283 "TextEntry.c"
+ GtkEntry* _tmp3_;
+ const gchar* _tmp4_;
+ gchar* _tmp5_;
#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp5_ = self->priv->entry;
+ _tmp3_ = self->priv->entry;
#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp6_ = gtk_entry_get_text (_tmp5_);
+ _tmp4_ = gtk_entry_get_text (_tmp3_);
#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp7_ = g_strdup (_tmp6_);
+ _tmp5_ = g_strdup (_tmp4_);
#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_g_free0 (text);
#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- text = _tmp7_;
-#line 302 "TextEntry.c"
+ text = _tmp5_;
+#line 297 "TextEntry.c"
}
#line 57 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp8_ = self->priv->entry;
+ _tmp6_ = self->priv->entry;
#line 57 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- g_signal_parse_name ("changed", GTK_TYPE_EDITABLE, &_tmp9_, NULL, FALSE);
+ g_signal_parse_name ("changed", gtk_editable_get_type (), &_tmp7_, NULL, FALSE);
#line 57 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GTK_TYPE_EDITABLE, GtkEditable), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _text_entry_dialog_on_entry_changed_gtk_editable_changed, self);
+ g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_editable_get_type (), GtkEditable), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _text_entry_dialog_on_entry_changed_gtk_editable_changed, self);
#line 58 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
#line 60 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
result = text;
#line 60 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
return result;
-#line 316 "TextEntry.c"
+#line 311 "TextEntry.c"
}
-void text_entry_dialog_on_entry_changed (TextEntryDialog* self) {
+void
+text_entry_dialog_on_entry_changed (TextEntryDialog* self)
+{
TextEntryDialogOnModifyValidateType _tmp0_;
void* _tmp0__target;
GtkEntry* _tmp1_;
const gchar* _tmp2_;
- gboolean _tmp3_;
#line 63 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
g_return_if_fail (IS_TEXT_ENTRY_DIALOG (self));
#line 64 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
@@ -333,14 +329,14 @@ void text_entry_dialog_on_entry_changed (TextEntryDialog* self) {
#line 64 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp2_ = gtk_entry_get_text (_tmp1_);
#line 64 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- _tmp3_ = _tmp0_ (_tmp2_, _tmp0__target);
-#line 64 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
- gtk_dialog_set_response_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK, _tmp3_);
-#line 340 "TextEntry.c"
+ gtk_dialog_set_response_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK, _tmp0_ (_tmp2_, _tmp0__target));
+#line 334 "TextEntry.c"
}
-static void text_entry_dialog_class_init (TextEntryDialogClass * klass) {
+static void
+text_entry_dialog_class_init (TextEntryDialogClass * klass)
+{
gint TextEntryDialog_private_offset;
#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
text_entry_dialog_parent_class = g_type_class_peek_parent (klass);
@@ -356,20 +352,24 @@ static void text_entry_dialog_class_init (TextEntryDialogClass * klass) {
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "entry", FALSE, TextEntryDialog_private_offset + G_STRUCT_OFFSET (TextEntryDialogPrivate, entry));
#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "label", FALSE, TextEntryDialog_private_offset + G_STRUCT_OFFSET (TextEntryDialogPrivate, label));
-#line 360 "TextEntry.c"
+#line 356 "TextEntry.c"
}
-static void text_entry_dialog_instance_init (TextEntryDialog * self) {
+static void
+text_entry_dialog_instance_init (TextEntryDialog * self)
+{
#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
self->priv = TEXT_ENTRY_DIALOG_GET_PRIVATE (self);
#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
gtk_widget_init_template (GTK_WIDGET (self));
-#line 369 "TextEntry.c"
+#line 367 "TextEntry.c"
}
-static void text_entry_dialog_finalize (GObject * obj) {
+static void
+text_entry_dialog_finalize (GObject * obj)
+{
TextEntryDialog * self;
#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TEXT_ENTRY_DIALOG, TextEntryDialog);
@@ -383,7 +383,9 @@ static void text_entry_dialog_finalize (GObject * obj) {
}
-GType text_entry_dialog_get_type (void) {
+GType
+text_entry_dialog_get_type (void)
+{
static volatile gsize text_entry_dialog_type_id__volatile = 0;
if (g_once_init_enter (&text_entry_dialog_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (TextEntryDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) text_entry_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TextEntryDialog), 0, (GInstanceInitFunc) text_entry_dialog_instance_init, NULL };