1 /* moonshot-custom-vbox.c generated by valac 0.26.1, the Vala compiler
2 * generated from moonshot-custom-vbox.vala, do not modify */
5 * Copyright (c) 2011-2014, JANET(UK)
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * 3. Neither the name of JANET(UK) nor the names of its contributors
20 * may be used to endorse or promote products derived from this software
21 * without specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 #include <glib-object.h>
41 #define TYPE_CUSTOM_VBOX (custom_vbox_get_type ())
42 #define CUSTOM_VBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CUSTOM_VBOX, CustomVBox))
43 #define CUSTOM_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CUSTOM_VBOX, CustomVBoxClass))
44 #define IS_CUSTOM_VBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CUSTOM_VBOX))
45 #define IS_CUSTOM_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CUSTOM_VBOX))
46 #define CUSTOM_VBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CUSTOM_VBOX, CustomVBoxClass))
48 typedef struct _CustomVBox CustomVBox;
49 typedef struct _CustomVBoxClass CustomVBoxClass;
50 typedef struct _CustomVBoxPrivate CustomVBoxPrivate;
52 #define TYPE_ID_CARD_WIDGET (id_card_widget_get_type ())
53 #define ID_CARD_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ID_CARD_WIDGET, IdCardWidget))
54 #define ID_CARD_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ID_CARD_WIDGET, IdCardWidgetClass))
55 #define IS_ID_CARD_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ID_CARD_WIDGET))
56 #define IS_ID_CARD_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ID_CARD_WIDGET))
57 #define ID_CARD_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ID_CARD_WIDGET, IdCardWidgetClass))
59 typedef struct _IdCardWidget IdCardWidget;
60 typedef struct _IdCardWidgetClass IdCardWidgetClass;
62 #define TYPE_IDENTITY_MANAGER_VIEW (identity_manager_view_get_type ())
63 #define IDENTITY_MANAGER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerView))
64 #define IDENTITY_MANAGER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerViewClass))
65 #define IS_IDENTITY_MANAGER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_MANAGER_VIEW))
66 #define IS_IDENTITY_MANAGER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_MANAGER_VIEW))
67 #define IDENTITY_MANAGER_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerViewClass))
69 typedef struct _IdentityManagerView IdentityManagerView;
70 typedef struct _IdentityManagerViewClass IdentityManagerViewClass;
71 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
72 typedef struct _IdentityManagerViewPrivate IdentityManagerViewPrivate;
74 #define TYPE_IDENTITY_MANAGER_APP (identity_manager_app_get_type ())
75 #define IDENTITY_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_MANAGER_APP, IdentityManagerApp))
76 #define IDENTITY_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_MANAGER_APP, IdentityManagerAppClass))
77 #define IS_IDENTITY_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_MANAGER_APP))
78 #define IS_IDENTITY_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_MANAGER_APP))
79 #define IDENTITY_MANAGER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_MANAGER_APP, IdentityManagerAppClass))
81 typedef struct _IdentityManagerApp IdentityManagerApp;
82 typedef struct _IdentityManagerAppClass IdentityManagerAppClass;
84 #define TYPE_IDENTITY_MANAGER_MODEL (identity_manager_model_get_type ())
85 #define IDENTITY_MANAGER_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_MANAGER_MODEL, IdentityManagerModel))
86 #define IDENTITY_MANAGER_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_MANAGER_MODEL, IdentityManagerModelClass))
87 #define IS_IDENTITY_MANAGER_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_MANAGER_MODEL))
88 #define IS_IDENTITY_MANAGER_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_MANAGER_MODEL))
89 #define IDENTITY_MANAGER_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_MANAGER_MODEL, IdentityManagerModelClass))
91 typedef struct _IdentityManagerModel IdentityManagerModel;
92 typedef struct _IdentityManagerModelClass IdentityManagerModelClass;
94 #define TYPE_IDENTITY_REQUEST (identity_request_get_type ())
95 #define IDENTITY_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_REQUEST, IdentityRequest))
96 #define IDENTITY_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_REQUEST, IdentityRequestClass))
97 #define IS_IDENTITY_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_REQUEST))
98 #define IS_IDENTITY_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_REQUEST))
99 #define IDENTITY_REQUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_REQUEST, IdentityRequestClass))
101 typedef struct _IdentityRequest IdentityRequest;
102 typedef struct _IdentityRequestClass IdentityRequestClass;
103 #define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
106 GtkVBox parent_instance;
107 CustomVBoxPrivate * priv;
110 struct _CustomVBoxClass {
111 GtkVBoxClass parent_class;
114 struct _CustomVBoxPrivate {
115 IdCardWidget* _current_idcard;
116 IdentityManagerView* main_window;
119 struct _IdentityManagerView {
120 GtkWindow parent_instance;
121 IdentityManagerViewPrivate * priv;
122 IdentityManagerApp* parent_app;
123 IdentityManagerModel* identities_manager;
124 GQueue* request_queue;
127 struct _IdentityManagerViewClass {
128 GtkWindowClass parent_class;
132 static gpointer custom_vbox_parent_class = NULL;
134 GType custom_vbox_get_type (void) G_GNUC_CONST;
135 GType id_card_widget_get_type (void) G_GNUC_CONST;
136 GType identity_manager_view_get_type (void) G_GNUC_CONST;
137 #define CUSTOM_VBOX_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CUSTOM_VBOX, CustomVBoxPrivate))
139 CUSTOM_VBOX_DUMMY_PROPERTY,
140 CUSTOM_VBOX_CURRENT_IDCARD
142 CustomVBox* custom_vbox_new (IdentityManagerView* window, gboolean homogeneous, gint spacing);
143 CustomVBox* custom_vbox_construct (GType object_type, IdentityManagerView* window, gboolean homogeneous, gint spacing);
144 void custom_vbox_receive_expanded_event (CustomVBox* self, IdCardWidget* id_card_widget);
145 void id_card_widget_collapse (IdCardWidget* self);
146 void custom_vbox_set_current_idcard (CustomVBox* self, IdCardWidget* value);
147 IdCardWidget* custom_vbox_get_current_idcard (CustomVBox* self);
148 gpointer identity_manager_app_ref (gpointer instance);
149 void identity_manager_app_unref (gpointer instance);
150 GParamSpec* param_spec_identity_manager_app (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
151 void value_set_identity_manager_app (GValue* value, gpointer v_object);
152 void value_take_identity_manager_app (GValue* value, gpointer v_object);
153 gpointer value_get_identity_manager_app (const GValue* value);
154 GType identity_manager_app_get_type (void) G_GNUC_CONST;
155 GType identity_manager_model_get_type (void) G_GNUC_CONST;
156 GType identity_request_get_type (void) G_GNUC_CONST;
157 GtkButton* id_card_widget_get_send_button (IdCardWidget* self);
158 void custom_vbox_add_id_card_widget (CustomVBox* self, IdCardWidget* id_card_widget);
159 void custom_vbox_remove_id_card_widget (CustomVBox* self, IdCardWidget* id_card_widget);
160 static void custom_vbox_finalize (GObject* obj);
161 static void _vala_custom_vbox_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
162 static void _vala_custom_vbox_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
165 static gpointer _g_object_ref0 (gpointer self) {
166 #line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
167 return self ? g_object_ref (self) : NULL;
168 #line 169 "moonshot-custom-vbox.c"
172 CustomVBox* custom_vbox_construct (GType object_type, IdentityManagerView* window, gboolean homogeneous, gint spacing) {
173 CustomVBox * self = NULL;
174 IdentityManagerView* _tmp0_ = NULL;
175 IdentityManagerView* _tmp1_ = NULL;
176 gboolean _tmp2_ = FALSE;
178 #line 39 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
179 g_return_val_if_fail (window != NULL, NULL);
180 #line 39 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
181 self = (CustomVBox*) g_object_new (object_type, NULL);
182 #line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
184 #line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
185 _tmp1_ = _g_object_ref0 (_tmp0_);
186 #line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
187 _g_object_unref0 (self->priv->main_window);
188 #line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
189 self->priv->main_window = _tmp1_;
190 #line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
191 _tmp2_ = homogeneous;
192 #line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
193 gtk_box_set_homogeneous ((GtkBox*) self, _tmp2_);
194 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
196 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
197 gtk_box_set_spacing ((GtkBox*) self, _tmp3_);
198 #line 39 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
200 #line 201 "moonshot-custom-vbox.c"
204 CustomVBox* custom_vbox_new (IdentityManagerView* window, gboolean homogeneous, gint spacing) {
205 #line 39 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
206 return custom_vbox_construct (TYPE_CUSTOM_VBOX, window, homogeneous, spacing);
207 #line 208 "moonshot-custom-vbox.c"
211 void custom_vbox_receive_expanded_event (CustomVBox* self, IdCardWidget* id_card_widget) {
213 GList* _tmp0_ = NULL;
214 GList* _tmp1_ = NULL;
215 IdCardWidget* _tmp6_ = NULL;
216 gboolean _tmp7_ = FALSE;
217 IdCardWidget* _tmp8_ = NULL;
218 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
219 g_return_if_fail (self != NULL);
220 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
221 g_return_if_fail (id_card_widget != NULL);
222 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
223 _tmp0_ = gtk_container_get_children ((GtkContainer*) self);
224 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
226 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
228 #line 229 "moonshot-custom-vbox.c"
230 GList* id_card_collection = NULL;
231 GList* id_card_it = NULL;
232 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
233 id_card_collection = _tmp1_;
234 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
235 for (id_card_it = id_card_collection; id_card_it != NULL; id_card_it = id_card_it->next) {
236 #line 237 "moonshot-custom-vbox.c"
237 GtkWidget* _tmp2_ = NULL;
238 GtkWidget* id_card = NULL;
239 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
240 _tmp2_ = _g_object_ref0 ((GtkWidget*) id_card_it->data);
241 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
243 #line 244 "moonshot-custom-vbox.c"
245 GtkWidget* _tmp3_ = NULL;
246 IdCardWidget* _tmp4_ = NULL;
247 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
249 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
250 _tmp4_ = id_card_widget;
251 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
252 if (_tmp3_ != G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GTK_TYPE_WIDGET, GtkWidget)) {
253 #line 254 "moonshot-custom-vbox.c"
254 GtkWidget* _tmp5_ = NULL;
255 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
257 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
258 id_card_widget_collapse (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_ID_CARD_WIDGET, IdCardWidget));
259 #line 260 "moonshot-custom-vbox.c"
261 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
262 _g_object_unref0 (id_card);
263 #line 264 "moonshot-custom-vbox.c"
267 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
268 _tmp6_ = id_card_widget;
269 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
270 custom_vbox_set_current_idcard (self, _tmp6_);
271 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
272 _tmp8_ = self->priv->_current_idcard;
273 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
274 if (_tmp8_ != NULL) {
275 #line 276 "moonshot-custom-vbox.c"
276 IdentityManagerView* _tmp9_ = NULL;
277 GQueue* _tmp10_ = NULL;
279 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
280 _tmp9_ = self->priv->main_window;
281 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
282 _tmp10_ = _tmp9_->request_queue;
283 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
284 _tmp11_ = _tmp10_->length;
285 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
286 _tmp7_ = _tmp11_ > ((guint) 0);
287 #line 288 "moonshot-custom-vbox.c"
289 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
291 #line 292 "moonshot-custom-vbox.c"
293 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
295 #line 296 "moonshot-custom-vbox.c"
296 IdCardWidget* _tmp12_ = NULL;
297 GtkButton* _tmp13_ = NULL;
298 GtkButton* _tmp14_ = NULL;
299 #line 57 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
300 _tmp12_ = self->priv->_current_idcard;
301 #line 57 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
302 _tmp13_ = id_card_widget_get_send_button (_tmp12_);
303 #line 57 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
305 #line 57 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
306 gtk_widget_set_sensitive ((GtkWidget*) _tmp14_, TRUE);
307 #line 308 "moonshot-custom-vbox.c"
309 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
310 gtk_container_check_resize ((GtkContainer*) self);
311 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
312 _g_list_free0 (list);
313 #line 314 "moonshot-custom-vbox.c"
317 void custom_vbox_add_id_card_widget (CustomVBox* self, IdCardWidget* id_card_widget) {
318 IdCardWidget* _tmp0_ = NULL;
319 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
320 g_return_if_fail (self != NULL);
321 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
322 g_return_if_fail (id_card_widget != NULL);
323 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
324 _tmp0_ = id_card_widget;
325 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
326 gtk_box_pack_start ((GtkBox*) self, (GtkWidget*) _tmp0_, FALSE, FALSE, (guint) 0);
327 #line 328 "moonshot-custom-vbox.c"
331 void custom_vbox_remove_id_card_widget (CustomVBox* self, IdCardWidget* id_card_widget) {
332 IdCardWidget* _tmp0_ = NULL;
333 #line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
334 g_return_if_fail (self != NULL);
335 #line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
336 g_return_if_fail (id_card_widget != NULL);
337 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
338 _tmp0_ = id_card_widget;
339 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
340 gtk_container_remove ((GtkContainer*) self, (GtkWidget*) _tmp0_);
341 #line 342 "moonshot-custom-vbox.c"
345 IdCardWidget* custom_vbox_get_current_idcard (CustomVBox* self) {
346 IdCardWidget* result;
347 IdCardWidget* _tmp0_ = NULL;
348 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
349 g_return_val_if_fail (self != NULL, NULL);
350 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
351 _tmp0_ = self->priv->_current_idcard;
352 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
354 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
356 #line 357 "moonshot-custom-vbox.c"
360 void custom_vbox_set_current_idcard (CustomVBox* self, IdCardWidget* value) {
361 IdCardWidget* _tmp0_ = NULL;
362 IdCardWidget* _tmp1_ = NULL;
363 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
364 g_return_if_fail (self != NULL);
365 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
367 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
368 _tmp1_ = _g_object_ref0 (_tmp0_);
369 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
370 _g_object_unref0 (self->priv->_current_idcard);
371 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
372 self->priv->_current_idcard = _tmp1_;
373 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
374 g_object_notify ((GObject *) self, "current-idcard");
375 #line 376 "moonshot-custom-vbox.c"
379 static void custom_vbox_class_init (CustomVBoxClass * klass) {
380 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
381 custom_vbox_parent_class = g_type_class_peek_parent (klass);
382 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
383 g_type_class_add_private (klass, sizeof (CustomVBoxPrivate));
384 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
385 G_OBJECT_CLASS (klass)->get_property = _vala_custom_vbox_get_property;
386 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
387 G_OBJECT_CLASS (klass)->set_property = _vala_custom_vbox_set_property;
388 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
389 G_OBJECT_CLASS (klass)->finalize = custom_vbox_finalize;
390 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
391 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));
392 #line 393 "moonshot-custom-vbox.c"
396 static void custom_vbox_instance_init (CustomVBox * self) {
397 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
398 self->priv = CUSTOM_VBOX_GET_PRIVATE (self);
399 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
400 self->priv->_current_idcard = NULL;
401 #line 402 "moonshot-custom-vbox.c"
405 static void custom_vbox_finalize (GObject* obj) {
407 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
408 self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CUSTOM_VBOX, CustomVBox);
409 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
410 _g_object_unref0 (self->priv->_current_idcard);
411 #line 37 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
412 _g_object_unref0 (self->priv->main_window);
413 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
414 G_OBJECT_CLASS (custom_vbox_parent_class)->finalize (obj);
415 #line 416 "moonshot-custom-vbox.c"
419 GType custom_vbox_get_type (void) {
420 static volatile gsize custom_vbox_type_id__volatile = 0;
421 if (g_once_init_enter (&custom_vbox_type_id__volatile)) {
422 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 };
423 GType custom_vbox_type_id;
424 custom_vbox_type_id = g_type_register_static (GTK_TYPE_VBOX, "CustomVBox", &g_define_type_info, 0);
425 g_once_init_leave (&custom_vbox_type_id__volatile, custom_vbox_type_id);
427 return custom_vbox_type_id__volatile;
431 static void _vala_custom_vbox_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
433 self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_CUSTOM_VBOX, CustomVBox);
434 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
435 switch (property_id) {
436 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
437 case CUSTOM_VBOX_CURRENT_IDCARD:
438 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
439 g_value_set_object (value, custom_vbox_get_current_idcard (self));
440 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
442 #line 443 "moonshot-custom-vbox.c"
444 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
445 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
446 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
448 #line 449 "moonshot-custom-vbox.c"
453 static void _vala_custom_vbox_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
455 self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_CUSTOM_VBOX, CustomVBox);
456 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
457 switch (property_id) {
458 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
459 case CUSTOM_VBOX_CURRENT_IDCARD:
460 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
461 custom_vbox_set_current_idcard (self, g_value_get_object (value));
462 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
464 #line 465 "moonshot-custom-vbox.c"
466 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
467 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
468 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-custom-vbox.vala"
470 #line 471 "moonshot-custom-vbox.c"