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