1 /* moonshot-custom-vbox.c generated by valac 0.16.1, the Vala compiler
2 * generated from moonshot-custom-vbox.vala, do not modify */
6 #include <glib-object.h>
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))
17 typedef struct _CustomVBox CustomVBox;
18 typedef struct _CustomVBoxClass CustomVBoxClass;
19 typedef struct _CustomVBoxPrivate CustomVBoxPrivate;
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))
28 typedef struct _IdCardWidget IdCardWidget;
29 typedef struct _IdCardWidgetClass IdCardWidgetClass;
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))
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;
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))
50 typedef struct _IdentityManagerApp IdentityManagerApp;
51 typedef struct _IdentityManagerAppClass IdentityManagerAppClass;
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))
60 typedef struct _IdentityManagerModel IdentityManagerModel;
61 typedef struct _IdentityManagerModelClass IdentityManagerModelClass;
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))
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)))
75 GtkVBox parent_instance;
76 CustomVBoxPrivate * priv;
79 struct _CustomVBoxClass {
80 GtkVBoxClass parent_class;
83 struct _CustomVBoxPrivate {
84 IdCardWidget* _current_idcard;
85 IdentityManagerView* main_window;
88 struct _IdentityManagerView {
89 GtkWindow parent_instance;
90 IdentityManagerViewPrivate * priv;
91 IdentityManagerApp* parent_app;
92 IdentityManagerModel* identities_manager;
93 GQueue* request_queue;
96 struct _IdentityManagerViewClass {
97 GtkWindowClass parent_class;
101 static gpointer custom_vbox_parent_class = NULL;
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))
108 CUSTOM_VBOX_DUMMY_PROPERTY,
109 CUSTOM_VBOX_CURRENT_IDCARD
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);
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"
141 CustomVBox* custom_vbox_construct (GType object_type, IdentityManagerView* window, gboolean homogeneous, gint spacing) {
142 CustomVBox * self = NULL;
143 IdentityManagerView* _tmp0_;
144 IdentityManagerView* _tmp1_;
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"
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"
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"
169 #line 170 "moonshot-custom-vbox.c"
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"
180 void custom_vbox_receive_expanded_event (CustomVBox* self, IdCardWidget* id_card_widget) {
181 GList* _tmp0_ = NULL;
184 IdCardWidget* _tmp6_;
185 gboolean _tmp7_ = FALSE;
186 IdCardWidget* _tmp8_;
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"
196 #line 18 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
198 #line 199 "moonshot-custom-vbox.c"
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"
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"
213 #line 214 "moonshot-custom-vbox.c"
216 IdCardWidget* _tmp4_;
217 #line 20 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
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"
225 #line 21 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
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"
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"
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_;
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"
259 #line 25 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
261 #line 262 "moonshot-custom-vbox.c"
263 #line 25 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
265 #line 25 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
267 #line 268 "moonshot-custom-vbox.c"
268 IdCardWidget* _tmp13_;
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"
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"
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"
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"
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"
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"
324 #line 5 "/build/slave/packages-full/build/ui/src/moonshot-custom-vbox.vala"
326 #line 327 "moonshot-custom-vbox.c"
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"
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"
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"
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"
375 static void custom_vbox_finalize (GObject* obj) {
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"
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);
397 return custom_vbox_type_id__volatile;
401 static void _vala_custom_vbox_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
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"
412 #line 413 "moonshot-custom-vbox.c"
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"
418 #line 419 "moonshot-custom-vbox.c"
423 static void _vala_custom_vbox_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
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"
434 #line 435 "moonshot-custom-vbox.c"
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"
440 #line 441 "moonshot-custom-vbox.c"