autoreconf
[moonshot-ui.git] / src / moonshot-identity-manager-app.c
1 /* moonshot-identity-manager-app.c generated by valac 0.10.4, the Vala compiler
2  * generated from moonshot-identity-manager-app.vala, do not modify */
3
4
5 #include <glib.h>
6 #include <glib-object.h>
7 #include <gtk/gtk.h>
8 #include <gio/gio.h>
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <string.h>
12 #include <glib/gi18n-lib.h>
13 #include <config.h>
14 #include <gobject/gvaluecollector.h>
15
16
17 #define TYPE_IDENTITY_MANAGER_APP (identity_manager_app_get_type ())
18 #define IDENTITY_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_MANAGER_APP, IdentityManagerApp))
19 #define IDENTITY_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_MANAGER_APP, IdentityManagerAppClass))
20 #define IS_IDENTITY_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_MANAGER_APP))
21 #define IS_IDENTITY_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_MANAGER_APP))
22 #define IDENTITY_MANAGER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_MANAGER_APP, IdentityManagerAppClass))
23
24 typedef struct _IdentityManagerApp IdentityManagerApp;
25 typedef struct _IdentityManagerAppClass IdentityManagerAppClass;
26 typedef struct _IdentityManagerAppPrivate IdentityManagerAppPrivate;
27
28 #define TYPE_IDENTITY_MANAGER_MODEL (identity_manager_model_get_type ())
29 #define IDENTITY_MANAGER_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_MANAGER_MODEL, IdentityManagerModel))
30 #define IDENTITY_MANAGER_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_MANAGER_MODEL, IdentityManagerModelClass))
31 #define IS_IDENTITY_MANAGER_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_MANAGER_MODEL))
32 #define IS_IDENTITY_MANAGER_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_MANAGER_MODEL))
33 #define IDENTITY_MANAGER_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_MANAGER_MODEL, IdentityManagerModelClass))
34
35 typedef struct _IdentityManagerModel IdentityManagerModel;
36 typedef struct _IdentityManagerModelClass IdentityManagerModelClass;
37
38 #define TYPE_IDENTITY_MANAGER_VIEW (identity_manager_view_get_type ())
39 #define IDENTITY_MANAGER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerView))
40 #define IDENTITY_MANAGER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerViewClass))
41 #define IS_IDENTITY_MANAGER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_MANAGER_VIEW))
42 #define IS_IDENTITY_MANAGER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_MANAGER_VIEW))
43 #define IDENTITY_MANAGER_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerViewClass))
44
45 typedef struct _IdentityManagerView IdentityManagerView;
46 typedef struct _IdentityManagerViewClass IdentityManagerViewClass;
47
48 #define TYPE_MOONSHOT_SERVER (moonshot_server_get_type ())
49 #define MOONSHOT_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MOONSHOT_SERVER, MoonshotServer))
50 #define MOONSHOT_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MOONSHOT_SERVER, MoonshotServerClass))
51 #define IS_MOONSHOT_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MOONSHOT_SERVER))
52 #define IS_MOONSHOT_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MOONSHOT_SERVER))
53 #define MOONSHOT_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MOONSHOT_SERVER, MoonshotServerClass))
54
55 typedef struct _MoonshotServer MoonshotServer;
56 typedef struct _MoonshotServerClass MoonshotServerClass;
57 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
58 #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
59 typedef struct _ParamSpecIdentityManagerApp ParamSpecIdentityManagerApp;
60 #define _identity_manager_app_unref0(var) ((var == NULL) ? NULL : (var = (identity_manager_app_unref (var), NULL)))
61
62 struct _IdentityManagerApp {
63         GTypeInstance parent_instance;
64         volatile int ref_count;
65         IdentityManagerAppPrivate * priv;
66         IdentityManagerModel* model;
67 };
68
69 struct _IdentityManagerAppClass {
70         GTypeClass parent_class;
71         void (*finalize) (IdentityManagerApp *self);
72 };
73
74 struct _IdentityManagerAppPrivate {
75         IdentityManagerView* view;
76         MoonshotServer* ipc_server;
77 };
78
79 struct _ParamSpecIdentityManagerApp {
80         GParamSpec parent_instance;
81 };
82
83
84 static gpointer identity_manager_app_parent_class = NULL;
85
86 gpointer identity_manager_app_ref (gpointer instance);
87 void identity_manager_app_unref (gpointer instance);
88 GParamSpec* param_spec_identity_manager_app (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
89 void value_set_identity_manager_app (GValue* value, gpointer v_object);
90 void value_take_identity_manager_app (GValue* value, gpointer v_object);
91 gpointer value_get_identity_manager_app (const GValue* value);
92 GType identity_manager_app_get_type (void) G_GNUC_CONST;
93 GType identity_manager_model_get_type (void) G_GNUC_CONST;
94 GType identity_manager_view_get_type (void) G_GNUC_CONST;
95 GType moonshot_server_get_type (void) G_GNUC_CONST;
96 guint moonshot_server_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
97 #define IDENTITY_MANAGER_APP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_IDENTITY_MANAGER_APP, IdentityManagerAppPrivate))
98 enum  {
99         IDENTITY_MANAGER_APP_DUMMY_PROPERTY
100 };
101 #define IDENTITY_MANAGER_APP_WINDOW_WIDTH 400
102 #define IDENTITY_MANAGER_APP_WINDOW_HEIGHT 500
103 void identity_manager_app_show (IdentityManagerApp* self);
104 IdentityManagerApp* identity_manager_app_new (void);
105 IdentityManagerApp* identity_manager_app_construct (GType object_type);
106 IdentityManagerModel* identity_manager_model_new (IdentityManagerApp* parent_app);
107 IdentityManagerModel* identity_manager_model_construct (GType object_type, IdentityManagerApp* parent_app);
108 IdentityManagerView* identity_manager_view_new (IdentityManagerApp* app);
109 IdentityManagerView* identity_manager_view_construct (GType object_type, IdentityManagerApp* app);
110 static void identity_manager_app_init_ipc_server (IdentityManagerApp* self);
111 static void identity_manager_app_bus_acquired_cb (IdentityManagerApp* self, GDBusConnection* conn);
112 MoonshotServer* moonshot_server_new (GtkWindow* window);
113 MoonshotServer* moonshot_server_construct (GType object_type, GtkWindow* window);
114 static void _identity_manager_app_bus_acquired_cb_gbus_acquired_callback (GDBusConnection* connection, const char* name, gpointer self);
115 static void _lambda6_ (GDBusConnection* conn, const char* name, IdentityManagerApp* self);
116 static void __lambda6__gbus_name_acquired_callback (GDBusConnection* connection, const char* name, gpointer self);
117 static void _lambda7_ (GDBusConnection* conn, const char* name, IdentityManagerApp* self);
118 static void __lambda7__gbus_name_lost_callback (GDBusConnection* connection, const char* name, gpointer self);
119 static void identity_manager_app_finalize (IdentityManagerApp* obj);
120 gint _vala_main (char** args, int args_length1);
121
122
123
124 #line 25 "moonshot-identity-manager-app.vala"
125 void identity_manager_app_show (IdentityManagerApp* self) {
126 #line 25 "moonshot-identity-manager-app.vala"
127         g_return_if_fail (self != NULL);
128 #line 26 "moonshot-identity-manager-app.vala"
129         gtk_widget_show ((GtkWidget*) self->priv->view);
130 #line 131 "moonshot-identity-manager-app.c"
131 }
132
133
134 #line 29 "moonshot-identity-manager-app.vala"
135 IdentityManagerApp* identity_manager_app_construct (GType object_type) {
136 #line 137 "moonshot-identity-manager-app.c"
137         IdentityManagerApp* self = (IdentityManagerApp*) g_type_create_instance (object_type);
138         IdentityManagerModel* _tmp0_;
139         IdentityManagerView* _tmp1_;
140 #line 30 "moonshot-identity-manager-app.vala"
141         self->model = (_tmp0_ = identity_manager_model_new (self), _g_object_unref0 (self->model), _tmp0_);
142 #line 31 "moonshot-identity-manager-app.vala"
143         self->priv->view = (_tmp1_ = g_object_ref_sink (identity_manager_view_new (self)), _g_object_unref0 (self->priv->view), _tmp1_);
144 #line 32 "moonshot-identity-manager-app.vala"
145         identity_manager_app_init_ipc_server (self);
146 #line 43 "moonshot-identity-manager-app.vala"
147         gtk_widget_show ((GtkWidget*) self->priv->view);
148 #line 149 "moonshot-identity-manager-app.c"
149         return self;
150 }
151
152
153 #line 29 "moonshot-identity-manager-app.vala"
154 IdentityManagerApp* identity_manager_app_new (void) {
155 #line 29 "moonshot-identity-manager-app.vala"
156         return identity_manager_app_construct (TYPE_IDENTITY_MANAGER_APP);
157 #line 158 "moonshot-identity-manager-app.c"
158 }
159
160
161 #line 78 "moonshot-identity-manager-app.vala"
162 static void identity_manager_app_bus_acquired_cb (IdentityManagerApp* self, GDBusConnection* conn) {
163 #line 164 "moonshot-identity-manager-app.c"
164         GError * _inner_error_ = NULL;
165 #line 78 "moonshot-identity-manager-app.vala"
166         g_return_if_fail (self != NULL);
167 #line 78 "moonshot-identity-manager-app.vala"
168         g_return_if_fail (conn != NULL);
169 #line 170 "moonshot-identity-manager-app.c"
170         {
171 #line 81 "moonshot-identity-manager-app.vala"
172                 moonshot_server_register_object (self->priv->ipc_server, conn, "/org/janet/moonshot", &_inner_error_);
173 #line 174 "moonshot-identity-manager-app.c"
174                 if (_inner_error_ != NULL) {
175                         goto __catch0_g_error;
176                 }
177         }
178         goto __finally0;
179         __catch0_g_error:
180         {
181                 GError * e;
182                 e = _inner_error_;
183                 _inner_error_ = NULL;
184                 {
185 #line 85 "moonshot-identity-manager-app.vala"
186                         fprintf (stderr, "%s\n", e->message);
187 #line 188 "moonshot-identity-manager-app.c"
188                         _g_error_free0 (e);
189                 }
190         }
191         __finally0:
192         if (_inner_error_ != NULL) {
193                 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
194                 g_clear_error (&_inner_error_);
195                 return;
196         }
197 }
198
199
200 #line 78 "moonshot-identity-manager-app.vala"
201 static void _identity_manager_app_bus_acquired_cb_gbus_acquired_callback (GDBusConnection* connection, const char* name, gpointer self) {
202 #line 203 "moonshot-identity-manager-app.c"
203         identity_manager_app_bus_acquired_cb (self, connection);
204 }
205
206
207 #line 96 "moonshot-identity-manager-app.vala"
208 static void _lambda6_ (GDBusConnection* conn, const char* name, IdentityManagerApp* self) {
209 #line 96 "moonshot-identity-manager-app.vala"
210         g_return_if_fail (conn != NULL);
211 #line 96 "moonshot-identity-manager-app.vala"
212         g_return_if_fail (name != NULL);
213 #line 214 "moonshot-identity-manager-app.c"
214 }
215
216
217 #line 96 "moonshot-identity-manager-app.vala"
218 static void __lambda6__gbus_name_acquired_callback (GDBusConnection* connection, const char* name, gpointer self) {
219 #line 220 "moonshot-identity-manager-app.c"
220         _lambda6_ (connection, name, self);
221 }
222
223
224 #line 97 "moonshot-identity-manager-app.vala"
225 static void _lambda7_ (GDBusConnection* conn, const char* name, IdentityManagerApp* self) {
226 #line 97 "moonshot-identity-manager-app.vala"
227         g_return_if_fail (conn != NULL);
228 #line 97 "moonshot-identity-manager-app.vala"
229         g_return_if_fail (name != NULL);
230 #line 98 "moonshot-identity-manager-app.vala"
231         g_error ("moonshot-identity-manager-app.vala:98: Couldn't own name %s on DBus.", name);
232 #line 233 "moonshot-identity-manager-app.c"
233 }
234
235
236 #line 97 "moonshot-identity-manager-app.vala"
237 static void __lambda7__gbus_name_lost_callback (GDBusConnection* connection, const char* name, gpointer self) {
238 #line 239 "moonshot-identity-manager-app.c"
239         _lambda7_ (connection, name, self);
240 }
241
242
243 #line 89 "moonshot-identity-manager-app.vala"
244 static void identity_manager_app_init_ipc_server (IdentityManagerApp* self) {
245 #line 246 "moonshot-identity-manager-app.c"
246         MoonshotServer* _tmp0_;
247 #line 89 "moonshot-identity-manager-app.vala"
248         g_return_if_fail (self != NULL);
249 #line 91 "moonshot-identity-manager-app.vala"
250         self->priv->ipc_server = (_tmp0_ = moonshot_server_new ((GtkWindow*) self->priv->view), _g_object_unref0 (self->priv->ipc_server), _tmp0_);
251 #line 92 "moonshot-identity-manager-app.vala"
252         g_bus_own_name_with_closures (G_BUS_TYPE_SESSION, "org.janet.Moonshot", G_BUS_NAME_OWNER_FLAGS_NONE, (GClosure*) g_cclosure_new ((GCallback) _identity_manager_app_bus_acquired_cb_gbus_acquired_callback, identity_manager_app_ref (self), identity_manager_app_unref), (GClosure*) g_cclosure_new ((GCallback) __lambda6__gbus_name_acquired_callback, identity_manager_app_ref (self), identity_manager_app_unref), (GClosure*) g_cclosure_new ((GCallback) __lambda7__gbus_name_lost_callback, identity_manager_app_ref (self), identity_manager_app_unref));
253 #line 254 "moonshot-identity-manager-app.c"
254 }
255
256
257 static void value_identity_manager_app_init (GValue* value) {
258         value->data[0].v_pointer = NULL;
259 }
260
261
262 static void value_identity_manager_app_free_value (GValue* value) {
263         if (value->data[0].v_pointer) {
264                 identity_manager_app_unref (value->data[0].v_pointer);
265         }
266 }
267
268
269 static void value_identity_manager_app_copy_value (const GValue* src_value, GValue* dest_value) {
270         if (src_value->data[0].v_pointer) {
271                 dest_value->data[0].v_pointer = identity_manager_app_ref (src_value->data[0].v_pointer);
272         } else {
273                 dest_value->data[0].v_pointer = NULL;
274         }
275 }
276
277
278 static gpointer value_identity_manager_app_peek_pointer (const GValue* value) {
279         return value->data[0].v_pointer;
280 }
281
282
283 static gchar* value_identity_manager_app_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
284         if (collect_values[0].v_pointer) {
285                 IdentityManagerApp* object;
286                 object = collect_values[0].v_pointer;
287                 if (object->parent_instance.g_class == NULL) {
288                         return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
289                 } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
290                         return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
291                 }
292                 value->data[0].v_pointer = identity_manager_app_ref (object);
293         } else {
294                 value->data[0].v_pointer = NULL;
295         }
296         return NULL;
297 }
298
299
300 static gchar* value_identity_manager_app_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
301         IdentityManagerApp** object_p;
302         object_p = collect_values[0].v_pointer;
303         if (!object_p) {
304                 return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
305         }
306         if (!value->data[0].v_pointer) {
307                 *object_p = NULL;
308         } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
309                 *object_p = value->data[0].v_pointer;
310         } else {
311                 *object_p = identity_manager_app_ref (value->data[0].v_pointer);
312         }
313         return NULL;
314 }
315
316
317 GParamSpec* param_spec_identity_manager_app (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
318         ParamSpecIdentityManagerApp* spec;
319         g_return_val_if_fail (g_type_is_a (object_type, TYPE_IDENTITY_MANAGER_APP), NULL);
320         spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
321         G_PARAM_SPEC (spec)->value_type = object_type;
322         return G_PARAM_SPEC (spec);
323 }
324
325
326 gpointer value_get_identity_manager_app (const GValue* value) {
327         g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IDENTITY_MANAGER_APP), NULL);
328         return value->data[0].v_pointer;
329 }
330
331
332 void value_set_identity_manager_app (GValue* value, gpointer v_object) {
333         IdentityManagerApp* old;
334         g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IDENTITY_MANAGER_APP));
335         old = value->data[0].v_pointer;
336         if (v_object) {
337                 g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_IDENTITY_MANAGER_APP));
338                 g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
339                 value->data[0].v_pointer = v_object;
340                 identity_manager_app_ref (value->data[0].v_pointer);
341         } else {
342                 value->data[0].v_pointer = NULL;
343         }
344         if (old) {
345                 identity_manager_app_unref (old);
346         }
347 }
348
349
350 void value_take_identity_manager_app (GValue* value, gpointer v_object) {
351         IdentityManagerApp* old;
352         g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IDENTITY_MANAGER_APP));
353         old = value->data[0].v_pointer;
354         if (v_object) {
355                 g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_IDENTITY_MANAGER_APP));
356                 g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
357                 value->data[0].v_pointer = v_object;
358         } else {
359                 value->data[0].v_pointer = NULL;
360         }
361         if (old) {
362                 identity_manager_app_unref (old);
363         }
364 }
365
366
367 static void identity_manager_app_class_init (IdentityManagerAppClass * klass) {
368         identity_manager_app_parent_class = g_type_class_peek_parent (klass);
369         IDENTITY_MANAGER_APP_CLASS (klass)->finalize = identity_manager_app_finalize;
370         g_type_class_add_private (klass, sizeof (IdentityManagerAppPrivate));
371 }
372
373
374 static void identity_manager_app_instance_init (IdentityManagerApp * self) {
375         self->priv = IDENTITY_MANAGER_APP_GET_PRIVATE (self);
376         self->ref_count = 1;
377 }
378
379
380 static void identity_manager_app_finalize (IdentityManagerApp* obj) {
381         IdentityManagerApp * self;
382         self = IDENTITY_MANAGER_APP (obj);
383         _g_object_unref0 (self->model);
384         _g_object_unref0 (self->priv->view);
385         _g_object_unref0 (self->priv->ipc_server);
386 }
387
388
389 GType identity_manager_app_get_type (void) {
390         static volatile gsize identity_manager_app_type_id__volatile = 0;
391         if (g_once_init_enter (&identity_manager_app_type_id__volatile)) {
392                 static const GTypeValueTable g_define_type_value_table = { value_identity_manager_app_init, value_identity_manager_app_free_value, value_identity_manager_app_copy_value, value_identity_manager_app_peek_pointer, "p", value_identity_manager_app_collect_value, "p", value_identity_manager_app_lcopy_value };
393                 static const GTypeInfo g_define_type_info = { sizeof (IdentityManagerAppClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) identity_manager_app_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (IdentityManagerApp), 0, (GInstanceInitFunc) identity_manager_app_instance_init, &g_define_type_value_table };
394                 static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
395                 GType identity_manager_app_type_id;
396                 identity_manager_app_type_id = g_type_register_fundamental (g_type_fundamental_next (), "IdentityManagerApp", &g_define_type_info, &g_define_type_fundamental_info, 0);
397                 g_once_init_leave (&identity_manager_app_type_id__volatile, identity_manager_app_type_id);
398         }
399         return identity_manager_app_type_id__volatile;
400 }
401
402
403 gpointer identity_manager_app_ref (gpointer instance) {
404         IdentityManagerApp* self;
405         self = instance;
406         g_atomic_int_inc (&self->ref_count);
407         return instance;
408 }
409
410
411 void identity_manager_app_unref (gpointer instance) {
412         IdentityManagerApp* self;
413         self = instance;
414         if (g_atomic_int_dec_and_test (&self->ref_count)) {
415                 IDENTITY_MANAGER_APP_GET_CLASS (self)->finalize (self);
416                 g_type_free_instance ((GTypeInstance *) self);
417         }
418 }
419
420
421 #line 105 "moonshot-identity-manager-app.vala"
422 gint _vala_main (char** args, int args_length1) {
423 #line 424 "moonshot-identity-manager-app.c"
424         gint result = 0;
425         IdentityManagerApp* app;
426 #line 106 "moonshot-identity-manager-app.vala"
427         gtk_init (&args_length1, &args);
428 #line 115 "moonshot-identity-manager-app.vala"
429         bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
430 #line 116 "moonshot-identity-manager-app.vala"
431         bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
432 #line 117 "moonshot-identity-manager-app.vala"
433         textdomain (GETTEXT_PACKAGE);
434 #line 120 "moonshot-identity-manager-app.vala"
435         app = identity_manager_app_new ();
436 #line 122 "moonshot-identity-manager-app.vala"
437         identity_manager_app_show (app);
438 #line 124 "moonshot-identity-manager-app.vala"
439         gtk_main ();
440 #line 441 "moonshot-identity-manager-app.c"
441         result = 0;
442         _identity_manager_app_unref0 (app);
443 #line 126 "moonshot-identity-manager-app.vala"
444         return result;
445 #line 446 "moonshot-identity-manager-app.c"
446 }
447
448
449 #line 105 "moonshot-identity-manager-app.vala"
450 int main (int argc, char ** argv) {
451 #line 105 "moonshot-identity-manager-app.vala"
452         g_type_init ();
453 #line 105 "moonshot-identity-manager-app.vala"
454         return _vala_main (argv, argc);
455 #line 456 "moonshot-identity-manager-app.c"
456 }
457
458
459
460