run vala
[moonshot-ui.git] / src / moonshot-custom-vbox.c
1 /* moonshot-custom-vbox.c generated by valac 0.16.1, the Vala compiler
2  * generated from moonshot-custom-vbox.vala, do not modify */
3
4
5 #include <glib.h>
6 #include <glib-object.h>
7 #include <gtk/gtk.h>
8
9
10 #define TYPE_CUSTOM_VBOX (custom_vbox_get_type ())
11 #define CUSTOM_VBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CUSTOM_VBOX, CustomVBox))
12 #define CUSTOM_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CUSTOM_VBOX, CustomVBoxClass))
13 #define IS_CUSTOM_VBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CUSTOM_VBOX))
14 #define IS_CUSTOM_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CUSTOM_VBOX))
15 #define CUSTOM_VBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CUSTOM_VBOX, CustomVBoxClass))
16
17 typedef struct _CustomVBox CustomVBox;
18 typedef struct _CustomVBoxClass CustomVBoxClass;
19 typedef struct _CustomVBoxPrivate CustomVBoxPrivate;
20
21 #define TYPE_ID_CARD_WIDGET (id_card_widget_get_type ())
22 #define ID_CARD_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ID_CARD_WIDGET, IdCardWidget))
23 #define ID_CARD_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ID_CARD_WIDGET, IdCardWidgetClass))
24 #define IS_ID_CARD_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ID_CARD_WIDGET))
25 #define IS_ID_CARD_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ID_CARD_WIDGET))
26 #define ID_CARD_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ID_CARD_WIDGET, IdCardWidgetClass))
27
28 typedef struct _IdCardWidget IdCardWidget;
29 typedef struct _IdCardWidgetClass IdCardWidgetClass;
30
31 #define TYPE_IDENTITY_MANAGER_VIEW (identity_manager_view_get_type ())
32 #define IDENTITY_MANAGER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerView))
33 #define IDENTITY_MANAGER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerViewClass))
34 #define IS_IDENTITY_MANAGER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_MANAGER_VIEW))
35 #define IS_IDENTITY_MANAGER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_MANAGER_VIEW))
36 #define IDENTITY_MANAGER_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerViewClass))
37
38 typedef struct _IdentityManagerView IdentityManagerView;
39 typedef struct _IdentityManagerViewClass IdentityManagerViewClass;
40 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
41 typedef struct _IdentityManagerViewPrivate IdentityManagerViewPrivate;
42
43 #define TYPE_IDENTITY_MANAGER_APP (identity_manager_app_get_type ())
44 #define IDENTITY_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_MANAGER_APP, IdentityManagerApp))
45 #define IDENTITY_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_MANAGER_APP, IdentityManagerAppClass))
46 #define IS_IDENTITY_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_MANAGER_APP))
47 #define IS_IDENTITY_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_MANAGER_APP))
48 #define IDENTITY_MANAGER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_MANAGER_APP, IdentityManagerAppClass))
49
50 typedef struct _IdentityManagerApp IdentityManagerApp;
51 typedef struct _IdentityManagerAppClass IdentityManagerAppClass;
52
53 #define TYPE_IDENTITY_MANAGER_MODEL (identity_manager_model_get_type ())
54 #define IDENTITY_MANAGER_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_MANAGER_MODEL, IdentityManagerModel))
55 #define IDENTITY_MANAGER_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_MANAGER_MODEL, IdentityManagerModelClass))
56 #define IS_IDENTITY_MANAGER_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_MANAGER_MODEL))
57 #define IS_IDENTITY_MANAGER_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_MANAGER_MODEL))
58 #define IDENTITY_MANAGER_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_MANAGER_MODEL, IdentityManagerModelClass))
59
60 typedef struct _IdentityManagerModel IdentityManagerModel;
61 typedef struct _IdentityManagerModelClass IdentityManagerModelClass;
62
63 #define TYPE_IDENTITY_REQUEST (identity_request_get_type ())
64 #define IDENTITY_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_REQUEST, IdentityRequest))
65 #define IDENTITY_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_REQUEST, IdentityRequestClass))
66 #define IS_IDENTITY_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_REQUEST))
67 #define IS_IDENTITY_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_REQUEST))
68 #define IDENTITY_REQUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_REQUEST, IdentityRequestClass))
69
70 typedef struct _IdentityRequest IdentityRequest;
71 typedef struct _IdentityRequestClass IdentityRequestClass;
72 #define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
73
74 struct _CustomVBox {
75         GtkVBox parent_instance;
76         CustomVBoxPrivate * priv;
77 };
78
79 struct _CustomVBoxClass {
80         GtkVBoxClass parent_class;
81 };
82
83 struct _CustomVBoxPrivate {
84         IdCardWidget* _current_idcard;
85         IdentityManagerView* main_window;
86 };
87
88 struct _IdentityManagerView {
89         GtkWindow parent_instance;
90         IdentityManagerViewPrivate * priv;
91         IdentityManagerApp* parent_app;
92         IdentityManagerModel* identities_manager;
93         GQueue* request_queue;
94 };
95
96 struct _IdentityManagerViewClass {
97         GtkWindowClass parent_class;
98 };
99
100
101 static gpointer custom_vbox_parent_class = NULL;
102
103 GType custom_vbox_get_type (void) G_GNUC_CONST;
104 GType id_card_widget_get_type (void) G_GNUC_CONST;
105 GType identity_manager_view_get_type (void) G_GNUC_CONST;
106 #define CUSTOM_VBOX_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CUSTOM_VBOX, CustomVBoxPrivate))
107 enum  {
108         CUSTOM_VBOX_DUMMY_PROPERTY,
109         CUSTOM_VBOX_CURRENT_IDCARD
110 };
111 CustomVBox* custom_vbox_new (IdentityManagerView* window, gboolean homogeneous, gint spacing);
112 CustomVBox* custom_vbox_construct (GType object_type, IdentityManagerView* window, gboolean homogeneous, gint spacing);
113 void custom_vbox_receive_expanded_event (CustomVBox* self, IdCardWidget* id_card_widget);
114 void id_card_widget_collapse (IdCardWidget* self);
115 void custom_vbox_set_current_idcard (CustomVBox* self, IdCardWidget* value);
116 IdCardWidget* custom_vbox_get_current_idcard (CustomVBox* self);
117 gpointer identity_manager_app_ref (gpointer instance);
118 void identity_manager_app_unref (gpointer instance);
119 GParamSpec* param_spec_identity_manager_app (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
120 void value_set_identity_manager_app (GValue* value, gpointer v_object);
121 void value_take_identity_manager_app (GValue* value, gpointer v_object);
122 gpointer value_get_identity_manager_app (const GValue* value);
123 GType identity_manager_app_get_type (void) G_GNUC_CONST;
124 GType identity_manager_model_get_type (void) G_GNUC_CONST;
125 GType identity_request_get_type (void) G_GNUC_CONST;
126 GtkButton* id_card_widget_get_send_button (IdCardWidget* self);
127 void custom_vbox_add_id_card_widget (CustomVBox* self, IdCardWidget* id_card_widget);
128 void custom_vbox_remove_id_card_widget (CustomVBox* self, IdCardWidget* id_card_widget);
129 static void custom_vbox_finalize (GObject* obj);
130 static void _vala_custom_vbox_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
131 static void _vala_custom_vbox_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
132
133
134 static gpointer _g_object_ref0 (gpointer self) {
135 #line 10 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
136         return self ? g_object_ref (self) : NULL;
137 #line 138 "moonshot-custom-vbox.c"
138 }
139
140
141 CustomVBox* custom_vbox_construct (GType object_type, IdentityManagerView* window, gboolean homogeneous, gint spacing) {
142         CustomVBox * self = NULL;
143         IdentityManagerView* _tmp0_;
144         IdentityManagerView* _tmp1_;
145         gboolean _tmp2_;
146         gint _tmp3_;
147 #line 8 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
148         g_return_val_if_fail (window != NULL, NULL);
149 #line 8 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
150         self = (CustomVBox*) g_object_new (object_type, NULL);
151 #line 10 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
152         _tmp0_ = window;
153 #line 10 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
154         _tmp1_ = _g_object_ref0 (_tmp0_);
155 #line 10 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
156         _g_object_unref0 (self->priv->main_window);
157 #line 10 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
158         self->priv->main_window = _tmp1_;
159 #line 11 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
160         _tmp2_ = homogeneous;
161 #line 11 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
162         gtk_box_set_homogeneous ((GtkBox*) self, _tmp2_);
163 #line 12 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
164         _tmp3_ = spacing;
165 #line 12 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
166         gtk_box_set_spacing ((GtkBox*) self, _tmp3_);
167 #line 8 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
168         return self;
169 #line 170 "moonshot-custom-vbox.c"
170 }
171
172
173 CustomVBox* custom_vbox_new (IdentityManagerView* window, gboolean homogeneous, gint spacing) {
174 #line 8 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
175         return custom_vbox_construct (TYPE_CUSTOM_VBOX, window, homogeneous, spacing);
176 #line 177 "moonshot-custom-vbox.c"
177 }
178
179
180 void custom_vbox_receive_expanded_event (CustomVBox* self, IdCardWidget* id_card_widget) {
181         GList* _tmp0_ = NULL;
182         GList* list;
183         GList* _tmp1_;
184         IdCardWidget* _tmp6_;
185         gboolean _tmp7_ = FALSE;
186         IdCardWidget* _tmp8_;
187         gboolean _tmp12_;
188 #line 15 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
189         g_return_if_fail (self != NULL);
190 #line 15 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
191         g_return_if_fail (id_card_widget != NULL);
192 #line 17 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
193         _tmp0_ = gtk_container_get_children ((GtkContainer*) self);
194 #line 17 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
195         list = _tmp0_;
196 #line 18 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
197         _tmp1_ = list;
198 #line 199 "moonshot-custom-vbox.c"
199         {
200                 GList* id_card_collection = NULL;
201                 GList* id_card_it = NULL;
202 #line 18 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
203                 id_card_collection = _tmp1_;
204 #line 18 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
205                 for (id_card_it = id_card_collection; id_card_it != NULL; id_card_it = id_card_it->next) {
206 #line 207 "moonshot-custom-vbox.c"
207                         GtkWidget* _tmp2_;
208                         GtkWidget* id_card = NULL;
209 #line 18 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
210                         _tmp2_ = _g_object_ref0 ((GtkWidget*) id_card_it->data);
211 #line 18 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
212                         id_card = _tmp2_;
213 #line 214 "moonshot-custom-vbox.c"
214                         {
215                                 GtkWidget* _tmp3_;
216                                 IdCardWidget* _tmp4_;
217 #line 20 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
218                                 _tmp3_ = id_card;
219 #line 20 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
220                                 _tmp4_ = id_card_widget;
221 #line 20 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
222                                 if (_tmp3_ != GTK_WIDGET (_tmp4_)) {
223 #line 224 "moonshot-custom-vbox.c"
224                                         GtkWidget* _tmp5_;
225 #line 21 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
226                                         _tmp5_ = id_card;
227 #line 21 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
228                                         id_card_widget_collapse (ID_CARD_WIDGET (_tmp5_));
229 #line 230 "moonshot-custom-vbox.c"
230                                 }
231 #line 18 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
232                                 _g_object_unref0 (id_card);
233 #line 234 "moonshot-custom-vbox.c"
234                         }
235                 }
236         }
237 #line 23 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
238         _tmp6_ = id_card_widget;
239 #line 23 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
240         custom_vbox_set_current_idcard (self, _tmp6_);
241 #line 25 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
242         _tmp8_ = self->priv->_current_idcard;
243 #line 25 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
244         if (_tmp8_ != NULL) {
245 #line 246 "moonshot-custom-vbox.c"
246                 IdentityManagerView* _tmp9_;
247                 GQueue* _tmp10_;
248                 guint _tmp11_;
249 #line 25 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
250                 _tmp9_ = self->priv->main_window;
251 #line 25 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
252                 _tmp10_ = _tmp9_->request_queue;
253 #line 25 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
254                 _tmp11_ = _tmp10_->length;
255 #line 25 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
256                 _tmp7_ = _tmp11_ > ((guint) 0);
257 #line 258 "moonshot-custom-vbox.c"
258         } else {
259 #line 25 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
260                 _tmp7_ = FALSE;
261 #line 262 "moonshot-custom-vbox.c"
262         }
263 #line 25 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
264         _tmp12_ = _tmp7_;
265 #line 25 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
266         if (_tmp12_) {
267 #line 268 "moonshot-custom-vbox.c"
268                 IdCardWidget* _tmp13_;
269                 GtkButton* _tmp14_;
270                 GtkButton* _tmp15_;
271 #line 26 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
272                 _tmp13_ = self->priv->_current_idcard;
273 #line 26 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
274                 _tmp14_ = id_card_widget_get_send_button (_tmp13_);
275 #line 26 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
276                 _tmp15_ = _tmp14_;
277 #line 26 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
278                 gtk_widget_set_sensitive ((GtkWidget*) _tmp15_, TRUE);
279 #line 280 "moonshot-custom-vbox.c"
280         }
281 #line 15 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
282         _g_list_free0 (list);
283 #line 284 "moonshot-custom-vbox.c"
284 }
285
286
287 void custom_vbox_add_id_card_widget (CustomVBox* self, IdCardWidget* id_card_widget) {
288         IdCardWidget* _tmp0_;
289 #line 29 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
290         g_return_if_fail (self != NULL);
291 #line 29 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
292         g_return_if_fail (id_card_widget != NULL);
293 #line 31 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
294         _tmp0_ = id_card_widget;
295 #line 31 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
296         gtk_box_pack_start ((GtkBox*) self, (GtkWidget*) _tmp0_, FALSE, FALSE, (guint) 0);
297 #line 298 "moonshot-custom-vbox.c"
298 }
299
300
301 void custom_vbox_remove_id_card_widget (CustomVBox* self, IdCardWidget* id_card_widget) {
302         IdCardWidget* _tmp0_;
303 #line 34 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
304         g_return_if_fail (self != NULL);
305 #line 34 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
306         g_return_if_fail (id_card_widget != NULL);
307 #line 36 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
308         _tmp0_ = id_card_widget;
309 #line 36 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
310         gtk_container_remove ((GtkContainer*) self, (GtkWidget*) _tmp0_);
311 #line 312 "moonshot-custom-vbox.c"
312 }
313
314
315 IdCardWidget* custom_vbox_get_current_idcard (CustomVBox* self) {
316         IdCardWidget* result;
317         IdCardWidget* _tmp0_;
318 #line 5 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
319         g_return_val_if_fail (self != NULL, NULL);
320 #line 5 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
321         _tmp0_ = self->priv->_current_idcard;
322 #line 5 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
323         result = _tmp0_;
324 #line 5 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
325         return result;
326 #line 327 "moonshot-custom-vbox.c"
327 }
328
329
330 void custom_vbox_set_current_idcard (CustomVBox* self, IdCardWidget* value) {
331         IdCardWidget* _tmp0_;
332         IdCardWidget* _tmp1_;
333 #line 5 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
334         g_return_if_fail (self != NULL);
335 #line 5 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
336         _tmp0_ = value;
337 #line 5 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
338         _tmp1_ = _g_object_ref0 (_tmp0_);
339 #line 5 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
340         _g_object_unref0 (self->priv->_current_idcard);
341 #line 5 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
342         self->priv->_current_idcard = _tmp1_;
343 #line 5 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
344         g_object_notify ((GObject *) self, "current-idcard");
345 #line 346 "moonshot-custom-vbox.c"
346 }
347
348
349 static void custom_vbox_class_init (CustomVBoxClass * klass) {
350 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
351         custom_vbox_parent_class = g_type_class_peek_parent (klass);
352 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
353         g_type_class_add_private (klass, sizeof (CustomVBoxPrivate));
354 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
355         G_OBJECT_CLASS (klass)->get_property = _vala_custom_vbox_get_property;
356 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
357         G_OBJECT_CLASS (klass)->set_property = _vala_custom_vbox_set_property;
358 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
359         G_OBJECT_CLASS (klass)->finalize = custom_vbox_finalize;
360 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
361         g_object_class_install_property (G_OBJECT_CLASS (klass), CUSTOM_VBOX_CURRENT_IDCARD, g_param_spec_object ("current-idcard", "current-idcard", "current-idcard", TYPE_ID_CARD_WIDGET, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
362 #line 363 "moonshot-custom-vbox.c"
363 }
364
365
366 static void custom_vbox_instance_init (CustomVBox * self) {
367 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
368         self->priv = CUSTOM_VBOX_GET_PRIVATE (self);
369 #line 5 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
370         self->priv->_current_idcard = NULL;
371 #line 372 "moonshot-custom-vbox.c"
372 }
373
374
375 static void custom_vbox_finalize (GObject* obj) {
376         CustomVBox * self;
377 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
378         self = CUSTOM_VBOX (obj);
379 #line 5 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
380         _g_object_unref0 (self->priv->_current_idcard);
381 #line 6 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
382         _g_object_unref0 (self->priv->main_window);
383 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
384         G_OBJECT_CLASS (custom_vbox_parent_class)->finalize (obj);
385 #line 386 "moonshot-custom-vbox.c"
386 }
387
388
389 GType custom_vbox_get_type (void) {
390         static volatile gsize custom_vbox_type_id__volatile = 0;
391         if (g_once_init_enter (&custom_vbox_type_id__volatile)) {
392                 static const GTypeInfo g_define_type_info = { sizeof (CustomVBoxClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) custom_vbox_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CustomVBox), 0, (GInstanceInitFunc) custom_vbox_instance_init, NULL };
393                 GType custom_vbox_type_id;
394                 custom_vbox_type_id = g_type_register_static (GTK_TYPE_VBOX, "CustomVBox", &g_define_type_info, 0);
395                 g_once_init_leave (&custom_vbox_type_id__volatile, custom_vbox_type_id);
396         }
397         return custom_vbox_type_id__volatile;
398 }
399
400
401 static void _vala_custom_vbox_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
402         CustomVBox * self;
403         self = CUSTOM_VBOX (object);
404 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
405         switch (property_id) {
406 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
407                 case CUSTOM_VBOX_CURRENT_IDCARD:
408 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
409                 g_value_set_object (value, custom_vbox_get_current_idcard (self));
410 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
411                 break;
412 #line 413 "moonshot-custom-vbox.c"
413                 default:
414 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
415                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
416 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
417                 break;
418 #line 419 "moonshot-custom-vbox.c"
419         }
420 }
421
422
423 static void _vala_custom_vbox_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
424         CustomVBox * self;
425         self = CUSTOM_VBOX (object);
426 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
427         switch (property_id) {
428 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
429                 case CUSTOM_VBOX_CURRENT_IDCARD:
430 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
431                 custom_vbox_set_current_idcard (self, g_value_get_object (value));
432 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
433                 break;
434 #line 435 "moonshot-custom-vbox.c"
435                 default:
436 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
437                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
438 #line 3 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
439                 break;
440 #line 441 "moonshot-custom-vbox.c"
441         }
442 }
443
444
445