1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
|
/* TextEntry.c generated by valac 0.36.6, the Vala compiler
* generated from TextEntry.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
* Copyright 2017 Jens Georg <mail@jensge.org>
*
* This software is licensed under the GNU LGPL (version 2.1 or later).
* See the COPYING file in this distribution.
*/
#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <gee.h>
#define TYPE_TEXT_ENTRY_DIALOG (text_entry_dialog_get_type ())
#define TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialog))
#define TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialogClass))
#define IS_TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG))
#define IS_TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG))
#define TEXT_ENTRY_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialogClass))
typedef struct _TextEntryDialog TextEntryDialog;
typedef struct _TextEntryDialogClass TextEntryDialogClass;
typedef struct _TextEntryDialogPrivate TextEntryDialogPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define TYPE_PAGE_WINDOW (page_window_get_type ())
#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
typedef struct _PageWindow PageWindow;
typedef struct _PageWindowClass PageWindowClass;
#define TYPE_APP_WINDOW (app_window_get_type ())
#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow))
#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass))
#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW))
#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW))
#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass))
typedef struct _AppWindow AppWindow;
typedef struct _AppWindowClass AppWindowClass;
#define TYPE_ENTRY_MULTI_COMPLETION (entry_multi_completion_get_type ())
#define ENTRY_MULTI_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletion))
#define ENTRY_MULTI_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletionClass))
#define IS_ENTRY_MULTI_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENTRY_MULTI_COMPLETION))
#define IS_ENTRY_MULTI_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENTRY_MULTI_COMPLETION))
#define ENTRY_MULTI_COMPLETION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletionClass))
typedef struct _EntryMultiCompletion EntryMultiCompletion;
typedef struct _EntryMultiCompletionClass EntryMultiCompletionClass;
#define _g_free0(var) (var = (g_free (var), NULL))
struct _TextEntryDialog {
GtkDialog parent_instance;
TextEntryDialogPrivate * priv;
};
struct _TextEntryDialogClass {
GtkDialogClass parent_class;
};
typedef gboolean (*TextEntryDialogOnModifyValidateType) (const gchar* text, void* user_data);
struct _TextEntryDialogPrivate {
TextEntryDialogOnModifyValidateType on_modify_validate;
gpointer on_modify_validate_target;
GtkEntry* entry;
GtkLabel* label;
};
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);
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);
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);
gchar* text_entry_dialog_execute (TextEntryDialog* self);
static void text_entry_dialog_finalize (GObject * obj);
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);
#line 20 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
return self;
#line 113 "TextEntry.c"
}
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"
}
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"
}
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_;
AppWindow* _tmp1_;
AppWindow* _tmp2_;
GdkWindow* _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_;
#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"
g_return_if_fail (title != NULL);
#line 24 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
g_return_if_fail (label != NULL);
#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_);
#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp1_ = app_window_get_instance ();
#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp2_ = _tmp1_;
#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));
#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_);
#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_g_object_unref0 (_tmp2_);
#line 28 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp4_ = app_window_get_instance ();
#line 28 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp5_ = _tmp4_;
#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));
#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;
#line 29 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp6__target = modify_validate_target;
#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;
#line 31 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp8_ = label;
#line 31 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
gtk_label_set_text (_tmp7_, _tmp8_);
#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp10_ = initial_text;
#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"
} else {
#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp9_ = "";
#line 206 "TextEntry.c"
}
#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp12_ = self->priv->entry;
#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
gtk_entry_set_text (_tmp12_, _tmp9_);
#line 34 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp13_ = 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));
#line 35 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp14_ = 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);
#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"
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;
#line 38 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp18_ = entry_multi_completion_new (_tmp16_, _tmp17_);
#line 38 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
completion = _tmp18_;
#line 40 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp19_ = self->priv->entry;
#line 40 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp20_ = 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));
#line 37 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_g_object_unref0 (completion);
#line 247 "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"
}
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_;
#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"
text = NULL;
#line 50 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp0_ = self->priv->on_modify_validate;
#line 50 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp0__target = self->priv->on_modify_validate_target;
#line 50 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp1_ = self->priv->entry;
#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_);
#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_;
#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp5_ = self->priv->entry;
#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp6_ = gtk_entry_get_text (_tmp5_);
#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp7_ = g_strdup (_tmp6_);
#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"
}
#line 57 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp8_ = self->priv->entry;
#line 57 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
g_signal_parse_name ("changed", GTK_TYPE_EDITABLE, &_tmp9_, 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);
#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"
}
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"
_tmp0_ = self->priv->on_modify_validate;
#line 64 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp0__target = self->priv->on_modify_validate_target;
#line 64 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_tmp1_ = self->priv->entry;
#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"
}
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);
#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
g_type_class_add_private (klass, sizeof (TextEntryDialogPrivate));
#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
G_OBJECT_CLASS (klass)->finalize = text_entry_dialog_finalize;
#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
TextEntryDialog_private_offset = g_type_class_get_instance_private_offset (klass);
#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/textentrydialog.ui");
#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
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"
}
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"
}
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);
#line 15 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_g_object_unref0 (self->priv->entry);
#line 18 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
_g_object_unref0 (self->priv->label);
#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala"
G_OBJECT_CLASS (text_entry_dialog_parent_class)->finalize (obj);
#line 383 "TextEntry.c"
}
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 };
GType text_entry_dialog_type_id;
text_entry_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "TextEntryDialog", &g_define_type_info, 0);
g_once_init_leave (&text_entry_dialog_type_id__volatile, text_entry_dialog_type_id);
}
return text_entry_dialog_type_id__volatile;
}
|