Import moonshot-ui_0.7.2.orig.tar.xz
[moonshot-ui.git] / src / moonshot-identity-management-view.c
1 /* moonshot-identity-management-view.c generated by valac 0.28.0, the Vala compiler
2  * generated from moonshot-identity-management-view.vala, do not modify */
3
4 /*
5  * Copyright (c) 2011-2014, JANET(UK)
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  *
12  * 1. Redistributions of source code must retain the above copyright
13  *    notice, this list of conditions and the following disclaimer.
14  *
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.
18  *
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.
22  *
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
33  * SUCH DAMAGE.
34 */
35
36 #include <glib.h>
37 #include <glib-object.h>
38 #include <gtk/gtk.h>
39 #include <stdlib.h>
40 #include <string.h>
41 #include <gdk-pixbuf/gdk-pixbuf.h>
42 #include <gdk/gdk.h>
43 #include <gee.h>
44 #include <glib/gi18n-lib.h>
45 #include <pango/pango.h>
46 #include <float.h>
47 #include <math.h>
48 #include "config.h"
49 #include <stdio.h>
50 #include <atk/atk.h>
51
52
53 #define TYPE_IDENTITY_MANAGER_VIEW (identity_manager_view_get_type ())
54 #define IDENTITY_MANAGER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerView))
55 #define IDENTITY_MANAGER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerViewClass))
56 #define IS_IDENTITY_MANAGER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_MANAGER_VIEW))
57 #define IS_IDENTITY_MANAGER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_MANAGER_VIEW))
58 #define IDENTITY_MANAGER_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerViewClass))
59
60 typedef struct _IdentityManagerView IdentityManagerView;
61 typedef struct _IdentityManagerViewClass IdentityManagerViewClass;
62 typedef struct _IdentityManagerViewPrivate IdentityManagerViewPrivate;
63
64 #define TYPE_IDENTITY_MANAGER_APP (identity_manager_app_get_type ())
65 #define IDENTITY_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_MANAGER_APP, IdentityManagerApp))
66 #define IDENTITY_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_MANAGER_APP, IdentityManagerAppClass))
67 #define IS_IDENTITY_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_MANAGER_APP))
68 #define IS_IDENTITY_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_MANAGER_APP))
69 #define IDENTITY_MANAGER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_MANAGER_APP, IdentityManagerAppClass))
70
71 typedef struct _IdentityManagerApp IdentityManagerApp;
72 typedef struct _IdentityManagerAppClass IdentityManagerAppClass;
73
74 #define TYPE_IDENTITY_MANAGER_MODEL (identity_manager_model_get_type ())
75 #define IDENTITY_MANAGER_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_MANAGER_MODEL, IdentityManagerModel))
76 #define IDENTITY_MANAGER_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_MANAGER_MODEL, IdentityManagerModelClass))
77 #define IS_IDENTITY_MANAGER_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_MANAGER_MODEL))
78 #define IS_IDENTITY_MANAGER_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_MANAGER_MODEL))
79 #define IDENTITY_MANAGER_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_MANAGER_MODEL, IdentityManagerModelClass))
80
81 typedef struct _IdentityManagerModel IdentityManagerModel;
82 typedef struct _IdentityManagerModelClass IdentityManagerModelClass;
83
84 #define TYPE_IDENTITY_REQUEST (identity_request_get_type ())
85 #define IDENTITY_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_REQUEST, IdentityRequest))
86 #define IDENTITY_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_REQUEST, IdentityRequestClass))
87 #define IS_IDENTITY_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_REQUEST))
88 #define IS_IDENTITY_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_REQUEST))
89 #define IDENTITY_REQUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_REQUEST, IdentityRequestClass))
90
91 typedef struct _IdentityRequest IdentityRequest;
92 typedef struct _IdentityRequestClass IdentityRequestClass;
93
94 #define TYPE_CUSTOM_VBOX (custom_vbox_get_type ())
95 #define CUSTOM_VBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CUSTOM_VBOX, CustomVBox))
96 #define CUSTOM_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CUSTOM_VBOX, CustomVBoxClass))
97 #define IS_CUSTOM_VBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CUSTOM_VBOX))
98 #define IS_CUSTOM_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CUSTOM_VBOX))
99 #define CUSTOM_VBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CUSTOM_VBOX, CustomVBoxClass))
100
101 typedef struct _CustomVBox CustomVBox;
102 typedef struct _CustomVBoxClass CustomVBoxClass;
103
104 #define TYPE_ID_CARD (id_card_get_type ())
105 #define ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ID_CARD, IdCard))
106 #define ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ID_CARD, IdCardClass))
107 #define IS_ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ID_CARD))
108 #define IS_ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ID_CARD))
109 #define ID_CARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ID_CARD, IdCardClass))
110
111 typedef struct _IdCard IdCard;
112 typedef struct _IdCardClass IdCardClass;
113
114 #define IDENTITY_MANAGER_VIEW_TYPE_COLUMNS (identity_manager_view_columns_get_type ())
115 #define _identity_manager_app_unref0(var) ((var == NULL) ? NULL : (var = (identity_manager_app_unref (var), NULL)))
116 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
117 #define __g_queue_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_queue_free__g_object_unref0_ (var), NULL)))
118 #define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
119 typedef struct _IdentityManagerAppPrivate IdentityManagerAppPrivate;
120 #define _g_free0(var) (var = (g_free (var), NULL))
121
122 #define TYPE_ID_CARD_WIDGET (id_card_widget_get_type ())
123 #define ID_CARD_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ID_CARD_WIDGET, IdCardWidget))
124 #define ID_CARD_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ID_CARD_WIDGET, IdCardWidgetClass))
125 #define IS_ID_CARD_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ID_CARD_WIDGET))
126 #define IS_ID_CARD_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ID_CARD_WIDGET))
127 #define ID_CARD_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ID_CARD_WIDGET, IdCardWidgetClass))
128
129 typedef struct _IdCardWidget IdCardWidget;
130 typedef struct _IdCardWidgetClass IdCardWidgetClass;
131
132 #define TYPE_ADD_PASSWORD_DIALOG (add_password_dialog_get_type ())
133 #define ADD_PASSWORD_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_PASSWORD_DIALOG, AddPasswordDialog))
134 #define ADD_PASSWORD_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_PASSWORD_DIALOG, AddPasswordDialogClass))
135 #define IS_ADD_PASSWORD_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_PASSWORD_DIALOG))
136 #define IS_ADD_PASSWORD_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_PASSWORD_DIALOG))
137 #define ADD_PASSWORD_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_PASSWORD_DIALOG, AddPasswordDialogClass))
138
139 typedef struct _AddPasswordDialog AddPasswordDialog;
140 typedef struct _AddPasswordDialogClass AddPasswordDialogClass;
141 #define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
142
143 #define TYPE_ADD_IDENTITY_DIALOG (add_identity_dialog_get_type ())
144 #define ADD_IDENTITY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_IDENTITY_DIALOG, AddIdentityDialog))
145 #define ADD_IDENTITY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_IDENTITY_DIALOG, AddIdentityDialogClass))
146 #define IS_ADD_IDENTITY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_IDENTITY_DIALOG))
147 #define IS_ADD_IDENTITY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_IDENTITY_DIALOG))
148 #define ADD_IDENTITY_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_IDENTITY_DIALOG, AddIdentityDialogClass))
149
150 typedef struct _AddIdentityDialog AddIdentityDialog;
151 typedef struct _AddIdentityDialogClass AddIdentityDialogClass;
152
153 #define ID_CARD_TYPE_DIFF_FLAGS (id_card_diff_flags_get_type ())
154 typedef struct _AddIdentityDialogPrivate AddIdentityDialogPrivate;
155 typedef struct _IdentityRequestPrivate IdentityRequestPrivate;
156 #define __vala_PangoFontDescription_free0(var) ((var == NULL) ? NULL : (var = (_vala_PangoFontDescription_free (var), NULL)))
157 #define __g_slist_free__g_free0_0(var) ((var == NULL) ? NULL : (var = (_g_slist_free__g_free0_ (var), NULL)))
158 #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
159
160 struct _IdentityManagerView {
161         GtkWindow parent_instance;
162         IdentityManagerViewPrivate * priv;
163         IdentityManagerApp* parent_app;
164         IdentityManagerModel* identities_manager;
165         GQueue* request_queue;
166 };
167
168 struct _IdentityManagerViewClass {
169         GtkWindowClass parent_class;
170 };
171
172 struct _IdentityManagerViewPrivate {
173         GtkUIManager* ui_manager;
174         GtkEntry* search_entry;
175         GtkVBox* vbox_right;
176         GtkVBox* login_vbox;
177         GtkVBox* services_vbox;
178         CustomVBox* custom_vbox;
179         GtkVBox* services_internal_vbox;
180         GtkEntry* issuer_entry;
181         GtkEntry* username_entry;
182         GtkEntry* password_entry;
183         GtkLabel* prompting_service;
184         GtkLabel* no_identity_title;
185         GtkCheckButton* remember_checkbutton;
186         GtkButton* update_password_button;
187         GtkListStore* listmodel;
188         GtkTreeModelFilter* filter;
189         GSList* candidates;
190         GHashTable* service_button_map;
191 };
192
193 typedef enum  {
194         IDENTITY_MANAGER_VIEW_COLUMNS_IDCARD_COL,
195         IDENTITY_MANAGER_VIEW_COLUMNS_LOGO_COL,
196         IDENTITY_MANAGER_VIEW_COLUMNS_ISSUER_COL,
197         IDENTITY_MANAGER_VIEW_COLUMNS_USERNAME_COL,
198         IDENTITY_MANAGER_VIEW_COLUMNS_PASSWORD_COL,
199         IDENTITY_MANAGER_VIEW_COLUMNS_N_COLUMNS
200 } IdentityManagerViewColumns;
201
202 struct _IdentityManagerApp {
203         GTypeInstance parent_instance;
204         volatile int ref_count;
205         IdentityManagerAppPrivate * priv;
206         IdentityManagerModel* model;
207         IdCard* default_id_card;
208         gboolean explicitly_launched;
209         IdentityManagerView* view;
210 };
211
212 struct _IdentityManagerAppClass {
213         GTypeClass parent_class;
214         void (*finalize) (IdentityManagerApp *self);
215 };
216
217 typedef enum  {
218         ID_CARD_DIFF_FLAGS_DISPLAY_NAME,
219         ID_CARD_DIFF_FLAGS_USERNAME,
220         ID_CARD_DIFF_FLAGS_PASSWORD,
221         ID_CARD_DIFF_FLAGS_ISSUER,
222         ID_CARD_DIFF_FLAGS_RULES,
223         ID_CARD_DIFF_FLAGS_SERVICES,
224         ID_CARD_DIFF_FLAGS_TRUST_ANCHOR
225 } IdCardDiffFlags;
226
227 struct _AddIdentityDialog {
228         GtkDialog parent_instance;
229         AddIdentityDialogPrivate * priv;
230         gboolean complete;
231 };
232
233 struct _AddIdentityDialogClass {
234         GtkDialogClass parent_class;
235 };
236
237 struct _IdentityRequest {
238         GObject parent_instance;
239         IdentityRequestPrivate * priv;
240         IdCard* id_card;
241         gboolean complete;
242         gboolean select_default;
243         gchar* nai;
244         gchar* password;
245         gchar* service;
246         GSList* candidates;
247 };
248
249 struct _IdentityRequestClass {
250         GObjectClass parent_class;
251 };
252
253
254 static gpointer identity_manager_view_parent_class = NULL;
255
256 GType identity_manager_view_get_type (void) G_GNUC_CONST;
257 gpointer identity_manager_app_ref (gpointer instance);
258 void identity_manager_app_unref (gpointer instance);
259 GParamSpec* param_spec_identity_manager_app (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
260 void value_set_identity_manager_app (GValue* value, gpointer v_object);
261 void value_take_identity_manager_app (GValue* value, gpointer v_object);
262 gpointer value_get_identity_manager_app (const GValue* value);
263 GType identity_manager_app_get_type (void) G_GNUC_CONST;
264 GType identity_manager_model_get_type (void) G_GNUC_CONST;
265 GType identity_request_get_type (void) G_GNUC_CONST;
266 GType custom_vbox_get_type (void) G_GNUC_CONST;
267 GType id_card_get_type (void) G_GNUC_CONST;
268 #define IDENTITY_MANAGER_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerViewPrivate))
269 enum  {
270         IDENTITY_MANAGER_VIEW_DUMMY_PROPERTY
271 };
272 static GType identity_manager_view_columns_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
273 static void _g_object_unref0_ (gpointer var);
274 static void _g_queue_free__g_object_unref0_ (GQueue* self);
275 #define IDENTITY_MANAGER_VIEW_WINDOW_WIDTH 400
276 #define IDENTITY_MANAGER_VIEW_WINDOW_HEIGHT 500
277 #define IDENTITY_MANAGER_VIEW_layout "<menubar name='MenuBar'>" "        <menu name='FileMenu' action='FileMenuAction'>" "            <menuitem name='AddIdCard' action='AddIdCardAction' />" "            <separator />" "            <menuitem name='Quit' action='QuitAction' />" "        </menu>" "" "        <menu name='HelpMenu' action='HelpMenuAction'>" "             <menuitem name='About' action='AboutAction' />" "        </menu>" "</menubar>"
278 IdentityManagerView* identity_manager_view_new (IdentityManagerApp* app);
279 IdentityManagerView* identity_manager_view_construct (GType object_type, IdentityManagerApp* app);
280 static void _g_free0_ (gpointer var);
281 static void identity_manager_view_build_ui (IdentityManagerView* self);
282 static void identity_manager_view_setup_list_model (IdentityManagerView* self);
283 static void identity_manager_view_load_id_cards (IdentityManagerView* self);
284 static void identity_manager_view_connect_signals (IdentityManagerView* self);
285 void identity_manager_view_on_card_list_changed (IdentityManagerView* self);
286 static gboolean identity_manager_view_visible_func (IdentityManagerView* self, GtkTreeModel* model, GtkTreeIter* iter);
287 const gchar* id_card_get_issuer (IdCard* self);
288 const gchar* id_card_get_display_name (IdCard* self);
289 gchar** id_card_get_services (IdCard* self, int* result_length1);
290 static gboolean _identity_manager_view_visible_func_gtk_tree_model_filter_visible_func (GtkTreeModel* model, GtkTreeIter* iter, gpointer self);
291 static void identity_manager_view_search_entry_icon_press_cb (IdentityManagerView* self, GtkEntryIconPosition pos, GdkEvent* event);
292 static void identity_manager_view_search_entry_text_changed_cb (IdentityManagerView* self);
293 static void identity_manager_view_redraw_id_card_widgets (IdentityManagerView* self);
294 static gboolean identity_manager_view_search_entry_key_press_event_cb (IdentityManagerView* self, GdkEventKey* e);
295 static void identity_manager_view_update_password_cb (IdentityManagerView* self);
296 GType id_card_widget_get_type (void) G_GNUC_CONST;
297 IdCardWidget* custom_vbox_get_current_idcard (CustomVBox* self);
298 IdCard* id_card_widget_get_id_card (IdCardWidget* self);
299 GType add_password_dialog_get_type (void) G_GNUC_CONST;
300 AddPasswordDialog* add_password_dialog_new (IdCard* id_card, IdentityRequest* request);
301 AddPasswordDialog* add_password_dialog_construct (GType object_type, IdCard* id_card, IdentityRequest* request);
302 const gchar* add_password_dialog_get_password (AddPasswordDialog* self);
303 void id_card_set_password (IdCard* self, const gchar* value);
304 gboolean add_password_dialog_get_remember (AddPasswordDialog* self);
305 void id_card_set_store_password (IdCard* self, gboolean value);
306 void id_card_set_temporary (IdCard* self, gboolean value);
307 IdCard* identity_manager_model_update_card (IdentityManagerModel* self, IdCard* card);
308 const gchar* id_card_get_nai (IdCard* self);
309 void custom_vbox_set_current_idcard (CustomVBox* self, IdCardWidget* value);
310 static void identity_manager_view_remove_id_card_widget (IdentityManagerView* self, IdCardWidget* id_card_widget);
311 GeeLinkedList* identity_manager_model_get_card_list (IdentityManagerModel* self);
312 static void identity_manager_view_add_id_card_data (IdentityManagerView* self, IdCard* id_card);
313 static IdCardWidget* identity_manager_view_add_id_card_widget (IdentityManagerView* self, IdCard* id_card);
314 static void identity_manager_view_fill_details (IdentityManagerView* self, IdCardWidget* id_card_widget);
315 void id_card_widget_expand (IdCardWidget* self);
316 #define ID_CARD_NO_IDENTITY "No Identity"
317 const gchar* id_card_get_username (IdCard* self);
318 const gchar* id_card_get_password (IdCard* self);
319 gboolean id_card_get_store_password (IdCard* self);
320 static void identity_manager_view_fill_services_vbox (IdentityManagerView* self, IdCard* id_card);
321 static void identity_manager_view_show_details (IdentityManagerView* self, IdCard* id_card);
322 static void identity_manager_view_details_identity_cb (IdentityManagerView* self, IdCardWidget* id_card_widget);
323 GType add_identity_dialog_get_type (void) G_GNUC_CONST;
324 static IdCard* identity_manager_view_get_id_card_data (IdentityManagerView* self, AddIdentityDialog* dialog);
325 IdCard* id_card_new (void);
326 IdCard* id_card_construct (GType object_type);
327 const gchar* add_identity_dialog_get_display_name (AddIdentityDialog* self);
328 void id_card_set_display_name (IdCard* self, const gchar* value);
329 const gchar* add_identity_dialog_get_issuer (AddIdentityDialog* self);
330 void id_card_set_issuer (IdCard* self, const gchar* value);
331 const gchar* add_identity_dialog_get_username (AddIdentityDialog* self);
332 void id_card_set_username (IdCard* self, const gchar* value);
333 const gchar* add_identity_dialog_get_password (AddIdentityDialog* self);
334 gboolean add_identity_dialog_get_store_password (AddIdentityDialog* self);
335 void id_card_set_services (IdCard* self, gchar** value, int value_length1);
336 GdkPixbuf* get_pixbuf (IdCard* id);
337 static void identity_manager_view_remove_id_card_data (IdentityManagerView* self, IdCard* id_card);
338 IdCardWidget* id_card_widget_new (IdCard* id_card);
339 IdCardWidget* id_card_widget_construct (GType object_type, IdCard* id_card);
340 void custom_vbox_add_id_card_widget (CustomVBox* self, IdCardWidget* id_card_widget);
341 static void _identity_manager_view_details_identity_cb_id_card_widget_details_id (IdCardWidget* _sender, gpointer self);
342 static void identity_manager_view_remove_identity_cb (IdentityManagerView* self, IdCardWidget* id_card_widget);
343 static void _identity_manager_view_remove_identity_cb_id_card_widget_remove_id (IdCardWidget* _sender, gpointer self);
344 static void __lambda6_ (IdentityManagerView* self, IdCardWidget* w);
345 void identity_manager_view_send_identity_cb (IdentityManagerView* self, IdCard* id);
346 static void ___lambda6__id_card_widget_send_id (IdCardWidget* _sender, gpointer self);
347 void custom_vbox_receive_expanded_event (CustomVBox* self, IdCardWidget* id_card_widget);
348 static void _custom_vbox_receive_expanded_event_id_card_widget_expanded (IdCardWidget* _sender, gpointer self);
349 static void _identity_manager_view_fill_details_id_card_widget_expanded (IdCardWidget* _sender, gpointer self);
350 gboolean identity_manager_view_add_identity (IdentityManagerView* self, IdCard* id_card, gboolean force_flat_file_store);
351 IdCard* identity_manager_model_find_id_card (IdentityManagerModel* self, const gchar* nai, gboolean force_flat_file_store);
352 gint id_card_Compare (IdCard* self, IdCard* other);
353 GType id_card_diff_flags_get_type (void) G_GNUC_CONST;
354 void identity_manager_model_add_card (IdentityManagerModel* self, IdCard* card, gboolean force_flat_file_store);
355 static void identity_manager_view_add_identity_manual_cb (IdentityManagerView* self);
356 AddIdentityDialog* add_identity_dialog_new (void);
357 AddIdentityDialog* add_identity_dialog_construct (GType object_type);
358 void custom_vbox_remove_id_card_widget (CustomVBox* self, IdCardWidget* id_card_widget);
359 static void identity_manager_view_remove_identity (IdentityManagerView* self, IdCardWidget* id_card_widget);
360 gboolean identity_manager_model_remove_card (IdentityManagerModel* self, IdCard* card);
361 void identity_manager_view_set_prompting_service (IdentityManagerView* self, const gchar* service);
362 void identity_manager_view_queue_identity_request (IdentityManagerView* self, IdentityRequest* request);
363 IdCard* identity_manager_view_check_add_password (IdentityManagerView* self, IdCard* identity, IdentityRequest* request, IdentityManagerModel* model);
364 gboolean id_card_IsNoIdentity (IdCard* self);
365 void identity_request_return_identity (IdentityRequest* self, IdCard* id_card);
366 static void identity_manager_view_label_make_bold (IdentityManagerView* self, GtkLabel* label);
367 static void _vala_PangoFontDescription_free (PangoFontDescription* self);
368 static void ____lambda5_ (IdentityManagerView* self, GtkButton* remove_button);
369 static void _g_slist_free__g_free0_ (GSList* self);
370 static void _____lambda5__gtk_button_clicked (GtkButton* _sender, gpointer self);
371 static void identity_manager_view_on_about_action (IdentityManagerView* self);
372 static GtkActionEntry* identity_manager_view_create_actions (IdentityManagerView* self, int* result_length1);
373 static void _vala_array_add1 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value);
374 static void _identity_manager_view_add_identity_manual_cb_gtk_action_callback (GtkAction* action, gpointer self);
375 static void _vala_array_add2 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value);
376 static void _gtk_main_quit_gtk_action_callback (GtkAction* action, gpointer self);
377 static void _vala_array_add3 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value);
378 static void _vala_array_add4 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value);
379 static void _identity_manager_view_on_about_action_gtk_action_callback (GtkAction* action, gpointer self);
380 static void _vala_array_add5 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value);
381 static void identity_manager_view_create_ui_manager (IdentityManagerView* self);
382 static void identity_manager_view_set_atk_name_description (IdentityManagerView* self, GtkWidget* widget, const gchar* name, const gchar* description);
383 GdkPixbuf* find_icon_sized (const gchar* name, GtkIconSize icon_size);
384 static void _identity_manager_view_search_entry_icon_press_cb_gtk_entry_icon_press (GtkEntry* _sender, GtkEntryIconPosition p0, GdkEvent* p1, gpointer self);
385 static void _identity_manager_view_search_entry_text_changed_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
386 static gboolean _identity_manager_view_search_entry_key_press_event_cb_gtk_widget_key_press_event (GtkWidget* _sender, GdkEventKey* event, gpointer self);
387 CustomVBox* custom_vbox_new (IdentityManagerView* window, gboolean homogeneous, gint spacing);
388 CustomVBox* custom_vbox_construct (GType object_type, IdentityManagerView* window, gboolean homogeneous, gint spacing);
389 static void _identity_manager_view_update_password_cb_gtk_button_clicked (GtkButton* _sender, gpointer self);
390 static void identity_manager_view_set_atk_relation (GtkWidget* widget, GtkWidget* target_widget, AtkRelationType relationship);
391 static void _gtk_main_quit_gtk_object_destroy (GtkObject* _sender, gpointer self);
392 static void _identity_manager_view_on_card_list_changed_identity_manager_model_card_list_changed (IdentityManagerModel* _sender, gpointer self);
393 static void identity_manager_view_finalize (GObject* obj);
394 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
395 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
396 static gint _vala_array_length (gpointer array);
397
398
399 static GType identity_manager_view_columns_get_type (void) {
400         static volatile gsize identity_manager_view_columns_type_id__volatile = 0;
401         if (g_once_init_enter (&identity_manager_view_columns_type_id__volatile)) {
402                 static const GEnumValue values[] = {{IDENTITY_MANAGER_VIEW_COLUMNS_IDCARD_COL, "IDENTITY_MANAGER_VIEW_COLUMNS_IDCARD_COL", "idcard-col"}, {IDENTITY_MANAGER_VIEW_COLUMNS_LOGO_COL, "IDENTITY_MANAGER_VIEW_COLUMNS_LOGO_COL", "logo-col"}, {IDENTITY_MANAGER_VIEW_COLUMNS_ISSUER_COL, "IDENTITY_MANAGER_VIEW_COLUMNS_ISSUER_COL", "issuer-col"}, {IDENTITY_MANAGER_VIEW_COLUMNS_USERNAME_COL, "IDENTITY_MANAGER_VIEW_COLUMNS_USERNAME_COL", "username-col"}, {IDENTITY_MANAGER_VIEW_COLUMNS_PASSWORD_COL, "IDENTITY_MANAGER_VIEW_COLUMNS_PASSWORD_COL", "password-col"}, {IDENTITY_MANAGER_VIEW_COLUMNS_N_COLUMNS, "IDENTITY_MANAGER_VIEW_COLUMNS_N_COLUMNS", "n-columns"}, {0, NULL, NULL}};
403                 GType identity_manager_view_columns_type_id;
404                 identity_manager_view_columns_type_id = g_enum_register_static ("IdentityManagerViewColumns", values);
405                 g_once_init_leave (&identity_manager_view_columns_type_id__volatile, identity_manager_view_columns_type_id);
406         }
407         return identity_manager_view_columns_type_id__volatile;
408 }
409
410
411 static void _g_object_unref0_ (gpointer var) {
412 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
413         (var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
414 #line 415 "moonshot-identity-management-view.c"
415 }
416
417
418 static void _g_queue_free__g_object_unref0_ (GQueue* self) {
419 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
420         g_queue_foreach (self, (GFunc) _g_object_unref0_, NULL);
421 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
422         g_queue_free (self);
423 #line 424 "moonshot-identity-management-view.c"
424 }
425
426
427 static gpointer _identity_manager_app_ref0 (gpointer self) {
428 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
429         return self ? identity_manager_app_ref (self) : NULL;
430 #line 431 "moonshot-identity-management-view.c"
431 }
432
433
434 static gpointer _g_object_ref0 (gpointer self) {
435 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
436         return self ? g_object_ref (self) : NULL;
437 #line 438 "moonshot-identity-management-view.c"
438 }
439
440
441 static void _g_free0_ (gpointer var) {
442 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
443         var = (g_free (var), NULL);
444 #line 445 "moonshot-identity-management-view.c"
445 }
446
447
448 IdentityManagerView* identity_manager_view_construct (GType object_type, IdentityManagerApp* app) {
449         IdentityManagerView * self = NULL;
450         IdentityManagerApp* _tmp0_ = NULL;
451         IdentityManagerApp* _tmp1_ = NULL;
452         IdentityManagerApp* _tmp2_ = NULL;
453         IdentityManagerModel* _tmp3_ = NULL;
454         IdentityManagerModel* _tmp4_ = NULL;
455         GQueue* _tmp5_ = NULL;
456         GHashFunc _tmp6_ = NULL;
457         GEqualFunc _tmp7_ = NULL;
458         GHashTable* _tmp8_ = NULL;
459 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
460         g_return_val_if_fail (app != NULL, NULL);
461 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
462         self = (IdentityManagerView*) g_object_new (object_type, NULL);
463 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
464         _tmp0_ = app;
465 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
466         _tmp1_ = _identity_manager_app_ref0 (_tmp0_);
467 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
468         _identity_manager_app_unref0 (self->parent_app);
469 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
470         self->parent_app = _tmp1_;
471 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
472         _tmp2_ = self->parent_app;
473 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
474         _tmp3_ = _tmp2_->model;
475 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
476         _tmp4_ = _g_object_ref0 (_tmp3_);
477 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
478         _g_object_unref0 (self->identities_manager);
479 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
480         self->identities_manager = _tmp4_;
481 #line 97 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
482         _tmp5_ = g_queue_new ();
483 #line 97 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
484         __g_queue_free__g_object_unref0_0 (self->request_queue);
485 #line 97 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
486         self->request_queue = _tmp5_;
487 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
488         _tmp6_ = g_direct_hash;
489 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
490         _tmp7_ = g_direct_equal;
491 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
492         _tmp8_ = g_hash_table_new_full (_tmp6_, _tmp7_, _g_object_unref0_, _g_free0_);
493 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
494         _g_hash_table_unref0 (self->priv->service_button_map);
495 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
496         self->priv->service_button_map = _tmp8_;
497 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
498         gtk_window_set_title ((GtkWindow*) self, "Moonshot Identity Selector");
499 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
500         gtk_window_set_position ((GtkWindow*) self, GTK_WIN_POS_CENTER);
501 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
502         gtk_window_set_default_size ((GtkWindow*) self, IDENTITY_MANAGER_VIEW_WINDOW_WIDTH, IDENTITY_MANAGER_VIEW_WINDOW_HEIGHT);
503 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
504         identity_manager_view_build_ui (self);
505 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
506         identity_manager_view_setup_list_model (self);
507 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
508         identity_manager_view_load_id_cards (self);
509 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
510         identity_manager_view_connect_signals (self);
511 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
512         return self;
513 #line 514 "moonshot-identity-management-view.c"
514 }
515
516
517 IdentityManagerView* identity_manager_view_new (IdentityManagerApp* app) {
518 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
519         return identity_manager_view_construct (TYPE_IDENTITY_MANAGER_VIEW, app);
520 #line 521 "moonshot-identity-management-view.c"
521 }
522
523
524 void identity_manager_view_on_card_list_changed (IdentityManagerView* self) {
525 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
526         g_return_if_fail (self != NULL);
527 #line 109 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
528         identity_manager_view_load_id_cards (self);
529 #line 530 "moonshot-identity-management-view.c"
530 }
531
532
533 static gboolean string_contains (const gchar* self, const gchar* needle) {
534         gboolean result = FALSE;
535         const gchar* _tmp0_ = NULL;
536         gchar* _tmp1_ = NULL;
537 #line 1278 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
538         g_return_val_if_fail (self != NULL, FALSE);
539 #line 1278 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
540         g_return_val_if_fail (needle != NULL, FALSE);
541 #line 1279 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
542         _tmp0_ = needle;
543 #line 1279 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
544         _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
545 #line 1279 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
546         result = _tmp1_ != NULL;
547 #line 1279 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
548         return result;
549 #line 550 "moonshot-identity-management-view.c"
550 }
551
552
553 static gboolean identity_manager_view_visible_func (IdentityManagerView* self, GtkTreeModel* model, GtkTreeIter* iter) {
554         gboolean result = FALSE;
555         IdCard* id_card = NULL;
556         GtkTreeModel* _tmp0_ = NULL;
557         GtkTreeIter _tmp1_ = {0};
558         IdCard* _tmp2_ = NULL;
559         GSList* _tmp3_ = NULL;
560         gchar* entry_text = NULL;
561         GtkEntry* _tmp9_ = NULL;
562         const gchar* _tmp10_ = NULL;
563         gchar* _tmp11_ = NULL;
564         gboolean _tmp12_ = FALSE;
565         const gchar* _tmp13_ = NULL;
566         const gchar* _tmp15_ = NULL;
567         gchar** _tmp16_ = NULL;
568         gchar** _tmp17_ = NULL;
569 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
570         g_return_val_if_fail (self != NULL, FALSE);
571 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
572         g_return_val_if_fail (model != NULL, FALSE);
573 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
574         g_return_val_if_fail (iter != NULL, FALSE);
575 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
576         _tmp0_ = model;
577 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
578         _tmp1_ = *iter;
579 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
580         gtk_tree_model_get (_tmp0_, &_tmp1_, IDENTITY_MANAGER_VIEW_COLUMNS_IDCARD_COL, &id_card, -1);
581 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
582         _tmp2_ = id_card;
583 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
584         if (_tmp2_ == NULL) {
585 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
586                 result = FALSE;
587 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
588                 _g_object_unref0 (id_card);
589 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
590                 return result;
591 #line 592 "moonshot-identity-management-view.c"
592         }
593 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
594         _tmp3_ = self->priv->candidates;
595 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
596         if (_tmp3_ != NULL) {
597 #line 598 "moonshot-identity-management-view.c"
598                 gboolean is_candidate = FALSE;
599                 GSList* _tmp4_ = NULL;
600                 gboolean _tmp8_ = FALSE;
601 #line 124 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
602                 is_candidate = FALSE;
603 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
604                 _tmp4_ = self->priv->candidates;
605 #line 606 "moonshot-identity-management-view.c"
606                 {
607                         GSList* candidate_collection = NULL;
608                         GSList* candidate_it = NULL;
609 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
610                         candidate_collection = _tmp4_;
611 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
612                         for (candidate_it = candidate_collection; candidate_it != NULL; candidate_it = candidate_it->next) {
613 #line 614 "moonshot-identity-management-view.c"
614                                 IdCard* _tmp5_ = NULL;
615                                 IdCard* candidate = NULL;
616 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
617                                 _tmp5_ = _g_object_ref0 ((IdCard*) candidate_it->data);
618 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
619                                 candidate = _tmp5_;
620 #line 621 "moonshot-identity-management-view.c"
621                                 {
622                                         IdCard* _tmp6_ = NULL;
623                                         IdCard* _tmp7_ = NULL;
624 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
625                                         _tmp6_ = candidate;
626 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
627                                         _tmp7_ = id_card;
628 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
629                                         if (_tmp6_ == _tmp7_) {
630 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
631                                                 is_candidate = TRUE;
632 #line 633 "moonshot-identity-management-view.c"
633                                         }
634 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
635                                         _g_object_unref0 (candidate);
636 #line 637 "moonshot-identity-management-view.c"
637                                 }
638                         }
639                 }
640 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
641                 _tmp8_ = is_candidate;
642 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
643                 if (!_tmp8_) {
644 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
645                         result = FALSE;
646 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
647                         _g_object_unref0 (id_card);
648 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
649                         return result;
650 #line 651 "moonshot-identity-management-view.c"
651                 }
652         }
653 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
654         _tmp9_ = self->priv->search_entry;
655 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
656         _tmp10_ = gtk_entry_get_text (_tmp9_);
657 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
658         _tmp11_ = g_strdup (_tmp10_);
659 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
660         entry_text = _tmp11_;
661 #line 135 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
662         _tmp13_ = entry_text;
663 #line 135 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
664         if (_tmp13_ == NULL) {
665 #line 135 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
666                 _tmp12_ = TRUE;
667 #line 668 "moonshot-identity-management-view.c"
668         } else {
669                 const gchar* _tmp14_ = NULL;
670 #line 135 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
671                 _tmp14_ = entry_text;
672 #line 135 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
673                 _tmp12_ = g_strcmp0 (_tmp14_, "") == 0;
674 #line 675 "moonshot-identity-management-view.c"
675         }
676 #line 135 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
677         if (_tmp12_) {
678 #line 137 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
679                 result = TRUE;
680 #line 137 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
681                 _g_free0 (entry_text);
682 #line 137 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
683                 _g_object_unref0 (id_card);
684 #line 137 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
685                 return result;
686 #line 687 "moonshot-identity-management-view.c"
687         }
688 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
689         _tmp15_ = entry_text;
690 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
691         _tmp17_ = _tmp16_ = g_strsplit (_tmp15_, " ", 0);
692 #line 693 "moonshot-identity-management-view.c"
693         {
694                 gchar** search_text_collection = NULL;
695                 gint search_text_collection_length1 = 0;
696                 gint _search_text_collection_size_ = 0;
697                 gint search_text_it = 0;
698 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
699                 search_text_collection = _tmp17_;
700 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
701                 search_text_collection_length1 = _vala_array_length (_tmp16_);
702 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
703                 for (search_text_it = 0; search_text_it < _vala_array_length (_tmp16_); search_text_it = search_text_it + 1) {
704 #line 705 "moonshot-identity-management-view.c"
705                         gchar* _tmp18_ = NULL;
706                         gchar* search_text = NULL;
707 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
708                         _tmp18_ = g_strdup (search_text_collection[search_text_it]);
709 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
710                         search_text = _tmp18_;
711 #line 712 "moonshot-identity-management-view.c"
712                         {
713                                 const gchar* _tmp19_ = NULL;
714                                 gchar* search_text_casefold = NULL;
715                                 const gchar* _tmp20_ = NULL;
716                                 gchar* _tmp21_ = NULL;
717                                 IdCard* _tmp22_ = NULL;
718                                 const gchar* _tmp23_ = NULL;
719                                 const gchar* _tmp24_ = NULL;
720                                 IdCard* _tmp32_ = NULL;
721                                 const gchar* _tmp33_ = NULL;
722                                 const gchar* _tmp34_ = NULL;
723                                 IdCard* _tmp42_ = NULL;
724                                 gchar** _tmp43_ = NULL;
725                                 gint _tmp43__length1 = 0;
726                                 gchar** _tmp44_ = NULL;
727                                 gint _tmp44__length1 = 0;
728 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
729                                 _tmp19_ = search_text;
730 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
731                                 if (g_strcmp0 (_tmp19_, "") == 0) {
732 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
733                                         _g_free0 (search_text);
734 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
735                                         continue;
736 #line 737 "moonshot-identity-management-view.c"
737                                 }
738 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
739                                 _tmp20_ = search_text;
740 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
741                                 _tmp21_ = g_utf8_casefold (_tmp20_, (gssize) (-1));
742 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
743                                 search_text_casefold = _tmp21_;
744 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
745                                 _tmp22_ = id_card;
746 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
747                                 _tmp23_ = id_card_get_issuer (_tmp22_);
748 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
749                                 _tmp24_ = _tmp23_;
750 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
751                                 if (_tmp24_ != NULL) {
752 #line 753 "moonshot-identity-management-view.c"
753                                         gchar* issuer_casefold = NULL;
754                                         IdCard* _tmp25_ = NULL;
755                                         const gchar* _tmp26_ = NULL;
756                                         const gchar* _tmp27_ = NULL;
757                                         gchar* _tmp28_ = NULL;
758                                         const gchar* _tmp29_ = NULL;
759                                         const gchar* _tmp30_ = NULL;
760                                         gboolean _tmp31_ = FALSE;
761 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
762                                         _tmp25_ = id_card;
763 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
764                                         _tmp26_ = id_card_get_issuer (_tmp25_);
765 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
766                                         _tmp27_ = _tmp26_;
767 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
768                                         _tmp28_ = g_strdup (_tmp27_);
769 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
770                                         issuer_casefold = _tmp28_;
771 #line 152 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
772                                         _tmp29_ = issuer_casefold;
773 #line 152 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
774                                         _tmp30_ = search_text_casefold;
775 #line 152 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
776                                         _tmp31_ = string_contains (_tmp29_, _tmp30_);
777 #line 152 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
778                                         if (_tmp31_) {
779 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
780                                                 result = TRUE;
781 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
782                                                 _g_free0 (issuer_casefold);
783 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
784                                                 _g_free0 (search_text_casefold);
785 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
786                                                 _g_free0 (search_text);
787 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
788                                                 search_text_collection = (_vala_array_free (search_text_collection, search_text_collection_length1, (GDestroyNotify) g_free), NULL);
789 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
790                                                 _g_free0 (entry_text);
791 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
792                                                 _g_object_unref0 (id_card);
793 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
794                                                 return result;
795 #line 796 "moonshot-identity-management-view.c"
796                                         }
797 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
798                                         _g_free0 (issuer_casefold);
799 #line 800 "moonshot-identity-management-view.c"
800                                 }
801 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
802                                 _tmp32_ = id_card;
803 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
804                                 _tmp33_ = id_card_get_display_name (_tmp32_);
805 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
806                                 _tmp34_ = _tmp33_;
807 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
808                                 if (_tmp34_ != NULL) {
809 #line 810 "moonshot-identity-management-view.c"
810                                         gchar* display_name_casefold = NULL;
811                                         IdCard* _tmp35_ = NULL;
812                                         const gchar* _tmp36_ = NULL;
813                                         const gchar* _tmp37_ = NULL;
814                                         gchar* _tmp38_ = NULL;
815                                         const gchar* _tmp39_ = NULL;
816                                         const gchar* _tmp40_ = NULL;
817                                         gboolean _tmp41_ = FALSE;
818 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
819                                         _tmp35_ = id_card;
820 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
821                                         _tmp36_ = id_card_get_display_name (_tmp35_);
822 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
823                                         _tmp37_ = _tmp36_;
824 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
825                                         _tmp38_ = g_utf8_casefold (_tmp37_, (gssize) (-1));
826 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
827                                         display_name_casefold = _tmp38_;
828 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
829                                         _tmp39_ = display_name_casefold;
830 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
831                                         _tmp40_ = search_text_casefold;
832 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
833                                         _tmp41_ = string_contains (_tmp39_, _tmp40_);
834 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
835                                         if (_tmp41_) {
836 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
837                                                 result = TRUE;
838 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
839                                                 _g_free0 (display_name_casefold);
840 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
841                                                 _g_free0 (search_text_casefold);
842 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
843                                                 _g_free0 (search_text);
844 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
845                                                 search_text_collection = (_vala_array_free (search_text_collection, search_text_collection_length1, (GDestroyNotify) g_free), NULL);
846 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
847                                                 _g_free0 (entry_text);
848 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
849                                                 _g_object_unref0 (id_card);
850 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
851                                                 return result;
852 #line 853 "moonshot-identity-management-view.c"
853                                         }
854 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
855                                         _g_free0 (display_name_casefold);
856 #line 857 "moonshot-identity-management-view.c"
857                                 }
858 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
859                                 _tmp42_ = id_card;
860 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
861                                 _tmp43_ = id_card_get_services (_tmp42_, &_tmp43__length1);
862 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
863                                 _tmp44_ = _tmp43_;
864 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
865                                 _tmp44__length1 = _tmp43__length1;
866 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
867                                 if (_tmp44__length1 > 0) {
868 #line 869 "moonshot-identity-management-view.c"
869                                         IdCard* _tmp45_ = NULL;
870                                         gchar** _tmp46_ = NULL;
871                                         gint _tmp46__length1 = 0;
872                                         gchar** _tmp47_ = NULL;
873                                         gint _tmp47__length1 = 0;
874 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
875                                         _tmp45_ = id_card;
876 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
877                                         _tmp46_ = id_card_get_services (_tmp45_, &_tmp46__length1);
878 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
879                                         _tmp47_ = _tmp46_;
880 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
881                                         _tmp47__length1 = _tmp46__length1;
882 #line 883 "moonshot-identity-management-view.c"
883                                         {
884                                                 gchar** service_collection = NULL;
885                                                 gint service_collection_length1 = 0;
886                                                 gint _service_collection_size_ = 0;
887                                                 gint service_it = 0;
888 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
889                                                 service_collection = _tmp47_;
890 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
891                                                 service_collection_length1 = _tmp47__length1;
892 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
893                                                 for (service_it = 0; service_it < _tmp47__length1; service_it = service_it + 1) {
894 #line 895 "moonshot-identity-management-view.c"
895                                                         gchar* _tmp48_ = NULL;
896                                                         gchar* service = NULL;
897 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
898                                                         _tmp48_ = g_strdup (service_collection[service_it]);
899 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
900                                                         service = _tmp48_;
901 #line 902 "moonshot-identity-management-view.c"
902                                                         {
903                                                                 gchar* service_casefold = NULL;
904                                                                 const gchar* _tmp49_ = NULL;
905                                                                 gchar* _tmp50_ = NULL;
906                                                                 const gchar* _tmp51_ = NULL;
907                                                                 const gchar* _tmp52_ = NULL;
908                                                                 gboolean _tmp53_ = FALSE;
909 #line 168 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
910                                                                 _tmp49_ = service;
911 #line 168 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
912                                                                 _tmp50_ = g_utf8_casefold (_tmp49_, (gssize) (-1));
913 #line 168 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
914                                                                 service_casefold = _tmp50_;
915 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
916                                                                 _tmp51_ = service_casefold;
917 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
918                                                                 _tmp52_ = search_text_casefold;
919 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
920                                                                 _tmp53_ = string_contains (_tmp51_, _tmp52_);
921 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
922                                                                 if (_tmp53_) {
923 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
924                                                                         result = TRUE;
925 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
926                                                                         _g_free0 (service_casefold);
927 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
928                                                                         _g_free0 (service);
929 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
930                                                                         _g_free0 (search_text_casefold);
931 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
932                                                                         _g_free0 (search_text);
933 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
934                                                                         search_text_collection = (_vala_array_free (search_text_collection, search_text_collection_length1, (GDestroyNotify) g_free), NULL);
935 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
936                                                                         _g_free0 (entry_text);
937 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
938                                                                         _g_object_unref0 (id_card);
939 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
940                                                                         return result;
941 #line 942 "moonshot-identity-management-view.c"
942                                                                 }
943 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
944                                                                 _g_free0 (service_casefold);
945 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
946                                                                 _g_free0 (service);
947 #line 948 "moonshot-identity-management-view.c"
948                                                         }
949                                                 }
950                                         }
951                                 }
952 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
953                                 _g_free0 (search_text_casefold);
954 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
955                                 _g_free0 (search_text);
956 #line 957 "moonshot-identity-management-view.c"
957                         }
958                 }
959 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
960                 search_text_collection = (_vala_array_free (search_text_collection, search_text_collection_length1, (GDestroyNotify) g_free), NULL);
961 #line 962 "moonshot-identity-management-view.c"
962         }
963 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
964         result = FALSE;
965 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
966         _g_free0 (entry_text);
967 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
968         _g_object_unref0 (id_card);
969 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
970         return result;
971 #line 972 "moonshot-identity-management-view.c"
972 }
973
974
975 static gboolean _identity_manager_view_visible_func_gtk_tree_model_filter_visible_func (GtkTreeModel* model, GtkTreeIter* iter, gpointer self) {
976         gboolean result;
977         result = identity_manager_view_visible_func ((IdentityManagerView*) self, model, iter);
978 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
979         return result;
980 #line 981 "moonshot-identity-management-view.c"
981 }
982
983
984 static void identity_manager_view_setup_list_model (IdentityManagerView* self) {
985         GtkListStore* _tmp0_ = NULL;
986         GtkListStore* _tmp1_ = NULL;
987         GtkTreeModelFilter* _tmp2_ = NULL;
988         GtkTreeModelFilter* _tmp3_ = NULL;
989 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
990         g_return_if_fail (self != NULL);
991 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
992         _tmp0_ = gtk_list_store_new ((gint) IDENTITY_MANAGER_VIEW_COLUMNS_N_COLUMNS, TYPE_ID_CARD, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
993 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
994         self->priv->listmodel = _tmp0_;
995 #line 185 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
996         _tmp1_ = self->priv->listmodel;
997 #line 185 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
998         _tmp2_ = (GtkTreeModelFilter*) gtk_tree_model_filter_new ((GtkTreeModel*) _tmp1_, NULL);
999 #line 185 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1000         _g_object_unref0 (self->priv->filter);
1001 #line 185 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1002         self->priv->filter = _tmp2_;
1003 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1004         _tmp3_ = self->priv->filter;
1005 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1006         gtk_tree_model_filter_set_visible_func (_tmp3_, _identity_manager_view_visible_func_gtk_tree_model_filter_visible_func, g_object_ref (self), g_object_unref);
1007 #line 1008 "moonshot-identity-management-view.c"
1008 }
1009
1010
1011 static void identity_manager_view_search_entry_icon_press_cb (IdentityManagerView* self, GtkEntryIconPosition pos, GdkEvent* event) {
1012         GtkEntryIconPosition _tmp0_ = 0;
1013 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1014         g_return_if_fail (self != NULL);
1015 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1016         g_return_if_fail (event != NULL);
1017 #line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1018         _tmp0_ = pos;
1019 #line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1020         if (_tmp0_ == GTK_ENTRY_ICON_PRIMARY) {
1021 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1022                 g_print ("Search entry icon pressed\n");
1023 #line 1024 "moonshot-identity-management-view.c"
1024         } else {
1025                 GtkEntry* _tmp1_ = NULL;
1026 #line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1027                 _tmp1_ = self->priv->search_entry;
1028 #line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1029                 gtk_entry_set_text (_tmp1_, "");
1030 #line 1031 "moonshot-identity-management-view.c"
1031         }
1032 }
1033
1034
1035 static void identity_manager_view_search_entry_text_changed_cb (IdentityManagerView* self) {
1036         GtkTreeModelFilter* _tmp0_ = NULL;
1037         gboolean has_text = FALSE;
1038         GtkEntry* _tmp1_ = NULL;
1039         guint16 _tmp2_ = 0U;
1040         GtkEntry* _tmp3_ = NULL;
1041         GtkEntry* _tmp4_ = NULL;
1042         GtkVBox* _tmp5_ = NULL;
1043 #line 202 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1044         g_return_if_fail (self != NULL);
1045 #line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1046         _tmp0_ = self->priv->filter;
1047 #line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1048         gtk_tree_model_filter_refilter (_tmp0_);
1049 #line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1050         identity_manager_view_redraw_id_card_widgets (self);
1051 #line 207 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1052         _tmp1_ = self->priv->search_entry;
1053 #line 207 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1054         _tmp2_ = gtk_entry_get_text_length (_tmp1_);
1055 #line 207 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1056         has_text = ((gint) _tmp2_) > 0;
1057 #line 208 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1058         _tmp3_ = self->priv->search_entry;
1059 #line 208 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1060         gtk_entry_set_icon_sensitive (_tmp3_, GTK_ENTRY_ICON_PRIMARY, has_text);
1061 #line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1062         _tmp4_ = self->priv->search_entry;
1063 #line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1064         gtk_entry_set_icon_sensitive (_tmp4_, GTK_ENTRY_ICON_SECONDARY, has_text);
1065 #line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1066         _tmp5_ = self->priv->vbox_right;
1067 #line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1068         gtk_widget_set_visible ((GtkWidget*) _tmp5_, FALSE);
1069 #line 1070 "moonshot-identity-management-view.c"
1070 }
1071
1072
1073 static gboolean identity_manager_view_search_entry_key_press_event_cb (IdentityManagerView* self, GdkEventKey* e) {
1074         gboolean result = FALSE;
1075         GdkEventKey _tmp0_ = {0};
1076         guint _tmp1_ = 0U;
1077         const gchar* _tmp2_ = NULL;
1078 #line 214 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1079         g_return_val_if_fail (self != NULL, FALSE);
1080 #line 214 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1081         g_return_val_if_fail (e != NULL, FALSE);
1082 #line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1083         _tmp0_ = *e;
1084 #line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1085         _tmp1_ = _tmp0_.keyval;
1086 #line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1087         _tmp2_ = gdk_keyval_name (_tmp1_);
1088 #line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1089         if (g_strcmp0 (_tmp2_, "Escape") == 0) {
1090 #line 1091 "moonshot-identity-management-view.c"
1091                 GtkEntry* _tmp3_ = NULL;
1092 #line 217 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1093                 _tmp3_ = self->priv->search_entry;
1094 #line 217 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1095                 gtk_entry_set_text (_tmp3_, "");
1096 #line 1097 "moonshot-identity-management-view.c"
1097         }
1098 #line 221 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1099         result = FALSE;
1100 #line 221 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1101         return result;
1102 #line 1103 "moonshot-identity-management-view.c"
1103 }
1104
1105
1106 static void identity_manager_view_update_password_cb (IdentityManagerView* self) {
1107         CustomVBox* _tmp0_ = NULL;
1108         IdCardWidget* _tmp1_ = NULL;
1109         IdCardWidget* _tmp2_ = NULL;
1110 #line 224 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1111         g_return_if_fail (self != NULL);
1112 #line 226 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1113         _tmp0_ = self->priv->custom_vbox;
1114 #line 226 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1115         _tmp1_ = custom_vbox_get_current_idcard (_tmp0_);
1116 #line 226 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1117         _tmp2_ = _tmp1_;
1118 #line 226 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1119         if (_tmp2_ != NULL) {
1120 #line 1121 "moonshot-identity-management-view.c"
1121                 IdCard* identity = NULL;
1122                 CustomVBox* _tmp3_ = NULL;
1123                 IdCardWidget* _tmp4_ = NULL;
1124                 IdCardWidget* _tmp5_ = NULL;
1125                 IdCard* _tmp6_ = NULL;
1126                 IdCard* _tmp7_ = NULL;
1127                 IdCard* _tmp8_ = NULL;
1128                 AddPasswordDialog* dialog = NULL;
1129                 IdCard* _tmp9_ = NULL;
1130                 AddPasswordDialog* _tmp10_ = NULL;
1131                 gint _result_ = 0;
1132                 AddPasswordDialog* _tmp11_ = NULL;
1133                 gint _tmp12_ = 0;
1134                 gint _tmp13_ = 0;
1135                 AddPasswordDialog* _tmp29_ = NULL;
1136 #line 227 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1137                 _tmp3_ = self->priv->custom_vbox;
1138 #line 227 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1139                 _tmp4_ = custom_vbox_get_current_idcard (_tmp3_);
1140 #line 227 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1141                 _tmp5_ = _tmp4_;
1142 #line 227 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1143                 _tmp6_ = id_card_widget_get_id_card (_tmp5_);
1144 #line 227 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1145                 _tmp7_ = _tmp6_;
1146 #line 227 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1147                 _tmp8_ = _g_object_ref0 (_tmp7_);
1148 #line 227 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1149                 identity = _tmp8_;
1150 #line 228 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1151                 _tmp9_ = identity;
1152 #line 228 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1153                 _tmp10_ = add_password_dialog_new (_tmp9_, NULL);
1154 #line 228 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1155                 g_object_ref_sink (_tmp10_);
1156 #line 228 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1157                 dialog = _tmp10_;
1158 #line 229 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1159                 _tmp11_ = dialog;
1160 #line 229 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1161                 _tmp12_ = gtk_dialog_run ((GtkDialog*) _tmp11_);
1162 #line 229 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1163                 _result_ = _tmp12_;
1164 #line 231 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1165                 _tmp13_ = _result_;
1166 #line 231 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1167                 switch (_tmp13_) {
1168 #line 231 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1169                         case GTK_RESPONSE_OK:
1170 #line 1171 "moonshot-identity-management-view.c"
1171                         {
1172                                 IdCard* _tmp14_ = NULL;
1173                                 AddPasswordDialog* _tmp15_ = NULL;
1174                                 const gchar* _tmp16_ = NULL;
1175                                 const gchar* _tmp17_ = NULL;
1176                                 IdCard* _tmp18_ = NULL;
1177                                 AddPasswordDialog* _tmp19_ = NULL;
1178                                 gboolean _tmp20_ = FALSE;
1179                                 gboolean _tmp21_ = FALSE;
1180                                 AddPasswordDialog* _tmp22_ = NULL;
1181                                 gboolean _tmp23_ = FALSE;
1182                                 gboolean _tmp24_ = FALSE;
1183                                 IdentityManagerModel* _tmp26_ = NULL;
1184                                 IdCard* _tmp27_ = NULL;
1185                                 IdCard* _tmp28_ = NULL;
1186 #line 233 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1187                                 _tmp14_ = identity;
1188 #line 233 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1189                                 _tmp15_ = dialog;
1190 #line 233 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1191                                 _tmp16_ = add_password_dialog_get_password (_tmp15_);
1192 #line 233 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1193                                 _tmp17_ = _tmp16_;
1194 #line 233 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1195                                 id_card_set_password (_tmp14_, _tmp17_);
1196 #line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1197                                 _tmp18_ = identity;
1198 #line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1199                                 _tmp19_ = dialog;
1200 #line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1201                                 _tmp20_ = add_password_dialog_get_remember (_tmp19_);
1202 #line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1203                                 _tmp21_ = _tmp20_;
1204 #line 234 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1205                                 id_card_set_store_password (_tmp18_, _tmp21_);
1206 #line 235 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1207                                 _tmp22_ = dialog;
1208 #line 235 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1209                                 _tmp23_ = add_password_dialog_get_remember (_tmp22_);
1210 #line 235 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1211                                 _tmp24_ = _tmp23_;
1212 #line 235 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1213                                 if (_tmp24_) {
1214 #line 1215 "moonshot-identity-management-view.c"
1215                                         IdCard* _tmp25_ = NULL;
1216 #line 236 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1217                                         _tmp25_ = identity;
1218 #line 236 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1219                                         id_card_set_temporary (_tmp25_, FALSE);
1220 #line 1221 "moonshot-identity-management-view.c"
1221                                 }
1222 #line 237 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1223                                 _tmp26_ = self->identities_manager;
1224 #line 237 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1225                                 _tmp27_ = identity;
1226 #line 237 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1227                                 _tmp28_ = identity_manager_model_update_card (_tmp26_, _tmp27_);
1228 #line 237 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1229                                 _g_object_unref0 (identity);
1230 #line 237 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1231                                 identity = _tmp28_;
1232 #line 238 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1233                                 break;
1234 #line 1235 "moonshot-identity-management-view.c"
1235                         }
1236                         default:
1237                         {
1238 #line 240 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1239                                 break;
1240 #line 1241 "moonshot-identity-management-view.c"
1241                         }
1242                 }
1243 #line 242 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1244                 _tmp29_ = dialog;
1245 #line 242 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1246                 gtk_object_destroy ((GtkObject*) _tmp29_);
1247 #line 226 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1248                 _g_object_unref0 (dialog);
1249 #line 226 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1250                 _g_object_unref0 (identity);
1251 #line 1252 "moonshot-identity-management-view.c"
1252         }
1253 }
1254
1255
1256 static void identity_manager_view_load_id_cards (IdentityManagerView* self) {
1257         gchar* current_idcard_nai = NULL;
1258         CustomVBox* _tmp0_ = NULL;
1259         IdCardWidget* _tmp1_ = NULL;
1260         IdCardWidget* _tmp2_ = NULL;
1261         GList* children = NULL;
1262         CustomVBox* _tmp12_ = NULL;
1263         GList* _tmp13_ = NULL;
1264         GList* _tmp14_ = NULL;
1265         GtkListStore* _tmp16_ = NULL;
1266         GeeLinkedList* card_list = NULL;
1267         IdentityManagerModel* _tmp17_ = NULL;
1268         GeeLinkedList* _tmp18_ = NULL;
1269         GeeLinkedList* _tmp19_ = NULL;
1270         CustomVBox* _tmp42_ = NULL;
1271         IdCardWidget* _tmp43_ = NULL;
1272         IdCardWidget* _tmp44_ = NULL;
1273 #line 246 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1274         g_return_if_fail (self != NULL);
1275 #line 247 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1276         current_idcard_nai = NULL;
1277 #line 248 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1278         _tmp0_ = self->priv->custom_vbox;
1279 #line 248 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1280         _tmp1_ = custom_vbox_get_current_idcard (_tmp0_);
1281 #line 248 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1282         _tmp2_ = _tmp1_;
1283 #line 248 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1284         if (_tmp2_ != NULL) {
1285 #line 1286 "moonshot-identity-management-view.c"
1286                 CustomVBox* _tmp3_ = NULL;
1287                 IdCardWidget* _tmp4_ = NULL;
1288                 IdCardWidget* _tmp5_ = NULL;
1289                 IdCard* _tmp6_ = NULL;
1290                 IdCard* _tmp7_ = NULL;
1291                 const gchar* _tmp8_ = NULL;
1292                 const gchar* _tmp9_ = NULL;
1293                 gchar* _tmp10_ = NULL;
1294                 CustomVBox* _tmp11_ = NULL;
1295 #line 249 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1296                 _tmp3_ = self->priv->custom_vbox;
1297 #line 249 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1298                 _tmp4_ = custom_vbox_get_current_idcard (_tmp3_);
1299 #line 249 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1300                 _tmp5_ = _tmp4_;
1301 #line 249 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1302                 _tmp6_ = id_card_widget_get_id_card (_tmp5_);
1303 #line 249 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1304                 _tmp7_ = _tmp6_;
1305 #line 249 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1306                 _tmp8_ = id_card_get_nai (_tmp7_);
1307 #line 249 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1308                 _tmp9_ = _tmp8_;
1309 #line 249 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1310                 _tmp10_ = g_strdup (_tmp9_);
1311 #line 249 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1312                 _g_free0 (current_idcard_nai);
1313 #line 249 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1314                 current_idcard_nai = _tmp10_;
1315 #line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1316                 _tmp11_ = self->priv->custom_vbox;
1317 #line 250 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1318                 custom_vbox_set_current_idcard (_tmp11_, NULL);
1319 #line 1320 "moonshot-identity-management-view.c"
1320         }
1321 #line 252 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1322         _tmp12_ = self->priv->custom_vbox;
1323 #line 252 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1324         _tmp13_ = gtk_container_get_children ((GtkContainer*) _tmp12_);
1325 #line 252 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1326         children = _tmp13_;
1327 #line 253 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1328         _tmp14_ = children;
1329 #line 1330 "moonshot-identity-management-view.c"
1330         {
1331                 GList* id_card_widget_collection = NULL;
1332                 GList* id_card_widget_it = NULL;
1333 #line 253 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1334                 id_card_widget_collection = _tmp14_;
1335 #line 253 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1336                 for (id_card_widget_it = id_card_widget_collection; id_card_widget_it != NULL; id_card_widget_it = id_card_widget_it->next) {
1337 #line 1338 "moonshot-identity-management-view.c"
1338                         GtkWidget* id_card_widget = NULL;
1339 #line 253 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1340                         id_card_widget = (GtkWidget*) id_card_widget_it->data;
1341 #line 1342 "moonshot-identity-management-view.c"
1342                         {
1343                                 GtkWidget* _tmp15_ = NULL;
1344 #line 254 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1345                                 _tmp15_ = id_card_widget;
1346 #line 254 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1347                                 identity_manager_view_remove_id_card_widget (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_ID_CARD_WIDGET, IdCardWidget));
1348 #line 1349 "moonshot-identity-management-view.c"
1349                         }
1350                 }
1351         }
1352 #line 256 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1353         _tmp16_ = self->priv->listmodel;
1354 #line 256 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1355         gtk_list_store_clear (_tmp16_);
1356 #line 257 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1357         _tmp17_ = self->identities_manager;
1358 #line 257 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1359         _tmp18_ = identity_manager_model_get_card_list (_tmp17_);
1360 #line 257 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1361         card_list = _tmp18_;
1362 #line 258 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1363         _tmp19_ = card_list;
1364 #line 258 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1365         if (_tmp19_ == NULL) {
1366 #line 259 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1367                 _g_object_unref0 (card_list);
1368 #line 259 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1369                 _g_list_free0 (children);
1370 #line 259 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1371                 _g_free0 (current_idcard_nai);
1372 #line 259 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1373                 return;
1374 #line 1375 "moonshot-identity-management-view.c"
1375         }
1376         {
1377                 GeeLinkedList* _id_card_list = NULL;
1378                 GeeLinkedList* _tmp20_ = NULL;
1379                 GeeLinkedList* _tmp21_ = NULL;
1380                 gint _id_card_size = 0;
1381                 GeeLinkedList* _tmp22_ = NULL;
1382                 gint _tmp23_ = 0;
1383                 gint _tmp24_ = 0;
1384                 gint _id_card_index = 0;
1385 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1386                 _tmp20_ = card_list;
1387 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1388                 _tmp21_ = _g_object_ref0 (_tmp20_);
1389 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1390                 _id_card_list = _tmp21_;
1391 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1392                 _tmp22_ = _id_card_list;
1393 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1394                 _tmp23_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp22_);
1395 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1396                 _tmp24_ = _tmp23_;
1397 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1398                 _id_card_size = _tmp24_;
1399 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1400                 _id_card_index = -1;
1401 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1402                 while (TRUE) {
1403 #line 1404 "moonshot-identity-management-view.c"
1404                         gint _tmp25_ = 0;
1405                         gint _tmp26_ = 0;
1406                         gint _tmp27_ = 0;
1407                         IdCard* id_card = NULL;
1408                         GeeLinkedList* _tmp28_ = NULL;
1409                         gint _tmp29_ = 0;
1410                         gpointer _tmp30_ = NULL;
1411                         IdCard* _tmp31_ = NULL;
1412                         IdCardWidget* id_card_widget = NULL;
1413                         IdCard* _tmp32_ = NULL;
1414                         IdCardWidget* _tmp33_ = NULL;
1415                         IdCardWidget* _tmp34_ = NULL;
1416                         IdCard* _tmp35_ = NULL;
1417                         IdCard* _tmp36_ = NULL;
1418                         const gchar* _tmp37_ = NULL;
1419                         const gchar* _tmp38_ = NULL;
1420                         const gchar* _tmp39_ = NULL;
1421 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1422                         _tmp25_ = _id_card_index;
1423 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1424                         _id_card_index = _tmp25_ + 1;
1425 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1426                         _tmp26_ = _id_card_index;
1427 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1428                         _tmp27_ = _id_card_size;
1429 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1430                         if (!(_tmp26_ < _tmp27_)) {
1431 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1432                                 break;
1433 #line 1434 "moonshot-identity-management-view.c"
1434                         }
1435 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1436                         _tmp28_ = _id_card_list;
1437 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1438                         _tmp29_ = _id_card_index;
1439 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1440                         _tmp30_ = gee_abstract_list_get ((GeeAbstractList*) _tmp28_, _tmp29_);
1441 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1442                         id_card = (IdCard*) _tmp30_;
1443 #line 263 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1444                         _tmp31_ = id_card;
1445 #line 263 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1446                         identity_manager_view_add_id_card_data (self, _tmp31_);
1447 #line 264 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1448                         _tmp32_ = id_card;
1449 #line 264 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1450                         _tmp33_ = identity_manager_view_add_id_card_widget (self, _tmp32_);
1451 #line 264 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1452                         id_card_widget = _tmp33_;
1453 #line 265 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1454                         _tmp34_ = id_card_widget;
1455 #line 265 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1456                         _tmp35_ = id_card_widget_get_id_card (_tmp34_);
1457 #line 265 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1458                         _tmp36_ = _tmp35_;
1459 #line 265 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1460                         _tmp37_ = id_card_get_nai (_tmp36_);
1461 #line 265 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1462                         _tmp38_ = _tmp37_;
1463 #line 265 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1464                         _tmp39_ = current_idcard_nai;
1465 #line 265 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1466                         if (g_strcmp0 (_tmp38_, _tmp39_) == 0) {
1467 #line 1468 "moonshot-identity-management-view.c"
1468                                 IdCardWidget* _tmp40_ = NULL;
1469                                 IdCardWidget* _tmp41_ = NULL;
1470 #line 266 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1471                                 _tmp40_ = id_card_widget;
1472 #line 266 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1473                                 identity_manager_view_fill_details (self, _tmp40_);
1474 #line 267 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1475                                 _tmp41_ = id_card_widget;
1476 #line 267 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1477                                 id_card_widget_expand (_tmp41_);
1478 #line 1479 "moonshot-identity-management-view.c"
1479                         }
1480 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1481                         _g_object_unref0 (id_card_widget);
1482 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1483                         _g_object_unref0 (id_card);
1484 #line 1485 "moonshot-identity-management-view.c"
1485                 }
1486 #line 262 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1487                 _g_object_unref0 (_id_card_list);
1488 #line 1489 "moonshot-identity-management-view.c"
1489         }
1490 #line 270 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1491         _tmp42_ = self->priv->custom_vbox;
1492 #line 270 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1493         _tmp43_ = custom_vbox_get_current_idcard (_tmp42_);
1494 #line 270 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1495         _tmp44_ = _tmp43_;
1496 #line 270 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1497         if (_tmp44_ == NULL) {
1498 #line 271 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1499                 identity_manager_view_fill_details (self, NULL);
1500 #line 1501 "moonshot-identity-management-view.c"
1501         }
1502 #line 246 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1503         _g_object_unref0 (card_list);
1504 #line 246 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1505         _g_list_free0 (children);
1506 #line 246 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1507         _g_free0 (current_idcard_nai);
1508 #line 1509 "moonshot-identity-management-view.c"
1509 }
1510
1511
1512 static void identity_manager_view_fill_details (IdentityManagerView* self, IdCardWidget* id_card_widget) {
1513         GList* vr_children = NULL;
1514         GtkVBox* _tmp0_ = NULL;
1515         GList* _tmp1_ = NULL;
1516         GList* _tmp2_ = NULL;
1517         IdCardWidget* _tmp5_ = NULL;
1518 #line 274 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1519         g_return_if_fail (self != NULL);
1520 #line 276 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1521         _tmp0_ = self->priv->vbox_right;
1522 #line 276 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1523         _tmp1_ = gtk_container_get_children ((GtkContainer*) _tmp0_);
1524 #line 276 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1525         vr_children = _tmp1_;
1526 #line 277 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1527         _tmp2_ = vr_children;
1528 #line 1529 "moonshot-identity-management-view.c"
1529         {
1530                 GList* vr_child_collection = NULL;
1531                 GList* vr_child_it = NULL;
1532 #line 277 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1533                 vr_child_collection = _tmp2_;
1534 #line 277 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1535                 for (vr_child_it = vr_child_collection; vr_child_it != NULL; vr_child_it = vr_child_it->next) {
1536 #line 1537 "moonshot-identity-management-view.c"
1537                         GtkWidget* vr_child = NULL;
1538 #line 277 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1539                         vr_child = (GtkWidget*) vr_child_it->data;
1540 #line 1541 "moonshot-identity-management-view.c"
1541                         {
1542                                 GtkVBox* _tmp3_ = NULL;
1543                                 GtkWidget* _tmp4_ = NULL;
1544 #line 278 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1545                                 _tmp3_ = self->priv->vbox_right;
1546 #line 278 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1547                                 _tmp4_ = vr_child;
1548 #line 278 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1549                                 gtk_container_remove ((GtkContainer*) _tmp3_, _tmp4_);
1550 #line 1551 "moonshot-identity-management-view.c"
1551                         }
1552                 }
1553         }
1554 #line 279 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1555         _tmp5_ = id_card_widget;
1556 #line 279 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1557         if (_tmp5_ != NULL) {
1558 #line 1559 "moonshot-identity-management-view.c"
1559                 IdCard* id_card = NULL;
1560                 IdCardWidget* _tmp6_ = NULL;
1561                 IdCard* _tmp7_ = NULL;
1562                 IdCard* _tmp8_ = NULL;
1563                 IdCard* _tmp9_ = NULL;
1564                 IdCard* _tmp10_ = NULL;
1565                 const gchar* _tmp11_ = NULL;
1566                 const gchar* _tmp12_ = NULL;
1567                 GtkVBox* _tmp34_ = NULL;
1568                 GtkVBox* _tmp35_ = NULL;
1569                 GList* children = NULL;
1570                 GtkVBox* _tmp36_ = NULL;
1571                 GList* _tmp37_ = NULL;
1572                 GList* _tmp38_ = NULL;
1573                 IdCardWidget* _tmp41_ = NULL;
1574                 IdCard* _tmp42_ = NULL;
1575                 IdCard* _tmp43_ = NULL;
1576 #line 280 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1577                 _tmp6_ = id_card_widget;
1578 #line 280 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1579                 _tmp7_ = id_card_widget_get_id_card (_tmp6_);
1580 #line 280 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1581                 _tmp8_ = _tmp7_;
1582 #line 280 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1583                 _tmp9_ = _g_object_ref0 (_tmp8_);
1584 #line 280 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1585                 id_card = _tmp9_;
1586 #line 281 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1587                 _tmp10_ = id_card;
1588 #line 281 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1589                 _tmp11_ = id_card_get_display_name (_tmp10_);
1590 #line 281 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1591                 _tmp12_ = _tmp11_;
1592 #line 281 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1593                 if (g_strcmp0 (_tmp12_, ID_CARD_NO_IDENTITY) == 0) {
1594 #line 1595 "moonshot-identity-management-view.c"
1595                         GtkVBox* _tmp13_ = NULL;
1596                         GtkLabel* _tmp14_ = NULL;
1597 #line 282 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1598                         _tmp13_ = self->priv->vbox_right;
1599 #line 282 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1600                         _tmp14_ = self->priv->no_identity_title;
1601 #line 282 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1602                         gtk_box_pack_start ((GtkBox*) _tmp13_, (GtkWidget*) _tmp14_, FALSE, TRUE, (guint) 0);
1603 #line 1604 "moonshot-identity-management-view.c"
1604                 } else {
1605                         GtkEntry* _tmp15_ = NULL;
1606                         IdCard* _tmp16_ = NULL;
1607                         const gchar* _tmp17_ = NULL;
1608                         const gchar* _tmp18_ = NULL;
1609                         GtkEntry* _tmp19_ = NULL;
1610                         IdCard* _tmp20_ = NULL;
1611                         const gchar* _tmp21_ = NULL;
1612                         const gchar* _tmp22_ = NULL;
1613                         const gchar* _tmp23_ = NULL;
1614                         IdCard* _tmp24_ = NULL;
1615                         const gchar* _tmp25_ = NULL;
1616                         const gchar* _tmp26_ = NULL;
1617                         GtkEntry* _tmp27_ = NULL;
1618                         GtkVBox* _tmp28_ = NULL;
1619                         GtkVBox* _tmp29_ = NULL;
1620                         GtkCheckButton* _tmp30_ = NULL;
1621                         IdCard* _tmp31_ = NULL;
1622                         gboolean _tmp32_ = FALSE;
1623                         gboolean _tmp33_ = FALSE;
1624 #line 284 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1625                         _tmp15_ = self->priv->issuer_entry;
1626 #line 284 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1627                         _tmp16_ = id_card;
1628 #line 284 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1629                         _tmp17_ = id_card_get_issuer (_tmp16_);
1630 #line 284 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1631                         _tmp18_ = _tmp17_;
1632 #line 284 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1633                         gtk_entry_set_text (_tmp15_, _tmp18_);
1634 #line 285 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1635                         _tmp19_ = self->priv->username_entry;
1636 #line 285 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1637                         _tmp20_ = id_card;
1638 #line 285 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1639                         _tmp21_ = id_card_get_username (_tmp20_);
1640 #line 285 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1641                         _tmp22_ = _tmp21_;
1642 #line 285 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1643                         gtk_entry_set_text (_tmp19_, _tmp22_);
1644 #line 286 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1645                         _tmp24_ = id_card;
1646 #line 286 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1647                         _tmp25_ = id_card_get_password (_tmp24_);
1648 #line 286 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1649                         _tmp26_ = _tmp25_;
1650 #line 286 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1651                         _tmp23_ = _tmp26_;
1652 #line 286 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1653                         if (_tmp23_ == NULL) {
1654 #line 286 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1655                                 _tmp23_ = "";
1656 #line 1657 "moonshot-identity-management-view.c"
1657                         }
1658 #line 286 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1659                         _tmp27_ = self->priv->password_entry;
1660 #line 286 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1661                         gtk_entry_set_text (_tmp27_, _tmp23_);
1662 #line 287 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1663                         _tmp28_ = self->priv->vbox_right;
1664 #line 287 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1665                         _tmp29_ = self->priv->login_vbox;
1666 #line 287 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1667                         gtk_box_pack_start ((GtkBox*) _tmp28_, (GtkWidget*) _tmp29_, FALSE, TRUE, (guint) 0);
1668 #line 288 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1669                         _tmp30_ = self->priv->remember_checkbutton;
1670 #line 288 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1671                         _tmp31_ = id_card;
1672 #line 288 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1673                         _tmp32_ = id_card_get_store_password (_tmp31_);
1674 #line 288 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1675                         _tmp33_ = _tmp32_;
1676 #line 288 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1677                         gtk_toggle_button_set_active ((GtkToggleButton*) _tmp30_, _tmp33_);
1678 #line 1679 "moonshot-identity-management-view.c"
1679                 }
1680 #line 290 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1681                 _tmp34_ = self->priv->vbox_right;
1682 #line 290 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1683                 _tmp35_ = self->priv->services_vbox;
1684 #line 290 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1685                 gtk_box_pack_start ((GtkBox*) _tmp34_, (GtkWidget*) _tmp35_, FALSE, TRUE, (guint) 0);
1686 #line 292 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1687                 _tmp36_ = self->priv->services_internal_vbox;
1688 #line 292 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1689                 _tmp37_ = gtk_container_get_children ((GtkContainer*) _tmp36_);
1690 #line 292 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1691                 children = _tmp37_;
1692 #line 293 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1693                 _tmp38_ = children;
1694 #line 1695 "moonshot-identity-management-view.c"
1695                 {
1696                         GList* hbox_collection = NULL;
1697                         GList* hbox_it = NULL;
1698 #line 293 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1699                         hbox_collection = _tmp38_;
1700 #line 293 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1701                         for (hbox_it = hbox_collection; hbox_it != NULL; hbox_it = hbox_it->next) {
1702 #line 1703 "moonshot-identity-management-view.c"
1703                                 GtkWidget* hbox = NULL;
1704 #line 293 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1705                                 hbox = (GtkWidget*) hbox_it->data;
1706 #line 1707 "moonshot-identity-management-view.c"
1707                                 {
1708                                         GtkVBox* _tmp39_ = NULL;
1709                                         GtkWidget* _tmp40_ = NULL;
1710 #line 294 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1711                                         _tmp39_ = self->priv->services_internal_vbox;
1712 #line 294 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1713                                         _tmp40_ = hbox;
1714 #line 294 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1715                                         gtk_container_remove ((GtkContainer*) _tmp39_, _tmp40_);
1716 #line 1717 "moonshot-identity-management-view.c"
1717                                 }
1718                         }
1719                 }
1720 #line 295 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1721                 _tmp41_ = id_card_widget;
1722 #line 295 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1723                 _tmp42_ = id_card_widget_get_id_card (_tmp41_);
1724 #line 295 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1725                 _tmp43_ = _tmp42_;
1726 #line 295 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1727                 identity_manager_view_fill_services_vbox (self, _tmp43_);
1728 #line 279 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1729                 _g_list_free0 (children);
1730 #line 279 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1731                 _g_object_unref0 (id_card);
1732 #line 1733 "moonshot-identity-management-view.c"
1733         }
1734 #line 274 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1735         _g_list_free0 (vr_children);
1736 #line 1737 "moonshot-identity-management-view.c"
1737 }
1738
1739
1740 static void identity_manager_view_show_details (IdentityManagerView* self, IdCard* id_card) {
1741         GtkVBox* _tmp0_ = NULL;
1742         GtkVBox* _tmp1_ = NULL;
1743         gboolean _tmp2_ = FALSE;
1744         GtkVBox* _tmp3_ = NULL;
1745         gboolean _tmp4_ = FALSE;
1746 #line 299 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1747         g_return_if_fail (self != NULL);
1748 #line 299 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1749         g_return_if_fail (id_card != NULL);
1750 #line 301 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1751         _tmp0_ = self->priv->vbox_right;
1752 #line 301 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1753         _tmp1_ = self->priv->vbox_right;
1754 #line 301 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1755         _tmp2_ = gtk_widget_get_visible ((GtkWidget*) _tmp1_);
1756 #line 301 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1757         gtk_widget_set_visible ((GtkWidget*) _tmp0_, !_tmp2_);
1758 #line 303 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1759         _tmp3_ = self->priv->vbox_right;
1760 #line 303 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1761         _tmp4_ = gtk_widget_get_visible ((GtkWidget*) _tmp3_);
1762 #line 303 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1763         if (_tmp4_ == FALSE) {
1764 #line 305 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1765                 gtk_window_resize ((GtkWindow*) self, IDENTITY_MANAGER_VIEW_WINDOW_WIDTH, IDENTITY_MANAGER_VIEW_WINDOW_HEIGHT);
1766 #line 1767 "moonshot-identity-management-view.c"
1767         }
1768 }
1769
1770
1771 static void identity_manager_view_details_identity_cb (IdentityManagerView* self, IdCardWidget* id_card_widget) {
1772         IdCardWidget* _tmp0_ = NULL;
1773         IdCardWidget* _tmp1_ = NULL;
1774         IdCard* _tmp2_ = NULL;
1775         IdCard* _tmp3_ = NULL;
1776 #line 309 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1777         g_return_if_fail (self != NULL);
1778 #line 309 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1779         g_return_if_fail (id_card_widget != NULL);
1780 #line 311 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1781         _tmp0_ = id_card_widget;
1782 #line 311 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1783         identity_manager_view_fill_details (self, _tmp0_);
1784 #line 312 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1785         _tmp1_ = id_card_widget;
1786 #line 312 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1787         _tmp2_ = id_card_widget_get_id_card (_tmp1_);
1788 #line 312 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1789         _tmp3_ = _tmp2_;
1790 #line 312 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1791         identity_manager_view_show_details (self, _tmp3_);
1792 #line 1793 "moonshot-identity-management-view.c"
1793 }
1794
1795
1796 static IdCard* identity_manager_view_get_id_card_data (IdentityManagerView* self, AddIdentityDialog* dialog) {
1797         IdCard* result = NULL;
1798         IdCard* id_card = NULL;
1799         IdCard* _tmp0_ = NULL;
1800         AddIdentityDialog* _tmp1_ = NULL;
1801         const gchar* _tmp2_ = NULL;
1802         const gchar* _tmp3_ = NULL;
1803         AddIdentityDialog* _tmp4_ = NULL;
1804         const gchar* _tmp5_ = NULL;
1805         const gchar* _tmp6_ = NULL;
1806         AddIdentityDialog* _tmp7_ = NULL;
1807         const gchar* _tmp8_ = NULL;
1808         const gchar* _tmp9_ = NULL;
1809         AddIdentityDialog* _tmp10_ = NULL;
1810         const gchar* _tmp11_ = NULL;
1811         const gchar* _tmp12_ = NULL;
1812         AddIdentityDialog* _tmp13_ = NULL;
1813         gboolean _tmp14_ = FALSE;
1814         gboolean _tmp15_ = FALSE;
1815         gchar** _tmp16_ = NULL;
1816         gchar** _tmp17_ = NULL;
1817         gint _tmp17__length1 = 0;
1818 #line 315 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1819         g_return_val_if_fail (self != NULL, NULL);
1820 #line 315 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1821         g_return_val_if_fail (dialog != NULL, NULL);
1822 #line 317 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1823         _tmp0_ = id_card_new ();
1824 #line 317 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1825         id_card = _tmp0_;
1826 #line 319 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1827         _tmp1_ = dialog;
1828 #line 319 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1829         _tmp2_ = add_identity_dialog_get_display_name (_tmp1_);
1830 #line 319 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1831         _tmp3_ = _tmp2_;
1832 #line 319 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1833         id_card_set_display_name (id_card, _tmp3_);
1834 #line 320 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1835         _tmp4_ = dialog;
1836 #line 320 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1837         _tmp5_ = add_identity_dialog_get_issuer (_tmp4_);
1838 #line 320 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1839         _tmp6_ = _tmp5_;
1840 #line 320 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1841         id_card_set_issuer (id_card, _tmp6_);
1842 #line 321 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1843         _tmp7_ = dialog;
1844 #line 321 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1845         _tmp8_ = add_identity_dialog_get_username (_tmp7_);
1846 #line 321 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1847         _tmp9_ = _tmp8_;
1848 #line 321 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1849         id_card_set_username (id_card, _tmp9_);
1850 #line 322 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1851         _tmp10_ = dialog;
1852 #line 322 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1853         _tmp11_ = add_identity_dialog_get_password (_tmp10_);
1854 #line 322 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1855         _tmp12_ = _tmp11_;
1856 #line 322 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1857         id_card_set_password (id_card, _tmp12_);
1858 #line 323 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1859         _tmp13_ = dialog;
1860 #line 323 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1861         _tmp14_ = add_identity_dialog_get_store_password (_tmp13_);
1862 #line 323 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1863         _tmp15_ = _tmp14_;
1864 #line 323 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1865         id_card_set_store_password (id_card, _tmp15_);
1866 #line 324 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1867         _tmp16_ = g_new0 (gchar*, 0 + 1);
1868 #line 324 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1869         _tmp17_ = _tmp16_;
1870 #line 324 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1871         _tmp17__length1 = 0;
1872 #line 324 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1873         id_card_set_services (id_card, _tmp17_, 0);
1874 #line 324 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1875         _tmp17_ = (_vala_array_free (_tmp17_, _tmp17__length1, (GDestroyNotify) g_free), NULL);
1876 #line 326 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1877         result = id_card;
1878 #line 326 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1879         return result;
1880 #line 1881 "moonshot-identity-management-view.c"
1881 }
1882
1883
1884 static void identity_manager_view_add_id_card_data (IdentityManagerView* self, IdCard* id_card) {
1885         GtkTreeIter iter = {0};
1886         GdkPixbuf* pixbuf = NULL;
1887         GtkListStore* _tmp0_ = NULL;
1888         GtkTreeIter _tmp1_ = {0};
1889         IdCard* _tmp2_ = NULL;
1890         GdkPixbuf* _tmp3_ = NULL;
1891         GtkListStore* _tmp4_ = NULL;
1892         GtkTreeIter _tmp5_ = {0};
1893         IdCard* _tmp6_ = NULL;
1894         IdCard* _tmp7_ = NULL;
1895         const gchar* _tmp8_ = NULL;
1896         const gchar* _tmp9_ = NULL;
1897         IdCard* _tmp10_ = NULL;
1898         const gchar* _tmp11_ = NULL;
1899         const gchar* _tmp12_ = NULL;
1900         IdCard* _tmp13_ = NULL;
1901         const gchar* _tmp14_ = NULL;
1902         const gchar* _tmp15_ = NULL;
1903 #line 329 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1904         g_return_if_fail (self != NULL);
1905 #line 329 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1906         g_return_if_fail (id_card != NULL);
1907 #line 333 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1908         _tmp0_ = self->priv->listmodel;
1909 #line 333 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1910         gtk_list_store_append (_tmp0_, &_tmp1_);
1911 #line 333 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1912         iter = _tmp1_;
1913 #line 334 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1914         _tmp2_ = id_card;
1915 #line 334 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1916         _tmp3_ = get_pixbuf (_tmp2_);
1917 #line 334 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1918         _g_object_unref0 (pixbuf);
1919 #line 334 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1920         pixbuf = _tmp3_;
1921 #line 335 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1922         _tmp4_ = self->priv->listmodel;
1923 #line 335 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1924         _tmp5_ = iter;
1925 #line 335 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1926         _tmp6_ = id_card;
1927 #line 335 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1928         _tmp7_ = id_card;
1929 #line 335 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1930         _tmp8_ = id_card_get_issuer (_tmp7_);
1931 #line 335 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1932         _tmp9_ = _tmp8_;
1933 #line 335 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1934         _tmp10_ = id_card;
1935 #line 335 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1936         _tmp11_ = id_card_get_username (_tmp10_);
1937 #line 335 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1938         _tmp12_ = _tmp11_;
1939 #line 335 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1940         _tmp13_ = id_card;
1941 #line 335 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1942         _tmp14_ = id_card_get_password (_tmp13_);
1943 #line 335 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1944         _tmp15_ = _tmp14_;
1945 #line 335 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1946         gtk_list_store_set (_tmp4_, &_tmp5_, IDENTITY_MANAGER_VIEW_COLUMNS_IDCARD_COL, _tmp6_, IDENTITY_MANAGER_VIEW_COLUMNS_LOGO_COL, pixbuf, IDENTITY_MANAGER_VIEW_COLUMNS_ISSUER_COL, _tmp9_, IDENTITY_MANAGER_VIEW_COLUMNS_USERNAME_COL, _tmp12_, IDENTITY_MANAGER_VIEW_COLUMNS_PASSWORD_COL, _tmp15_, -1);
1947 #line 329 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1948         _g_object_unref0 (pixbuf);
1949 #line 1950 "moonshot-identity-management-view.c"
1950 }
1951
1952
1953 static void identity_manager_view_remove_id_card_data (IdentityManagerView* self, IdCard* id_card) {
1954         GtkTreeIter iter = {0};
1955         gchar* issuer = NULL;
1956         GtkListStore* _tmp0_ = NULL;
1957         GtkTreeIter _tmp1_ = {0};
1958         gboolean _tmp2_ = FALSE;
1959 #line 343 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1960         g_return_if_fail (self != NULL);
1961 #line 343 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1962         g_return_if_fail (id_card != NULL);
1963 #line 348 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1964         _tmp0_ = self->priv->listmodel;
1965 #line 348 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1966         _tmp2_ = gtk_tree_model_get_iter_first ((GtkTreeModel*) _tmp0_, &_tmp1_);
1967 #line 348 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1968         iter = _tmp1_;
1969 #line 348 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1970         if (_tmp2_) {
1971 #line 1972 "moonshot-identity-management-view.c"
1972                 {
1973                         gboolean _tmp3_ = FALSE;
1974 #line 350 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1975                         _tmp3_ = TRUE;
1976 #line 350 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1977                         while (TRUE) {
1978 #line 1979 "moonshot-identity-management-view.c"
1979                                 GtkListStore* _tmp6_ = NULL;
1980                                 GtkTreeIter _tmp7_ = {0};
1981                                 IdCard* _tmp8_ = NULL;
1982                                 const gchar* _tmp9_ = NULL;
1983                                 const gchar* _tmp10_ = NULL;
1984                                 const gchar* _tmp11_ = NULL;
1985 #line 350 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1986                                 if (!_tmp3_) {
1987 #line 1988 "moonshot-identity-management-view.c"
1988                                         GtkListStore* _tmp4_ = NULL;
1989                                         gboolean _tmp5_ = FALSE;
1990 #line 361 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1991                                         _tmp4_ = self->priv->listmodel;
1992 #line 361 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1993                                         _tmp5_ = gtk_tree_model_iter_next ((GtkTreeModel*) _tmp4_, &iter);
1994 #line 361 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1995                                         if (!_tmp5_) {
1996 #line 361 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
1997                                                 break;
1998 #line 1999 "moonshot-identity-management-view.c"
1999                                         }
2000                                 }
2001 #line 350 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2002                                 _tmp3_ = FALSE;
2003 #line 352 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2004                                 _tmp6_ = self->priv->listmodel;
2005 #line 352 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2006                                 _tmp7_ = iter;
2007 #line 352 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2008                                 gtk_tree_model_get ((GtkTreeModel*) _tmp6_, &_tmp7_, IDENTITY_MANAGER_VIEW_COLUMNS_ISSUER_COL, &issuer, -1);
2009 #line 355 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2010                                 _tmp8_ = id_card;
2011 #line 355 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2012                                 _tmp9_ = id_card_get_issuer (_tmp8_);
2013 #line 355 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2014                                 _tmp10_ = _tmp9_;
2015 #line 355 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2016                                 _tmp11_ = issuer;
2017 #line 355 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2018                                 if (g_strcmp0 (_tmp10_, _tmp11_) == 0) {
2019 #line 2020 "moonshot-identity-management-view.c"
2020                                         GtkListStore* _tmp12_ = NULL;
2021                                         GtkTreeIter _tmp13_ = {0};
2022 #line 357 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2023                                         _tmp12_ = self->priv->listmodel;
2024 #line 357 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2025                                         _tmp13_ = iter;
2026 #line 357 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2027                                         gtk_list_store_remove (_tmp12_, &_tmp13_);
2028 #line 358 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2029                                         break;
2030 #line 2031 "moonshot-identity-management-view.c"
2031                                 }
2032                         }
2033                 }
2034         }
2035 #line 343 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2036         _g_free0 (issuer);
2037 #line 2038 "moonshot-identity-management-view.c"
2038 }
2039
2040
2041 static void _identity_manager_view_details_identity_cb_id_card_widget_details_id (IdCardWidget* _sender, gpointer self) {
2042 #line 369 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2043         identity_manager_view_details_identity_cb ((IdentityManagerView*) self, _sender);
2044 #line 2045 "moonshot-identity-management-view.c"
2045 }
2046
2047
2048 static void _identity_manager_view_remove_identity_cb_id_card_widget_remove_id (IdCardWidget* _sender, gpointer self) {
2049 #line 370 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2050         identity_manager_view_remove_identity_cb ((IdentityManagerView*) self, _sender);
2051 #line 2052 "moonshot-identity-management-view.c"
2052 }
2053
2054
2055 static void __lambda6_ (IdentityManagerView* self, IdCardWidget* w) {
2056         IdCardWidget* _tmp0_ = NULL;
2057         IdCard* _tmp1_ = NULL;
2058         IdCard* _tmp2_ = NULL;
2059 #line 371 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2060         g_return_if_fail (w != NULL);
2061 #line 371 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2062         _tmp0_ = w;
2063 #line 371 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2064         _tmp1_ = id_card_widget_get_id_card (_tmp0_);
2065 #line 371 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2066         _tmp2_ = _tmp1_;
2067 #line 371 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2068         identity_manager_view_send_identity_cb (self, _tmp2_);
2069 #line 2070 "moonshot-identity-management-view.c"
2070 }
2071
2072
2073 static void ___lambda6__id_card_widget_send_id (IdCardWidget* _sender, gpointer self) {
2074 #line 371 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2075         __lambda6_ ((IdentityManagerView*) self, _sender);
2076 #line 2077 "moonshot-identity-management-view.c"
2077 }
2078
2079
2080 static void _custom_vbox_receive_expanded_event_id_card_widget_expanded (IdCardWidget* _sender, gpointer self) {
2081 #line 372 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2082         custom_vbox_receive_expanded_event ((CustomVBox*) self, _sender);
2083 #line 2084 "moonshot-identity-management-view.c"
2084 }
2085
2086
2087 static void _identity_manager_view_fill_details_id_card_widget_expanded (IdCardWidget* _sender, gpointer self) {
2088 #line 373 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2089         identity_manager_view_fill_details ((IdentityManagerView*) self, _sender);
2090 #line 2091 "moonshot-identity-management-view.c"
2091 }
2092
2093
2094 static IdCardWidget* identity_manager_view_add_id_card_widget (IdentityManagerView* self, IdCard* id_card) {
2095         IdCardWidget* result = NULL;
2096         IdCardWidget* id_card_widget = NULL;
2097         IdCard* _tmp0_ = NULL;
2098         IdCardWidget* _tmp1_ = NULL;
2099         CustomVBox* _tmp2_ = NULL;
2100         CustomVBox* _tmp3_ = NULL;
2101 #line 365 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2102         g_return_val_if_fail (self != NULL, NULL);
2103 #line 365 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2104         g_return_val_if_fail (id_card != NULL, NULL);
2105 #line 367 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2106         _tmp0_ = id_card;
2107 #line 367 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2108         _tmp1_ = id_card_widget_new (_tmp0_);
2109 #line 367 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2110         g_object_ref_sink (_tmp1_);
2111 #line 367 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2112         id_card_widget = _tmp1_;
2113 #line 368 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2114         _tmp2_ = self->priv->custom_vbox;
2115 #line 368 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2116         custom_vbox_add_id_card_widget (_tmp2_, id_card_widget);
2117 #line 369 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2118         g_signal_connect_object (id_card_widget, "details-id", (GCallback) _identity_manager_view_details_identity_cb_id_card_widget_details_id, self, 0);
2119 #line 370 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2120         g_signal_connect_object (id_card_widget, "remove-id", (GCallback) _identity_manager_view_remove_identity_cb_id_card_widget_remove_id, self, 0);
2121 #line 371 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2122         g_signal_connect_object (id_card_widget, "send-id", (GCallback) ___lambda6__id_card_widget_send_id, self, 0);
2123 #line 372 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2124         _tmp3_ = self->priv->custom_vbox;
2125 #line 372 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2126         g_signal_connect_object (id_card_widget, "expanded", (GCallback) _custom_vbox_receive_expanded_event_id_card_widget_expanded, _tmp3_, 0);
2127 #line 373 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2128         g_signal_connect_object (id_card_widget, "expanded", (GCallback) _identity_manager_view_fill_details_id_card_widget_expanded, self, 0);
2129 #line 374 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2130         result = id_card_widget;
2131 #line 374 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2132         return result;
2133 #line 2134 "moonshot-identity-management-view.c"
2134 }
2135
2136
2137 gboolean identity_manager_view_add_identity (IdentityManagerView* self, IdCard* id_card, gboolean force_flat_file_store) {
2138         gboolean result = FALSE;
2139         GtkMessageDialog* dialog = NULL;
2140         IdCard* prev_id = NULL;
2141         IdentityManagerModel* _tmp0_ = NULL;
2142         IdCard* _tmp1_ = NULL;
2143         const gchar* _tmp2_ = NULL;
2144         const gchar* _tmp3_ = NULL;
2145         gboolean _tmp4_ = FALSE;
2146         IdCard* _tmp5_ = NULL;
2147         IdCard* _tmp6_ = NULL;
2148         gint ret = 0;
2149         GtkMessageDialog* _tmp36_ = NULL;
2150         gint _tmp37_ = 0;
2151         GtkMessageDialog* _tmp38_ = NULL;
2152         gint _tmp39_ = 0;
2153 #line 377 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2154         g_return_val_if_fail (self != NULL, FALSE);
2155 #line 377 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2156         g_return_val_if_fail (id_card != NULL, FALSE);
2157 #line 387 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2158         _tmp0_ = self->identities_manager;
2159 #line 387 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2160         _tmp1_ = id_card;
2161 #line 387 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2162         _tmp2_ = id_card_get_nai (_tmp1_);
2163 #line 387 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2164         _tmp3_ = _tmp2_;
2165 #line 387 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2166         _tmp4_ = force_flat_file_store;
2167 #line 387 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2168         _tmp5_ = identity_manager_model_find_id_card (_tmp0_, _tmp3_, _tmp4_);
2169 #line 387 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2170         prev_id = _tmp5_;
2171 #line 388 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2172         _tmp6_ = prev_id;
2173 #line 388 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2174         if (_tmp6_ != NULL) {
2175 #line 2176 "moonshot-identity-management-view.c"
2176                 gint flags = 0;
2177                 IdCard* _tmp7_ = NULL;
2178                 IdCard* _tmp8_ = NULL;
2179                 gint _tmp9_ = 0;
2180                 gint _tmp10_ = 0;
2181 #line 389 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2182                 _tmp7_ = prev_id;
2183 #line 389 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2184                 _tmp8_ = id_card;
2185 #line 389 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2186                 _tmp9_ = id_card_Compare (_tmp7_, _tmp8_);
2187 #line 389 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2188                 flags = _tmp9_;
2189 #line 390 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2190                 _tmp10_ = flags;
2191 #line 390 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2192                 if (_tmp10_ == 0) {
2193 #line 391 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2194                         result = FALSE;
2195 #line 391 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2196                         _g_object_unref0 (prev_id);
2197 #line 391 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2198                         _g_object_unref0 (dialog);
2199 #line 391 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2200                         return result;
2201 #line 2202 "moonshot-identity-management-view.c"
2202                 } else {
2203                         gint _tmp11_ = 0;
2204 #line 392 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2205                         _tmp11_ = flags;
2206 #line 392 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2207                         if ((_tmp11_ & (1 << ID_CARD_DIFF_FLAGS_DISPLAY_NAME)) != 0) {
2208 #line 2209 "moonshot-identity-management-view.c"
2209                                 const gchar* _tmp12_ = NULL;
2210                                 IdCard* _tmp13_ = NULL;
2211                                 const gchar* _tmp14_ = NULL;
2212                                 const gchar* _tmp15_ = NULL;
2213                                 IdCard* _tmp16_ = NULL;
2214                                 const gchar* _tmp17_ = NULL;
2215                                 const gchar* _tmp18_ = NULL;
2216                                 IdCard* _tmp19_ = NULL;
2217                                 const gchar* _tmp20_ = NULL;
2218                                 const gchar* _tmp21_ = NULL;
2219                                 GtkMessageDialog* _tmp22_ = NULL;
2220 #line 393 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2221                                 _tmp12_ = _ ("Would you like to replace ID Card '%s' using nai '%s' with the new ID " \
2222 "Card '%s'?");
2223 #line 393 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2224                                 _tmp13_ = prev_id;
2225 #line 393 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2226                                 _tmp14_ = id_card_get_display_name (_tmp13_);
2227 #line 393 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2228                                 _tmp15_ = _tmp14_;
2229 #line 393 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2230                                 _tmp16_ = prev_id;
2231 #line 393 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2232                                 _tmp17_ = id_card_get_nai (_tmp16_);
2233 #line 393 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2234                                 _tmp18_ = _tmp17_;
2235 #line 393 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2236                                 _tmp19_ = id_card;
2237 #line 393 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2238                                 _tmp20_ = id_card_get_display_name (_tmp19_);
2239 #line 393 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2240                                 _tmp21_ = _tmp20_;
2241 #line 393 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2242                                 _tmp22_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) self, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, _tmp12_, _tmp15_, _tmp18_, _tmp21_);
2243 #line 393 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2244                                 g_object_ref_sink (_tmp22_);
2245 #line 393 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2246                                 _g_object_unref0 (dialog);
2247 #line 393 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2248                                 dialog = _tmp22_;
2249 #line 2249 "moonshot-identity-management-view.c"
2250                         } else {
2251                                 const gchar* _tmp23_ = NULL;
2252                                 IdCard* _tmp24_ = NULL;
2253                                 const gchar* _tmp25_ = NULL;
2254                                 const gchar* _tmp26_ = NULL;
2255                                 IdCard* _tmp27_ = NULL;
2256                                 const gchar* _tmp28_ = NULL;
2257                                 const gchar* _tmp29_ = NULL;
2258                                 GtkMessageDialog* _tmp30_ = NULL;
2259 #line 402 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2260                                 _tmp23_ = _ ("Would you like to update ID Card '%s' using nai '%s'?");
2261 #line 402 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2262                                 _tmp24_ = id_card;
2263 #line 402 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2264                                 _tmp25_ = id_card_get_display_name (_tmp24_);
2265 #line 402 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2266                                 _tmp26_ = _tmp25_;
2267 #line 402 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2268                                 _tmp27_ = id_card;
2269 #line 402 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2270                                 _tmp28_ = id_card_get_nai (_tmp27_);
2271 #line 402 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2272                                 _tmp29_ = _tmp28_;
2273 #line 402 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2274                                 _tmp30_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) self, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, _tmp23_, _tmp26_, _tmp29_);
2275 #line 402 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2276                                 g_object_ref_sink (_tmp30_);
2277 #line 402 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2278                                 _g_object_unref0 (dialog);
2279 #line 402 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2280                                 dialog = _tmp30_;
2281 #line 2281 "moonshot-identity-management-view.c"
2282                         }
2283                 }
2284         } else {
2285                 const gchar* _tmp31_ = NULL;
2286                 IdCard* _tmp32_ = NULL;
2287                 const gchar* _tmp33_ = NULL;
2288                 const gchar* _tmp34_ = NULL;
2289                 GtkMessageDialog* _tmp35_ = NULL;
2290 #line 411 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2291                 _tmp31_ = _ ("Would you like to add '%s' ID Card to the ID Card Organizer?");
2292 #line 411 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2293                 _tmp32_ = id_card;
2294 #line 411 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2295                 _tmp33_ = id_card_get_display_name (_tmp32_);
2296 #line 411 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2297                 _tmp34_ = _tmp33_;
2298 #line 411 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2299                 _tmp35_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) self, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, _tmp31_, _tmp34_);
2300 #line 411 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2301                 g_object_ref_sink (_tmp35_);
2302 #line 411 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2303                 _g_object_unref0 (dialog);
2304 #line 411 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2305                 dialog = _tmp35_;
2306 #line 2306 "moonshot-identity-management-view.c"
2307         }
2308 #line 418 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2309         _tmp36_ = dialog;
2310 #line 418 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2311         _tmp37_ = gtk_dialog_run ((GtkDialog*) _tmp36_);
2312 #line 418 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2313         ret = _tmp37_;
2314 #line 419 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2315         _tmp38_ = dialog;
2316 #line 419 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2317         gtk_object_destroy ((GtkObject*) _tmp38_);
2318 #line 422 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2319         _tmp39_ = ret;
2320 #line 422 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2321         if (_tmp39_ == ((gint) GTK_RESPONSE_YES)) {
2322 #line 2322 "moonshot-identity-management-view.c"
2323                 IdentityManagerModel* _tmp40_ = NULL;
2324                 IdCard* _tmp41_ = NULL;
2325                 gboolean _tmp42_ = FALSE;
2326 #line 423 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2327                 _tmp40_ = self->identities_manager;
2328 #line 423 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2329                 _tmp41_ = id_card;
2330 #line 423 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2331                 _tmp42_ = force_flat_file_store;
2332 #line 423 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2333                 identity_manager_model_add_card (_tmp40_, _tmp41_, _tmp42_);
2334 #line 424 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2335                 result = TRUE;
2336 #line 424 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2337                 _g_object_unref0 (prev_id);
2338 #line 424 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2339                 _g_object_unref0 (dialog);
2340 #line 424 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2341                 return result;
2342 #line 2342 "moonshot-identity-management-view.c"
2343         }
2344 #line 427 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2345         result = FALSE;
2346 #line 427 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2347         _g_object_unref0 (prev_id);
2348 #line 427 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2349         _g_object_unref0 (dialog);
2350 #line 427 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2351         return result;
2352 #line 2352 "moonshot-identity-management-view.c"
2353 }
2354
2355
2356 static void identity_manager_view_add_identity_manual_cb (IdentityManagerView* self) {
2357         AddIdentityDialog* dialog = NULL;
2358         AddIdentityDialog* _tmp0_ = NULL;
2359         gint _result_ = 0;
2360         gint _tmp5_ = 0;
2361         AddIdentityDialog* _tmp10_ = NULL;
2362 #line 430 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2363         g_return_if_fail (self != NULL);
2364 #line 432 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2365         _tmp0_ = add_identity_dialog_new ();
2366 #line 432 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2367         g_object_ref_sink (_tmp0_);
2368 #line 432 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2369         dialog = _tmp0_;
2370 #line 433 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2371         _result_ = (gint) GTK_RESPONSE_CANCEL;
2372 #line 434 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2373         while (TRUE) {
2374 #line 2374 "moonshot-identity-management-view.c"
2375                 AddIdentityDialog* _tmp1_ = NULL;
2376                 gboolean _tmp2_ = FALSE;
2377                 AddIdentityDialog* _tmp3_ = NULL;
2378                 gint _tmp4_ = 0;
2379 #line 434 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2380                 _tmp1_ = dialog;
2381 #line 434 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2382                 _tmp2_ = _tmp1_->complete;
2383 #line 434 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2384                 if (!(!_tmp2_)) {
2385 #line 434 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2386                         break;
2387 #line 2387 "moonshot-identity-management-view.c"
2388                 }
2389 #line 435 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2390                 _tmp3_ = dialog;
2391 #line 435 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2392                 _tmp4_ = gtk_dialog_run ((GtkDialog*) _tmp3_);
2393 #line 435 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2394                 _result_ = _tmp4_;
2395 #line 2395 "moonshot-identity-management-view.c"
2396         }
2397 #line 437 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2398         _tmp5_ = _result_;
2399 #line 437 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2400         switch (_tmp5_) {
2401 #line 437 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2402                 case GTK_RESPONSE_OK:
2403 #line 2403 "moonshot-identity-management-view.c"
2404                 {
2405                         IdentityManagerModel* _tmp6_ = NULL;
2406                         AddIdentityDialog* _tmp7_ = NULL;
2407                         IdCard* _tmp8_ = NULL;
2408                         IdCard* _tmp9_ = NULL;
2409 #line 439 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2410                         _tmp6_ = self->identities_manager;
2411 #line 439 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2412                         _tmp7_ = dialog;
2413 #line 439 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2414                         _tmp8_ = identity_manager_view_get_id_card_data (self, _tmp7_);
2415 #line 439 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2416                         _tmp9_ = _tmp8_;
2417 #line 439 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2418                         identity_manager_model_add_card (_tmp6_, _tmp9_, FALSE);
2419 #line 439 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2420                         _g_object_unref0 (_tmp9_);
2421 #line 440 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2422                         break;
2423 #line 2423 "moonshot-identity-management-view.c"
2424                 }
2425                 default:
2426                 {
2427 #line 442 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2428                         break;
2429 #line 2429 "moonshot-identity-management-view.c"
2430                 }
2431         }
2432 #line 444 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2433         _tmp10_ = dialog;
2434 #line 444 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2435         gtk_object_destroy ((GtkObject*) _tmp10_);
2436 #line 430 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2437         _g_object_unref0 (dialog);
2438 #line 2438 "moonshot-identity-management-view.c"
2439 }
2440
2441
2442 static void identity_manager_view_remove_id_card_widget (IdentityManagerView* self, IdCardWidget* id_card_widget) {
2443         CustomVBox* _tmp0_ = NULL;
2444         IdCardWidget* _tmp1_ = NULL;
2445 #line 447 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2446         g_return_if_fail (self != NULL);
2447 #line 447 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2448         g_return_if_fail (id_card_widget != NULL);
2449 #line 448 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2450         _tmp0_ = self->priv->custom_vbox;
2451 #line 448 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2452         _tmp1_ = id_card_widget;
2453 #line 448 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2454         custom_vbox_remove_id_card_widget (_tmp0_, _tmp1_);
2455 #line 2455 "moonshot-identity-management-view.c"
2456 }
2457
2458
2459 static void identity_manager_view_remove_identity (IdentityManagerView* self, IdCardWidget* id_card_widget) {
2460         IdCard* id_card = NULL;
2461         IdCardWidget* _tmp0_ = NULL;
2462         IdCard* _tmp1_ = NULL;
2463         IdCard* _tmp2_ = NULL;
2464         IdCard* _tmp3_ = NULL;
2465         IdCardWidget* _tmp4_ = NULL;
2466         IdentityManagerModel* _tmp5_ = NULL;
2467 #line 451 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2468         g_return_if_fail (self != NULL);
2469 #line 451 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2470         g_return_if_fail (id_card_widget != NULL);
2471 #line 453 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2472         _tmp0_ = id_card_widget;
2473 #line 453 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2474         _tmp1_ = id_card_widget_get_id_card (_tmp0_);
2475 #line 453 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2476         _tmp2_ = _tmp1_;
2477 #line 453 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2478         _tmp3_ = _g_object_ref0 (_tmp2_);
2479 #line 453 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2480         id_card = _tmp3_;
2481 #line 454 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2482         _tmp4_ = id_card_widget;
2483 #line 454 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2484         identity_manager_view_remove_id_card_widget (self, _tmp4_);
2485 #line 456 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2486         _tmp5_ = self->identities_manager;
2487 #line 456 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2488         identity_manager_model_remove_card (_tmp5_, id_card);
2489 #line 451 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2490         _g_object_unref0 (id_card);
2491 #line 2491 "moonshot-identity-management-view.c"
2492 }
2493
2494
2495 static void identity_manager_view_redraw_id_card_widgets (IdentityManagerView* self) {
2496         GtkTreeIter iter = {0};
2497         IdCard* id_card = NULL;
2498         GList* children = NULL;
2499         CustomVBox* _tmp0_ = NULL;
2500         GList* _tmp1_ = NULL;
2501         GList* _tmp2_ = NULL;
2502         GtkTreeModelFilter* _tmp4_ = NULL;
2503         GtkTreeIter _tmp5_ = {0};
2504         gboolean _tmp6_ = FALSE;
2505 #line 459 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2506         g_return_if_fail (self != NULL);
2507 #line 464 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2508         _tmp0_ = self->priv->custom_vbox;
2509 #line 464 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2510         _tmp1_ = gtk_container_get_children ((GtkContainer*) _tmp0_);
2511 #line 464 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2512         children = _tmp1_;
2513 #line 465 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2514         _tmp2_ = children;
2515 #line 2515 "moonshot-identity-management-view.c"
2516         {
2517                 GList* id_card_widget_collection = NULL;
2518                 GList* id_card_widget_it = NULL;
2519 #line 465 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2520                 id_card_widget_collection = _tmp2_;
2521 #line 465 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2522                 for (id_card_widget_it = id_card_widget_collection; id_card_widget_it != NULL; id_card_widget_it = id_card_widget_it->next) {
2523 #line 2523 "moonshot-identity-management-view.c"
2524                         GtkWidget* id_card_widget = NULL;
2525 #line 465 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2526                         id_card_widget = (GtkWidget*) id_card_widget_it->data;
2527 #line 2527 "moonshot-identity-management-view.c"
2528                         {
2529                                 GtkWidget* _tmp3_ = NULL;
2530 #line 466 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2531                                 _tmp3_ = id_card_widget;
2532 #line 466 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2533                                 identity_manager_view_remove_id_card_widget (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_ID_CARD_WIDGET, IdCardWidget));
2534 #line 2534 "moonshot-identity-management-view.c"
2535                         }
2536                 }
2537         }
2538 #line 468 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2539         _tmp4_ = self->priv->filter;
2540 #line 468 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2541         _tmp6_ = gtk_tree_model_get_iter_first ((GtkTreeModel*) _tmp4_, &_tmp5_);
2542 #line 468 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2543         iter = _tmp5_;
2544 #line 468 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2545         if (_tmp6_) {
2546 #line 2546 "moonshot-identity-management-view.c"
2547                 {
2548                         gboolean _tmp7_ = FALSE;
2549 #line 470 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2550                         _tmp7_ = TRUE;
2551 #line 470 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2552                         while (TRUE) {
2553 #line 2553 "moonshot-identity-management-view.c"
2554                                 GtkTreeModelFilter* _tmp10_ = NULL;
2555                                 GtkTreeIter _tmp11_ = {0};
2556                                 IdCard* _tmp12_ = NULL;
2557                                 IdCardWidget* _tmp13_ = NULL;
2558                                 IdCardWidget* _tmp14_ = NULL;
2559 #line 470 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2560                                 if (!_tmp7_) {
2561 #line 2561 "moonshot-identity-management-view.c"
2562                                         GtkTreeModelFilter* _tmp8_ = NULL;
2563                                         gboolean _tmp9_ = FALSE;
2564 #line 477 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2565                                         _tmp8_ = self->priv->filter;
2566 #line 477 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2567                                         _tmp9_ = gtk_tree_model_iter_next ((GtkTreeModel*) _tmp8_, &iter);
2568 #line 477 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2569                                         if (!_tmp9_) {
2570 #line 477 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2571                                                 break;
2572 #line 2572 "moonshot-identity-management-view.c"
2573                                         }
2574                                 }
2575 #line 470 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2576                                 _tmp7_ = FALSE;
2577 #line 472 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2578                                 _tmp10_ = self->priv->filter;
2579 #line 472 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2580                                 _tmp11_ = iter;
2581 #line 472 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2582                                 gtk_tree_model_get ((GtkTreeModel*) _tmp10_, &_tmp11_, IDENTITY_MANAGER_VIEW_COLUMNS_IDCARD_COL, &id_card, -1);
2583 #line 475 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2584                                 _tmp12_ = id_card;
2585 #line 475 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2586                                 _tmp13_ = identity_manager_view_add_id_card_widget (self, _tmp12_);
2587 #line 475 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2588                                 _tmp14_ = _tmp13_;
2589 #line 475 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2590                                 _g_object_unref0 (_tmp14_);
2591 #line 2591 "moonshot-identity-management-view.c"
2592                         }
2593                 }
2594         }
2595 #line 459 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2596         _g_list_free0 (children);
2597 #line 459 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2598         _g_object_unref0 (id_card);
2599 #line 2599 "moonshot-identity-management-view.c"
2600 }
2601
2602
2603 static void identity_manager_view_remove_identity_cb (IdentityManagerView* self, IdCardWidget* id_card_widget) {
2604         IdCard* id_card = NULL;
2605         IdCardWidget* _tmp0_ = NULL;
2606         IdCard* _tmp1_ = NULL;
2607         IdCard* _tmp2_ = NULL;
2608         IdCard* _tmp3_ = NULL;
2609         GtkMessageDialog* dialog = NULL;
2610         const gchar* _tmp4_ = NULL;
2611         IdCard* _tmp5_ = NULL;
2612         const gchar* _tmp6_ = NULL;
2613         const gchar* _tmp7_ = NULL;
2614         GtkMessageDialog* _tmp8_ = NULL;
2615         gint _result_ = 0;
2616         GtkMessageDialog* _tmp9_ = NULL;
2617         gint _tmp10_ = 0;
2618         gint _tmp11_ = 0;
2619         GtkMessageDialog* _tmp13_ = NULL;
2620 #line 481 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2621         g_return_if_fail (self != NULL);
2622 #line 481 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2623         g_return_if_fail (id_card_widget != NULL);
2624 #line 483 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2625         _tmp0_ = id_card_widget;
2626 #line 483 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2627         _tmp1_ = id_card_widget_get_id_card (_tmp0_);
2628 #line 483 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2629         _tmp2_ = _tmp1_;
2630 #line 483 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2631         _tmp3_ = _g_object_ref0 (_tmp2_);
2632 #line 483 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2633         id_card = _tmp3_;
2634 #line 485 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2635         _tmp4_ = _ ("Are you sure you want to delete %s ID Card?");
2636 #line 485 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2637         _tmp5_ = id_card;
2638 #line 485 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2639         _tmp6_ = id_card_get_issuer (_tmp5_);
2640 #line 485 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2641         _tmp7_ = _tmp6_;
2642 #line 485 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2643         _tmp8_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) self, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, _tmp4_, _tmp7_);
2644 #line 485 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2645         g_object_ref_sink (_tmp8_);
2646 #line 485 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2647         dialog = _tmp8_;
2648 #line 490 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2649         _tmp9_ = dialog;
2650 #line 490 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2651         _tmp10_ = gtk_dialog_run ((GtkDialog*) _tmp9_);
2652 #line 490 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2653         _result_ = _tmp10_;
2654 #line 491 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2655         _tmp11_ = _result_;
2656 #line 491 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2657         switch (_tmp11_) {
2658 #line 491 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2659                 case GTK_RESPONSE_YES:
2660 #line 2660 "moonshot-identity-management-view.c"
2661                 {
2662                         IdCardWidget* _tmp12_ = NULL;
2663 #line 493 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2664                         _tmp12_ = id_card_widget;
2665 #line 493 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2666                         identity_manager_view_remove_identity (self, _tmp12_);
2667 #line 494 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2668                         break;
2669 #line 2669 "moonshot-identity-management-view.c"
2670                 }
2671                 default:
2672                 {
2673 #line 496 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2674                         break;
2675 #line 2675 "moonshot-identity-management-view.c"
2676                 }
2677         }
2678 #line 498 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2679         _tmp13_ = dialog;
2680 #line 498 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2681         gtk_object_destroy ((GtkObject*) _tmp13_);
2682 #line 481 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2683         _g_object_unref0 (dialog);
2684 #line 481 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2685         _g_object_unref0 (id_card);
2686 #line 2686 "moonshot-identity-management-view.c"
2687 }
2688
2689
2690 void identity_manager_view_set_prompting_service (IdentityManagerView* self, const gchar* service) {
2691         GtkLabel* _tmp0_ = NULL;
2692         const gchar* _tmp1_ = NULL;
2693         const gchar* _tmp2_ = NULL;
2694         gchar* _tmp3_ = NULL;
2695         gchar* _tmp4_ = NULL;
2696 #line 501 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2697         g_return_if_fail (self != NULL);
2698 #line 501 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2699         g_return_if_fail (service != NULL);
2700 #line 503 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2701         _tmp0_ = self->priv->prompting_service;
2702 #line 503 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2703         _tmp1_ = _ ("Identity requested for service: %s");
2704 #line 503 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2705         _tmp2_ = service;
2706 #line 503 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2707         _tmp3_ = g_strdup_printf (_tmp1_, _tmp2_);
2708 #line 503 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2709         _tmp4_ = _tmp3_;
2710 #line 503 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2711         gtk_label_set_label (_tmp0_, _tmp4_);
2712 #line 503 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2713         _g_free0 (_tmp4_);
2714 #line 2714 "moonshot-identity-management-view.c"
2715 }
2716
2717
2718 void identity_manager_view_queue_identity_request (IdentityManagerView* self, IdentityRequest* request) {
2719         GQueue* _tmp0_ = NULL;
2720         gboolean _tmp1_ = FALSE;
2721         GQueue* _tmp7_ = NULL;
2722         IdentityRequest* _tmp8_ = NULL;
2723         IdentityRequest* _tmp9_ = NULL;
2724 #line 506 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2725         g_return_if_fail (self != NULL);
2726 #line 506 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2727         g_return_if_fail (request != NULL);
2728 #line 508 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2729         _tmp0_ = self->request_queue;
2730 #line 508 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2731         _tmp1_ = g_queue_is_empty (_tmp0_);
2732 #line 508 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2733         if (_tmp1_) {
2734 #line 2734 "moonshot-identity-management-view.c"
2735                 IdentityRequest* _tmp2_ = NULL;
2736                 GSList* _tmp3_ = NULL;
2737                 GtkTreeModelFilter* _tmp4_ = NULL;
2738                 IdentityRequest* _tmp5_ = NULL;
2739                 const gchar* _tmp6_ = NULL;
2740 #line 510 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2741                 _tmp2_ = request;
2742 #line 510 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2743                 _tmp3_ = _tmp2_->candidates;
2744 #line 510 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2745                 self->priv->candidates = _tmp3_;
2746 #line 511 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2747                 _tmp4_ = self->priv->filter;
2748 #line 511 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2749                 gtk_tree_model_filter_refilter (_tmp4_);
2750 #line 512 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2751                 identity_manager_view_redraw_id_card_widgets (self);
2752 #line 513 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2753                 _tmp5_ = request;
2754 #line 513 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2755                 _tmp6_ = _tmp5_->service;
2756 #line 513 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2757                 identity_manager_view_set_prompting_service (self, _tmp6_);
2758 #line 514 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2759                 gtk_widget_show ((GtkWidget*) self);
2760 #line 2760 "moonshot-identity-management-view.c"
2761         }
2762 #line 516 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2763         _tmp7_ = self->request_queue;
2764 #line 516 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2765         _tmp8_ = request;
2766 #line 516 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2767         _tmp9_ = _g_object_ref0 (_tmp8_);
2768 #line 516 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2769         g_queue_push_tail (_tmp7_, _tmp9_);
2770 #line 2770 "moonshot-identity-management-view.c"
2771 }
2772
2773
2774 IdCard* identity_manager_view_check_add_password (IdentityManagerView* self, IdCard* identity, IdentityRequest* request, IdentityManagerModel* model) {
2775         IdCard* result = NULL;
2776         IdCard* retval = NULL;
2777         IdCard* _tmp0_ = NULL;
2778         IdCard* _tmp1_ = NULL;
2779         gboolean _tmp2_ = FALSE;
2780         IdCard* _tmp3_ = NULL;
2781         const gchar* _tmp4_ = NULL;
2782         const gchar* _tmp5_ = NULL;
2783         gboolean idcard_has_pw = FALSE;
2784         gboolean _tmp9_ = FALSE;
2785         IdentityRequest* _tmp10_ = NULL;
2786         const gchar* _tmp11_ = NULL;
2787         gboolean request_has_pw = FALSE;
2788         gboolean _tmp14_ = FALSE;
2789         gboolean _tmp15_ = FALSE;
2790 #line 519 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2791         g_return_val_if_fail (self != NULL, NULL);
2792 #line 519 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2793         g_return_val_if_fail (identity != NULL, NULL);
2794 #line 519 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2795         g_return_val_if_fail (request != NULL, NULL);
2796 #line 519 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2797         g_return_val_if_fail (model != NULL, NULL);
2798 #line 521 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2799         _tmp0_ = identity;
2800 #line 521 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2801         _tmp1_ = _g_object_ref0 (_tmp0_);
2802 #line 521 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2803         retval = _tmp1_;
2804 #line 522 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2805         _tmp3_ = identity;
2806 #line 522 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2807         _tmp4_ = id_card_get_password (_tmp3_);
2808 #line 522 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2809         _tmp5_ = _tmp4_;
2810 #line 522 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2811         if (_tmp5_ != NULL) {
2812 #line 2812 "moonshot-identity-management-view.c"
2813                 IdCard* _tmp6_ = NULL;
2814                 const gchar* _tmp7_ = NULL;
2815                 const gchar* _tmp8_ = NULL;
2816 #line 522 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2817                 _tmp6_ = identity;
2818 #line 522 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2819                 _tmp7_ = id_card_get_password (_tmp6_);
2820 #line 522 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2821                 _tmp8_ = _tmp7_;
2822 #line 522 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2823                 _tmp2_ = g_strcmp0 (_tmp8_, "") != 0;
2824 #line 2824 "moonshot-identity-management-view.c"
2825         } else {
2826 #line 522 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2827                 _tmp2_ = FALSE;
2828 #line 2828 "moonshot-identity-management-view.c"
2829         }
2830 #line 522 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2831         idcard_has_pw = _tmp2_;
2832 #line 523 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2833         _tmp10_ = request;
2834 #line 523 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2835         _tmp11_ = _tmp10_->password;
2836 #line 523 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2837         if (_tmp11_ != NULL) {
2838 #line 2838 "moonshot-identity-management-view.c"
2839                 IdentityRequest* _tmp12_ = NULL;
2840                 const gchar* _tmp13_ = NULL;
2841 #line 523 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2842                 _tmp12_ = request;
2843 #line 523 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2844                 _tmp13_ = _tmp12_->password;
2845 #line 523 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2846                 _tmp9_ = g_strcmp0 (_tmp13_, "") != 0;
2847 #line 2847 "moonshot-identity-management-view.c"
2848         } else {
2849 #line 523 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2850                 _tmp9_ = FALSE;
2851 #line 2851 "moonshot-identity-management-view.c"
2852         }
2853 #line 523 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2854         request_has_pw = _tmp9_;
2855 #line 524 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2856         _tmp15_ = idcard_has_pw;
2857 #line 524 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2858         if (!_tmp15_) {
2859 #line 2859 "moonshot-identity-management-view.c"
2860                 IdCard* _tmp16_ = NULL;
2861                 gboolean _tmp17_ = FALSE;
2862 #line 524 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2863                 _tmp16_ = identity;
2864 #line 524 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2865                 _tmp17_ = id_card_IsNoIdentity (_tmp16_);
2866 #line 524 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2867                 _tmp14_ = !_tmp17_;
2868 #line 2868 "moonshot-identity-management-view.c"
2869         } else {
2870 #line 524 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2871                 _tmp14_ = FALSE;
2872 #line 2872 "moonshot-identity-management-view.c"
2873         }
2874 #line 524 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2875         if (_tmp14_) {
2876 #line 2876 "moonshot-identity-management-view.c"
2877                 gboolean _tmp18_ = FALSE;
2878 #line 525 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2879                 _tmp18_ = request_has_pw;
2880 #line 525 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2881                 if (_tmp18_) {
2882 #line 2882 "moonshot-identity-management-view.c"
2883                         IdCard* _tmp19_ = NULL;
2884                         IdentityRequest* _tmp20_ = NULL;
2885                         const gchar* _tmp21_ = NULL;
2886                         IdentityManagerModel* _tmp22_ = NULL;
2887                         IdCard* _tmp23_ = NULL;
2888                         IdCard* _tmp24_ = NULL;
2889 #line 526 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2890                         _tmp19_ = identity;
2891 #line 526 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2892                         _tmp20_ = request;
2893 #line 526 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2894                         _tmp21_ = _tmp20_->password;
2895 #line 526 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2896                         id_card_set_password (_tmp19_, _tmp21_);
2897 #line 527 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2898                         _tmp22_ = model;
2899 #line 527 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2900                         _tmp23_ = identity;
2901 #line 527 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2902                         _tmp24_ = identity_manager_model_update_card (_tmp22_, _tmp23_);
2903 #line 527 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2904                         _g_object_unref0 (retval);
2905 #line 527 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2906                         retval = _tmp24_;
2907 #line 2907 "moonshot-identity-management-view.c"
2908                 } else {
2909                         AddPasswordDialog* dialog = NULL;
2910                         IdCard* _tmp25_ = NULL;
2911                         IdentityRequest* _tmp26_ = NULL;
2912                         AddPasswordDialog* _tmp27_ = NULL;
2913                         gint _result_ = 0;
2914                         AddPasswordDialog* _tmp28_ = NULL;
2915                         gint _tmp29_ = 0;
2916                         gint _tmp30_ = 0;
2917                         AddPasswordDialog* _tmp46_ = NULL;
2918 #line 529 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2919                         _tmp25_ = identity;
2920 #line 529 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2921                         _tmp26_ = request;
2922 #line 529 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2923                         _tmp27_ = add_password_dialog_new (_tmp25_, _tmp26_);
2924 #line 529 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2925                         g_object_ref_sink (_tmp27_);
2926 #line 529 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2927                         dialog = _tmp27_;
2928 #line 530 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2929                         _tmp28_ = dialog;
2930 #line 530 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2931                         _tmp29_ = gtk_dialog_run ((GtkDialog*) _tmp28_);
2932 #line 530 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2933                         _result_ = _tmp29_;
2934 #line 532 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2935                         _tmp30_ = _result_;
2936 #line 532 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2937                         switch (_tmp30_) {
2938 #line 532 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2939                                 case GTK_RESPONSE_OK:
2940 #line 2940 "moonshot-identity-management-view.c"
2941                                 {
2942                                         IdCard* _tmp31_ = NULL;
2943                                         AddPasswordDialog* _tmp32_ = NULL;
2944                                         const gchar* _tmp33_ = NULL;
2945                                         const gchar* _tmp34_ = NULL;
2946                                         IdCard* _tmp35_ = NULL;
2947                                         AddPasswordDialog* _tmp36_ = NULL;
2948                                         gboolean _tmp37_ = FALSE;
2949                                         gboolean _tmp38_ = FALSE;
2950                                         AddPasswordDialog* _tmp39_ = NULL;
2951                                         gboolean _tmp40_ = FALSE;
2952                                         gboolean _tmp41_ = FALSE;
2953                                         IdentityManagerModel* _tmp43_ = NULL;
2954                                         IdCard* _tmp44_ = NULL;
2955                                         IdCard* _tmp45_ = NULL;
2956 #line 534 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2957                                         _tmp31_ = identity;
2958 #line 534 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2959                                         _tmp32_ = dialog;
2960 #line 534 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2961                                         _tmp33_ = add_password_dialog_get_password (_tmp32_);
2962 #line 534 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2963                                         _tmp34_ = _tmp33_;
2964 #line 534 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2965                                         id_card_set_password (_tmp31_, _tmp34_);
2966 #line 535 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2967                                         _tmp35_ = identity;
2968 #line 535 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2969                                         _tmp36_ = dialog;
2970 #line 535 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2971                                         _tmp37_ = add_password_dialog_get_remember (_tmp36_);
2972 #line 535 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2973                                         _tmp38_ = _tmp37_;
2974 #line 535 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2975                                         id_card_set_store_password (_tmp35_, _tmp38_);
2976 #line 536 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2977                                         _tmp39_ = dialog;
2978 #line 536 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2979                                         _tmp40_ = add_password_dialog_get_remember (_tmp39_);
2980 #line 536 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2981                                         _tmp41_ = _tmp40_;
2982 #line 536 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2983                                         if (_tmp41_) {
2984 #line 2984 "moonshot-identity-management-view.c"
2985                                                 IdCard* _tmp42_ = NULL;
2986 #line 537 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2987                                                 _tmp42_ = identity;
2988 #line 537 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2989                                                 id_card_set_temporary (_tmp42_, FALSE);
2990 #line 2990 "moonshot-identity-management-view.c"
2991                                         }
2992 #line 538 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2993                                         _tmp43_ = model;
2994 #line 538 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2995                                         _tmp44_ = identity;
2996 #line 538 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2997                                         _tmp45_ = identity_manager_model_update_card (_tmp43_, _tmp44_);
2998 #line 538 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
2999                                         _g_object_unref0 (retval);
3000 #line 538 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3001                                         retval = _tmp45_;
3002 #line 539 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3003                                         break;
3004 #line 3004 "moonshot-identity-management-view.c"
3005                                 }
3006                                 default:
3007                                 {
3008 #line 541 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3009                                         identity = NULL;
3010 #line 542 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3011                                         break;
3012 #line 3012 "moonshot-identity-management-view.c"
3013                                 }
3014                         }
3015 #line 544 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3016                         _tmp46_ = dialog;
3017 #line 544 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3018                         gtk_object_destroy ((GtkObject*) _tmp46_);
3019 #line 525 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3020                         _g_object_unref0 (dialog);
3021 #line 3021 "moonshot-identity-management-view.c"
3022                 }
3023         }
3024 #line 547 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3025         result = retval;
3026 #line 547 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3027         return result;
3028 #line 3028 "moonshot-identity-management-view.c"
3029 }
3030
3031
3032 void identity_manager_view_send_identity_cb (IdentityManagerView* self, IdCard* id) {
3033         IdCard* identity = NULL;
3034         IdCard* _tmp0_ = NULL;
3035         IdCard* _tmp1_ = NULL;
3036         GQueue* _tmp2_ = NULL;
3037         guint _tmp3_ = 0U;
3038         IdentityRequest* request = NULL;
3039         GQueue* _tmp4_ = NULL;
3040         gpointer _tmp5_ = NULL;
3041         IdCard* _tmp6_ = NULL;
3042         IdentityRequest* _tmp7_ = NULL;
3043         IdentityManagerModel* _tmp8_ = NULL;
3044         IdCard* _tmp9_ = NULL;
3045         GQueue* _tmp10_ = NULL;
3046         gboolean _tmp11_ = FALSE;
3047         GtkTreeModelFilter* _tmp23_ = NULL;
3048         gboolean _tmp24_ = FALSE;
3049         IdCard* _tmp25_ = NULL;
3050         IdentityRequest* _tmp31_ = NULL;
3051         IdCard* _tmp32_ = NULL;
3052 #line 550 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3053         g_return_if_fail (self != NULL);
3054 #line 550 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3055         g_return_if_fail (id != NULL);
3056 #line 552 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3057         _tmp0_ = id;
3058 #line 552 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3059         _tmp1_ = _g_object_ref0 (_tmp0_);
3060 #line 552 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3061         identity = _tmp1_;
3062 #line 553 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3063         _tmp2_ = self->request_queue;
3064 #line 553 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3065         _tmp3_ = _tmp2_->length;
3066 #line 553 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3067         g_return_if_fail (_tmp3_ > ((guint) 0));
3068 #line 555 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3069         self->priv->candidates = NULL;
3070 #line 556 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3071         _tmp4_ = self->request_queue;
3072 #line 556 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3073         _tmp5_ = g_queue_pop_head (_tmp4_);
3074 #line 556 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3075         request = (IdentityRequest*) _tmp5_;
3076 #line 557 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3077         _tmp6_ = identity;
3078 #line 557 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3079         _tmp7_ = request;
3080 #line 557 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3081         _tmp8_ = self->identities_manager;
3082 #line 557 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3083         _tmp9_ = identity_manager_view_check_add_password (self, _tmp6_, _tmp7_, _tmp8_);
3084 #line 557 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3085         _g_object_unref0 (identity);
3086 #line 557 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3087         identity = _tmp9_;
3088 #line 558 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3089         _tmp10_ = self->request_queue;
3090 #line 558 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3091         _tmp11_ = g_queue_is_empty (_tmp10_);
3092 #line 558 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3093         if (_tmp11_) {
3094 #line 3094 "moonshot-identity-management-view.c"
3095                 GtkLabel* _tmp12_ = NULL;
3096                 const gchar* _tmp13_ = NULL;
3097                 IdentityManagerApp* _tmp14_ = NULL;
3098                 gboolean _tmp15_ = FALSE;
3099 #line 560 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3100                 self->priv->candidates = NULL;
3101 #line 561 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3102                 _tmp12_ = self->priv->prompting_service;
3103 #line 561 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3104                 _tmp13_ = _ ("");
3105 #line 561 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3106                 gtk_label_set_label (_tmp12_, _tmp13_);
3107 #line 562 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3108                 _tmp14_ = self->parent_app;
3109 #line 562 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3110                 _tmp15_ = _tmp14_->explicitly_launched;
3111 #line 562 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3112                 if (!_tmp15_) {
3113 #line 567 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3114                         gtk_widget_hide ((GtkWidget*) self);
3115 #line 3115 "moonshot-identity-management-view.c"
3116                 }
3117         } else {
3118                 IdentityRequest* next = NULL;
3119                 GQueue* _tmp16_ = NULL;
3120                 gconstpointer _tmp17_ = NULL;
3121                 IdentityRequest* _tmp18_ = NULL;
3122                 IdentityRequest* _tmp19_ = NULL;
3123                 GSList* _tmp20_ = NULL;
3124                 IdentityRequest* _tmp21_ = NULL;
3125                 const gchar* _tmp22_ = NULL;
3126 #line 570 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3127                 _tmp16_ = self->request_queue;
3128 #line 570 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3129                 _tmp17_ = g_queue_peek_head (_tmp16_);
3130 #line 570 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3131                 _tmp18_ = _g_object_ref0 ((IdentityRequest*) _tmp17_);
3132 #line 570 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3133                 next = _tmp18_;
3134 #line 571 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3135                 _tmp19_ = next;
3136 #line 571 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3137                 _tmp20_ = _tmp19_->candidates;
3138 #line 571 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3139                 self->priv->candidates = _tmp20_;
3140 #line 572 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3141                 _tmp21_ = next;
3142 #line 572 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3143                 _tmp22_ = _tmp21_->service;
3144 #line 572 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3145                 identity_manager_view_set_prompting_service (self, _tmp22_);
3146 #line 558 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3147                 _g_object_unref0 (next);
3148 #line 3148 "moonshot-identity-management-view.c"
3149         }
3150 #line 574 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3151         _tmp23_ = self->priv->filter;
3152 #line 574 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3153         gtk_tree_model_filter_refilter (_tmp23_);
3154 #line 575 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3155         identity_manager_view_redraw_id_card_widgets (self);
3156 #line 577 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3157         _tmp25_ = identity;
3158 #line 577 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3159         if (_tmp25_ != NULL) {
3160 #line 3160 "moonshot-identity-management-view.c"
3161                 IdCard* _tmp26_ = NULL;
3162                 gboolean _tmp27_ = FALSE;
3163 #line 577 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3164                 _tmp26_ = identity;
3165 #line 577 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3166                 _tmp27_ = id_card_IsNoIdentity (_tmp26_);
3167 #line 577 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3168                 _tmp24_ = !_tmp27_;
3169 #line 3169 "moonshot-identity-management-view.c"
3170         } else {
3171 #line 577 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3172                 _tmp24_ = FALSE;
3173 #line 3173 "moonshot-identity-management-view.c"
3174         }
3175 #line 577 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3176         if (_tmp24_) {
3177 #line 3177 "moonshot-identity-management-view.c"
3178                 IdentityManagerApp* _tmp28_ = NULL;
3179                 IdCard* _tmp29_ = NULL;
3180                 IdCard* _tmp30_ = NULL;
3181 #line 578 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3182                 _tmp28_ = self->parent_app;
3183 #line 578 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3184                 _tmp29_ = identity;
3185 #line 578 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3186                 _tmp30_ = _g_object_ref0 (_tmp29_);
3187 #line 578 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3188                 _g_object_unref0 (_tmp28_->default_id_card);
3189 #line 578 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3190                 _tmp28_->default_id_card = _tmp30_;
3191 #line 3191 "moonshot-identity-management-view.c"
3192         }
3193 #line 580 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3194         _tmp31_ = request;
3195 #line 580 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3196         _tmp32_ = identity;
3197 #line 580 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3198         identity_request_return_identity (_tmp31_, _tmp32_);
3199 #line 550 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3200         _g_object_unref0 (request);
3201 #line 550 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3202         _g_object_unref0 (identity);
3203 #line 3203 "moonshot-identity-management-view.c"
3204 }
3205
3206
3207 static void _vala_PangoFontDescription_free (PangoFontDescription* self) {
3208 #line 583 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3209         g_boxed_free (pango_font_description_get_type (), self);
3210 #line 3210 "moonshot-identity-management-view.c"
3211 }
3212
3213
3214 static void identity_manager_view_label_make_bold (IdentityManagerView* self, GtkLabel* label) {
3215         PangoFontDescription* font_desc = NULL;
3216         PangoFontDescription* _tmp0_ = NULL;
3217         GtkLabel* _tmp1_ = NULL;
3218 #line 583 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3219         g_return_if_fail (self != NULL);
3220 #line 583 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3221         g_return_if_fail (label != NULL);
3222 #line 585 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3223         _tmp0_ = pango_font_description_new ();
3224 #line 585 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3225         font_desc = _tmp0_;
3226 #line 587 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3227         pango_font_description_set_weight (font_desc, PANGO_WEIGHT_BOLD);
3228 #line 594 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3229         _tmp1_ = label;
3230 #line 594 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3231         gtk_widget_modify_font ((GtkWidget*) _tmp1_, font_desc);
3232 #line 583 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3233         __vala_PangoFontDescription_free0 (font_desc);
3234 #line 3234 "moonshot-identity-management-view.c"
3235 }
3236
3237
3238 static void _g_slist_free__g_free0_ (GSList* self) {
3239 #line 640 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3240         g_slist_foreach (self, (GFunc) _g_free0_, NULL);
3241 #line 640 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3242         g_slist_free (self);
3243 #line 3243 "moonshot-identity-management-view.c"
3244 }
3245
3246
3247 static void ____lambda5_ (IdentityManagerView* self, GtkButton* remove_button) {
3248         gchar* candidate = NULL;
3249         GHashTable* _tmp0_ = NULL;
3250         GtkButton* _tmp1_ = NULL;
3251         gconstpointer _tmp2_ = NULL;
3252         gchar* _tmp3_ = NULL;
3253         const gchar* _tmp4_ = NULL;
3254         GtkMessageDialog* dialog = NULL;
3255         const gchar* _tmp5_ = NULL;
3256         CustomVBox* _tmp6_ = NULL;
3257         IdCardWidget* _tmp7_ = NULL;
3258         IdCardWidget* _tmp8_ = NULL;
3259         IdCard* _tmp9_ = NULL;
3260         IdCard* _tmp10_ = NULL;
3261         const gchar* _tmp11_ = NULL;
3262         const gchar* _tmp12_ = NULL;
3263         const gchar* _tmp13_ = NULL;
3264         GtkMessageDialog* _tmp14_ = NULL;
3265         gint ret = 0;
3266         GtkMessageDialog* _tmp15_ = NULL;
3267         gint _tmp16_ = 0;
3268         GtkMessageDialog* _tmp17_ = NULL;
3269         gint _tmp18_ = 0;
3270 #line 622 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3271         g_return_if_fail (remove_button != NULL);
3272 #line 624 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3273         _tmp0_ = self->priv->service_button_map;
3274 #line 624 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3275         _tmp1_ = remove_button;
3276 #line 624 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3277         _tmp2_ = g_hash_table_lookup (_tmp0_, _tmp1_);
3278 #line 624 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3279         _tmp3_ = g_strdup ((const gchar*) _tmp2_);
3280 #line 624 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3281         candidate = _tmp3_;
3282 #line 625 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3283         _tmp4_ = candidate;
3284 #line 625 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3285         if (_tmp4_ == NULL) {
3286 #line 626 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3287                 _g_free0 (candidate);
3288 #line 626 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3289                 return;
3290 #line 3290 "moonshot-identity-management-view.c"
3291         }
3292 #line 627 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3293         _tmp5_ = _ ("Are you sure you want to stop '%s' ID Card from being used with %s?");
3294 #line 627 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3295         _tmp6_ = self->priv->custom_vbox;
3296 #line 627 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3297         _tmp7_ = custom_vbox_get_current_idcard (_tmp6_);
3298 #line 627 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3299         _tmp8_ = _tmp7_;
3300 #line 627 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3301         _tmp9_ = id_card_widget_get_id_card (_tmp8_);
3302 #line 627 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3303         _tmp10_ = _tmp9_;
3304 #line 627 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3305         _tmp11_ = id_card_get_display_name (_tmp10_);
3306 #line 627 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3307         _tmp12_ = _tmp11_;
3308 #line 627 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3309         _tmp13_ = candidate;
3310 #line 627 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3311         _tmp14_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) self, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, _tmp5_, _tmp12_, _tmp13_);
3312 #line 627 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3313         g_object_ref_sink (_tmp14_);
3314 #line 627 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3315         dialog = _tmp14_;
3316 #line 634 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3317         _tmp15_ = dialog;
3318 #line 634 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3319         _tmp16_ = gtk_dialog_run ((GtkDialog*) _tmp15_);
3320 #line 634 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3321         ret = _tmp16_;
3322 #line 635 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3323         _tmp17_ = dialog;
3324 #line 635 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3325         gtk_widget_hide ((GtkWidget*) _tmp17_);
3326 #line 637 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3327         _tmp18_ = ret;
3328 #line 637 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3329         if (_tmp18_ == ((gint) GTK_RESPONSE_YES)) {
3330 #line 3330 "moonshot-identity-management-view.c"
3331                 IdCard* idcard = NULL;
3332                 CustomVBox* _tmp19_ = NULL;
3333                 IdCardWidget* _tmp20_ = NULL;
3334                 IdCardWidget* _tmp21_ = NULL;
3335                 IdCard* _tmp22_ = NULL;
3336                 IdCard* _tmp23_ = NULL;
3337                 IdCard* _tmp24_ = NULL;
3338                 IdCard* _tmp25_ = NULL;
3339 #line 639 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3340                 _tmp19_ = self->priv->custom_vbox;
3341 #line 639 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3342                 _tmp20_ = custom_vbox_get_current_idcard (_tmp19_);
3343 #line 639 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3344                 _tmp21_ = _tmp20_;
3345 #line 639 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3346                 _tmp22_ = id_card_widget_get_id_card (_tmp21_);
3347 #line 639 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3348                 _tmp23_ = _tmp22_;
3349 #line 639 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3350                 _tmp24_ = _g_object_ref0 (_tmp23_);
3351 #line 639 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3352                 idcard = _tmp24_;
3353 #line 640 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3354                 _tmp25_ = idcard;
3355 #line 640 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3356                 if (_tmp25_ != NULL) {
3357 #line 3357 "moonshot-identity-management-view.c"
3358                         GSList* services = NULL;
3359                         IdCard* _tmp26_ = NULL;
3360                         gchar** _tmp27_ = NULL;
3361                         gint _tmp27__length1 = 0;
3362                         gchar** _tmp28_ = NULL;
3363                         gint _tmp28__length1 = 0;
3364                         IdCard* _tmp34_ = NULL;
3365                         GSList* _tmp35_ = NULL;
3366                         guint _tmp36_ = 0U;
3367                         gchar** _tmp37_ = NULL;
3368                         gchar** _tmp38_ = NULL;
3369                         gint _tmp38__length1 = 0;
3370                         IdentityManagerModel* _tmp54_ = NULL;
3371                         IdCard* _tmp55_ = NULL;
3372                         IdCard* _tmp56_ = NULL;
3373                         IdCard* _tmp57_ = NULL;
3374 #line 641 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3375                         services = NULL;
3376 #line 643 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3377                         _tmp26_ = idcard;
3378 #line 643 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3379                         _tmp27_ = id_card_get_services (_tmp26_, &_tmp27__length1);
3380 #line 643 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3381                         _tmp28_ = _tmp27_;
3382 #line 643 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3383                         _tmp28__length1 = _tmp27__length1;
3384 #line 3384 "moonshot-identity-management-view.c"
3385                         {
3386                                 gchar** srv_collection = NULL;
3387                                 gint srv_collection_length1 = 0;
3388                                 gint _srv_collection_size_ = 0;
3389                                 gint srv_it = 0;
3390 #line 643 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3391                                 srv_collection = _tmp28_;
3392 #line 643 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3393                                 srv_collection_length1 = _tmp28__length1;
3394 #line 643 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3395                                 for (srv_it = 0; srv_it < _tmp28__length1; srv_it = srv_it + 1) {
3396 #line 3396 "moonshot-identity-management-view.c"
3397                                         gchar* _tmp29_ = NULL;
3398                                         gchar* srv = NULL;
3399 #line 643 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3400                                         _tmp29_ = g_strdup (srv_collection[srv_it]);
3401 #line 643 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3402                                         srv = _tmp29_;
3403 #line 3403 "moonshot-identity-management-view.c"
3404                                         {
3405                                                 const gchar* _tmp30_ = NULL;
3406                                                 const gchar* _tmp31_ = NULL;
3407                                                 const gchar* _tmp32_ = NULL;
3408                                                 gchar* _tmp33_ = NULL;
3409 #line 645 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3410                                                 _tmp30_ = srv;
3411 #line 645 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3412                                                 _tmp31_ = candidate;
3413 #line 645 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3414                                                 if (g_strcmp0 (_tmp30_, _tmp31_) == 0) {
3415 #line 646 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3416                                                         _g_free0 (srv);
3417 #line 646 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3418                                                         continue;
3419 #line 3419 "moonshot-identity-management-view.c"
3420                                                 }
3421 #line 647 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3422                                                 _tmp32_ = srv;
3423 #line 647 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3424                                                 _tmp33_ = g_strdup (_tmp32_);
3425 #line 647 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3426                                                 services = g_slist_append (services, _tmp33_);
3427 #line 643 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3428                                                 _g_free0 (srv);
3429 #line 3429 "moonshot-identity-management-view.c"
3430                                         }
3431                                 }
3432                         }
3433 #line 650 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3434                         _tmp34_ = idcard;
3435 #line 650 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3436                         _tmp35_ = services;
3437 #line 650 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3438                         _tmp36_ = g_slist_length (_tmp35_);
3439 #line 650 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3440                         _tmp37_ = g_new0 (gchar*, _tmp36_ + 1);
3441 #line 650 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3442                         _tmp38_ = _tmp37_;
3443 #line 650 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3444                         _tmp38__length1 = _tmp36_;
3445 #line 650 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3446                         id_card_set_services (_tmp34_, _tmp38_, _tmp36_);
3447 #line 650 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3448                         _tmp38_ = (_vala_array_free (_tmp38_, _tmp38__length1, (GDestroyNotify) g_free), NULL);
3449 #line 3449 "moonshot-identity-management-view.c"
3450                         {
3451                                 gint j = 0;
3452 #line 651 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3453                                 j = 0;
3454 #line 3454 "moonshot-identity-management-view.c"
3455                                 {
3456                                         gboolean _tmp39_ = FALSE;
3457 #line 651 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3458                                         _tmp39_ = TRUE;
3459 #line 651 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3460                                         while (TRUE) {
3461 #line 3461 "moonshot-identity-management-view.c"
3462                                                 gint _tmp41_ = 0;
3463                                                 IdCard* _tmp42_ = NULL;
3464                                                 gchar** _tmp43_ = NULL;
3465                                                 gint _tmp43__length1 = 0;
3466                                                 gchar** _tmp44_ = NULL;
3467                                                 gint _tmp44__length1 = 0;
3468                                                 IdCard* _tmp45_ = NULL;
3469                                                 gchar** _tmp46_ = NULL;
3470                                                 gint _tmp46__length1 = 0;
3471                                                 gchar** _tmp47_ = NULL;
3472                                                 gint _tmp47__length1 = 0;
3473                                                 gint _tmp48_ = 0;
3474                                                 GSList* _tmp49_ = NULL;
3475                                                 gint _tmp50_ = 0;
3476                                                 gconstpointer _tmp51_ = NULL;
3477                                                 gchar* _tmp52_ = NULL;
3478                                                 gchar* _tmp53_ = NULL;
3479 #line 651 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3480                                                 if (!_tmp39_) {
3481 #line 3481 "moonshot-identity-management-view.c"
3482                                                         gint _tmp40_ = 0;
3483 #line 651 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3484                                                         _tmp40_ = j;
3485 #line 651 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3486                                                         j = _tmp40_ + 1;
3487 #line 3487 "moonshot-identity-management-view.c"
3488                                                 }
3489 #line 651 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3490                                                 _tmp39_ = FALSE;
3491 #line 651 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3492                                                 _tmp41_ = j;
3493 #line 651 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3494                                                 _tmp42_ = idcard;
3495 #line 651 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3496                                                 _tmp43_ = id_card_get_services (_tmp42_, &_tmp43__length1);
3497 #line 651 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3498                                                 _tmp44_ = _tmp43_;
3499 #line 651 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3500                                                 _tmp44__length1 = _tmp43__length1;
3501 #line 651 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3502                                                 if (!(_tmp41_ < _tmp44__length1)) {
3503 #line 651 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3504                                                         break;
3505 #line 3505 "moonshot-identity-management-view.c"
3506                                                 }
3507 #line 653 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3508                                                 _tmp45_ = idcard;
3509 #line 653 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3510                                                 _tmp46_ = id_card_get_services (_tmp45_, &_tmp46__length1);
3511 #line 653 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3512                                                 _tmp47_ = _tmp46_;
3513 #line 653 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3514                                                 _tmp47__length1 = _tmp46__length1;
3515 #line 653 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3516                                                 _tmp48_ = j;
3517 #line 653 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3518                                                 _tmp49_ = services;
3519 #line 653 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3520                                                 _tmp50_ = j;
3521 #line 653 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3522                                                 _tmp51_ = g_slist_nth_data (_tmp49_, (guint) _tmp50_);
3523 #line 653 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3524                                                 _tmp52_ = g_strdup ((const gchar*) _tmp51_);
3525 #line 653 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3526                                                 _g_free0 (_tmp47_[_tmp48_]);
3527 #line 653 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3528                                                 _tmp47_[_tmp48_] = _tmp52_;
3529 #line 653 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3530                                                 _tmp53_ = _tmp47_[_tmp48_];
3531 #line 3531 "moonshot-identity-management-view.c"
3532                                         }
3533                                 }
3534                         }
3535 #line 656 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3536                         _tmp54_ = self->identities_manager;
3537 #line 656 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3538                         _tmp55_ = idcard;
3539 #line 656 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3540                         _tmp56_ = identity_manager_model_update_card (_tmp54_, _tmp55_);
3541 #line 656 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3542                         _tmp57_ = _tmp56_;
3543 #line 656 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3544                         _g_object_unref0 (_tmp57_);
3545 #line 640 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3546                         __g_slist_free__g_free0_0 (services);
3547 #line 3547 "moonshot-identity-management-view.c"
3548                 }
3549 #line 637 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3550                 _g_object_unref0 (idcard);
3551 #line 3551 "moonshot-identity-management-view.c"
3552         }
3553 #line 622 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3554         _g_object_unref0 (dialog);
3555 #line 622 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3556         _g_free0 (candidate);
3557 #line 3557 "moonshot-identity-management-view.c"
3558 }
3559
3560
3561 static void _____lambda5__gtk_button_clicked (GtkButton* _sender, gpointer self) {
3562 #line 622 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3563         ____lambda5_ ((IdentityManagerView*) self, _sender);
3564 #line 3564 "moonshot-identity-management-view.c"
3565 }
3566
3567
3568 static void identity_manager_view_fill_services_vbox (IdentityManagerView* self, IdCard* id_card) {
3569         gint i = 0;
3570         gint n_columns = 0;
3571         IdCard* _tmp0_ = NULL;
3572         gchar** _tmp1_ = NULL;
3573         gint _tmp1__length1 = 0;
3574         gchar** _tmp2_ = NULL;
3575         gint _tmp2__length1 = 0;
3576         GtkTable* services_table = NULL;
3577         gint _tmp3_ = 0;
3578         GtkTable* _tmp4_ = NULL;
3579         GtkTable* _tmp5_ = NULL;
3580         GtkTable* _tmp6_ = NULL;
3581         GtkVBox* _tmp7_ = NULL;
3582         GtkTable* _tmp8_ = NULL;
3583         GHashTable* _tmp9_ = NULL;
3584         IdCard* _tmp10_ = NULL;
3585         gchar** _tmp11_ = NULL;
3586         gint _tmp11__length1 = 0;
3587         gchar** _tmp12_ = NULL;
3588         gint _tmp12__length1 = 0;
3589         GtkVBox* _tmp33_ = NULL;
3590 #line 597 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3591         g_return_if_fail (self != NULL);
3592 #line 597 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3593         g_return_if_fail (id_card != NULL);
3594 #line 599 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3595         i = 0;
3596 #line 600 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3597         _tmp0_ = id_card;
3598 #line 600 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3599         _tmp1_ = id_card_get_services (_tmp0_, &_tmp1__length1);
3600 #line 600 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3601         _tmp2_ = _tmp1_;
3602 #line 600 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3603         _tmp2__length1 = _tmp1__length1;
3604 #line 600 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3605         n_columns = _tmp2__length1;
3606 #line 602 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3607         _tmp3_ = n_columns;
3608 #line 602 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3609         _tmp4_ = (GtkTable*) gtk_table_new ((guint) _tmp3_, (guint) 2, FALSE);
3610 #line 602 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3611         g_object_ref_sink (_tmp4_);
3612 #line 602 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3613         services_table = _tmp4_;
3614 #line 603 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3615         _tmp5_ = services_table;
3616 #line 603 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3617         gtk_table_set_col_spacings (_tmp5_, (guint) 10);
3618 #line 604 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3619         _tmp6_ = services_table;
3620 #line 604 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3621         gtk_table_set_row_spacings (_tmp6_, (guint) 10);
3622 #line 605 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3623         _tmp7_ = self->priv->services_internal_vbox;
3624 #line 605 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3625         _tmp8_ = services_table;
3626 #line 605 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3627         gtk_container_add ((GtkContainer*) _tmp7_, (GtkWidget*) _tmp8_);
3628 #line 607 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3629         _tmp9_ = self->priv->service_button_map;
3630 #line 607 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3631         g_hash_table_remove_all (_tmp9_);
3632 #line 609 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3633         _tmp10_ = id_card;
3634 #line 609 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3635         _tmp11_ = id_card_get_services (_tmp10_, &_tmp11__length1);
3636 #line 609 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3637         _tmp12_ = _tmp11_;
3638 #line 609 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3639         _tmp12__length1 = _tmp11__length1;
3640 #line 3640 "moonshot-identity-management-view.c"
3641         {
3642                 gchar** service_collection = NULL;
3643                 gint service_collection_length1 = 0;
3644                 gint _service_collection_size_ = 0;
3645                 gint service_it = 0;
3646 #line 609 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3647                 service_collection = _tmp12_;
3648 #line 609 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3649                 service_collection_length1 = _tmp12__length1;
3650 #line 609 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3651                 for (service_it = 0; service_it < _tmp12__length1; service_it = service_it + 1) {
3652 #line 3652 "moonshot-identity-management-view.c"
3653                         gchar* _tmp13_ = NULL;
3654                         gchar* service = NULL;
3655 #line 609 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3656                         _tmp13_ = g_strdup (service_collection[service_it]);
3657 #line 609 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3658                         service = _tmp13_;
3659 #line 3659 "moonshot-identity-management-view.c"
3660                         {
3661                                 GtkLabel* label = NULL;
3662                                 const gchar* _tmp14_ = NULL;
3663                                 GtkLabel* _tmp15_ = NULL;
3664                                 GtkLabel* _tmp16_ = NULL;
3665                                 GtkButton* remove_button = NULL;
3666                                 GtkButton* _tmp17_ = NULL;
3667                                 GHashTable* _tmp18_ = NULL;
3668                                 GtkButton* _tmp19_ = NULL;
3669                                 GtkButton* _tmp20_ = NULL;
3670                                 const gchar* _tmp21_ = NULL;
3671                                 gchar* _tmp22_ = NULL;
3672                                 GtkButton* _tmp23_ = NULL;
3673                                 GtkTable* _tmp24_ = NULL;
3674                                 GtkLabel* _tmp25_ = NULL;
3675                                 gint _tmp26_ = 0;
3676                                 gint _tmp27_ = 0;
3677                                 GtkTable* _tmp28_ = NULL;
3678                                 GtkButton* _tmp29_ = NULL;
3679                                 gint _tmp30_ = 0;
3680                                 gint _tmp31_ = 0;
3681                                 gint _tmp32_ = 0;
3682 #line 611 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3683                                 _tmp14_ = service;
3684 #line 611 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3685                                 _tmp15_ = (GtkLabel*) gtk_label_new (_tmp14_);
3686 #line 611 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3687                                 g_object_ref_sink (_tmp15_);
3688 #line 611 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3689                                 label = _tmp15_;
3690 #line 612 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3691                                 _tmp16_ = label;
3692 #line 612 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3693                                 gtk_misc_set_alignment ((GtkMisc*) _tmp16_, (gfloat) 0, (gfloat) 0.5);
3694 #line 614 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3695                                 _tmp17_ = (GtkButton*) gtk_button_new_from_stock (GTK_STOCK_REMOVE);
3696 #line 614 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3697                                 g_object_ref_sink (_tmp17_);
3698 #line 614 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3699                                 remove_button = _tmp17_;
3700 #line 620 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3701                                 _tmp18_ = self->priv->service_button_map;
3702 #line 620 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3703                                 _tmp19_ = remove_button;
3704 #line 620 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3705                                 _tmp20_ = _g_object_ref0 (_tmp19_);
3706 #line 620 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3707                                 _tmp21_ = service;
3708 #line 620 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3709                                 _tmp22_ = g_strdup (_tmp21_);
3710 #line 620 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3711                                 g_hash_table_insert (_tmp18_, _tmp20_, _tmp22_);
3712 #line 622 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3713                                 _tmp23_ = remove_button;
3714 #line 622 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3715                                 g_signal_connect_object (_tmp23_, "clicked", (GCallback) _____lambda5__gtk_button_clicked, self, 0);
3716 #line 661 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3717                                 _tmp24_ = services_table;
3718 #line 661 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3719                                 _tmp25_ = label;
3720 #line 661 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3721                                 _tmp26_ = i;
3722 #line 661 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3723                                 _tmp27_ = i;
3724 #line 661 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3725                                 gtk_table_attach_defaults (_tmp24_, (GtkWidget*) _tmp25_, (guint) 0, (guint) 1, (guint) _tmp26_, (guint) (_tmp27_ + 1));
3726 #line 662 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3727                                 _tmp28_ = services_table;
3728 #line 662 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3729                                 _tmp29_ = remove_button;
3730 #line 662 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3731                                 _tmp30_ = i;
3732 #line 662 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3733                                 _tmp31_ = i;
3734 #line 662 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3735                                 gtk_table_attach_defaults (_tmp28_, (GtkWidget*) _tmp29_, (guint) 1, (guint) 2, (guint) _tmp30_, (guint) (_tmp31_ + 1));
3736 #line 663 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3737                                 _tmp32_ = i;
3738 #line 663 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3739                                 i = _tmp32_ + 1;
3740 #line 609 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3741                                 _g_object_unref0 (remove_button);
3742 #line 609 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3743                                 _g_object_unref0 (label);
3744 #line 609 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3745                                 _g_free0 (service);
3746 #line 3746 "moonshot-identity-management-view.c"
3747                         }
3748                 }
3749         }
3750 #line 665 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3751         _tmp33_ = self->priv->services_internal_vbox;
3752 #line 665 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3753         gtk_widget_show_all ((GtkWidget*) _tmp33_);
3754 #line 597 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3755         _g_object_unref0 (services_table);
3756 #line 3756 "moonshot-identity-management-view.c"
3757 }
3758
3759
3760 static void identity_manager_view_on_about_action (IdentityManagerView* self) {
3761         gchar** authors = NULL;
3762         gchar* _tmp0_ = NULL;
3763         gchar* _tmp1_ = NULL;
3764         gchar* _tmp2_ = NULL;
3765         gchar** _tmp3_ = NULL;
3766         gint authors_length1 = 0;
3767         gint _authors_size_ = 0;
3768         gchar* copyright = NULL;
3769         gchar* _tmp4_ = NULL;
3770         gchar* license = NULL;
3771         gchar* _tmp5_ = NULL;
3772         const gchar* _tmp6_ = NULL;
3773         const gchar* _tmp7_ = NULL;
3774         const gchar* _tmp8_ = NULL;
3775 #line 668 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3776         g_return_if_fail (self != NULL);
3777 #line 670 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3778         _tmp0_ = g_strdup ("Javier Jardón <jjardon@codethink.co.uk>");
3779 #line 670 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3780         _tmp1_ = g_strdup ("Sam Thursfield <samthursfield@codethink.co.uk>");
3781 #line 670 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3782         _tmp2_ = g_strdup ("Alberto Ruiz <alberto.ruiz@codethink.co.uk>");
3783 #line 670 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3784         _tmp3_ = g_new0 (gchar*, 4 + 1);
3785 #line 670 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3786         _tmp3_[0] = _tmp0_;
3787 #line 670 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3788         _tmp3_[1] = _tmp1_;
3789 #line 670 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3790         _tmp3_[2] = _tmp2_;
3791 #line 670 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3792         _tmp3_[3] = NULL;
3793 #line 670 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3794         authors = _tmp3_;
3795 #line 670 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3796         authors_length1 = 4;
3797 #line 670 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3798         _authors_size_ = authors_length1;
3799 #line 677 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3800         _tmp4_ = g_strdup ("Copyright 2011 JANET");
3801 #line 677 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3802         copyright = _tmp4_;
3803 #line 679 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3804         _tmp5_ = g_strdup ("\n" \
3805 "Copyright (c) 2011, JANET(UK)\n" \
3806 "All rights reserved.\n" \
3807 "\n" \
3808 "Redistribution and use in source and binary forms, with or without\n" \
3809 "modification, are permitted provided that the following conditions\n" \
3810 "are met:\n" \
3811 "\n" \
3812 "1. Redistributions of source code must retain the above copyright\n" \
3813 "   notice, this list of conditions and the following disclaimer.\n" \
3814 "\n" \
3815 "2. Redistributions in binary form must reproduce the above copyright\n" \
3816 "   notice, this list of conditions and the following disclaimer in the" \
3817 "\n" \
3818 "   documentation and/or other materials provided with the distribution" \
3819 ".\n" \
3820 "\n" \
3821 "3. Neither the name of JANET(UK) nor the names of its contributors\n" \
3822 "   may be used to endorse or promote products derived from this softwa" \
3823 "re\n" \
3824 "   without specific prior written permission.\n" \
3825 "\n" \
3826 "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \\" \
3827 "\"AS IS\\\"\n" \
3828 "AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, " \
3829 "THE\n" \
3830 "IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PUR" \
3831 "POSE\n" \
3832 "ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS" \
3833 " BE LIABLE\n" \
3834 "FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUEN" \
3835 "TIAL\n" \
3836 "DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOOD" \
3837 "S\n" \
3838 "OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n" \
3839 "HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, ST" \
3840 "RICT\n" \
3841 "LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY " \
3842 "WAY\n" \
3843 "OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF" \
3844 "\n" \
3845 "SUCH DAMAGE.\n");
3846 #line 679 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3847         license = _tmp5_;
3848 #line 712 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3849         _tmp6_ = _ ("Moonshot project UI");
3850 #line 712 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3851         _tmp7_ = _ ("Visit the Moonshot project web site");
3852 #line 712 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3853         _tmp8_ = _ ("translator-credits");
3854 #line 712 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3855         gtk_show_about_dialog ((GtkWindow*) self, "comments", _tmp6_, "copyright", copyright, "website", PACKAGE_URL, "version", PACKAGE_VERSION, "license", license, "website-label", _tmp7_, "authors", authors, "translator-credits", _tmp8_, NULL, NULL);
3856 #line 668 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3857         _g_free0 (license);
3858 #line 668 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3859         _g_free0 (copyright);
3860 #line 668 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3861         authors = (_vala_array_free (authors, authors_length1, (GDestroyNotify) g_free), NULL);
3862 #line 3821 "moonshot-identity-management-view.c"
3863 }
3864
3865
3866 static void _vala_array_add1 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value) {
3867 #line 732 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3868         if ((*length) == (*size)) {
3869 #line 732 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3870                 *size = (*size) ? (2 * (*size)) : 4;
3871 #line 732 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3872                 *array = g_renew (GtkActionEntry, *array, *size);
3873 #line 3832 "moonshot-identity-management-view.c"
3874         }
3875 #line 732 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3876         (*array)[(*length)++] = *value;
3877 #line 3836 "moonshot-identity-management-view.c"
3878 }
3879
3880
3881 static void _identity_manager_view_add_identity_manual_cb_gtk_action_callback (GtkAction* action, gpointer self) {
3882 #line 733 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3883         identity_manager_view_add_identity_manual_cb ((IdentityManagerView*) self);
3884 #line 3843 "moonshot-identity-management-view.c"
3885 }
3886
3887
3888 static void _vala_array_add2 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value) {
3889 #line 743 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3890         if ((*length) == (*size)) {
3891 #line 743 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3892                 *size = (*size) ? (2 * (*size)) : 4;
3893 #line 743 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3894                 *array = g_renew (GtkActionEntry, *array, *size);
3895 #line 3854 "moonshot-identity-management-view.c"
3896         }
3897 #line 743 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3898         (*array)[(*length)++] = *value;
3899 #line 3858 "moonshot-identity-management-view.c"
3900 }
3901
3902
3903 static void _gtk_main_quit_gtk_action_callback (GtkAction* action, gpointer self) {
3904 #line 744 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3905         gtk_main_quit ();
3906 #line 3865 "moonshot-identity-management-view.c"
3907 }
3908
3909
3910 static void _vala_array_add3 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value) {
3911 #line 754 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3912         if ((*length) == (*size)) {
3913 #line 754 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3914                 *size = (*size) ? (2 * (*size)) : 4;
3915 #line 754 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3916                 *array = g_renew (GtkActionEntry, *array, *size);
3917 #line 3876 "moonshot-identity-management-view.c"
3918         }
3919 #line 754 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3920         (*array)[(*length)++] = *value;
3921 #line 3880 "moonshot-identity-management-view.c"
3922 }
3923
3924
3925 static void _vala_array_add4 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value) {
3926 #line 760 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3927         if ((*length) == (*size)) {
3928 #line 760 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3929                 *size = (*size) ? (2 * (*size)) : 4;
3930 #line 760 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3931                 *array = g_renew (GtkActionEntry, *array, *size);
3932 #line 3891 "moonshot-identity-management-view.c"
3933         }
3934 #line 760 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3935         (*array)[(*length)++] = *value;
3936 #line 3895 "moonshot-identity-management-view.c"
3937 }
3938
3939
3940 static void _identity_manager_view_on_about_action_gtk_action_callback (GtkAction* action, gpointer self) {
3941 #line 761 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3942         identity_manager_view_on_about_action ((IdentityManagerView*) self);
3943 #line 3902 "moonshot-identity-management-view.c"
3944 }
3945
3946
3947 static void _vala_array_add5 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value) {
3948 #line 771 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3949         if ((*length) == (*size)) {
3950 #line 771 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3951                 *size = (*size) ? (2 * (*size)) : 4;
3952 #line 771 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3953                 *array = g_renew (GtkActionEntry, *array, *size);
3954 #line 3913 "moonshot-identity-management-view.c"
3955         }
3956 #line 771 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3957         (*array)[(*length)++] = *value;
3958 #line 3917 "moonshot-identity-management-view.c"
3959 }
3960
3961
3962 static GtkActionEntry* identity_manager_view_create_actions (IdentityManagerView* self, int* result_length1) {
3963         GtkActionEntry* result = NULL;
3964         GtkActionEntry* actions = NULL;
3965         GtkActionEntry* _tmp0_ = NULL;
3966         gint actions_length1 = 0;
3967         gint _actions_size_ = 0;
3968         GtkActionEntry filemenu = {0};
3969         GtkActionEntry _tmp1_ = {0};
3970         GtkActionEntry* _tmp2_ = NULL;
3971         gint _tmp2__length1 = 0;
3972         GtkActionEntry _tmp3_ = {0};
3973         GtkActionEntry add = {0};
3974         GtkActionEntry _tmp4_ = {0};
3975         GtkActionEntry* _tmp5_ = NULL;
3976         gint _tmp5__length1 = 0;
3977         GtkActionEntry _tmp6_ = {0};
3978         GtkActionEntry quit = {0};
3979         GtkActionEntry _tmp7_ = {0};
3980         GtkActionEntry* _tmp8_ = NULL;
3981         gint _tmp8__length1 = 0;
3982         GtkActionEntry _tmp9_ = {0};
3983         GtkActionEntry helpmenu = {0};
3984         GtkActionEntry _tmp10_ = {0};
3985         GtkActionEntry* _tmp11_ = NULL;
3986         gint _tmp11__length1 = 0;
3987         GtkActionEntry _tmp12_ = {0};
3988         GtkActionEntry about = {0};
3989         GtkActionEntry _tmp13_ = {0};
3990         GtkActionEntry* _tmp14_ = NULL;
3991         gint _tmp14__length1 = 0;
3992         GtkActionEntry _tmp15_ = {0};
3993         GtkActionEntry* _tmp16_ = NULL;
3994         gint _tmp16__length1 = 0;
3995 #line 725 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3996         g_return_val_if_fail (self != NULL, NULL);
3997 #line 726 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
3998         _tmp0_ = g_new0 (GtkActionEntry, 0);
3999 #line 726 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4000         actions = _tmp0_;
4001 #line 726 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4002         actions_length1 = 0;
4003 #line 726 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4004         _actions_size_ = actions_length1;
4005 #line 728 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4006         _tmp1_.name = "FileMenuAction";
4007 #line 728 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4008         _tmp1_.stock_id = NULL;
4009 #line 728 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4010         _tmp1_.label = "_File";
4011 #line 728 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4012         _tmp1_.accelerator = NULL;
4013 #line 728 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4014         _tmp1_.tooltip = NULL;
4015 #line 728 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4016         _tmp1_.callback = (GCallback) NULL;
4017 #line 728 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4018         filemenu = _tmp1_;
4019 #line 732 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4020         _tmp2_ = actions;
4021 #line 732 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4022         _tmp2__length1 = actions_length1;
4023 #line 732 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4024         _tmp3_ = filemenu;
4025 #line 732 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4026         _vala_array_add1 (&actions, &actions_length1, &_actions_size_, &_tmp3_);
4027 #line 733 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4028         _tmp4_.name = "AddIdCardAction";
4029 #line 733 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4030         _tmp4_.stock_id = GTK_STOCK_ADD;
4031 #line 733 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4032         _tmp4_.label = "Add ID Card";
4033 #line 733 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4034         _tmp4_.accelerator = NULL;
4035 #line 733 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4036         _tmp4_.tooltip = "Add a new ID Card";
4037 #line 733 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4038         _tmp4_.callback = (GCallback) _identity_manager_view_add_identity_manual_cb_gtk_action_callback;
4039 #line 733 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4040         add = _tmp4_;
4041 #line 743 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4042         _tmp5_ = actions;
4043 #line 743 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4044         _tmp5__length1 = actions_length1;
4045 #line 743 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4046         _tmp6_ = add;
4047 #line 743 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4048         _vala_array_add2 (&actions, &actions_length1, &_actions_size_, &_tmp6_);
4049 #line 744 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4050         _tmp7_.name = "QuitAction";
4051 #line 744 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4052         _tmp7_.stock_id = GTK_STOCK_QUIT;
4053 #line 744 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4054         _tmp7_.label = "Quit";
4055 #line 744 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4056         _tmp7_.accelerator = "<control>Q";
4057 #line 744 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4058         _tmp7_.tooltip = "Quit the application";
4059 #line 744 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4060         _tmp7_.callback = (GCallback) _gtk_main_quit_gtk_action_callback;
4061 #line 744 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4062         quit = _tmp7_;
4063 #line 754 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4064         _tmp8_ = actions;
4065 #line 754 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4066         _tmp8__length1 = actions_length1;
4067 #line 754 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4068         _tmp9_ = quit;
4069 #line 754 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4070         _vala_array_add3 (&actions, &actions_length1, &_actions_size_, &_tmp9_);
4071 #line 756 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4072         _tmp10_.name = "HelpMenuAction";
4073 #line 756 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4074         _tmp10_.stock_id = NULL;
4075 #line 756 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4076         _tmp10_.label = "_Help";
4077 #line 756 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4078         _tmp10_.accelerator = NULL;
4079 #line 756 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4080         _tmp10_.tooltip = NULL;
4081 #line 756 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4082         _tmp10_.callback = (GCallback) NULL;
4083 #line 756 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4084         helpmenu = _tmp10_;
4085 #line 760 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4086         _tmp11_ = actions;
4087 #line 760 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4088         _tmp11__length1 = actions_length1;
4089 #line 760 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4090         _tmp12_ = helpmenu;
4091 #line 760 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4092         _vala_array_add4 (&actions, &actions_length1, &_actions_size_, &_tmp12_);
4093 #line 761 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4094         _tmp13_.name = "AboutAction";
4095 #line 761 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4096         _tmp13_.stock_id = GTK_STOCK_ABOUT;
4097 #line 761 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4098         _tmp13_.label = "About";
4099 #line 761 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4100         _tmp13_.accelerator = NULL;
4101 #line 761 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4102         _tmp13_.tooltip = "About this application";
4103 #line 761 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4104         _tmp13_.callback = (GCallback) _identity_manager_view_on_about_action_gtk_action_callback;
4105 #line 761 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4106         about = _tmp13_;
4107 #line 771 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4108         _tmp14_ = actions;
4109 #line 771 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4110         _tmp14__length1 = actions_length1;
4111 #line 771 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4112         _tmp15_ = about;
4113 #line 771 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4114         _vala_array_add5 (&actions, &actions_length1, &_actions_size_, &_tmp15_);
4115 #line 773 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4116         _tmp16_ = actions;
4117 #line 773 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4118         _tmp16__length1 = actions_length1;
4119 #line 773 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4120         if (result_length1) {
4121 #line 773 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4122                 *result_length1 = _tmp16__length1;
4123 #line 4082 "moonshot-identity-management-view.c"
4124         }
4125 #line 773 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4126         result = _tmp16_;
4127 #line 773 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4128         return result;
4129 #line 4088 "moonshot-identity-management-view.c"
4130 }
4131
4132
4133 static void identity_manager_view_create_ui_manager (IdentityManagerView* self) {
4134         GtkActionGroup* action_group = NULL;
4135         GtkActionGroup* _tmp0_ = NULL;
4136         gint _tmp1_ = 0;
4137         GtkActionEntry* _tmp2_ = NULL;
4138         GtkActionEntry* _tmp3_ = NULL;
4139         gint _tmp3__length1 = 0;
4140         GtkUIManager* _tmp4_ = NULL;
4141         GtkUIManager* _tmp9_ = NULL;
4142         GError * _inner_error_ = NULL;
4143 #line 777 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4144         g_return_if_fail (self != NULL);
4145 #line 779 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4146         _tmp0_ = gtk_action_group_new ("GeneralActionGroup");
4147 #line 779 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4148         action_group = _tmp0_;
4149 #line 780 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4150         _tmp2_ = identity_manager_view_create_actions (self, &_tmp1_);
4151 #line 780 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4152         _tmp3_ = _tmp2_;
4153 #line 780 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4154         _tmp3__length1 = _tmp1_;
4155 #line 780 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4156         gtk_action_group_add_actions (action_group, _tmp3_, _tmp1_, self);
4157 #line 780 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4158         _tmp3_ = (g_free (_tmp3_), NULL);
4159 #line 781 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4160         _tmp4_ = self->priv->ui_manager;
4161 #line 781 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4162         gtk_ui_manager_insert_action_group (_tmp4_, action_group, 0);
4163 #line 4122 "moonshot-identity-management-view.c"
4164         {
4165                 GtkUIManager* _tmp5_ = NULL;
4166 #line 784 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4167                 _tmp5_ = self->priv->ui_manager;
4168 #line 784 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4169                 gtk_ui_manager_add_ui_from_string (_tmp5_, IDENTITY_MANAGER_VIEW_layout, (gssize) (-1), &_inner_error_);
4170 #line 784 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4171                 if (G_UNLIKELY (_inner_error_ != NULL)) {
4172 #line 4131 "moonshot-identity-management-view.c"
4173                         goto __catch4_g_error;
4174                 }
4175         }
4176         goto __finally4;
4177         __catch4_g_error:
4178         {
4179                 GError* e = NULL;
4180                 FILE* _tmp6_ = NULL;
4181                 GError* _tmp7_ = NULL;
4182                 const gchar* _tmp8_ = NULL;
4183 #line 782 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4184                 e = _inner_error_;
4185 #line 782 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4186                 _inner_error_ = NULL;
4187 #line 788 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4188                 _tmp6_ = stderr;
4189 #line 788 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4190                 _tmp7_ = e;
4191 #line 788 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4192                 _tmp8_ = _tmp7_->message;
4193 #line 788 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4194                 fprintf (_tmp6_, "%s\n", _tmp8_);
4195 #line 782 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4196                 _g_error_free0 (e);
4197 #line 4156 "moonshot-identity-management-view.c"
4198         }
4199         __finally4:
4200 #line 782 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4201         if (G_UNLIKELY (_inner_error_ != NULL)) {
4202 #line 782 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4203                 _g_object_unref0 (action_group);
4204 #line 782 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4205                 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);
4206 #line 782 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4207                 g_clear_error (&_inner_error_);
4208 #line 782 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4209                 return;
4210 #line 4169 "moonshot-identity-management-view.c"
4211         }
4212 #line 790 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4213         _tmp9_ = self->priv->ui_manager;
4214 #line 790 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4215         gtk_ui_manager_ensure_update (_tmp9_);
4216 #line 777 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4217         _g_object_unref0 (action_group);
4218 #line 4177 "moonshot-identity-management-view.c"
4219 }
4220
4221
4222 static void _identity_manager_view_search_entry_icon_press_cb_gtk_entry_icon_press (GtkEntry* _sender, GtkEntryIconPosition p0, GdkEvent* p1, gpointer self) {
4223 #line 815 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4224         identity_manager_view_search_entry_icon_press_cb ((IdentityManagerView*) self, p0, p1);
4225 #line 4184 "moonshot-identity-management-view.c"
4226 }
4227
4228
4229 static void _identity_manager_view_search_entry_text_changed_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
4230 #line 816 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4231         identity_manager_view_search_entry_text_changed_cb ((IdentityManagerView*) self);
4232 #line 4191 "moonshot-identity-management-view.c"
4233 }
4234
4235
4236 static gboolean _identity_manager_view_search_entry_key_press_event_cb_gtk_widget_key_press_event (GtkWidget* _sender, GdkEventKey* event, gpointer self) {
4237         gboolean result;
4238         result = identity_manager_view_search_entry_key_press_event_cb ((IdentityManagerView*) self, event);
4239 #line 817 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4240         return result;
4241 #line 4200 "moonshot-identity-management-view.c"
4242 }
4243
4244
4245 static void _identity_manager_view_update_password_cb_gtk_button_clicked (GtkButton* _sender, gpointer self) {
4246 #line 864 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4247         identity_manager_view_update_password_cb ((IdentityManagerView*) self);
4248 #line 4207 "moonshot-identity-management-view.c"
4249 }
4250
4251
4252 static void identity_manager_view_build_ui (IdentityManagerView* self) {
4253         GtkEntry* _tmp0_ = NULL;
4254         GtkEntry* _tmp1_ = NULL;
4255         const gchar* _tmp2_ = NULL;
4256         const gchar* _tmp3_ = NULL;
4257         GtkEntry* _tmp4_ = NULL;
4258         GdkPixbuf* _tmp5_ = NULL;
4259         GdkPixbuf* _tmp6_ = NULL;
4260         GtkEntry* _tmp7_ = NULL;
4261         const gchar* _tmp8_ = NULL;
4262         GtkEntry* _tmp9_ = NULL;
4263         GtkEntry* _tmp10_ = NULL;
4264         GdkPixbuf* _tmp11_ = NULL;
4265         GdkPixbuf* _tmp12_ = NULL;
4266         GtkEntry* _tmp13_ = NULL;
4267         const gchar* _tmp14_ = NULL;
4268         GtkEntry* _tmp15_ = NULL;
4269         GtkEntry* _tmp16_ = NULL;
4270         GtkEntry* _tmp17_ = NULL;
4271         GtkEntry* _tmp18_ = NULL;
4272         CustomVBox* _tmp19_ = NULL;
4273         GtkViewport* viewport = NULL;
4274         GtkViewport* _tmp20_ = NULL;
4275         CustomVBox* _tmp21_ = NULL;
4276         GtkScrolledWindow* scroll = NULL;
4277         GtkScrolledWindow* _tmp22_ = NULL;
4278         const gchar* _tmp23_ = NULL;
4279         GtkLabel* _tmp24_ = NULL;
4280         GtkLabel* _tmp25_ = NULL;
4281         GtkVBox* vbox_left = NULL;
4282         GtkVBox* _tmp26_ = NULL;
4283         GtkEntry* _tmp27_ = NULL;
4284         GtkLabel* _tmp28_ = NULL;
4285         const gchar* _tmp29_ = NULL;
4286         GtkLabel* _tmp30_ = NULL;
4287         GtkLabel* _tmp31_ = NULL;
4288         GtkLabel* _tmp32_ = NULL;
4289         GtkLabel* _tmp33_ = NULL;
4290         GtkLabel* login_vbox_title = NULL;
4291         const gchar* _tmp34_ = NULL;
4292         GtkLabel* _tmp35_ = NULL;
4293         GtkLabel* issuer_label = NULL;
4294         const gchar* _tmp36_ = NULL;
4295         GtkLabel* _tmp37_ = NULL;
4296         GtkEntry* _tmp38_ = NULL;
4297         GtkEntry* _tmp39_ = NULL;
4298         GtkLabel* username_label = NULL;
4299         const gchar* _tmp40_ = NULL;
4300         GtkLabel* _tmp41_ = NULL;
4301         GtkEntry* _tmp42_ = NULL;
4302         GtkEntry* _tmp43_ = NULL;
4303         GtkLabel* password_label = NULL;
4304         const gchar* _tmp44_ = NULL;
4305         GtkLabel* _tmp45_ = NULL;
4306         GtkEntry* _tmp46_ = NULL;
4307         GtkEntry* _tmp47_ = NULL;
4308         GtkEntry* _tmp48_ = NULL;
4309         GtkEntry* _tmp49_ = NULL;
4310         const gchar* _tmp50_ = NULL;
4311         GtkCheckButton* _tmp51_ = NULL;
4312         GtkCheckButton* _tmp52_ = NULL;
4313         const gchar* _tmp53_ = NULL;
4314         GtkButton* _tmp54_ = NULL;
4315         GtkButton* _tmp55_ = NULL;
4316         GtkEntry* _tmp56_ = NULL;
4317         GtkEntry* _tmp57_ = NULL;
4318         GtkEntry* _tmp58_ = NULL;
4319         GtkEntry* _tmp59_ = NULL;
4320         GtkTable* login_table = NULL;
4321         GtkTable* _tmp60_ = NULL;
4322         GtkEntry* _tmp61_ = NULL;
4323         GtkEntry* _tmp62_ = NULL;
4324         GtkEntry* _tmp63_ = NULL;
4325         GtkCheckButton* _tmp64_ = NULL;
4326         GtkButton* _tmp65_ = NULL;
4327         GtkAlignment* login_vbox_alignment = NULL;
4328         GtkAlignment* _tmp66_ = NULL;
4329         GtkVBox* _tmp67_ = NULL;
4330         GtkVBox* _tmp68_ = NULL;
4331         GtkVBox* _tmp69_ = NULL;
4332         GtkLabel* services_vbox_title = NULL;
4333         const gchar* _tmp70_ = NULL;
4334         GtkLabel* _tmp71_ = NULL;
4335         GtkAlignment* services_vbox_alignment = NULL;
4336         GtkAlignment* _tmp72_ = NULL;
4337         GtkVBox* _tmp73_ = NULL;
4338         GtkVBox* _tmp74_ = NULL;
4339         GtkVBox* _tmp75_ = NULL;
4340         GtkVBox* _tmp76_ = NULL;
4341         GtkVBox* _tmp77_ = NULL;
4342         GtkVBox* _tmp78_ = NULL;
4343         GtkVBox* _tmp79_ = NULL;
4344         GtkVBox* _tmp80_ = NULL;
4345         GtkVBox* _tmp81_ = NULL;
4346         GtkVBox* _tmp82_ = NULL;
4347         GtkHBox* hbox = NULL;
4348         GtkHBox* _tmp83_ = NULL;
4349         GtkVBox* _tmp84_ = NULL;
4350         GtkVBox* main_vbox = NULL;
4351         GtkVBox* _tmp85_ = NULL;
4352         GtkWidget* menubar = NULL;
4353         GtkUIManager* _tmp86_ = NULL;
4354         GtkWidget* _tmp87_ = NULL;
4355         GtkWidget* _tmp88_ = NULL;
4356         GtkVBox* _tmp89_ = NULL;
4357 #line 793 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4358         g_return_if_fail (self != NULL);
4359 #line 795 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4360         identity_manager_view_create_ui_manager (self);
4361 #line 797 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4362         _tmp0_ = (GtkEntry*) gtk_entry_new ();
4363 #line 797 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4364         g_object_ref_sink (_tmp0_);
4365 #line 797 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4366         _g_object_unref0 (self->priv->search_entry);
4367 #line 797 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4368         self->priv->search_entry = _tmp0_;
4369 #line 799 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4370         _tmp1_ = self->priv->search_entry;
4371 #line 799 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4372         _tmp2_ = _ ("Search entry");
4373 #line 799 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4374         _tmp3_ = _ ("Search for a specific ID Card");
4375 #line 799 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4376         identity_manager_view_set_atk_name_description (self, (GtkWidget*) _tmp1_, _tmp2_, _tmp3_);
4377 #line 800 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4378         _tmp4_ = self->priv->search_entry;
4379 #line 800 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4380         _tmp5_ = find_icon_sized ("edit-find", GTK_ICON_SIZE_MENU);
4381 #line 800 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4382         _tmp6_ = _tmp5_;
4383 #line 800 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4384         gtk_entry_set_icon_from_pixbuf (_tmp4_, GTK_ENTRY_ICON_PRIMARY, _tmp6_);
4385 #line 800 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4386         _g_object_unref0 (_tmp6_);
4387 #line 803 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4388         _tmp7_ = self->priv->search_entry;
4389 #line 803 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4390         _tmp8_ = _ ("Search identity or service");
4391 #line 803 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4392         gtk_entry_set_icon_tooltip_text (_tmp7_, GTK_ENTRY_ICON_PRIMARY, _tmp8_);
4393 #line 805 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4394         _tmp9_ = self->priv->search_entry;
4395 #line 805 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4396         gtk_entry_set_icon_sensitive (_tmp9_, GTK_ENTRY_ICON_PRIMARY, FALSE);
4397 #line 807 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4398         _tmp10_ = self->priv->search_entry;
4399 #line 807 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4400         _tmp11_ = find_icon_sized ("process-stop", GTK_ICON_SIZE_MENU);
4401 #line 807 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4402         _tmp12_ = _tmp11_;
4403 #line 807 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4404         gtk_entry_set_icon_from_pixbuf (_tmp10_, GTK_ENTRY_ICON_SECONDARY, _tmp12_);
4405 #line 807 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4406         _g_object_unref0 (_tmp12_);
4407 #line 810 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4408         _tmp13_ = self->priv->search_entry;
4409 #line 810 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4410         _tmp14_ = _ ("Clear the current search");
4411 #line 810 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4412         gtk_entry_set_icon_tooltip_text (_tmp13_, GTK_ENTRY_ICON_SECONDARY, _tmp14_);
4413 #line 812 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4414         _tmp15_ = self->priv->search_entry;
4415 #line 812 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4416         gtk_entry_set_icon_sensitive (_tmp15_, GTK_ENTRY_ICON_SECONDARY, FALSE);
4417 #line 815 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4418         _tmp16_ = self->priv->search_entry;
4419 #line 815 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4420         g_signal_connect_object (_tmp16_, "icon-press", (GCallback) _identity_manager_view_search_entry_icon_press_cb_gtk_entry_icon_press, self, 0);
4421 #line 816 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4422         _tmp17_ = self->priv->search_entry;
4423 #line 816 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4424         g_signal_connect_object ((GObject*) _tmp17_, "notify::text", (GCallback) _identity_manager_view_search_entry_text_changed_cb_g_object_notify, self, 0);
4425 #line 817 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4426         _tmp18_ = self->priv->search_entry;
4427 #line 817 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4428         g_signal_connect_object ((GtkWidget*) _tmp18_, "key-press-event", (GCallback) _identity_manager_view_search_entry_key_press_event_cb_gtk_widget_key_press_event, self, 0);
4429 #line 819 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4430         _tmp19_ = custom_vbox_new (self, FALSE, 6);
4431 #line 819 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4432         g_object_ref_sink (_tmp19_);
4433 #line 819 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4434         _g_object_unref0 (self->priv->custom_vbox);
4435 #line 819 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4436         self->priv->custom_vbox = _tmp19_;
4437 #line 821 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4438         _tmp20_ = (GtkViewport*) gtk_viewport_new (NULL, NULL);
4439 #line 821 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4440         g_object_ref_sink (_tmp20_);
4441 #line 821 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4442         viewport = _tmp20_;
4443 #line 822 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4444         gtk_container_set_border_width ((GtkContainer*) viewport, (guint) 6);
4445 #line 823 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4446         gtk_viewport_set_shadow_type (viewport, GTK_SHADOW_NONE);
4447 #line 824 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4448         _tmp21_ = self->priv->custom_vbox;
4449 #line 824 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4450         gtk_container_add ((GtkContainer*) viewport, (GtkWidget*) _tmp21_);
4451 #line 825 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4452         _tmp22_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
4453 #line 825 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4454         g_object_ref_sink (_tmp22_);
4455 #line 825 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4456         scroll = _tmp22_;
4457 #line 826 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4458         gtk_scrolled_window_set_policy (scroll, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
4459 #line 827 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4460         gtk_scrolled_window_set_shadow_type (scroll, GTK_SHADOW_IN);
4461 #line 828 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4462         gtk_scrolled_window_add_with_viewport (scroll, (GtkWidget*) viewport);
4463 #line 829 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4464         _tmp23_ = _ ("");
4465 #line 829 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4466         _tmp24_ = (GtkLabel*) gtk_label_new (_tmp23_);
4467 #line 829 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4468         g_object_ref_sink (_tmp24_);
4469 #line 829 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4470         _g_object_unref0 (self->priv->prompting_service);
4471 #line 829 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4472         self->priv->prompting_service = _tmp24_;
4473 #line 831 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4474         _tmp25_ = self->priv->prompting_service;
4475 #line 831 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4476         gtk_misc_set_alignment ((GtkMisc*) _tmp25_, (gfloat) 0, (gfloat) 0.5);
4477 #line 833 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4478         _tmp26_ = (GtkVBox*) gtk_vbox_new (FALSE, 0);
4479 #line 833 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4480         g_object_ref_sink (_tmp26_);
4481 #line 833 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4482         vbox_left = _tmp26_;
4483 #line 834 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4484         _tmp27_ = self->priv->search_entry;
4485 #line 834 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4486         gtk_box_pack_start ((GtkBox*) vbox_left, (GtkWidget*) _tmp27_, FALSE, FALSE, (guint) 6);
4487 #line 835 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4488         gtk_box_pack_start ((GtkBox*) vbox_left, (GtkWidget*) scroll, TRUE, TRUE, (guint) 0);
4489 #line 836 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4490         _tmp28_ = self->priv->prompting_service;
4491 #line 836 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4492         gtk_box_pack_start ((GtkBox*) vbox_left, (GtkWidget*) _tmp28_, FALSE, FALSE, (guint) 6);
4493 #line 837 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4494         gtk_widget_set_size_request ((GtkWidget*) vbox_left, IDENTITY_MANAGER_VIEW_WINDOW_WIDTH, 0);
4495 #line 839 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4496         _tmp29_ = _ ("No Identity: Send this identity to services which should not use Moons" \
4497 "hot");
4498 #line 839 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4499         _tmp30_ = (GtkLabel*) gtk_label_new (_tmp29_);
4500 #line 839 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4501         g_object_ref_sink (_tmp30_);
4502 #line 839 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4503         _g_object_unref0 (self->priv->no_identity_title);
4504 #line 839 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4505         self->priv->no_identity_title = _tmp30_;
4506 #line 840 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4507         _tmp31_ = self->priv->no_identity_title;
4508 #line 840 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4509         gtk_misc_set_alignment ((GtkMisc*) _tmp31_, (gfloat) 0, (gfloat) 0.5);
4510 #line 841 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4511         _tmp32_ = self->priv->no_identity_title;
4512 #line 841 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4513         gtk_label_set_line_wrap (_tmp32_, TRUE);
4514 #line 842 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4515         _tmp33_ = self->priv->no_identity_title;
4516 #line 842 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4517         gtk_widget_show ((GtkWidget*) _tmp33_);
4518 #line 844 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4519         _tmp34_ = _ ("Login: ");
4520 #line 844 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4521         _tmp35_ = (GtkLabel*) gtk_label_new (_tmp34_);
4522 #line 844 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4523         g_object_ref_sink (_tmp35_);
4524 #line 844 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4525         login_vbox_title = _tmp35_;
4526 #line 845 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4527         identity_manager_view_label_make_bold (self, login_vbox_title);
4528 #line 846 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4529         gtk_misc_set_alignment ((GtkMisc*) login_vbox_title, (gfloat) 0, (gfloat) 0.5);
4530 #line 847 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4531         _tmp36_ = _ ("Issuer:");
4532 #line 847 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4533         _tmp37_ = (GtkLabel*) gtk_label_new (_tmp36_);
4534 #line 847 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4535         g_object_ref_sink (_tmp37_);
4536 #line 847 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4537         issuer_label = _tmp37_;
4538 #line 848 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4539         gtk_misc_set_alignment ((GtkMisc*) issuer_label, (gfloat) 1, (gfloat) 0.5);
4540 #line 849 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4541         _tmp38_ = (GtkEntry*) gtk_entry_new ();
4542 #line 849 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4543         g_object_ref_sink (_tmp38_);
4544 #line 849 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4545         _g_object_unref0 (self->priv->issuer_entry);
4546 #line 849 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4547         self->priv->issuer_entry = _tmp38_;
4548 #line 850 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4549         _tmp39_ = self->priv->issuer_entry;
4550 #line 850 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4551         gtk_widget_set_can_focus ((GtkWidget*) _tmp39_, FALSE);
4552 #line 851 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4553         _tmp40_ = _ ("Username:");
4554 #line 851 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4555         _tmp41_ = (GtkLabel*) gtk_label_new (_tmp40_);
4556 #line 851 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4557         g_object_ref_sink (_tmp41_);
4558 #line 851 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4559         username_label = _tmp41_;
4560 #line 852 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4561         gtk_misc_set_alignment ((GtkMisc*) username_label, (gfloat) 1, (gfloat) 0.5);
4562 #line 853 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4563         _tmp42_ = (GtkEntry*) gtk_entry_new ();
4564 #line 853 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4565         g_object_ref_sink (_tmp42_);
4566 #line 853 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4567         _g_object_unref0 (self->priv->username_entry);
4568 #line 853 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4569         self->priv->username_entry = _tmp42_;
4570 #line 854 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4571         _tmp43_ = self->priv->username_entry;
4572 #line 854 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4573         gtk_widget_set_can_focus ((GtkWidget*) _tmp43_, FALSE);
4574 #line 855 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4575         _tmp44_ = _ ("Password:");
4576 #line 855 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4577         _tmp45_ = (GtkLabel*) gtk_label_new (_tmp44_);
4578 #line 855 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4579         g_object_ref_sink (_tmp45_);
4580 #line 855 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4581         password_label = _tmp45_;
4582 #line 856 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4583         gtk_misc_set_alignment ((GtkMisc*) password_label, (gfloat) 1, (gfloat) 0.5);
4584 #line 857 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4585         _tmp46_ = (GtkEntry*) gtk_entry_new ();
4586 #line 857 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4587         g_object_ref_sink (_tmp46_);
4588 #line 857 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4589         _g_object_unref0 (self->priv->password_entry);
4590 #line 857 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4591         self->priv->password_entry = _tmp46_;
4592 #line 858 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4593         _tmp47_ = self->priv->password_entry;
4594 #line 858 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4595         gtk_entry_set_invisible_char (_tmp47_, (gunichar) '*');
4596 #line 859 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4597         _tmp48_ = self->priv->password_entry;
4598 #line 859 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4599         gtk_entry_set_visibility (_tmp48_, FALSE);
4600 #line 860 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4601         _tmp49_ = self->priv->password_entry;
4602 #line 860 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4603         gtk_widget_set_sensitive ((GtkWidget*) _tmp49_, FALSE);
4604 #line 861 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4605         _tmp50_ = _ ("Remember password");
4606 #line 861 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4607         _tmp51_ = (GtkCheckButton*) gtk_check_button_new_with_label (_tmp50_);
4608 #line 861 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4609         g_object_ref_sink (_tmp51_);
4610 #line 861 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4611         _g_object_unref0 (self->priv->remember_checkbutton);
4612 #line 861 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4613         self->priv->remember_checkbutton = _tmp51_;
4614 #line 862 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4615         _tmp52_ = self->priv->remember_checkbutton;
4616 #line 862 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4617         gtk_widget_set_sensitive ((GtkWidget*) _tmp52_, FALSE);
4618 #line 863 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4619         _tmp53_ = _ ("Update Password");
4620 #line 863 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4621         _tmp54_ = (GtkButton*) gtk_button_new_with_label (_tmp53_);
4622 #line 863 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4623         g_object_ref_sink (_tmp54_);
4624 #line 863 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4625         _g_object_unref0 (self->priv->update_password_button);
4626 #line 863 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4627         self->priv->update_password_button = _tmp54_;
4628 #line 864 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4629         _tmp55_ = self->priv->update_password_button;
4630 #line 864 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4631         g_signal_connect_object (_tmp55_, "clicked", (GCallback) _identity_manager_view_update_password_cb_gtk_button_clicked, self, 0);
4632 #line 866 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4633         _tmp56_ = self->priv->issuer_entry;
4634 #line 866 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4635         identity_manager_view_set_atk_relation ((GtkWidget*) issuer_label, (GtkWidget*) _tmp56_, ATK_RELATION_LABEL_FOR);
4636 #line 867 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4637         _tmp57_ = self->priv->username_entry;
4638 #line 867 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4639         identity_manager_view_set_atk_relation ((GtkWidget*) username_label, (GtkWidget*) _tmp57_, ATK_RELATION_LABEL_FOR);
4640 #line 868 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4641         _tmp58_ = self->priv->password_entry;
4642 #line 868 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4643         _tmp59_ = self->priv->password_entry;
4644 #line 868 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4645         identity_manager_view_set_atk_relation ((GtkWidget*) _tmp58_, (GtkWidget*) _tmp59_, ATK_RELATION_LABEL_FOR);
4646 #line 870 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4647         _tmp60_ = (GtkTable*) gtk_table_new ((guint) 5, (guint) 2, FALSE);
4648 #line 870 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4649         g_object_ref_sink (_tmp60_);
4650 #line 870 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4651         login_table = _tmp60_;
4652 #line 871 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4653         gtk_table_set_col_spacings (login_table, (guint) 10);
4654 #line 872 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4655         gtk_table_set_row_spacings (login_table, (guint) 10);
4656 #line 873 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4657         gtk_table_attach_defaults (login_table, (GtkWidget*) issuer_label, (guint) 0, (guint) 1, (guint) 0, (guint) 1);
4658 #line 874 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4659         _tmp61_ = self->priv->issuer_entry;
4660 #line 874 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4661         gtk_table_attach_defaults (login_table, (GtkWidget*) _tmp61_, (guint) 1, (guint) 2, (guint) 0, (guint) 1);
4662 #line 875 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4663         gtk_table_attach_defaults (login_table, (GtkWidget*) username_label, (guint) 0, (guint) 1, (guint) 1, (guint) 2);
4664 #line 876 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4665         _tmp62_ = self->priv->username_entry;
4666 #line 876 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4667         gtk_table_attach_defaults (login_table, (GtkWidget*) _tmp62_, (guint) 1, (guint) 2, (guint) 1, (guint) 2);
4668 #line 877 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4669         gtk_table_attach_defaults (login_table, (GtkWidget*) password_label, (guint) 0, (guint) 1, (guint) 2, (guint) 3);
4670 #line 878 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4671         _tmp63_ = self->priv->password_entry;
4672 #line 878 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4673         gtk_table_attach_defaults (login_table, (GtkWidget*) _tmp63_, (guint) 1, (guint) 2, (guint) 2, (guint) 3);
4674 #line 879 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4675         _tmp64_ = self->priv->remember_checkbutton;
4676 #line 879 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4677         gtk_table_attach_defaults (login_table, (GtkWidget*) _tmp64_, (guint) 1, (guint) 2, (guint) 3, (guint) 4);
4678 #line 880 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4679         _tmp65_ = self->priv->update_password_button;
4680 #line 880 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4681         gtk_table_attach_defaults (login_table, (GtkWidget*) _tmp65_, (guint) 0, (guint) 1, (guint) 4, (guint) 5);
4682 #line 881 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4683         _tmp66_ = (GtkAlignment*) gtk_alignment_new ((gfloat) 0, (gfloat) 0, (gfloat) 0, (gfloat) 0);
4684 #line 881 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4685         g_object_ref_sink (_tmp66_);
4686 #line 881 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4687         login_vbox_alignment = _tmp66_;
4688 #line 882 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4689         gtk_alignment_set_padding (login_vbox_alignment, (guint) 0, (guint) 0, (guint) 12, (guint) 0);
4690 #line 883 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4691         gtk_container_add ((GtkContainer*) login_vbox_alignment, (GtkWidget*) login_table);
4692 #line 884 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4693         _tmp67_ = (GtkVBox*) gtk_vbox_new (FALSE, 6);
4694 #line 884 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4695         g_object_ref_sink (_tmp67_);
4696 #line 884 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4697         _g_object_unref0 (self->priv->login_vbox);
4698 #line 884 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4699         self->priv->login_vbox = _tmp67_;
4700 #line 885 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4701         _tmp68_ = self->priv->login_vbox;
4702 #line 885 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4703         gtk_box_pack_start ((GtkBox*) _tmp68_, (GtkWidget*) login_vbox_title, FALSE, TRUE, (guint) 0);
4704 #line 886 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4705         _tmp69_ = self->priv->login_vbox;
4706 #line 886 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4707         gtk_box_pack_start ((GtkBox*) _tmp69_, (GtkWidget*) login_vbox_alignment, FALSE, TRUE, (guint) 0);
4708 #line 888 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4709         _tmp70_ = _ ("Services:");
4710 #line 888 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4711         _tmp71_ = (GtkLabel*) gtk_label_new (_tmp70_);
4712 #line 888 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4713         g_object_ref_sink (_tmp71_);
4714 #line 888 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4715         services_vbox_title = _tmp71_;
4716 #line 889 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4717         identity_manager_view_label_make_bold (self, services_vbox_title);
4718 #line 890 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4719         gtk_misc_set_alignment ((GtkMisc*) services_vbox_title, (gfloat) 0, (gfloat) 0.5);
4720 #line 891 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4721         _tmp72_ = (GtkAlignment*) gtk_alignment_new ((gfloat) 0, (gfloat) 0, (gfloat) 0, (gfloat) 0);
4722 #line 891 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4723         g_object_ref_sink (_tmp72_);
4724 #line 891 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4725         services_vbox_alignment = _tmp72_;
4726 #line 892 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4727         gtk_alignment_set_padding (services_vbox_alignment, (guint) 0, (guint) 0, (guint) 12, (guint) 0);
4728 #line 893 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4729         _tmp73_ = (GtkVBox*) gtk_vbox_new (TRUE, 6);
4730 #line 893 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4731         g_object_ref_sink (_tmp73_);
4732 #line 893 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4733         _g_object_unref0 (self->priv->services_internal_vbox);
4734 #line 893 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4735         self->priv->services_internal_vbox = _tmp73_;
4736 #line 894 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4737         _tmp74_ = self->priv->services_internal_vbox;
4738 #line 894 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4739         gtk_container_add ((GtkContainer*) services_vbox_alignment, (GtkWidget*) _tmp74_);
4740 #line 895 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4741         _tmp75_ = (GtkVBox*) gtk_vbox_new (FALSE, 6);
4742 #line 895 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4743         g_object_ref_sink (_tmp75_);
4744 #line 895 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4745         _g_object_unref0 (self->priv->services_vbox);
4746 #line 895 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4747         self->priv->services_vbox = _tmp75_;
4748 #line 896 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4749         _tmp76_ = self->priv->services_vbox;
4750 #line 896 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4751         gtk_box_pack_start ((GtkBox*) _tmp76_, (GtkWidget*) services_vbox_title, FALSE, TRUE, (guint) 0);
4752 #line 897 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4753         _tmp77_ = self->priv->services_vbox;
4754 #line 897 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4755         gtk_box_pack_start ((GtkBox*) _tmp77_, (GtkWidget*) services_vbox_alignment, FALSE, TRUE, (guint) 0);
4756 #line 899 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4757         _tmp78_ = (GtkVBox*) gtk_vbox_new (FALSE, 18);
4758 #line 899 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4759         g_object_ref_sink (_tmp78_);
4760 #line 899 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4761         _g_object_unref0 (self->priv->vbox_right);
4762 #line 899 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4763         self->priv->vbox_right = _tmp78_;
4764 #line 900 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4765         _tmp79_ = self->priv->vbox_right;
4766 #line 900 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4767         _tmp80_ = self->priv->login_vbox;
4768 #line 900 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4769         gtk_box_pack_start ((GtkBox*) _tmp79_, (GtkWidget*) _tmp80_, FALSE, TRUE, (guint) 0);
4770 #line 901 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4771         _tmp81_ = self->priv->vbox_right;
4772 #line 901 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4773         _tmp82_ = self->priv->services_vbox;
4774 #line 901 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4775         gtk_box_pack_start ((GtkBox*) _tmp81_, (GtkWidget*) _tmp82_, FALSE, TRUE, (guint) 0);
4776 #line 903 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4777         _tmp83_ = (GtkHBox*) gtk_hbox_new (FALSE, 12);
4778 #line 903 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4779         g_object_ref_sink (_tmp83_);
4780 #line 903 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4781         hbox = _tmp83_;
4782 #line 904 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4783         gtk_box_pack_start ((GtkBox*) hbox, (GtkWidget*) vbox_left, FALSE, FALSE, (guint) 0);
4784 #line 905 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4785         _tmp84_ = self->priv->vbox_right;
4786 #line 905 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4787         gtk_box_pack_start ((GtkBox*) hbox, (GtkWidget*) _tmp84_, TRUE, TRUE, (guint) 0);
4788 #line 907 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4789         _tmp85_ = (GtkVBox*) gtk_vbox_new (FALSE, 0);
4790 #line 907 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4791         g_object_ref_sink (_tmp85_);
4792 #line 907 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4793         main_vbox = _tmp85_;
4794 #line 908 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4795         gtk_container_set_border_width ((GtkContainer*) main_vbox, (guint) 12);
4796 #line 921 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4797         _tmp86_ = self->priv->ui_manager;
4798 #line 921 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4799         _tmp87_ = gtk_ui_manager_get_widget (_tmp86_, "/MenuBar");
4800 #line 921 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4801         _tmp88_ = _g_object_ref0 (_tmp87_);
4802 #line 921 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4803         menubar = _tmp88_;
4804 #line 922 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4805         gtk_box_pack_start ((GtkBox*) main_vbox, menubar, FALSE, FALSE, (guint) 0);
4806 #line 924 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4807         gtk_box_pack_start ((GtkBox*) main_vbox, (GtkWidget*) hbox, TRUE, TRUE, (guint) 0);
4808 #line 925 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4809         gtk_container_add ((GtkContainer*) self, (GtkWidget*) main_vbox);
4810 #line 926 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4811         gtk_widget_show_all ((GtkWidget*) main_vbox);
4812 #line 927 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4813         _tmp89_ = self->priv->vbox_right;
4814 #line 927 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4815         gtk_widget_hide ((GtkWidget*) _tmp89_);
4816 #line 793 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4817         _g_object_unref0 (menubar);
4818 #line 793 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4819         _g_object_unref0 (main_vbox);
4820 #line 793 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4821         _g_object_unref0 (hbox);
4822 #line 793 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4823         _g_object_unref0 (services_vbox_alignment);
4824 #line 793 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4825         _g_object_unref0 (services_vbox_title);
4826 #line 793 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4827         _g_object_unref0 (login_vbox_alignment);
4828 #line 793 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4829         _g_object_unref0 (login_table);
4830 #line 793 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4831         _g_object_unref0 (password_label);
4832 #line 793 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4833         _g_object_unref0 (username_label);
4834 #line 793 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4835         _g_object_unref0 (issuer_label);
4836 #line 793 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4837         _g_object_unref0 (login_vbox_title);
4838 #line 793 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4839         _g_object_unref0 (vbox_left);
4840 #line 793 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4841         _g_object_unref0 (scroll);
4842 #line 793 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4843         _g_object_unref0 (viewport);
4844 #line 4802 "moonshot-identity-management-view.c"
4845 }
4846
4847
4848 static void identity_manager_view_set_atk_name_description (IdentityManagerView* self, GtkWidget* widget, const gchar* name, const gchar* description) {
4849         AtkObject* atk_widget = NULL;
4850         GtkWidget* _tmp0_ = NULL;
4851         AtkObject* _tmp1_ = NULL;
4852         AtkObject* _tmp2_ = NULL;
4853         const gchar* _tmp3_ = NULL;
4854         const gchar* _tmp4_ = NULL;
4855 #line 930 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4856         g_return_if_fail (self != NULL);
4857 #line 930 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4858         g_return_if_fail (widget != NULL);
4859 #line 930 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4860         g_return_if_fail (name != NULL);
4861 #line 930 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4862         g_return_if_fail (description != NULL);
4863 #line 932 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4864         _tmp0_ = widget;
4865 #line 932 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4866         _tmp1_ = gtk_widget_get_accessible (_tmp0_);
4867 #line 932 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4868         _tmp2_ = _g_object_ref0 (_tmp1_);
4869 #line 932 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4870         atk_widget = _tmp2_;
4871 #line 934 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4872         _tmp3_ = name;
4873 #line 934 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4874         atk_object_set_name (atk_widget, _tmp3_);
4875 #line 935 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4876         _tmp4_ = description;
4877 #line 935 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4878         atk_object_set_description (atk_widget, _tmp4_);
4879 #line 930 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4880         _g_object_unref0 (atk_widget);
4881 #line 4839 "moonshot-identity-management-view.c"
4882 }
4883
4884
4885 static void _gtk_main_quit_gtk_object_destroy (GtkObject* _sender, gpointer self) {
4886 #line 940 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4887         gtk_main_quit ();
4888 #line 4846 "moonshot-identity-management-view.c"
4889 }
4890
4891
4892 static void _identity_manager_view_on_card_list_changed_identity_manager_model_card_list_changed (IdentityManagerModel* _sender, gpointer self) {
4893 #line 941 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4894         identity_manager_view_on_card_list_changed ((IdentityManagerView*) self);
4895 #line 4853 "moonshot-identity-management-view.c"
4896 }
4897
4898
4899 static void identity_manager_view_connect_signals (IdentityManagerView* self) {
4900         IdentityManagerModel* _tmp0_ = NULL;
4901 #line 938 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4902         g_return_if_fail (self != NULL);
4903 #line 940 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4904         g_signal_connect ((GtkObject*) self, "destroy", (GCallback) _gtk_main_quit_gtk_object_destroy, NULL);
4905 #line 941 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4906         _tmp0_ = self->identities_manager;
4907 #line 941 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4908         g_signal_connect_object (_tmp0_, "card-list-changed", (GCallback) _identity_manager_view_on_card_list_changed_identity_manager_model_card_list_changed, self, 0);
4909 #line 4867 "moonshot-identity-management-view.c"
4910 }
4911
4912
4913 static void identity_manager_view_set_atk_relation (GtkWidget* widget, GtkWidget* target_widget, AtkRelationType relationship) {
4914         AtkObject* atk_widget = NULL;
4915         GtkWidget* _tmp0_ = NULL;
4916         AtkObject* _tmp1_ = NULL;
4917         AtkObject* _tmp2_ = NULL;
4918         AtkObject* atk_target_widget = NULL;
4919         GtkWidget* _tmp3_ = NULL;
4920         AtkObject* _tmp4_ = NULL;
4921         AtkObject* _tmp5_ = NULL;
4922         AtkRelationType _tmp6_ = 0;
4923 #line 944 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4924         g_return_if_fail (widget != NULL);
4925 #line 944 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4926         g_return_if_fail (target_widget != NULL);
4927 #line 946 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4928         _tmp0_ = widget;
4929 #line 946 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4930         _tmp1_ = gtk_widget_get_accessible (_tmp0_);
4931 #line 946 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4932         _tmp2_ = _g_object_ref0 (_tmp1_);
4933 #line 946 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4934         atk_widget = _tmp2_;
4935 #line 947 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4936         _tmp3_ = target_widget;
4937 #line 947 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4938         _tmp4_ = gtk_widget_get_accessible (_tmp3_);
4939 #line 947 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4940         _tmp5_ = _g_object_ref0 (_tmp4_);
4941 #line 947 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4942         atk_target_widget = _tmp5_;
4943 #line 949 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4944         _tmp6_ = relationship;
4945 #line 949 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4946         atk_object_add_relationship (atk_widget, _tmp6_, atk_target_widget);
4947 #line 944 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4948         _g_object_unref0 (atk_target_widget);
4949 #line 944 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4950         _g_object_unref0 (atk_widget);
4951 #line 4909 "moonshot-identity-management-view.c"
4952 }
4953
4954
4955 static void identity_manager_view_class_init (IdentityManagerViewClass * klass) {
4956 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4957         identity_manager_view_parent_class = g_type_class_peek_parent (klass);
4958 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4959         g_type_class_add_private (klass, sizeof (IdentityManagerViewPrivate));
4960 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4961         G_OBJECT_CLASS (klass)->finalize = identity_manager_view_finalize;
4962 #line 4920 "moonshot-identity-management-view.c"
4963 }
4964
4965
4966 static void identity_manager_view_instance_init (IdentityManagerView * self) {
4967         GtkUIManager* _tmp0_ = NULL;
4968 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4969         self->priv = IDENTITY_MANAGER_VIEW_GET_PRIVATE (self);
4970 #line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4971         _tmp0_ = gtk_ui_manager_new ();
4972 #line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4973         self->priv->ui_manager = _tmp0_;
4974 #line 4932 "moonshot-identity-management-view.c"
4975 }
4976
4977
4978 static void identity_manager_view_finalize (GObject* obj) {
4979         IdentityManagerView * self;
4980 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4981         self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerView);
4982 #line 38 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4983         _identity_manager_app_unref0 (self->parent_app);
4984 #line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4985         _g_object_unref0 (self->priv->ui_manager);
4986 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4987         _g_object_unref0 (self->priv->search_entry);
4988 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4989         _g_object_unref0 (self->priv->vbox_right);
4990 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4991         _g_object_unref0 (self->priv->login_vbox);
4992 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4993         _g_object_unref0 (self->priv->services_vbox);
4994 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4995         _g_object_unref0 (self->priv->custom_vbox);
4996 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4997         _g_object_unref0 (self->priv->services_internal_vbox);
4998 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
4999         _g_object_unref0 (self->priv->issuer_entry);
5000 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
5001         _g_object_unref0 (self->priv->username_entry);
5002 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
5003         _g_object_unref0 (self->priv->password_entry);
5004 #line 53 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
5005         _g_object_unref0 (self->priv->prompting_service);
5006 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
5007         _g_object_unref0 (self->priv->no_identity_title);
5008 #line 55 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
5009         _g_object_unref0 (self->priv->remember_checkbutton);
5010 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
5011         _g_object_unref0 (self->priv->update_password_button);
5012 #line 59 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
5013         _g_object_unref0 (self->priv->filter);
5014 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
5015         _g_object_unref0 (self->identities_manager);
5016 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
5017         __g_queue_free__g_object_unref0_0 (self->request_queue);
5018 #line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
5019         _g_hash_table_unref0 (self->priv->service_button_map);
5020 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-identity-management-view.vala"
5021         G_OBJECT_CLASS (identity_manager_view_parent_class)->finalize (obj);
5022 #line 4980 "moonshot-identity-management-view.c"
5023 }
5024
5025
5026 GType identity_manager_view_get_type (void) {
5027         static volatile gsize identity_manager_view_type_id__volatile = 0;
5028         if (g_once_init_enter (&identity_manager_view_type_id__volatile)) {
5029                 static const GTypeInfo g_define_type_info = { sizeof (IdentityManagerViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) identity_manager_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (IdentityManagerView), 0, (GInstanceInitFunc) identity_manager_view_instance_init, NULL };
5030                 GType identity_manager_view_type_id;
5031                 identity_manager_view_type_id = g_type_register_static (GTK_TYPE_WINDOW, "IdentityManagerView", &g_define_type_info, 0);
5032                 g_once_init_leave (&identity_manager_view_type_id__volatile, identity_manager_view_type_id);
5033         }
5034         return identity_manager_view_type_id__volatile;
5035 }
5036
5037
5038 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
5039         if ((array != NULL) && (destroy_func != NULL)) {
5040                 int i;
5041                 for (i = 0; i < array_length; i = i + 1) {
5042                         if (((gpointer*) array)[i] != NULL) {
5043                                 destroy_func (((gpointer*) array)[i]);
5044                         }
5045                 }
5046         }
5047 }
5048
5049
5050 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
5051         _vala_array_destroy (array, array_length, destroy_func);
5052         g_free (array);
5053 }
5054
5055
5056 static gint _vala_array_length (gpointer array) {
5057         int length;
5058         length = 0;
5059         if (array) {
5060                 while (((gpointer*) array)[length]) {
5061                         length++;
5062                 }
5063         }
5064         return length;
5065 }
5066
5067
5068