regenerate artifacts
authorSam Hartman <hartmans@painless-security.com>
Sat, 19 May 2012 00:49:05 +0000 (20:49 -0400)
committerSam Hartman <hartmans@painless-security.com>
Sat, 19 May 2012 00:49:05 +0000 (20:49 -0400)
17 files changed:
Makefile.in
configure
po/moonshot-ui.pot
src/moonshot-add-dialog.c
src/moonshot-custom-vbox.c
src/moonshot-id.c
src/moonshot-idcard-store.c
src/moonshot-idcard-widget.c
src/moonshot-identities-manager.c
src/moonshot-identity-management-view.c
src/moonshot-identity-manager-app.c
src/moonshot-identity-request.c
src/moonshot-local-flat-file-store.c
src/moonshot-password-dialog.c
src/moonshot-provisioning-common.c
src/moonshot-server.c
src/moonshot-utils.c

index 7a29149..8e07681 100644 (file)
@@ -77,7 +77,7 @@ DIST_COMMON = $(am__configure_deps) $(include_HEADERS) \
        ABOUT-NLS INSTALL build-aux/compile build-aux/config.guess \
        build-aux/config.rpath build-aux/config.sub build-aux/depcomp \
        build-aux/install-sh build-aux/ltmain.sh build-aux/missing \
-       examples_client_vala.stamp \
+       config.vapi examples_client_vala.stamp \
        examples_service_selection_vala.stamp \
        libmoonshot_libmoonshot_la_vala.stamp \
        src/moonshot-add-dialog.c src/moonshot-custom-vbox.c \
@@ -213,7 +213,7 @@ src_moonshot_DEPENDENCIES = $(am__DEPENDENCIES_3) \
        $(am__DEPENDENCIES_2)
 src_moonshot_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
        $(LIBTOOLFLAGS) --mode=link $(CCLD) $(src_moonshot_CFLAGS) \
-       $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+       $(CFLAGS) $(src_moonshot_LDFLAGS) $(LDFLAGS) -o $@
 am_src_moonshot_webp_OBJECTS =  \
        src/src_moonshot_webp-moonshot-webp-parser.$(OBJEXT) \
        src/src_moonshot_webp-moonshot-provisioning-common.$(OBJEXT) \
@@ -492,12 +492,12 @@ top_srcdir = @top_srcdir@
 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
 SUBDIRS = po
 lib_LTLIBRARIES = libmoonshot/libmoonshot.la
-AM_CFLAGS = 
-AM_CPPFLAGS = -include config.h -DLOCALEDIR=\""$(localedir)"\" \
+AM_CFLAGS = -g -O0
+AM_CPPFLAGS = -g -O0 -include config.h -DLOCALEDIR=\""$(localedir)"\" \
        -I$(top_srcdir)/libmoonshot -I$(top_builddir)/libmoonshot \
        $(am__append_1) $(am__append_3) $(am__append_7)
-AM_VALAFLAGS = config.vapi --vapidir=$(top_srcdir)/vapi --pkg gio-2.0 \
-       $(am__append_2) $(am__append_4) $(am__append_8) \
+AM_VALAFLAGS = -g config.vapi --vapidir=$(top_srcdir)/vapi --pkg \
+       gio-2.0 $(am__append_2) $(am__append_4) $(am__append_8) \
        $(am__append_12) $(am__append_13)
 libmoonshot_libmoonshot_la_CPPFLAGS = \
         $(libmoonshot_CFLAGS) \
@@ -527,6 +527,7 @@ src_moonshot_webp_SOURCES = \
 src_moonshot_VALAFLAGS = --pkg gdk-2.0 --pkg gtk+-2.0 --pkg gee-1.0 $(AM_VALAFLAGS)
 src_moonshot_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)  
 src_moonshot_LDADD = $(moonshot_LIBS) $(am__append_6)
+src_moonshot_LDFLAGS = -g -O0
 src_moonshot_webp_VALAFLAGS = --vapidir=$(top_srcdir)/libmoonshot  --pkg gtk+-2.0 --pkg gdk-2.0 --pkg libmoonshot $(AM_VALAFLAGS)
 src_moonshot_webp_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
 src_moonshot_webp_LDADD = $(moonshot_LIBS) ${top_builddir}/libmoonshot/libmoonshot.la
@@ -1231,6 +1232,11 @@ $(srcdir)/src/moonshot-id.c: $(srcdir)/src_moonshot_webp_vala.stamp
        @if test -f $@; then :; else \
          $(am__cd) $(srcdir) && $(MAKE) $(AM_MAKEFLAGS) src_moonshot_webp_vala.stamp; \
        fi
+$(srcdir)/config.vapi: $(srcdir)/src_moonshot_webp_vala.stamp
+       @if test -f $@; then :; else rm -f $(srcdir)/src_moonshot_webp_vala.stamp; fi
+       @if test -f $@; then :; else \
+         $(am__cd) $(srcdir) && $(MAKE) $(AM_MAKEFLAGS) src_moonshot_webp_vala.stamp; \
+       fi
 src_moonshot_webp_vala.stamp: $(src_moonshot_webp_SOURCES)
        $(AM_V_VALAC)$(VALAC) $(src_moonshot_webp_VALAFLAGS) $(VALAFLAGS) -C $(src_moonshot_webp_SOURCES)
        $(AM_V_at)touch $@
@@ -1310,6 +1316,11 @@ $(srcdir)/src/moonshot-utils.c: $(srcdir)/src_moonshot_vala.stamp
        @if test -f $@; then :; else \
          $(am__cd) $(srcdir) && $(MAKE) $(AM_MAKEFLAGS) src_moonshot_vala.stamp; \
        fi
+$(srcdir)/config.vapi: $(srcdir)/src_moonshot_vala.stamp
+       @if test -f $@; then :; else rm -f $(srcdir)/src_moonshot_vala.stamp; fi
+       @if test -f $@; then :; else \
+         $(am__cd) $(srcdir) && $(MAKE) $(AM_MAKEFLAGS) src_moonshot_vala.stamp; \
+       fi
 src_moonshot_vala.stamp: $(src_moonshot_SOURCES)
        $(AM_V_VALAC)$(VALAC) $(src_moonshot_VALAFLAGS) $(VALAFLAGS) -C $(src_moonshot_SOURCES)
        $(AM_V_at)touch $@
@@ -1776,6 +1787,7 @@ distclean-generic:
 maintainer-clean-generic:
        @echo "This command is intended for maintainers to use"
        @echo "it deletes files that may require special tools to rebuild."
+       -rm -f config.vapi
        -rm -f examples_client_vala.stamp
        -rm -f examples_service_selection_vala.stamp
        -rm -f libmoonshot_libmoonshot_la_vala.stamp
index ba6de7c..d0f2e7e 100755 (executable)
--- a/configure
+++ b/configure
@@ -633,7 +633,7 @@ PACKAGE_TARNAME='moonshot-ui'
 PACKAGE_VERSION='0.1'
 PACKAGE_STRING='Moonshot-ui 0.1'
 PACKAGE_BUGREPORT='moonshot-community@jiscmail.ac.uk'
-PACKAGE_URL=''
+PACKAGE_URL='http://www.project-moonshot.org/'
 
 ac_unique_file="configure.ac"
 # Factoring default headers for most tests.
@@ -1571,6 +1571,7 @@ Use these variables to override the choices made by `configure' or to help
 it to find libraries and programs with nonstandard names/locations.
 
 Report bugs to <moonshot-community@jiscmail.ac.uk>.
+Moonshot-ui home page: <http://www.project-moonshot.org/>.
 _ACEOF
 ac_status=$?
 fi
@@ -2261,6 +2262,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 
+# Remove this when we can depend on autoconf >= 2.64
+PACKAGE_URL=http://www.project-moonshot.org/
+
+
 ac_config_headers="$ac_config_headers config.h"
 
 
@@ -16816,7 +16821,8 @@ $config_headers
 Configuration commands:
 $config_commands
 
-Report bugs to <moonshot-community@jiscmail.ac.uk>."
+Report bugs to <moonshot-community@jiscmail.ac.uk>.
+Moonshot-ui home page: <http://www.project-moonshot.org/>."
 
 _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
index 5042ee4..6b9aea9 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: moonshot-ui 0.1\n"
 "Report-Msgid-Bugs-To: moonshot-community@jiscmail.ac.uk\n"
-"POT-Creation-Date: 2012-01-19 15:47+0000\n"
+"POT-Creation-Date: 2012-05-19 00:47+0000\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,101 +17,101 @@ msgstr ""
 "Content-Type: text/plain; charset=CHARSET\n"
 "Content-Transfer-Encoding: 8bit\n"
 
-#: src/moonshot-identity-management-view.vala:356
+#: src/moonshot-identity-management-view.vala:359
 #, c-format
 msgid "Would you like to add '%s' ID Card to the ID Card Organizer?"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:429
+#: src/moonshot-identity-management-view.vala:432
 #, c-format
 msgid "Are you sure you want to delete %s ID Card?"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:679
+#: src/moonshot-identity-management-view.vala:691
 #, c-format
 msgid "Are you sure you want to stop '%s' ID Card from being used with %s?"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:681
+#: src/moonshot-identity-management-view.vala:693
 msgid "this service"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:766
+#: src/moonshot-identity-management-view.vala:778
 msgid "Moonshot project UI"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:770
+#: src/moonshot-identity-management-view.vala:783
 msgid "Visit the Moonshot project web site"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:772
+#: src/moonshot-identity-management-view.vala:785
 msgid "translator-credits"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:782
+#: src/moonshot-identity-management-view.vala:795
 msgid "_File"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:791
+#: src/moonshot-identity-management-view.vala:804
 msgid "Add ID Card"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:793
+#: src/moonshot-identity-management-view.vala:806
 msgid "Add a new ID Card"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:802
+#: src/moonshot-identity-management-view.vala:815
 msgid "Quit"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:804
+#: src/moonshot-identity-management-view.vala:817
 msgid "Quit the application"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:810
+#: src/moonshot-identity-management-view.vala:823
 msgid "_Help"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:819
+#: src/moonshot-identity-management-view.vala:832
 msgid "About"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:821
+#: src/moonshot-identity-management-view.vala:834
 msgid "About this application"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:851
+#: src/moonshot-identity-management-view.vala:864
 msgid "Search entry"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:851
+#: src/moonshot-identity-management-view.vala:864
 msgid "Search for a specific ID Card"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:856
+#: src/moonshot-identity-management-view.vala:869
 msgid "Search identity or service"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:863
+#: src/moonshot-identity-management-view.vala:876
 msgid "Clear the current search"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:887
+#: src/moonshot-identity-management-view.vala:900
 msgid "Login: "
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:890
+#: src/moonshot-identity-management-view.vala:903
 msgid "Username:"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:893
+#: src/moonshot-identity-management-view.vala:906
 msgid "Password:"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:898
+#: src/moonshot-identity-management-view.vala:911
 msgid "Remember password"
 msgstr ""
 
-#: src/moonshot-identity-management-view.vala:914
+#: src/moonshot-identity-management-view.vala:927
 msgid "Services:"
 msgstr ""
index be4f761..0d312dc 100644 (file)
@@ -70,7 +70,9 @@ static gpointer _g_object_ref0 (gpointer self) {
 }
 
 
+#line 26 "moonshot-add-dialog.vala"
 AddIdentityDialog* add_identity_dialog_construct (GType object_type) {
+#line 76 "moonshot-add-dialog.c"
        AddIdentityDialog * self;
        GtkWidget* content_area;
        GtkLabel* displayname_label;
@@ -85,49 +87,93 @@ AddIdentityDialog* add_identity_dialog_construct (GType object_type) {
        GtkTable* table;
        GtkVBox* vbox;
        self = g_object_newv (object_type, 0, NULL);
+#line 28 "moonshot-add-dialog.vala"
        gtk_window_set_title ((GtkWindow*) self, _ ("Add ID Card"));
+#line 29 "moonshot-add-dialog.vala"
        gtk_window_set_modal ((GtkWindow*) self, TRUE);
+#line 31 "moonshot-add-dialog.vala"
        gtk_dialog_add_buttons ((GtkDialog*) self, _ ("Add ID Card"), GTK_RESPONSE_OK, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, NULL);
+#line 38 "moonshot-add-dialog.vala"
        content_area = _g_object_ref0 (gtk_dialog_get_content_area ((GtkDialog*) self));
+#line 39 "moonshot-add-dialog.vala"
        gtk_box_set_spacing (GTK_BOX (content_area), 12);
+#line 41 "moonshot-add-dialog.vala"
        displayname_label = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Display Name:")));
+#line 42 "moonshot-add-dialog.vala"
        gtk_misc_set_alignment ((GtkMisc*) displayname_label, (float) 1, (float) 0.5);
+#line 43 "moonshot-add-dialog.vala"
        self->priv->displayname_entry = (_tmp0_ = g_object_ref_sink ((GtkEntry*) gtk_entry_new ()), _g_object_unref0 (self->priv->displayname_entry), _tmp0_);
+#line 44 "moonshot-add-dialog.vala"
        issuer_label = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Issuer:")));
+#line 45 "moonshot-add-dialog.vala"
        gtk_misc_set_alignment ((GtkMisc*) issuer_label, (float) 1, (float) 0.5);
+#line 46 "moonshot-add-dialog.vala"
        self->priv->issuer_entry = (_tmp1_ = g_object_ref_sink ((GtkEntry*) gtk_entry_new ()), _g_object_unref0 (self->priv->issuer_entry), _tmp1_);
+#line 47 "moonshot-add-dialog.vala"
        username_label = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Username:")));
+#line 48 "moonshot-add-dialog.vala"
        gtk_misc_set_alignment ((GtkMisc*) username_label, (float) 1, (float) 0.5);
+#line 49 "moonshot-add-dialog.vala"
        self->priv->username_entry = (_tmp2_ = g_object_ref_sink ((GtkEntry*) gtk_entry_new ()), _g_object_unref0 (self->priv->username_entry), _tmp2_);
+#line 50 "moonshot-add-dialog.vala"
        password_label = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Password:")));
+#line 51 "moonshot-add-dialog.vala"
        gtk_misc_set_alignment ((GtkMisc*) password_label, (float) 1, (float) 0.5);
+#line 52 "moonshot-add-dialog.vala"
        self->priv->password_entry = (_tmp3_ = g_object_ref_sink ((GtkEntry*) gtk_entry_new ()), _g_object_unref0 (self->priv->password_entry), _tmp3_);
+#line 53 "moonshot-add-dialog.vala"
        gtk_entry_set_invisible_char (self->priv->password_entry, (gunichar) '*');
+#line 54 "moonshot-add-dialog.vala"
        gtk_entry_set_visibility (self->priv->password_entry, FALSE);
+#line 55 "moonshot-add-dialog.vala"
        remember_checkbutton = g_object_ref_sink ((GtkCheckButton*) gtk_check_button_new_with_label (_ ("Remember password")));
+#line 57 "moonshot-add-dialog.vala"
        add_identity_dialog_set_atk_relation (self, (GtkWidget*) displayname_label, (GtkWidget*) self->priv->displayname_entry, ATK_RELATION_LABEL_FOR);
+#line 58 "moonshot-add-dialog.vala"
        add_identity_dialog_set_atk_relation (self, (GtkWidget*) issuer_label, (GtkWidget*) self->priv->issuer_entry, ATK_RELATION_LABEL_FOR);
+#line 59 "moonshot-add-dialog.vala"
        add_identity_dialog_set_atk_relation (self, (GtkWidget*) username_label, (GtkWidget*) self->priv->username_entry, ATK_RELATION_LABEL_FOR);
+#line 60 "moonshot-add-dialog.vala"
        add_identity_dialog_set_atk_relation (self, (GtkWidget*) self->priv->password_entry, (GtkWidget*) self->priv->password_entry, ATK_RELATION_LABEL_FOR);
+#line 62 "moonshot-add-dialog.vala"
        table = g_object_ref_sink ((GtkTable*) gtk_table_new ((guint) 5, (guint) 5, FALSE));
+#line 63 "moonshot-add-dialog.vala"
        gtk_table_set_col_spacings (table, (guint) 10);
+#line 64 "moonshot-add-dialog.vala"
        gtk_table_set_row_spacings (table, (guint) 10);
+#line 66 "moonshot-add-dialog.vala"
        gtk_table_attach_defaults (table, (GtkWidget*) displayname_label, (guint) 0, (guint) 1, (guint) 0, (guint) 1);
+#line 67 "moonshot-add-dialog.vala"
        gtk_table_attach_defaults (table, (GtkWidget*) self->priv->displayname_entry, (guint) 1, (guint) 2, (guint) 0, (guint) 1);
+#line 68 "moonshot-add-dialog.vala"
        gtk_table_attach_defaults (table, (GtkWidget*) issuer_label, (guint) 0, (guint) 1, (guint) 1, (guint) 2);
+#line 69 "moonshot-add-dialog.vala"
        gtk_table_attach_defaults (table, (GtkWidget*) self->priv->issuer_entry, (guint) 1, (guint) 2, (guint) 1, (guint) 2);
+#line 70 "moonshot-add-dialog.vala"
        gtk_table_attach_defaults (table, (GtkWidget*) username_label, (guint) 0, (guint) 1, (guint) 2, (guint) 3);
+#line 71 "moonshot-add-dialog.vala"
        gtk_table_attach_defaults (table, (GtkWidget*) self->priv->username_entry, (guint) 1, (guint) 2, (guint) 2, (guint) 3);
+#line 72 "moonshot-add-dialog.vala"
        gtk_table_attach_defaults (table, (GtkWidget*) password_label, (guint) 0, (guint) 1, (guint) 3, (guint) 4);
+#line 73 "moonshot-add-dialog.vala"
        gtk_table_attach_defaults (table, (GtkWidget*) self->priv->password_entry, (guint) 1, (guint) 2, (guint) 3, (guint) 4);
+#line 74 "moonshot-add-dialog.vala"
        gtk_table_attach_defaults (table, (GtkWidget*) remember_checkbutton, (guint) 1, (guint) 2, (guint) 4, (guint) 5);
+#line 76 "moonshot-add-dialog.vala"
        vbox = g_object_ref_sink ((GtkVBox*) gtk_vbox_new (FALSE, 0));
+#line 77 "moonshot-add-dialog.vala"
        gtk_container_set_border_width ((GtkContainer*) vbox, (guint) 6);
+#line 78 "moonshot-add-dialog.vala"
        gtk_box_pack_start ((GtkBox*) vbox, (GtkWidget*) table, FALSE, FALSE, (guint) 0);
+#line 80 "moonshot-add-dialog.vala"
        gtk_container_add (GTK_CONTAINER (content_area), (GtkWidget*) vbox);
+#line 82 "moonshot-add-dialog.vala"
        gtk_container_set_border_width ((GtkContainer*) self, (guint) 6);
+#line 83 "moonshot-add-dialog.vala"
        gtk_window_set_resizable ((GtkWindow*) self, FALSE);
+#line 84 "moonshot-add-dialog.vala"
        gtk_widget_show_all ((GtkWidget*) self);
+#line 177 "moonshot-add-dialog.c"
        _g_object_unref0 (vbox);
        _g_object_unref0 (table);
        _g_object_unref0 (remember_checkbutton);
@@ -140,20 +186,32 @@ AddIdentityDialog* add_identity_dialog_construct (GType object_type) {
 }
 
 
+#line 26 "moonshot-add-dialog.vala"
 AddIdentityDialog* add_identity_dialog_new (void) {
+#line 26 "moonshot-add-dialog.vala"
        return add_identity_dialog_construct (TYPE_ADD_IDENTITY_DIALOG);
+#line 194 "moonshot-add-dialog.c"
 }
 
 
+#line 87 "moonshot-add-dialog.vala"
 static void add_identity_dialog_set_atk_relation (AddIdentityDialog* self, GtkWidget* widget, GtkWidget* target_widget, AtkRelationType relationship) {
+#line 200 "moonshot-add-dialog.c"
        AtkObject* atk_widget;
        AtkObject* atk_target_widget;
+#line 87 "moonshot-add-dialog.vala"
        g_return_if_fail (self != NULL);
+#line 87 "moonshot-add-dialog.vala"
        g_return_if_fail (widget != NULL);
+#line 87 "moonshot-add-dialog.vala"
        g_return_if_fail (target_widget != NULL);
+#line 89 "moonshot-add-dialog.vala"
        atk_widget = _g_object_ref0 (gtk_widget_get_accessible (widget));
+#line 90 "moonshot-add-dialog.vala"
        atk_target_widget = _g_object_ref0 (gtk_widget_get_accessible (target_widget));
+#line 92 "moonshot-add-dialog.vala"
        atk_object_add_relationship (atk_widget, relationship, atk_target_widget);
+#line 215 "moonshot-add-dialog.c"
        _g_object_unref0 (atk_target_widget);
        _g_object_unref0 (atk_widget);
 }
@@ -163,7 +221,9 @@ const char* add_identity_dialog_get_display_name (AddIdentityDialog* self) {
        const char* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = gtk_entry_get_text (self->priv->displayname_entry);
+#line 11 "moonshot-add-dialog.vala"
        return result;
+#line 227 "moonshot-add-dialog.c"
 }
 
 
@@ -171,7 +231,9 @@ const char* add_identity_dialog_get_issuer (AddIdentityDialog* self) {
        const char* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = gtk_entry_get_text (self->priv->issuer_entry);
+#line 15 "moonshot-add-dialog.vala"
        return result;
+#line 237 "moonshot-add-dialog.c"
 }
 
 
@@ -179,7 +241,9 @@ const char* add_identity_dialog_get_username (AddIdentityDialog* self) {
        const char* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = gtk_entry_get_text (self->priv->username_entry);
+#line 19 "moonshot-add-dialog.vala"
        return result;
+#line 247 "moonshot-add-dialog.c"
 }
 
 
@@ -187,7 +251,9 @@ const char* add_identity_dialog_get_password (AddIdentityDialog* self) {
        const char* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = gtk_entry_get_text (self->priv->password_entry);
+#line 23 "moonshot-add-dialog.vala"
        return result;
+#line 257 "moonshot-add-dialog.c"
 }
 
 
index c12e123..b189819 100644 (file)
@@ -137,68 +137,111 @@ static gpointer _g_object_ref0 (gpointer self) {
 }
 
 
+#line 8 "moonshot-custom-vbox.vala"
 CustomVBox* custom_vbox_construct (GType object_type, IdentityManagerView* window, gboolean homogeneous, gint spacing) {
+#line 143 "moonshot-custom-vbox.c"
        CustomVBox * self;
        IdentityManagerView* _tmp0_;
+#line 8 "moonshot-custom-vbox.vala"
        g_return_val_if_fail (window != NULL, NULL);
+#line 148 "moonshot-custom-vbox.c"
        self = g_object_newv (object_type, 0, NULL);
+#line 10 "moonshot-custom-vbox.vala"
        self->priv->main_window = (_tmp0_ = _g_object_ref0 (window), _g_object_unref0 (self->priv->main_window), _tmp0_);
+#line 11 "moonshot-custom-vbox.vala"
        gtk_box_set_homogeneous ((GtkBox*) self, homogeneous);
+#line 12 "moonshot-custom-vbox.vala"
        gtk_box_set_spacing ((GtkBox*) self, spacing);
+#line 156 "moonshot-custom-vbox.c"
        return self;
 }
 
 
+#line 8 "moonshot-custom-vbox.vala"
 CustomVBox* custom_vbox_new (IdentityManagerView* window, gboolean homogeneous, gint spacing) {
+#line 8 "moonshot-custom-vbox.vala"
        return custom_vbox_construct (TYPE_CUSTOM_VBOX, window, homogeneous, spacing);
+#line 165 "moonshot-custom-vbox.c"
 }
 
 
+#line 15 "moonshot-custom-vbox.vala"
 void custom_vbox_receive_expanded_event (CustomVBox* self, IdCardWidget* id_card_widget) {
+#line 171 "moonshot-custom-vbox.c"
        GList* list;
        gboolean _tmp0_ = FALSE;
+#line 15 "moonshot-custom-vbox.vala"
        g_return_if_fail (self != NULL);
+#line 15 "moonshot-custom-vbox.vala"
        g_return_if_fail (id_card_widget != NULL);
+#line 17 "moonshot-custom-vbox.vala"
        list = gtk_container_get_children ((GtkContainer*) self);
+#line 180 "moonshot-custom-vbox.c"
        {
                GList* id_card_collection;
                GList* id_card_it;
+#line 18 "moonshot-custom-vbox.vala"
                id_card_collection = list;
+#line 186 "moonshot-custom-vbox.c"
                for (id_card_it = id_card_collection; id_card_it != NULL; id_card_it = id_card_it->next) {
                        GtkWidget* id_card;
+#line 18 "moonshot-custom-vbox.vala"
                        id_card = _g_object_ref0 ((GtkWidget*) id_card_it->data);
+#line 191 "moonshot-custom-vbox.c"
                        {
+#line 20 "moonshot-custom-vbox.vala"
                                if (id_card != GTK_WIDGET (id_card_widget)) {
+#line 21 "moonshot-custom-vbox.vala"
                                        id_card_widget_collapse (ID_CARD_WIDGET (id_card));
+#line 197 "moonshot-custom-vbox.c"
                                }
                                _g_object_unref0 (id_card);
                        }
                }
        }
+#line 23 "moonshot-custom-vbox.vala"
        custom_vbox_set_current_idcard (self, id_card_widget);
+#line 25 "moonshot-custom-vbox.vala"
        if (self->priv->_current_idcard != NULL) {
+#line 25 "moonshot-custom-vbox.vala"
                _tmp0_ = self->priv->main_window->request_queue->length > 0;
+#line 209 "moonshot-custom-vbox.c"
        } else {
+#line 25 "moonshot-custom-vbox.vala"
                _tmp0_ = FALSE;
+#line 213 "moonshot-custom-vbox.c"
        }
+#line 25 "moonshot-custom-vbox.vala"
        if (_tmp0_) {
+#line 26 "moonshot-custom-vbox.vala"
                gtk_widget_set_sensitive ((GtkWidget*) id_card_widget_get_send_button (self->priv->_current_idcard), TRUE);
+#line 219 "moonshot-custom-vbox.c"
        }
        _g_list_free0 (list);
 }
 
 
+#line 29 "moonshot-custom-vbox.vala"
 void custom_vbox_add_id_card_widget (CustomVBox* self, IdCardWidget* id_card_widget) {
+#line 29 "moonshot-custom-vbox.vala"
        g_return_if_fail (self != NULL);
+#line 29 "moonshot-custom-vbox.vala"
        g_return_if_fail (id_card_widget != NULL);
+#line 31 "moonshot-custom-vbox.vala"
        gtk_box_pack_start ((GtkBox*) self, (GtkWidget*) id_card_widget, FALSE, FALSE, 0);
+#line 233 "moonshot-custom-vbox.c"
 }
 
 
+#line 34 "moonshot-custom-vbox.vala"
 void custom_vbox_remove_id_card_widget (CustomVBox* self, IdCardWidget* id_card_widget) {
+#line 34 "moonshot-custom-vbox.vala"
        g_return_if_fail (self != NULL);
+#line 34 "moonshot-custom-vbox.vala"
        g_return_if_fail (id_card_widget != NULL);
+#line 36 "moonshot-custom-vbox.vala"
        gtk_container_remove ((GtkContainer*) self, (GtkWidget*) id_card_widget);
+#line 245 "moonshot-custom-vbox.c"
 }
 
 
@@ -206,7 +249,9 @@ IdCardWidget* custom_vbox_get_current_idcard (CustomVBox* self) {
        IdCardWidget* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self->priv->_current_idcard;
+#line 5 "moonshot-custom-vbox.vala"
        return result;
+#line 255 "moonshot-custom-vbox.c"
 }
 
 
index 66b88ae..75f52e4 100644 (file)
@@ -156,15 +156,22 @@ static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify
 
 
 
+#line 1 "moonshot-id.vala"
 TrustAnchor* trust_anchor_construct (GType object_type) {
+#line 162 "moonshot-id.c"
        TrustAnchor * self = NULL;
+#line 1 "moonshot-id.vala"
        self = (TrustAnchor*) g_object_new (object_type, NULL);
+#line 166 "moonshot-id.c"
        return self;
 }
 
 
+#line 1 "moonshot-id.vala"
 TrustAnchor* trust_anchor_new (void) {
+#line 1 "moonshot-id.vala"
        return trust_anchor_construct (TYPE_TRUST_ANCHOR);
+#line 175 "moonshot-id.c"
 }
 
 
@@ -172,7 +179,9 @@ const char* trust_anchor_get_ca_cert (TrustAnchor* self) {
        const char* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self->priv->_ca_cert;
+#line 3 "moonshot-id.vala"
        return result;
+#line 185 "moonshot-id.c"
 }
 
 
@@ -188,7 +197,9 @@ const char* trust_anchor_get_subject (TrustAnchor* self) {
        const char* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self->priv->_subject;
+#line 4 "moonshot-id.vala"
        return result;
+#line 203 "moonshot-id.c"
 }
 
 
@@ -204,7 +215,9 @@ const char* trust_anchor_get_subject_alt (TrustAnchor* self) {
        const char* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self->priv->_subject_alt;
+#line 5 "moonshot-id.vala"
        return result;
+#line 221 "moonshot-id.c"
 }
 
 
@@ -220,7 +233,9 @@ const char* trust_anchor_get_server_cert (TrustAnchor* self) {
        const char* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self->priv->_server_cert;
+#line 6 "moonshot-id.vala"
        return result;
+#line 239 "moonshot-id.c"
 }
 
 
@@ -371,15 +386,22 @@ static void _vala_Rule_array_free (Rule* array, gint array_length) {
 }
 
 
+#line 15 "moonshot-id.vala"
 IdCard* id_card_construct (GType object_type) {
+#line 392 "moonshot-id.c"
        IdCard * self = NULL;
+#line 15 "moonshot-id.vala"
        self = (IdCard*) g_object_new (object_type, NULL);
+#line 396 "moonshot-id.c"
        return self;
 }
 
 
+#line 15 "moonshot-id.vala"
 IdCard* id_card_new (void) {
+#line 15 "moonshot-id.vala"
        return id_card_construct (TYPE_ID_CARD);
+#line 405 "moonshot-id.c"
 }
 
 
@@ -387,7 +409,9 @@ const char* id_card_get_display_name (IdCard* self) {
        const char* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self->priv->_display_name;
+#line 19 "moonshot-id.vala"
        return result;
+#line 415 "moonshot-id.c"
 }
 
 
@@ -403,7 +427,9 @@ const char* id_card_get_username (IdCard* self) {
        const char* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self->priv->_username;
+#line 21 "moonshot-id.vala"
        return result;
+#line 433 "moonshot-id.c"
 }
 
 
@@ -419,7 +445,9 @@ const char* id_card_get_password (IdCard* self) {
        const char* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self->priv->_password;
+#line 22 "moonshot-id.vala"
        return result;
+#line 451 "moonshot-id.c"
 }
 
 
@@ -435,7 +463,9 @@ const char* id_card_get_issuer (IdCard* self) {
        const char* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self->priv->_issuer;
+#line 24 "moonshot-id.vala"
        return result;
+#line 469 "moonshot-id.c"
 }
 
 
@@ -452,7 +482,9 @@ Rule* id_card_get_rules (IdCard* self, int* result_length1) {
        Rule* _tmp0_;
        g_return_val_if_fail (self != NULL, NULL);
        result = (_tmp0_ = self->priv->_rules, *result_length1 = self->priv->_rules_length1, _tmp0_);
+#line 26 "moonshot-id.vala"
        return result;
+#line 488 "moonshot-id.c"
 }
 
 
@@ -481,7 +513,9 @@ char** id_card_get_services (IdCard* self, int* result_length1) {
        char** _tmp0_;
        g_return_val_if_fail (self != NULL, NULL);
        result = (_tmp0_ = self->priv->_services, *result_length1 = self->priv->_services_length1, _tmp0_);
+#line 27 "moonshot-id.vala"
        return result;
+#line 519 "moonshot-id.c"
 }
 
 
@@ -509,7 +543,9 @@ TrustAnchor* id_card_get_trust_anchor (IdCard* self) {
        TrustAnchor* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self->priv->_trust_anchor;
+#line 29 "moonshot-id.vala"
        return result;
+#line 549 "moonshot-id.c"
 }
 
 
@@ -530,7 +566,9 @@ GdkPixbuf* id_card_get_pixbuf (IdCard* self) {
        GdkPixbuf* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self->priv->_pixbuf;
+#line 31 "moonshot-id.vala"
        return result;
+#line 572 "moonshot-id.c"
 }
 
 
@@ -547,10 +585,14 @@ const char* id_card_get_nai (IdCard* self) {
        char* _tmp0_;
        char* _tmp1_;
        g_return_val_if_fail (self != NULL, NULL);
+#line 33 "moonshot-id.vala"
        self->priv->_nai = (_tmp1_ = g_strconcat (_tmp0_ = g_strconcat (self->priv->_username, "@", NULL), self->priv->_issuer, NULL), _g_free0 (self->priv->_nai), _tmp1_);
+#line 591 "moonshot-id.c"
        _g_free0 (_tmp0_);
        result = self->priv->_nai;
+#line 33 "moonshot-id.vala"
        return result;
+#line 596 "moonshot-id.c"
 }
 
 
index ac36aee..08d7ee3 100644 (file)
@@ -44,23 +44,35 @@ GeeLinkedList* iidentity_card_store_get_card_list (IIdentityCardStore* self);
 
 
 
+#line 136 "moonshot-local-flat-file-store.vala"
 void iidentity_card_store_add_card (IIdentityCardStore* self, IdCard* card) {
+#line 136 "moonshot-local-flat-file-store.vala"
        IIDENTITY_CARD_STORE_GET_INTERFACE (self)->add_card (self, card);
+#line 52 "moonshot-idcard-store.c"
 }
 
 
+#line 136 "moonshot-local-flat-file-store.vala"
 void iidentity_card_store_remove_card (IIdentityCardStore* self, IdCard* card) {
+#line 136 "moonshot-local-flat-file-store.vala"
        IIDENTITY_CARD_STORE_GET_INTERFACE (self)->remove_card (self, card);
+#line 60 "moonshot-idcard-store.c"
 }
 
 
+#line 136 "moonshot-local-flat-file-store.vala"
 void iidentity_card_store_update_card (IIdentityCardStore* self, IdCard* card) {
+#line 136 "moonshot-local-flat-file-store.vala"
        IIDENTITY_CARD_STORE_GET_INTERFACE (self)->update_card (self, card);
+#line 68 "moonshot-idcard-store.c"
 }
 
 
+#line 136 "moonshot-local-flat-file-store.vala"
 GeeLinkedList* iidentity_card_store_get_card_list (IIdentityCardStore* self) {
+#line 136 "moonshot-local-flat-file-store.vala"
        return IIDENTITY_CARD_STORE_GET_INTERFACE (self)->get_card_list (self);
+#line 76 "moonshot-idcard-store.c"
 }
 
 
index 6ea4b63..7b91caf 100644 (file)
@@ -102,106 +102,176 @@ static void id_card_widget_set_property (GObject * object, guint property_id, co
 
 
 
+#line 22 "moonshot-idcard-widget.vala"
 void id_card_widget_collapse (IdCardWidget* self) {
+#line 22 "moonshot-idcard-widget.vala"
        g_return_if_fail (self != NULL);
+#line 24 "moonshot-idcard-widget.vala"
        gtk_widget_set_visible ((GtkWidget*) self->priv->hbutton_box, FALSE);
+#line 26 "moonshot-idcard-widget.vala"
        id_card_widget_set_idcard_color (self);
+#line 114 "moonshot-idcard-widget.c"
 }
 
 
+#line 29 "moonshot-idcard-widget.vala"
 static gboolean id_card_widget_button_press_cb (IdCardWidget* self) {
+#line 120 "moonshot-idcard-widget.c"
        gboolean result = FALSE;
+#line 29 "moonshot-idcard-widget.vala"
        g_return_val_if_fail (self != NULL, FALSE);
+#line 31 "moonshot-idcard-widget.vala"
        gtk_widget_set_visible ((GtkWidget*) self->priv->hbutton_box, !gtk_widget_get_visible ((GtkWidget*) self->priv->hbutton_box));
+#line 33 "moonshot-idcard-widget.vala"
        id_card_widget_set_idcard_color (self);
+#line 35 "moonshot-idcard-widget.vala"
        if (gtk_widget_get_visible ((GtkWidget*) self->priv->hbutton_box) == TRUE) {
+#line 36 "moonshot-idcard-widget.vala"
                g_signal_emit_by_name (self, "expanded");
+#line 132 "moonshot-idcard-widget.c"
        }
        result = FALSE;
+#line 38 "moonshot-idcard-widget.vala"
        return result;
+#line 137 "moonshot-idcard-widget.c"
 }
 
 
+#line 41 "moonshot-idcard-widget.vala"
 static void id_card_widget_delete_button_cb (IdCardWidget* self) {
+#line 41 "moonshot-idcard-widget.vala"
        g_return_if_fail (self != NULL);
+#line 43 "moonshot-idcard-widget.vala"
        g_signal_emit_by_name (self, "remove-id");
+#line 147 "moonshot-idcard-widget.c"
 }
 
 
+#line 46 "moonshot-idcard-widget.vala"
 static void id_card_widget_details_button_cb (IdCardWidget* self) {
+#line 46 "moonshot-idcard-widget.vala"
        g_return_if_fail (self != NULL);
+#line 48 "moonshot-idcard-widget.vala"
        g_signal_emit_by_name (self, "details-id");
+#line 157 "moonshot-idcard-widget.c"
 }
 
 
+#line 51 "moonshot-idcard-widget.vala"
 static void id_card_widget_send_button_cb (IdCardWidget* self) {
+#line 51 "moonshot-idcard-widget.vala"
        g_return_if_fail (self != NULL);
+#line 53 "moonshot-idcard-widget.vala"
        g_signal_emit_by_name (self, "send-id");
+#line 167 "moonshot-idcard-widget.c"
 }
 
 
+#line 56 "moonshot-idcard-widget.vala"
 static void id_card_widget_set_idcard_color (IdCardWidget* self) {
+#line 173 "moonshot-idcard-widget.c"
        GdkColor color = {0};
        GtkStateType state;
+#line 56 "moonshot-idcard-widget.vala"
        g_return_if_fail (self != NULL);
+#line 178 "moonshot-idcard-widget.c"
        memset (&color, 0, sizeof (GdkColor));
+#line 60 "moonshot-idcard-widget.vala"
        if (gtk_widget_get_visible ((GtkWidget*) self->priv->hbutton_box) == FALSE) {
+#line 62 "moonshot-idcard-widget.vala"
                color.red = (guint16) 65535;
+#line 63 "moonshot-idcard-widget.vala"
                color.green = (guint16) 65535;
+#line 64 "moonshot-idcard-widget.vala"
                color.blue = (guint16) 65535;
+#line 188 "moonshot-idcard-widget.c"
        } else {
+#line 68 "moonshot-idcard-widget.vala"
                color.red = (guint16) 33333;
+#line 69 "moonshot-idcard-widget.vala"
                color.green = (guint16) 33333;
+#line 70 "moonshot-idcard-widget.vala"
                color.blue = (guint16) 60000;
+#line 196 "moonshot-idcard-widget.c"
        }
+#line 72 "moonshot-idcard-widget.vala"
        state = gtk_widget_get_state ((GtkWidget*) self);
+#line 73 "moonshot-idcard-widget.vala"
        gtk_widget_modify_bg ((GtkWidget*) self->priv->event_box, state, &color);
+#line 202 "moonshot-idcard-widget.c"
 }
 
 
+#line 76 "moonshot-idcard-widget.vala"
 void id_card_widget_update_id_card_label (IdCardWidget* self) {
+#line 208 "moonshot-idcard-widget.c"
        char* services_text;
        char* display_name;
        char* _tmp8_;
        char* _tmp9_;
+#line 76 "moonshot-idcard-widget.vala"
        g_return_if_fail (self != NULL);
+#line 79 "moonshot-idcard-widget.vala"
        services_text = g_strdup ("");
+#line 81 "moonshot-idcard-widget.vala"
        display_name = g_markup_printf_escaped ("<big>%s</big>", id_card_get_display_name (self->priv->_id_card));
+#line 219 "moonshot-idcard-widget.c"
        {
                gint i;
+#line 82 "moonshot-idcard-widget.vala"
                i = 0;
+#line 224 "moonshot-idcard-widget.c"
                {
                        gboolean _tmp0_;
+#line 82 "moonshot-idcard-widget.vala"
                        _tmp0_ = TRUE;
+#line 82 "moonshot-idcard-widget.vala"
                        while (TRUE) {
+#line 231 "moonshot-idcard-widget.c"
                                gint _tmp1_;
                                gint _tmp2_;
                                char* service;
                                gint _tmp3_;
+#line 82 "moonshot-idcard-widget.vala"
                                if (!_tmp0_) {
+#line 82 "moonshot-idcard-widget.vala"
                                        i++;
+#line 240 "moonshot-idcard-widget.c"
                                }
+#line 82 "moonshot-idcard-widget.vala"
                                _tmp0_ = FALSE;
+#line 82 "moonshot-idcard-widget.vala"
                                if (!(i < _tmp1_)) {
+#line 82 "moonshot-idcard-widget.vala"
                                        break;
+#line 248 "moonshot-idcard-widget.c"
                                }
+#line 84 "moonshot-idcard-widget.vala"
                                service = g_strdup (id_card_get_services (self->priv->_id_card, &_tmp2_)[i]);
+#line 86 "moonshot-idcard-widget.vala"
                                if (i == (_tmp3_ - 1)) {
+#line 254 "moonshot-idcard-widget.c"
                                        char* _tmp4_;
                                        char* _tmp5_;
+#line 87 "moonshot-idcard-widget.vala"
                                        services_text = (_tmp5_ = g_strconcat (services_text, _tmp4_ = g_markup_printf_escaped ("<i>%s</i>", service), NULL), _g_free0 (services_text), _tmp5_);
+#line 259 "moonshot-idcard-widget.c"
                                        _g_free0 (_tmp4_);
                                } else {
                                        char* _tmp6_;
                                        char* _tmp7_;
+#line 89 "moonshot-idcard-widget.vala"
                                        services_text = (_tmp7_ = g_strconcat (services_text, _tmp6_ = g_markup_printf_escaped ("<i>%s, </i>", service), NULL), _g_free0 (services_text), _tmp7_);
+#line 266 "moonshot-idcard-widget.c"
                                        _g_free0 (_tmp6_);
                                }
                                _g_free0 (service);
                        }
                }
        }
+#line 91 "moonshot-idcard-widget.vala"
        gtk_label_set_markup (self->priv->label, _tmp9_ = g_strconcat (_tmp8_ = g_strconcat (display_name, "\n", NULL), services_text, NULL));
+#line 275 "moonshot-idcard-widget.c"
        _g_free0 (_tmp9_);
        _g_free0 (_tmp8_);
        _g_free0 (display_name);
@@ -209,29 +279,39 @@ void id_card_widget_update_id_card_label (IdCardWidget* self) {
 }
 
 
+#line 41 "moonshot-idcard-widget.vala"
 static void _id_card_widget_delete_button_cb_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 285 "moonshot-idcard-widget.c"
        id_card_widget_delete_button_cb (self);
 }
 
 
+#line 46 "moonshot-idcard-widget.vala"
 static void _id_card_widget_details_button_cb_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 292 "moonshot-idcard-widget.c"
        id_card_widget_details_button_cb (self);
 }
 
 
+#line 51 "moonshot-idcard-widget.vala"
 static void _id_card_widget_send_button_cb_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 299 "moonshot-idcard-widget.c"
        id_card_widget_send_button_cb (self);
 }
 
 
+#line 29 "moonshot-idcard-widget.vala"
 static gboolean _id_card_widget_button_press_cb_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self) {
+#line 306 "moonshot-idcard-widget.c"
        gboolean result;
        result = id_card_widget_button_press_cb (self);
        return result;
 }
 
 
+#line 94 "moonshot-idcard-widget.vala"
 IdCardWidget* id_card_widget_construct (GType object_type, IdCard* id_card) {
+#line 315 "moonshot-idcard-widget.c"
        IdCardWidget * self;
        GtkImage* image;
        GtkLabel* _tmp0_;
@@ -242,52 +322,95 @@ IdCardWidget* id_card_widget_construct (GType object_type, IdCard* id_card) {
        GtkHButtonBox* _tmp5_;
        GtkVBox* _tmp6_;
        GtkEventBox* _tmp7_;
+#line 94 "moonshot-idcard-widget.vala"
        g_return_val_if_fail (id_card != NULL, NULL);
+#line 328 "moonshot-idcard-widget.c"
        self = g_object_newv (object_type, 0, NULL);
+#line 96 "moonshot-idcard-widget.vala"
        id_card_widget_set_id_card (self, id_card);
+#line 98 "moonshot-idcard-widget.vala"
        image = g_object_ref_sink ((GtkImage*) gtk_image_new_from_pixbuf ((GdkPixbuf*) g_object_get_data ((GObject*) id_card, "pixbuf")));
+#line 100 "moonshot-idcard-widget.vala"
        self->priv->label = (_tmp0_ = g_object_ref_sink ((GtkLabel*) gtk_label_new (NULL)), _g_object_unref0 (self->priv->label), _tmp0_);
+#line 101 "moonshot-idcard-widget.vala"
        gtk_misc_set_alignment ((GtkMisc*) self->priv->label, (float) 0, (float) 0.5);
+#line 102 "moonshot-idcard-widget.vala"
        gtk_label_set_ellipsize (self->priv->label, PANGO_ELLIPSIZE_END);
+#line 103 "moonshot-idcard-widget.vala"
        id_card_widget_update_id_card_label (self);
+#line 105 "moonshot-idcard-widget.vala"
        self->priv->table = (_tmp1_ = g_object_ref_sink ((GtkHBox*) gtk_hbox_new (FALSE, 6)), _g_object_unref0 (self->priv->table), _tmp1_);
+#line 106 "moonshot-idcard-widget.vala"
        gtk_box_pack_start ((GtkBox*) self->priv->table, (GtkWidget*) image, FALSE, FALSE, (guint) 0);
+#line 107 "moonshot-idcard-widget.vala"
        gtk_box_pack_start ((GtkBox*) self->priv->table, (GtkWidget*) self->priv->label, TRUE, TRUE, (guint) 0);
+#line 109 "moonshot-idcard-widget.vala"
        id_card_widget_set_delete_button (self, _tmp2_ = g_object_ref_sink ((GtkButton*) gtk_button_new_with_label (_ ("Delete"))));
+#line 350 "moonshot-idcard-widget.c"
        _g_object_unref0 (_tmp2_);
+#line 110 "moonshot-idcard-widget.vala"
        id_card_widget_set_details_button (self, _tmp3_ = g_object_ref_sink ((GtkButton*) gtk_button_new_with_label (_ ("View details"))));
+#line 354 "moonshot-idcard-widget.c"
        _g_object_unref0 (_tmp3_);
+#line 111 "moonshot-idcard-widget.vala"
        id_card_widget_set_send_button (self, _tmp4_ = g_object_ref_sink ((GtkButton*) gtk_button_new_with_label (_ ("Send"))));
+#line 358 "moonshot-idcard-widget.c"
        _g_object_unref0 (_tmp4_);
+#line 112 "moonshot-idcard-widget.vala"
        id_card_widget_set_atk_name_description (self, (GtkWidget*) self->priv->_delete_button, _ ("Delete"), _ ("Delete this ID Card"));
+#line 113 "moonshot-idcard-widget.vala"
        id_card_widget_set_atk_name_description (self, (GtkWidget*) self->priv->_details_button, _ ("Details"), _ ("View the details of this ID Card"));
+#line 114 "moonshot-idcard-widget.vala"
        id_card_widget_set_atk_name_description (self, (GtkWidget*) self->priv->_send_button, _ ("Send"), _ ("Send this ID Card"));
+#line 115 "moonshot-idcard-widget.vala"
        self->priv->hbutton_box = (_tmp5_ = g_object_ref_sink ((GtkHButtonBox*) gtk_hbutton_box_new ()), _g_object_unref0 (self->priv->hbutton_box), _tmp5_);
+#line 116 "moonshot-idcard-widget.vala"
        gtk_box_pack_end ((GtkBox*) self->priv->hbutton_box, (GtkWidget*) self->priv->_delete_button, TRUE, TRUE, 0);
+#line 117 "moonshot-idcard-widget.vala"
        gtk_box_pack_end ((GtkBox*) self->priv->hbutton_box, (GtkWidget*) self->priv->_details_button, TRUE, TRUE, 0);
+#line 118 "moonshot-idcard-widget.vala"
        gtk_box_pack_end ((GtkBox*) self->priv->hbutton_box, (GtkWidget*) self->priv->_send_button, TRUE, TRUE, 0);
+#line 119 "moonshot-idcard-widget.vala"
        gtk_widget_set_sensitive ((GtkWidget*) self->priv->_send_button, FALSE);
+#line 121 "moonshot-idcard-widget.vala"
        g_signal_connect_object (self->priv->_delete_button, "clicked", (GCallback) _id_card_widget_delete_button_cb_gtk_button_clicked, self, 0);
+#line 122 "moonshot-idcard-widget.vala"
        g_signal_connect_object (self->priv->_details_button, "clicked", (GCallback) _id_card_widget_details_button_cb_gtk_button_clicked, self, 0);
+#line 123 "moonshot-idcard-widget.vala"
        g_signal_connect_object (self->priv->_send_button, "clicked", (GCallback) _id_card_widget_send_button_cb_gtk_button_clicked, self, 0);
+#line 125 "moonshot-idcard-widget.vala"
        self->priv->main_vbox = (_tmp6_ = g_object_ref_sink ((GtkVBox*) gtk_vbox_new (FALSE, 12)), _g_object_unref0 (self->priv->main_vbox), _tmp6_);
+#line 126 "moonshot-idcard-widget.vala"
        gtk_box_pack_start ((GtkBox*) self->priv->main_vbox, (GtkWidget*) self->priv->table, TRUE, TRUE, (guint) 0);
+#line 127 "moonshot-idcard-widget.vala"
        gtk_box_pack_start ((GtkBox*) self->priv->main_vbox, (GtkWidget*) self->priv->hbutton_box, FALSE, FALSE, (guint) 0);
+#line 128 "moonshot-idcard-widget.vala"
        gtk_container_set_border_width ((GtkContainer*) self->priv->main_vbox, (guint) 12);
+#line 130 "moonshot-idcard-widget.vala"
        self->priv->event_box = (_tmp7_ = g_object_ref_sink ((GtkEventBox*) gtk_event_box_new ()), _g_object_unref0 (self->priv->event_box), _tmp7_);
+#line 131 "moonshot-idcard-widget.vala"
        gtk_container_add ((GtkContainer*) self->priv->event_box, (GtkWidget*) self->priv->main_vbox);
+#line 132 "moonshot-idcard-widget.vala"
        g_signal_connect_object ((GtkWidget*) self->priv->event_box, "button-press-event", (GCallback) _id_card_widget_button_press_cb_gtk_widget_button_press_event, self, 0);
+#line 133 "moonshot-idcard-widget.vala"
        gtk_box_pack_start ((GtkBox*) self, (GtkWidget*) self->priv->event_box, TRUE, TRUE, 0);
+#line 135 "moonshot-idcard-widget.vala"
        gtk_widget_show_all ((GtkWidget*) self);
+#line 136 "moonshot-idcard-widget.vala"
        gtk_widget_hide ((GtkWidget*) self->priv->hbutton_box);
+#line 138 "moonshot-idcard-widget.vala"
        id_card_widget_set_idcard_color (self);
+#line 404 "moonshot-idcard-widget.c"
        _g_object_unref0 (image);
        return self;
 }
 
 
+#line 94 "moonshot-idcard-widget.vala"
 IdCardWidget* id_card_widget_new (IdCard* id_card) {
+#line 94 "moonshot-idcard-widget.vala"
        return id_card_widget_construct (TYPE_ID_CARD_WIDGET, id_card);
+#line 414 "moonshot-idcard-widget.c"
 }
 
 
@@ -296,15 +419,25 @@ static gpointer _g_object_ref0 (gpointer self) {
 }
 
 
+#line 141 "moonshot-idcard-widget.vala"
 static void id_card_widget_set_atk_name_description (IdCardWidget* self, GtkWidget* widget, const char* name, const char* description) {
+#line 425 "moonshot-idcard-widget.c"
        AtkObject* atk_widget;
+#line 141 "moonshot-idcard-widget.vala"
        g_return_if_fail (self != NULL);
+#line 141 "moonshot-idcard-widget.vala"
        g_return_if_fail (widget != NULL);
+#line 141 "moonshot-idcard-widget.vala"
        g_return_if_fail (name != NULL);
+#line 141 "moonshot-idcard-widget.vala"
        g_return_if_fail (description != NULL);
+#line 143 "moonshot-idcard-widget.vala"
        atk_widget = _g_object_ref0 (gtk_widget_get_accessible (widget));
+#line 145 "moonshot-idcard-widget.vala"
        atk_object_set_name (atk_widget, name);
+#line 146 "moonshot-idcard-widget.vala"
        atk_object_set_description (atk_widget, description);
+#line 441 "moonshot-idcard-widget.c"
        _g_object_unref0 (atk_widget);
 }
 
@@ -313,7 +446,9 @@ IdCard* id_card_widget_get_id_card (IdCardWidget* self) {
        IdCard* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self->priv->_id_card;
+#line 5 "moonshot-idcard-widget.vala"
        return result;
+#line 452 "moonshot-idcard-widget.c"
 }
 
 
@@ -329,7 +464,9 @@ GtkButton* id_card_widget_get_delete_button (IdCardWidget* self) {
        GtkButton* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self->priv->_delete_button;
+#line 9 "moonshot-idcard-widget.vala"
        return result;
+#line 470 "moonshot-idcard-widget.c"
 }
 
 
@@ -345,7 +482,9 @@ GtkButton* id_card_widget_get_details_button (IdCardWidget* self) {
        GtkButton* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self->priv->_details_button;
+#line 10 "moonshot-idcard-widget.vala"
        return result;
+#line 488 "moonshot-idcard-widget.c"
 }
 
 
@@ -361,7 +500,9 @@ GtkButton* id_card_widget_get_send_button (IdCardWidget* self) {
        GtkButton* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self->priv->_send_button;
+#line 11 "moonshot-idcard-widget.vala"
        return result;
+#line 506 "moonshot-idcard-widget.c"
 }
 
 
index 44c0303..1c5852f 100644 (file)
@@ -117,35 +117,59 @@ static void identity_manager_model_finalize (GObject* obj);
 
 
 
+#line 7 "moonshot-identities-manager.vala"
 GeeLinkedList* identity_manager_model_get_card_list (IdentityManagerModel* self) {
+#line 123 "moonshot-identities-manager.c"
        GeeLinkedList* result = NULL;
+#line 7 "moonshot-identities-manager.vala"
        g_return_val_if_fail (self != NULL, NULL);
+#line 127 "moonshot-identities-manager.c"
        result = iidentity_card_store_get_card_list (self->priv->store);
+#line 8 "moonshot-identities-manager.vala"
        return result;
+#line 131 "moonshot-identities-manager.c"
 }
 
 
+#line 12 "moonshot-identities-manager.vala"
 void identity_manager_model_add_card (IdentityManagerModel* self, IdCard* card) {
+#line 12 "moonshot-identities-manager.vala"
        g_return_if_fail (self != NULL);
+#line 12 "moonshot-identities-manager.vala"
        g_return_if_fail (card != NULL);
+#line 13 "moonshot-identities-manager.vala"
        iidentity_card_store_add_card (self->priv->store, card);
+#line 14 "moonshot-identities-manager.vala"
        g_signal_emit_by_name (self, "card-list-changed");
+#line 145 "moonshot-identities-manager.c"
 }
 
 
+#line 17 "moonshot-identities-manager.vala"
 void identity_manager_model_update_card (IdentityManagerModel* self, IdCard* card) {
+#line 17 "moonshot-identities-manager.vala"
        g_return_if_fail (self != NULL);
+#line 17 "moonshot-identities-manager.vala"
        g_return_if_fail (card != NULL);
+#line 18 "moonshot-identities-manager.vala"
        iidentity_card_store_update_card (self->priv->store, card);
+#line 19 "moonshot-identities-manager.vala"
        g_signal_emit_by_name (self, "card-list-changed");
+#line 159 "moonshot-identities-manager.c"
 }
 
 
+#line 22 "moonshot-identities-manager.vala"
 void identity_manager_model_remove_card (IdentityManagerModel* self, IdCard* card) {
+#line 22 "moonshot-identities-manager.vala"
        g_return_if_fail (self != NULL);
+#line 22 "moonshot-identities-manager.vala"
        g_return_if_fail (card != NULL);
+#line 23 "moonshot-identities-manager.vala"
        iidentity_card_store_remove_card (self->priv->store, card);
+#line 24 "moonshot-identities-manager.vala"
        g_signal_emit_by_name (self, "card-list-changed");
+#line 173 "moonshot-identities-manager.c"
 }
 
 
@@ -154,20 +178,30 @@ static gpointer _identity_manager_app_ref0 (gpointer self) {
 }
 
 
+#line 29 "moonshot-identities-manager.vala"
 IdentityManagerModel* identity_manager_model_construct (GType object_type, IdentityManagerApp* parent_app) {
+#line 184 "moonshot-identities-manager.c"
        IdentityManagerModel * self = NULL;
        IdentityManagerApp* _tmp0_;
        IIdentityCardStore* _tmp1_;
+#line 29 "moonshot-identities-manager.vala"
        g_return_val_if_fail (parent_app != NULL, NULL);
+#line 29 "moonshot-identities-manager.vala"
        self = (IdentityManagerModel*) g_object_new (object_type, NULL);
+#line 30 "moonshot-identities-manager.vala"
        self->priv->parent = (_tmp0_ = _identity_manager_app_ref0 (parent_app), _identity_manager_app_unref0 (self->priv->parent), _tmp0_);
+#line 31 "moonshot-identities-manager.vala"
        self->priv->store = (_tmp1_ = (IIdentityCardStore*) local_flat_file_store_new (), _g_object_unref0 (self->priv->store), _tmp1_);
+#line 196 "moonshot-identities-manager.c"
        return self;
 }
 
 
+#line 29 "moonshot-identities-manager.vala"
 IdentityManagerModel* identity_manager_model_new (IdentityManagerApp* parent_app) {
+#line 29 "moonshot-identities-manager.vala"
        return identity_manager_model_construct (TYPE_IDENTITY_MANAGER_MODEL, parent_app);
+#line 205 "moonshot-identities-manager.c"
 }
 
 
index dae53b4..8f760af 100644 (file)
@@ -14,6 +14,7 @@
 #include <pango/pango.h>
 #include <float.h>
 #include <math.h>
+#include <config.h>
 #include <stdio.h>
 #include <atk/atk.h>
 
@@ -375,112 +376,184 @@ static gpointer _g_object_ref0 (gpointer self) {
 }
 
 
+#line 54 "moonshot-identity-management-view.vala"
 IdentityManagerView* identity_manager_view_construct (GType object_type, IdentityManagerApp* app) {
+#line 382 "moonshot-identity-management-view.c"
        IdentityManagerView * self;
        IdentityManagerApp* _tmp0_;
        IdentityManagerModel* _tmp1_;
        GQueue* _tmp2_;
        GHashTable* _tmp3_;
+#line 54 "moonshot-identity-management-view.vala"
        g_return_val_if_fail (app != NULL, NULL);
+#line 390 "moonshot-identity-management-view.c"
        self = g_object_newv (object_type, 0, NULL);
+#line 55 "moonshot-identity-management-view.vala"
        self->parent_app = (_tmp0_ = _identity_manager_app_ref0 (app), _identity_manager_app_unref0 (self->parent_app), _tmp0_);
+#line 59 "moonshot-identity-management-view.vala"
        self->identities_manager = (_tmp1_ = _g_object_ref0 (self->parent_app->model), _g_object_unref0 (self->identities_manager), _tmp1_);
+#line 60 "moonshot-identity-management-view.vala"
        self->request_queue = (_tmp2_ = g_queue_new (), _g_queue_free0 (self->request_queue), _tmp2_);
+#line 61 "moonshot-identity-management-view.vala"
        self->priv->service_button_map = (_tmp3_ = g_hash_table_new_full (g_direct_hash, g_direct_equal, g_object_unref, g_free), _g_hash_table_unref0 (self->priv->service_button_map), _tmp3_);
+#line 62 "moonshot-identity-management-view.vala"
        gtk_window_set_title ((GtkWindow*) self, "Moonshoot");
+#line 63 "moonshot-identity-management-view.vala"
        gtk_window_set_position ((GtkWindow*) self, GTK_WIN_POS_CENTER);
+#line 64 "moonshot-identity-management-view.vala"
        gtk_window_set_default_size ((GtkWindow*) self, IDENTITY_MANAGER_VIEW_WINDOW_WIDTH, IDENTITY_MANAGER_VIEW_WINDOW_HEIGHT);
+#line 65 "moonshot-identity-management-view.vala"
        identity_manager_view_build_ui (self);
+#line 66 "moonshot-identity-management-view.vala"
        identity_manager_view_setup_list_model (self);
+#line 67 "moonshot-identity-management-view.vala"
        identity_manager_view_load_id_cards (self);
+#line 68 "moonshot-identity-management-view.vala"
        identity_manager_view_connect_signals (self);
+#line 414 "moonshot-identity-management-view.c"
        return self;
 }
 
 
+#line 54 "moonshot-identity-management-view.vala"
 IdentityManagerView* identity_manager_view_new (IdentityManagerApp* app) {
+#line 54 "moonshot-identity-management-view.vala"
        return identity_manager_view_construct (TYPE_IDENTITY_MANAGER_VIEW, app);
+#line 423 "moonshot-identity-management-view.c"
 }
 
 
+#line 71 "moonshot-identity-management-view.vala"
 void identity_manager_view_on_card_list_changed (IdentityManagerView* self) {
+#line 71 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 72 "moonshot-identity-management-view.vala"
        identity_manager_view_load_id_cards (self);
+#line 433 "moonshot-identity-management-view.c"
 }
 
 
+#line 75 "moonshot-identity-management-view.vala"
 void identity_manager_view_add_candidate (IdentityManagerView* self, IdCard* idcard) {
+#line 75 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 75 "moonshot-identity-management-view.vala"
        g_return_if_fail (idcard != NULL);
+#line 77 "moonshot-identity-management-view.vala"
        self->priv->candidates = g_slist_append (self->priv->candidates, _g_object_ref0 (idcard));
+#line 445 "moonshot-identity-management-view.c"
 }
 
 
+#line 1177 "glib-2.0.vapi"
 static gboolean string_contains (const char* self, const char* needle) {
+#line 451 "moonshot-identity-management-view.c"
        gboolean result = FALSE;
+#line 1177 "glib-2.0.vapi"
        g_return_val_if_fail (self != NULL, FALSE);
+#line 1177 "glib-2.0.vapi"
        g_return_val_if_fail (needle != NULL, FALSE);
+#line 457 "moonshot-identity-management-view.c"
        result = strstr (self, needle) != NULL;
+#line 1178 "glib-2.0.vapi"
        return result;
+#line 461 "moonshot-identity-management-view.c"
 }
 
 
+#line 80 "moonshot-identity-management-view.vala"
 static gboolean identity_manager_view_visible_func (IdentityManagerView* self, GtkTreeModel* model, GtkTreeIter* iter) {
+#line 467 "moonshot-identity-management-view.c"
        gboolean result = FALSE;
        IdCard* id_card;
        char* entry_text;
        gboolean _tmp0_ = FALSE;
+#line 80 "moonshot-identity-management-view.vala"
        g_return_val_if_fail (self != NULL, FALSE);
+#line 80 "moonshot-identity-management-view.vala"
        g_return_val_if_fail (model != NULL, FALSE);
+#line 476 "moonshot-identity-management-view.c"
        id_card = NULL;
+#line 84 "moonshot-identity-management-view.vala"
        gtk_tree_model_get (model, iter, IDENTITY_MANAGER_VIEW_COLUMNS_IDCARD_COL, &id_card, -1);
+#line 87 "moonshot-identity-management-view.vala"
        if (id_card == NULL) {
+#line 482 "moonshot-identity-management-view.c"
                result = FALSE;
                _g_object_unref0 (id_card);
+#line 88 "moonshot-identity-management-view.vala"
                return result;
+#line 487 "moonshot-identity-management-view.c"
        }
+#line 90 "moonshot-identity-management-view.vala"
        if (self->priv->candidates != NULL) {
+#line 491 "moonshot-identity-management-view.c"
                gboolean is_candidate;
+#line 92 "moonshot-identity-management-view.vala"
                is_candidate = FALSE;
+#line 495 "moonshot-identity-management-view.c"
                {
                        GSList* candidate_collection;
                        GSList* candidate_it;
+#line 93 "moonshot-identity-management-view.vala"
                        candidate_collection = self->priv->candidates;
+#line 501 "moonshot-identity-management-view.c"
                        for (candidate_it = candidate_collection; candidate_it != NULL; candidate_it = candidate_it->next) {
                                IdCard* candidate;
+#line 93 "moonshot-identity-management-view.vala"
                                candidate = _g_object_ref0 ((IdCard*) candidate_it->data);
+#line 506 "moonshot-identity-management-view.c"
                                {
+#line 95 "moonshot-identity-management-view.vala"
                                        if (candidate == id_card) {
+#line 96 "moonshot-identity-management-view.vala"
                                                is_candidate = TRUE;
+#line 512 "moonshot-identity-management-view.c"
                                        }
                                        _g_object_unref0 (candidate);
                                }
                        }
                }
+#line 98 "moonshot-identity-management-view.vala"
                if (!is_candidate) {
+#line 520 "moonshot-identity-management-view.c"
                        result = FALSE;
                        _g_object_unref0 (id_card);
+#line 99 "moonshot-identity-management-view.vala"
                        return result;
+#line 525 "moonshot-identity-management-view.c"
                }
        }
+#line 102 "moonshot-identity-management-view.vala"
        entry_text = g_strdup (gtk_entry_get_text (self->priv->search_entry));
+#line 103 "moonshot-identity-management-view.vala"
        if (entry_text == NULL) {
+#line 103 "moonshot-identity-management-view.vala"
                _tmp0_ = TRUE;
+#line 534 "moonshot-identity-management-view.c"
        } else {
+#line 103 "moonshot-identity-management-view.vala"
                _tmp0_ = _vala_strcmp0 (entry_text, "") == 0;
+#line 538 "moonshot-identity-management-view.c"
        }
+#line 103 "moonshot-identity-management-view.vala"
        if (_tmp0_) {
+#line 542 "moonshot-identity-management-view.c"
                result = TRUE;
                _g_free0 (entry_text);
                _g_object_unref0 (id_card);
+#line 105 "moonshot-identity-management-view.vala"
                return result;
+#line 548 "moonshot-identity-management-view.c"
        }
        {
                char** _tmp1_;
                char** search_text_collection;
                int search_text_collection_length1;
                int search_text_it;
+#line 108 "moonshot-identity-management-view.vala"
                search_text_collection = _tmp1_ = g_strsplit (entry_text, " ", 0);
+#line 557 "moonshot-identity-management-view.c"
                search_text_collection_length1 = _vala_array_length (_tmp1_);
                for (search_text_it = 0; search_text_it < _vala_array_length (_tmp1_); search_text_it = search_text_it + 1) {
                        char* search_text;
@@ -488,15 +561,25 @@ static gboolean identity_manager_view_visible_func (IdentityManagerView* self, G
                        {
                                char* search_text_casefold;
                                gint _tmp2_;
+#line 110 "moonshot-identity-management-view.vala"
                                if (_vala_strcmp0 (search_text, "") == 0) {
+#line 567 "moonshot-identity-management-view.c"
                                        _g_free0 (search_text);
+#line 111 "moonshot-identity-management-view.vala"
                                        continue;
+#line 571 "moonshot-identity-management-view.c"
                                }
+#line 114 "moonshot-identity-management-view.vala"
                                search_text_casefold = g_utf8_casefold (search_text, -1);
+#line 116 "moonshot-identity-management-view.vala"
                                if (id_card_get_issuer (id_card) != NULL) {
+#line 577 "moonshot-identity-management-view.c"
                                        char* issuer_casefold;
+#line 118 "moonshot-identity-management-view.vala"
                                        issuer_casefold = g_strdup (id_card_get_issuer (id_card));
+#line 120 "moonshot-identity-management-view.vala"
                                        if (string_contains (issuer_casefold, search_text_casefold)) {
+#line 583 "moonshot-identity-management-view.c"
                                                result = TRUE;
                                                _g_free0 (issuer_casefold);
                                                _g_free0 (search_text_casefold);
@@ -504,14 +587,21 @@ static gboolean identity_manager_view_visible_func (IdentityManagerView* self, G
                                                search_text_collection = (_vala_array_free (search_text_collection, search_text_collection_length1, (GDestroyNotify) g_free), NULL);
                                                _g_free0 (entry_text);
                                                _g_object_unref0 (id_card);
+#line 121 "moonshot-identity-management-view.vala"
                                                return result;
+#line 593 "moonshot-identity-management-view.c"
                                        }
                                        _g_free0 (issuer_casefold);
                                }
+#line 124 "moonshot-identity-management-view.vala"
                                if (id_card_get_display_name (id_card) != NULL) {
+#line 599 "moonshot-identity-management-view.c"
                                        char* display_name_casefold;
+#line 126 "moonshot-identity-management-view.vala"
                                        display_name_casefold = g_utf8_casefold (id_card_get_display_name (id_card), -1);
+#line 128 "moonshot-identity-management-view.vala"
                                        if (string_contains (display_name_casefold, search_text_casefold)) {
+#line 605 "moonshot-identity-management-view.c"
                                                result = TRUE;
                                                _g_free0 (display_name_casefold);
                                                _g_free0 (search_text_casefold);
@@ -519,25 +609,34 @@ static gboolean identity_manager_view_visible_func (IdentityManagerView* self, G
                                                search_text_collection = (_vala_array_free (search_text_collection, search_text_collection_length1, (GDestroyNotify) g_free), NULL);
                                                _g_free0 (entry_text);
                                                _g_object_unref0 (id_card);
+#line 129 "moonshot-identity-management-view.vala"
                                                return result;
+#line 615 "moonshot-identity-management-view.c"
                                        }
                                        _g_free0 (display_name_casefold);
                                }
+#line 132 "moonshot-identity-management-view.vala"
                                if (_tmp2_ > 0) {
+#line 621 "moonshot-identity-management-view.c"
                                        {
                                                gint _tmp3_;
                                                char** service_collection;
                                                int service_collection_length1;
                                                int service_it;
+#line 134 "moonshot-identity-management-view.vala"
                                                service_collection = id_card_get_services (id_card, &_tmp3_);
+#line 629 "moonshot-identity-management-view.c"
                                                service_collection_length1 = _tmp3_;
                                                for (service_it = 0; service_it < _tmp3_; service_it = service_it + 1) {
                                                        char* service;
                                                        service = g_strdup (service_collection[service_it]);
                                                        {
                                                                char* service_casefold;
+#line 136 "moonshot-identity-management-view.vala"
                                                                service_casefold = g_utf8_casefold (service, -1);
+#line 138 "moonshot-identity-management-view.vala"
                                                                if (string_contains (service_casefold, search_text_casefold)) {
+#line 640 "moonshot-identity-management-view.c"
                                                                        result = TRUE;
                                                                        _g_free0 (service_casefold);
                                                                        _g_free0 (service);
@@ -546,7 +645,9 @@ static gboolean identity_manager_view_visible_func (IdentityManagerView* self, G
                                                                        search_text_collection = (_vala_array_free (search_text_collection, search_text_collection_length1, (GDestroyNotify) g_free), NULL);
                                                                        _g_free0 (entry_text);
                                                                        _g_object_unref0 (id_card);
+#line 139 "moonshot-identity-management-view.vala"
                                                                        return result;
+#line 651 "moonshot-identity-management-view.c"
                                                                }
                                                                _g_free0 (service_casefold);
                                                                _g_free0 (service);
@@ -558,227 +659,379 @@ static gboolean identity_manager_view_visible_func (IdentityManagerView* self, G
                                _g_free0 (search_text);
                        }
                }
+#line 108 "moonshot-identity-management-view.vala"
                search_text_collection = (_vala_array_free (search_text_collection, search_text_collection_length1, (GDestroyNotify) g_free), NULL);
+#line 665 "moonshot-identity-management-view.c"
        }
        result = FALSE;
        _g_free0 (entry_text);
        _g_object_unref0 (id_card);
+#line 143 "moonshot-identity-management-view.vala"
        return result;
+#line 672 "moonshot-identity-management-view.c"
 }
 
 
+#line 80 "moonshot-identity-management-view.vala"
 static gboolean _identity_manager_view_visible_func_gtk_tree_model_filter_visible_func (GtkTreeModel* model, GtkTreeIter* iter, gpointer self) {
+#line 678 "moonshot-identity-management-view.c"
        gboolean result;
        result = identity_manager_view_visible_func (self, model, iter);
        return result;
 }
 
 
+#line 146 "moonshot-identity-management-view.vala"
 static void identity_manager_view_setup_list_model (IdentityManagerView* self) {
+#line 687 "moonshot-identity-management-view.c"
        GtkTreeModelFilter* _tmp0_;
+#line 146 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 148 "moonshot-identity-management-view.vala"
        self->priv->listmodel = gtk_list_store_new ((gint) IDENTITY_MANAGER_VIEW_COLUMNS_N_COLUMNS, TYPE_ID_CARD, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
+#line 153 "moonshot-identity-management-view.vala"
        self->priv->filter = (_tmp0_ = (GtkTreeModelFilter*) gtk_tree_model_filter_new ((GtkTreeModel*) self->priv->listmodel, NULL), _g_object_unref0 (self->priv->filter), _tmp0_);
+#line 155 "moonshot-identity-management-view.vala"
        gtk_tree_model_filter_set_visible_func (self->priv->filter, _identity_manager_view_visible_func_gtk_tree_model_filter_visible_func, g_object_ref (self), g_object_unref);
+#line 697 "moonshot-identity-management-view.c"
 }
 
 
+#line 158 "moonshot-identity-management-view.vala"
 static void identity_manager_view_search_entry_icon_press_cb (IdentityManagerView* self, GtkEntryIconPosition pos, GdkEvent* event) {
+#line 158 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 158 "moonshot-identity-management-view.vala"
        g_return_if_fail (event != NULL);
+#line 160 "moonshot-identity-management-view.vala"
        if (pos == GTK_ENTRY_ICON_PRIMARY) {
+#line 162 "moonshot-identity-management-view.vala"
                g_print ("Search entry icon pressed\n");
+#line 711 "moonshot-identity-management-view.c"
        } else {
+#line 166 "moonshot-identity-management-view.vala"
                gtk_entry_set_text (self->priv->search_entry, "");
+#line 715 "moonshot-identity-management-view.c"
        }
 }
 
 
+#line 170 "moonshot-identity-management-view.vala"
 static void identity_manager_view_search_entry_text_changed_cb (IdentityManagerView* self) {
+#line 722 "moonshot-identity-management-view.c"
        gboolean has_text;
+#line 170 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 172 "moonshot-identity-management-view.vala"
        gtk_tree_model_filter_refilter (self->priv->filter);
+#line 173 "moonshot-identity-management-view.vala"
        identity_manager_view_redraw_id_card_widgets (self);
+#line 175 "moonshot-identity-management-view.vala"
        has_text = gtk_entry_get_text_length (self->priv->search_entry) > 0;
+#line 176 "moonshot-identity-management-view.vala"
        gtk_entry_set_icon_sensitive (self->priv->search_entry, GTK_ENTRY_ICON_PRIMARY, has_text);
+#line 177 "moonshot-identity-management-view.vala"
        gtk_entry_set_icon_sensitive (self->priv->search_entry, GTK_ENTRY_ICON_SECONDARY, has_text);
+#line 179 "moonshot-identity-management-view.vala"
        gtk_widget_set_visible ((GtkWidget*) self->priv->vbox_right, FALSE);
+#line 738 "moonshot-identity-management-view.c"
 }
 
 
+#line 182 "moonshot-identity-management-view.vala"
 static gboolean identity_manager_view_search_entry_key_press_event_cb (IdentityManagerView* self, GdkEventKey* e) {
+#line 744 "moonshot-identity-management-view.c"
        gboolean result = FALSE;
+#line 182 "moonshot-identity-management-view.vala"
        g_return_val_if_fail (self != NULL, FALSE);
+#line 184 "moonshot-identity-management-view.vala"
        if (_vala_strcmp0 (gdk_keyval_name ((*e).keyval), "Escape") == 0) {
+#line 185 "moonshot-identity-management-view.vala"
                gtk_entry_set_text (self->priv->search_entry, "");
+#line 752 "moonshot-identity-management-view.c"
        }
        result = FALSE;
+#line 189 "moonshot-identity-management-view.vala"
        return result;
+#line 757 "moonshot-identity-management-view.c"
 }
 
 
+#line 192 "moonshot-identity-management-view.vala"
 static void identity_manager_view_load_id_cards (IdentityManagerView* self) {
+#line 763 "moonshot-identity-management-view.c"
        GList* children;
        IdCard* _tmp0_;
        GeeLinkedList* card_list;
+#line 192 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 193 "moonshot-identity-management-view.vala"
        children = gtk_container_get_children ((GtkContainer*) self->priv->custom_vbox);
+#line 771 "moonshot-identity-management-view.c"
        {
                GList* id_card_widget_collection;
                GList* id_card_widget_it;
+#line 194 "moonshot-identity-management-view.vala"
                id_card_widget_collection = children;
+#line 777 "moonshot-identity-management-view.c"
                for (id_card_widget_it = id_card_widget_collection; id_card_widget_it != NULL; id_card_widget_it = id_card_widget_it->next) {
                        GtkWidget* id_card_widget;
+#line 194 "moonshot-identity-management-view.vala"
                        id_card_widget = (GtkWidget*) id_card_widget_it->data;
+#line 782 "moonshot-identity-management-view.c"
                        {
+#line 195 "moonshot-identity-management-view.vala"
                                identity_manager_view_remove_id_card_widget (self, ID_CARD_WIDGET (id_card_widget));
+#line 786 "moonshot-identity-management-view.c"
                        }
                }
        }
+#line 198 "moonshot-identity-management-view.vala"
        self->priv->default_id_card = (_tmp0_ = NULL, _g_object_unref0 (self->priv->default_id_card), _tmp0_);
+#line 199 "moonshot-identity-management-view.vala"
        card_list = identity_manager_model_get_card_list (self->identities_manager);
+#line 200 "moonshot-identity-management-view.vala"
        if (card_list == NULL) {
+#line 796 "moonshot-identity-management-view.c"
                _g_object_unref0 (card_list);
                _g_list_free0 (children);
+#line 201 "moonshot-identity-management-view.vala"
                return;
+#line 801 "moonshot-identity-management-view.c"
        }
        {
                GeeIterator* _id_card_it;
+#line 204 "moonshot-identity-management-view.vala"
                _id_card_it = gee_abstract_collection_iterator ((GeeAbstractCollection*) card_list);
+#line 204 "moonshot-identity-management-view.vala"
                while (TRUE) {
+#line 809 "moonshot-identity-management-view.c"
                        IdCard* id_card;
+#line 204 "moonshot-identity-management-view.vala"
                        if (!gee_iterator_next (_id_card_it)) {
+#line 204 "moonshot-identity-management-view.vala"
                                break;
+#line 815 "moonshot-identity-management-view.c"
                        }
+#line 204 "moonshot-identity-management-view.vala"
                        id_card = (IdCard*) gee_iterator_get (_id_card_it);
+#line 205 "moonshot-identity-management-view.vala"
                        identity_manager_view_add_id_card_data (self, id_card);
+#line 206 "moonshot-identity-management-view.vala"
                        identity_manager_view_add_id_card_widget (self, id_card);
+#line 823 "moonshot-identity-management-view.c"
                        _g_object_unref0 (id_card);
                }
                _g_object_unref0 (_id_card_it);
        }
+#line 209 "moonshot-identity-management-view.vala"
        if (gee_collection_get_size ((GeeCollection*) card_list) > 0) {
+#line 830 "moonshot-identity-management-view.c"
                IdCard* _tmp1_;
+#line 210 "moonshot-identity-management-view.vala"
                self->priv->default_id_card = (_tmp1_ = (IdCard*) gee_abstract_list_first ((GeeAbstractList*) card_list), _g_object_unref0 (self->priv->default_id_card), _tmp1_);
+#line 834 "moonshot-identity-management-view.c"
        }
        _g_object_unref0 (card_list);
        _g_list_free0 (children);
 }
 
 
+#line 214 "moonshot-identity-management-view.vala"
 static void identity_manager_view_fill_details (IdentityManagerView* self, IdCardWidget* id_card_widget) {
+#line 843 "moonshot-identity-management-view.c"
        IdCard* id_card;
        char* _tmp0_;
        GList* children;
+#line 214 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 214 "moonshot-identity-management-view.vala"
        g_return_if_fail (id_card_widget != NULL);
+#line 216 "moonshot-identity-management-view.vala"
        id_card = _g_object_ref0 (id_card_widget_get_id_card (id_card_widget));
+#line 217 "moonshot-identity-management-view.vala"
        gtk_entry_set_text (self->priv->username_entry, id_card_get_username (id_card));
+#line 218 "moonshot-identity-management-view.vala"
        _tmp0_ = g_strdup (id_card_get_password (id_card));
+#line 218 "moonshot-identity-management-view.vala"
        if (_tmp0_ == NULL) {
+#line 859 "moonshot-identity-management-view.c"
                char* _tmp1_;
+#line 218 "moonshot-identity-management-view.vala"
                _tmp0_ = (_tmp1_ = g_strdup (""), _g_free0 (_tmp0_), _tmp1_);
+#line 863 "moonshot-identity-management-view.c"
        }
+#line 218 "moonshot-identity-management-view.vala"
        gtk_entry_set_text (self->priv->password_entry, _tmp0_);
+#line 220 "moonshot-identity-management-view.vala"
        children = gtk_container_get_children ((GtkContainer*) self->priv->services_internal_vbox);
+#line 869 "moonshot-identity-management-view.c"
        {
                GList* hbox_collection;
                GList* hbox_it;
+#line 221 "moonshot-identity-management-view.vala"
                hbox_collection = children;
+#line 875 "moonshot-identity-management-view.c"
                for (hbox_it = hbox_collection; hbox_it != NULL; hbox_it = hbox_it->next) {
                        GtkWidget* hbox;
+#line 221 "moonshot-identity-management-view.vala"
                        hbox = (GtkWidget*) hbox_it->data;
+#line 880 "moonshot-identity-management-view.c"
                        {
+#line 222 "moonshot-identity-management-view.vala"
                                gtk_object_destroy ((GtkObject*) hbox);
+#line 884 "moonshot-identity-management-view.c"
                        }
                }
        }
+#line 223 "moonshot-identity-management-view.vala"
        identity_manager_view_fill_services_vbox (self, id_card_widget_get_id_card (id_card_widget));
+#line 890 "moonshot-identity-management-view.c"
        _g_list_free0 (children);
        _g_free0 (_tmp0_);
        _g_object_unref0 (id_card);
 }
 
 
+#line 227 "moonshot-identity-management-view.vala"
 static void identity_manager_view_show_details (IdentityManagerView* self, IdCard* id_card) {
+#line 227 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 227 "moonshot-identity-management-view.vala"
        g_return_if_fail (id_card != NULL);
+#line 229 "moonshot-identity-management-view.vala"
        gtk_widget_set_visible ((GtkWidget*) self->priv->vbox_right, !gtk_widget_get_visible ((GtkWidget*) self->priv->vbox_right));
+#line 231 "moonshot-identity-management-view.vala"
        if (gtk_widget_get_visible ((GtkWidget*) self->priv->vbox_right) == FALSE) {
+#line 233 "moonshot-identity-management-view.vala"
                gtk_window_resize ((GtkWindow*) self, IDENTITY_MANAGER_VIEW_WINDOW_WIDTH, IDENTITY_MANAGER_VIEW_WINDOW_HEIGHT);
+#line 909 "moonshot-identity-management-view.c"
        }
 }
 
 
+#line 237 "moonshot-identity-management-view.vala"
 static void identity_manager_view_details_identity_cb (IdentityManagerView* self, IdCardWidget* id_card_widget) {
+#line 237 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 237 "moonshot-identity-management-view.vala"
        g_return_if_fail (id_card_widget != NULL);
+#line 239 "moonshot-identity-management-view.vala"
        identity_manager_view_fill_details (self, id_card_widget);
+#line 240 "moonshot-identity-management-view.vala"
        identity_manager_view_show_details (self, id_card_widget_get_id_card (id_card_widget));
+#line 924 "moonshot-identity-management-view.c"
 }
 
 
+#line 243 "moonshot-identity-management-view.vala"
 static IdCard* identity_manager_view_get_id_card_data (IdentityManagerView* self, AddIdentityDialog* dialog) {
+#line 930 "moonshot-identity-management-view.c"
        IdCard* result = NULL;
        IdCard* id_card;
        char** _tmp0_ = NULL;
        char** _tmp1_;
        gint _tmp1__length1;
        char** _tmp2_;
+#line 243 "moonshot-identity-management-view.vala"
        g_return_val_if_fail (self != NULL, NULL);
+#line 243 "moonshot-identity-management-view.vala"
        g_return_val_if_fail (dialog != NULL, NULL);
+#line 245 "moonshot-identity-management-view.vala"
        id_card = id_card_new ();
+#line 247 "moonshot-identity-management-view.vala"
        id_card_set_display_name (id_card, add_identity_dialog_get_display_name (dialog));
+#line 248 "moonshot-identity-management-view.vala"
        id_card_set_issuer (id_card, add_identity_dialog_get_issuer (dialog));
+#line 249 "moonshot-identity-management-view.vala"
        if (_vala_strcmp0 (id_card_get_issuer (id_card), "") == 0) {
+#line 250 "moonshot-identity-management-view.vala"
                id_card_set_issuer (id_card, "Issuer");
+#line 951 "moonshot-identity-management-view.c"
        }
+#line 251 "moonshot-identity-management-view.vala"
        id_card_set_username (id_card, add_identity_dialog_get_username (dialog));
+#line 252 "moonshot-identity-management-view.vala"
        id_card_set_password (id_card, add_identity_dialog_get_password (dialog));
+#line 253 "moonshot-identity-management-view.vala"
        _tmp2_ = (_tmp1_ = (_tmp0_ = g_new0 (char*, 0 + 1), _tmp0_), _tmp1__length1 = 0, _tmp1_);
+#line 253 "moonshot-identity-management-view.vala"
        id_card_set_services (id_card, _tmp2_, 0);
+#line 961 "moonshot-identity-management-view.c"
        _tmp1_ = (_vala_array_free (_tmp1_, _tmp1__length1, (GDestroyNotify) g_free), NULL);
+#line 254 "moonshot-identity-management-view.vala"
        g_object_set_data_full ((GObject*) id_card, "pixbuf", find_icon ("avatar-default", 48), g_object_unref);
+#line 965 "moonshot-identity-management-view.c"
        result = id_card;
+#line 256 "moonshot-identity-management-view.vala"
        return result;
+#line 969 "moonshot-identity-management-view.c"
 }
 
 
+#line 259 "moonshot-identity-management-view.vala"
 static void identity_manager_view_add_id_card_data (IdentityManagerView* self, IdCard* id_card) {
+#line 975 "moonshot-identity-management-view.c"
        GtkTreeIter iter = {0};
        GdkPixbuf* pixbuf;
        GdkPixbuf* _tmp0_;
+#line 259 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 259 "moonshot-identity-management-view.vala"
        g_return_if_fail (id_card != NULL);
+#line 983 "moonshot-identity-management-view.c"
        pixbuf = NULL;
+#line 263 "moonshot-identity-management-view.vala"
        gtk_list_store_append (self->priv->listmodel, &iter);
+#line 264 "moonshot-identity-management-view.vala"
        pixbuf = (_tmp0_ = _g_object_ref0 ((GdkPixbuf*) g_object_get_data ((GObject*) id_card, "pixbuf")), _g_object_unref0 (pixbuf), _tmp0_);
+#line 265 "moonshot-identity-management-view.vala"
        gtk_list_store_set (self->priv->listmodel, &iter, IDENTITY_MANAGER_VIEW_COLUMNS_IDCARD_COL, id_card, IDENTITY_MANAGER_VIEW_COLUMNS_LOGO_COL, pixbuf, IDENTITY_MANAGER_VIEW_COLUMNS_ISSUER_COL, id_card_get_issuer (id_card), IDENTITY_MANAGER_VIEW_COLUMNS_USERNAME_COL, id_card_get_username (id_card), IDENTITY_MANAGER_VIEW_COLUMNS_PASSWORD_COL, id_card_get_password (id_card), -1);
+#line 991 "moonshot-identity-management-view.c"
        _g_object_unref0 (pixbuf);
 }
 
 
+#line 273 "moonshot-identity-management-view.vala"
 static void identity_manager_view_remove_id_card_data (IdentityManagerView* self, IdCard* id_card) {
+#line 998 "moonshot-identity-management-view.c"
        GtkTreeIter iter = {0};
        char* issuer;
+#line 273 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 273 "moonshot-identity-management-view.vala"
        g_return_if_fail (id_card != NULL);
+#line 1005 "moonshot-identity-management-view.c"
        issuer = NULL;
+#line 278 "moonshot-identity-management-view.vala"
        if (gtk_tree_model_get_iter_first ((GtkTreeModel*) self->priv->listmodel, &iter)) {
+#line 1009 "moonshot-identity-management-view.c"
                {
                        gboolean _tmp0_;
+#line 280 "moonshot-identity-management-view.vala"
                        _tmp0_ = TRUE;
+#line 280 "moonshot-identity-management-view.vala"
                        while (TRUE) {
+#line 280 "moonshot-identity-management-view.vala"
                                if (!_tmp0_) {
+#line 291 "moonshot-identity-management-view.vala"
                                        if (!gtk_tree_model_iter_next ((GtkTreeModel*) self->priv->listmodel, &iter)) {
+#line 291 "moonshot-identity-management-view.vala"
                                                break;
+#line 1022 "moonshot-identity-management-view.c"
                                        }
                                }
+#line 280 "moonshot-identity-management-view.vala"
                                _tmp0_ = FALSE;
+#line 282 "moonshot-identity-management-view.vala"
                                gtk_tree_model_get ((GtkTreeModel*) self->priv->listmodel, &iter, IDENTITY_MANAGER_VIEW_COLUMNS_ISSUER_COL, &issuer, -1);
+#line 285 "moonshot-identity-management-view.vala"
                                if (_vala_strcmp0 (id_card_get_issuer (id_card), issuer) == 0) {
+#line 287 "moonshot-identity-management-view.vala"
                                        gtk_list_store_remove (self->priv->listmodel, &iter);
+#line 288 "moonshot-identity-management-view.vala"
                                        break;
+#line 1035 "moonshot-identity-management-view.c"
                                }
                        }
                }
@@ -787,56 +1040,87 @@ static void identity_manager_view_remove_id_card_data (IdentityManagerView* self
 }
 
 
+#line 237 "moonshot-identity-management-view.vala"
 static void _identity_manager_view_details_identity_cb_id_card_widget_details_id (IdCardWidget* _sender, gpointer self) {
+#line 1046 "moonshot-identity-management-view.c"
        identity_manager_view_details_identity_cb (self, _sender);
 }
 
 
+#line 424 "moonshot-identity-management-view.vala"
 static void _identity_manager_view_remove_identity_cb_id_card_widget_remove_id (IdCardWidget* _sender, gpointer self) {
+#line 1053 "moonshot-identity-management-view.c"
        identity_manager_view_remove_identity_cb (self, _sender);
 }
 
 
+#line 301 "moonshot-identity-management-view.vala"
 static void _lambda2_ (IdCardWidget* w, IdentityManagerView* self) {
+#line 301 "moonshot-identity-management-view.vala"
        g_return_if_fail (w != NULL);
+#line 301 "moonshot-identity-management-view.vala"
        identity_manager_view_send_identity_cb (self, id_card_widget_get_id_card (w));
+#line 1064 "moonshot-identity-management-view.c"
 }
 
 
+#line 301 "moonshot-identity-management-view.vala"
 static void __lambda2__id_card_widget_send_id (IdCardWidget* _sender, gpointer self) {
+#line 1070 "moonshot-identity-management-view.c"
        _lambda2_ (_sender, self);
 }
 
 
+#line 15 "moonshot-custom-vbox.vala"
 static void _custom_vbox_receive_expanded_event_id_card_widget_expanded (IdCardWidget* _sender, gpointer self) {
+#line 1077 "moonshot-identity-management-view.c"
        custom_vbox_receive_expanded_event (self, _sender);
 }
 
 
+#line 214 "moonshot-identity-management-view.vala"
 static void _identity_manager_view_fill_details_id_card_widget_expanded (IdCardWidget* _sender, gpointer self) {
+#line 1084 "moonshot-identity-management-view.c"
        identity_manager_view_fill_details (self, _sender);
 }
 
 
+#line 295 "moonshot-identity-management-view.vala"
 static void identity_manager_view_add_id_card_widget (IdentityManagerView* self, IdCard* id_card) {
+#line 1091 "moonshot-identity-management-view.c"
        IdCardWidget* id_card_widget;
+#line 295 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 295 "moonshot-identity-management-view.vala"
        g_return_if_fail (id_card != NULL);
+#line 297 "moonshot-identity-management-view.vala"
        id_card_widget = g_object_ref_sink (id_card_widget_new (id_card));
+#line 298 "moonshot-identity-management-view.vala"
        custom_vbox_add_id_card_widget (self->priv->custom_vbox, id_card_widget);
+#line 299 "moonshot-identity-management-view.vala"
        g_signal_connect_object (id_card_widget, "details-id", (GCallback) _identity_manager_view_details_identity_cb_id_card_widget_details_id, self, 0);
+#line 300 "moonshot-identity-management-view.vala"
        g_signal_connect_object (id_card_widget, "remove-id", (GCallback) _identity_manager_view_remove_identity_cb_id_card_widget_remove_id, self, 0);
+#line 301 "moonshot-identity-management-view.vala"
        g_signal_connect_object (id_card_widget, "send-id", (GCallback) __lambda2__id_card_widget_send_id, self, 0);
+#line 302 "moonshot-identity-management-view.vala"
        g_signal_connect_object (id_card_widget, "expanded", (GCallback) _custom_vbox_receive_expanded_event_id_card_widget_expanded, self->priv->custom_vbox, 0);
+#line 303 "moonshot-identity-management-view.vala"
        g_signal_connect_object (id_card_widget, "expanded", (GCallback) _identity_manager_view_fill_details_id_card_widget_expanded, self, 0);
+#line 1111 "moonshot-identity-management-view.c"
        _g_object_unref0 (id_card_widget);
 }
 
 
+#line 307 "moonshot-identity-management-view.vala"
 gboolean identity_manager_view_display_name_is_valid (IdentityManagerView* self, const char* name, char** candidate) {
+#line 1118 "moonshot-identity-management-view.c"
        gboolean result = FALSE;
+#line 307 "moonshot-identity-management-view.vala"
        g_return_val_if_fail (self != NULL, FALSE);
+#line 307 "moonshot-identity-management-view.vala"
        g_return_val_if_fail (name != NULL, FALSE);
+#line 1124 "moonshot-identity-management-view.c"
        if (candidate != NULL) {
                *candidate = NULL;
        }
@@ -844,36 +1128,65 @@ gboolean identity_manager_view_display_name_is_valid (IdentityManagerView* self,
                GeeLinkedList* _tmp0_;
                GeeIterator* _tmp1_;
                GeeIterator* _id_card_it;
+#line 310 "moonshot-identity-management-view.vala"
                _id_card_it = (_tmp1_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) (_tmp0_ = identity_manager_model_get_card_list (self->identities_manager))), _g_object_unref0 (_tmp0_), _tmp1_);
+#line 310 "moonshot-identity-management-view.vala"
                while (TRUE) {
+#line 1136 "moonshot-identity-management-view.c"
                        IdCard* id_card;
+#line 310 "moonshot-identity-management-view.vala"
                        if (!gee_iterator_next (_id_card_it)) {
+#line 310 "moonshot-identity-management-view.vala"
                                break;
+#line 1142 "moonshot-identity-management-view.c"
                        }
+#line 310 "moonshot-identity-management-view.vala"
                        id_card = (IdCard*) gee_iterator_get (_id_card_it);
+#line 312 "moonshot-identity-management-view.vala"
                        if (_vala_strcmp0 (id_card_get_display_name (id_card), name) == 0) {
+#line 314 "moonshot-identity-management-view.vala"
                                if ((candidate) != NULL) {
+#line 1150 "moonshot-identity-management-view.c"
                                        {
                                                gint i;
+#line 316 "moonshot-identity-management-view.vala"
                                                i = 0;
+#line 1155 "moonshot-identity-management-view.c"
                                                {
                                                        gboolean _tmp2_;
+#line 316 "moonshot-identity-management-view.vala"
                                                        _tmp2_ = TRUE;
+#line 316 "moonshot-identity-management-view.vala"
                                                        while (TRUE) {
+#line 1162 "moonshot-identity-management-view.c"
                                                                char* tmp;
+#line 316 "moonshot-identity-management-view.vala"
                                                                if (!_tmp2_) {
+#line 316 "moonshot-identity-management-view.vala"
                                                                        i++;
+#line 1168 "moonshot-identity-management-view.c"
                                                                }
+#line 316 "moonshot-identity-management-view.vala"
                                                                _tmp2_ = FALSE;
+#line 316 "moonshot-identity-management-view.vala"
                                                                if (!(i < 1000)) {
+#line 316 "moonshot-identity-management-view.vala"
                                                                        break;
+#line 1176 "moonshot-identity-management-view.c"
                                                                }
+#line 318 "moonshot-identity-management-view.vala"
                                                                tmp = g_strdup_printf ("%s %d", name, i);
+#line 319 "moonshot-identity-management-view.vala"
                                                                if (identity_manager_view_display_name_is_valid (self, tmp, NULL)) {
+#line 1182 "moonshot-identity-management-view.c"
                                                                        char* _tmp3_;
+#line 321 "moonshot-identity-management-view.vala"
                                                                        *candidate = (_tmp3_ = g_strdup (tmp), _g_free0 (*candidate), _tmp3_);
+#line 1186 "moonshot-identity-management-view.c"
                                                                        _g_free0 (tmp);
+#line 322 "moonshot-identity-management-view.vala"
                                                                        break;
+#line 1190 "moonshot-identity-management-view.c"
                                                                }
                                                                _g_free0 (tmp);
                                                        }
@@ -883,130 +1196,210 @@ gboolean identity_manager_view_display_name_is_valid (IdentityManagerView* self,
                                result = FALSE;
                                _g_object_unref0 (id_card);
                                _g_object_unref0 (_id_card_it);
+#line 326 "moonshot-identity-management-view.vala"
                                return result;
+#line 1202 "moonshot-identity-management-view.c"
                        }
                        _g_object_unref0 (id_card);
                }
                _g_object_unref0 (_id_card_it);
        }
        result = TRUE;
+#line 330 "moonshot-identity-management-view.vala"
        return result;
+#line 1211 "moonshot-identity-management-view.c"
 }
 
 
+#line 333 "moonshot-identity-management-view.vala"
 void identity_manager_view_insert_id_card (IdentityManagerView* self, IdCard* id_card) {
+#line 1217 "moonshot-identity-management-view.c"
        char* candidate;
        char* _tmp0_ = NULL;
        gboolean _tmp1_;
        char* _tmp2_;
+#line 333 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 333 "moonshot-identity-management-view.vala"
        g_return_if_fail (id_card != NULL);
+#line 1226 "moonshot-identity-management-view.c"
        candidate = NULL;
+#line 337 "moonshot-identity-management-view.vala"
        if (!(_tmp1_ = identity_manager_view_display_name_is_valid (self, id_card_get_display_name (id_card), &_tmp0_), candidate = (_tmp2_ = _tmp0_, _g_free0 (candidate), _tmp2_), _tmp1_)) {
+#line 339 "moonshot-identity-management-view.vala"
                id_card_set_display_name (id_card, candidate);
+#line 1232 "moonshot-identity-management-view.c"
        }
+#line 342 "moonshot-identity-management-view.vala"
        identity_manager_model_add_card (self->identities_manager, id_card);
+#line 1236 "moonshot-identity-management-view.c"
        _g_free0 (candidate);
 }
 
 
+#line 345 "moonshot-identity-management-view.vala"
 gboolean identity_manager_view_add_identity (IdentityManagerView* self, IdCard* id_card) {
+#line 1243 "moonshot-identity-management-view.c"
        gboolean result = FALSE;
        GtkMessageDialog* dialog;
        gint ret;
+#line 345 "moonshot-identity-management-view.vala"
        g_return_val_if_fail (self != NULL, FALSE);
+#line 345 "moonshot-identity-management-view.vala"
        g_return_val_if_fail (id_card != NULL, FALSE);
+#line 355 "moonshot-identity-management-view.vala"
        dialog = g_object_ref_sink ((GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) self, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, _ ("Would you like to add '%s' ID Card to the ID Card Organizer?"), id_card_get_display_name (id_card)));
-       gtk_widget_show_all ((GtkWidget*) dialog);
+#line 362 "moonshot-identity-management-view.vala"
        ret = gtk_dialog_run ((GtkDialog*) dialog);
-       gtk_widget_hide ((GtkWidget*) dialog);
+#line 363 "moonshot-identity-management-view.vala"
+       gtk_object_destroy ((GtkObject*) dialog);
+#line 366 "moonshot-identity-management-view.vala"
        if (ret == GTK_RESPONSE_YES) {
+#line 367 "moonshot-identity-management-view.vala"
                g_object_set_data_full ((GObject*) id_card, "pixbuf", find_icon ("avatar-default", 48), g_object_unref);
+#line 368 "moonshot-identity-management-view.vala"
                identity_manager_view_insert_id_card (self, id_card);
+#line 1263 "moonshot-identity-management-view.c"
                result = TRUE;
                _g_object_unref0 (dialog);
+#line 369 "moonshot-identity-management-view.vala"
                return result;
+#line 1268 "moonshot-identity-management-view.c"
        }
        result = FALSE;
        _g_object_unref0 (dialog);
+#line 372 "moonshot-identity-management-view.vala"
        return result;
+#line 1274 "moonshot-identity-management-view.c"
 }
 
 
+#line 375 "moonshot-identity-management-view.vala"
 static void identity_manager_view_add_identity_manual_cb (IdentityManagerView* self) {
+#line 1280 "moonshot-identity-management-view.c"
        AddIdentityDialog* dialog;
        gint _result_;
+#line 375 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 377 "moonshot-identity-management-view.vala"
        dialog = g_object_ref_sink (add_identity_dialog_new ());
+#line 378 "moonshot-identity-management-view.vala"
        _result_ = gtk_dialog_run ((GtkDialog*) dialog);
+#line 380 "moonshot-identity-management-view.vala"
        switch (_result_) {
+#line 1291 "moonshot-identity-management-view.c"
                case GTK_RESPONSE_OK:
                {
                        IdCard* _tmp0_;
+#line 382 "moonshot-identity-management-view.vala"
                        identity_manager_view_insert_id_card (self, _tmp0_ = identity_manager_view_get_id_card_data (self, dialog));
+#line 1297 "moonshot-identity-management-view.c"
                        _g_object_unref0 (_tmp0_);
+#line 383 "moonshot-identity-management-view.vala"
                        break;
+#line 1301 "moonshot-identity-management-view.c"
                }
                default:
                {
+#line 385 "moonshot-identity-management-view.vala"
                        break;
+#line 1307 "moonshot-identity-management-view.c"
                }
        }
+#line 387 "moonshot-identity-management-view.vala"
        gtk_object_destroy ((GtkObject*) dialog);
+#line 1312 "moonshot-identity-management-view.c"
        _g_object_unref0 (dialog);
 }
 
 
+#line 390 "moonshot-identity-management-view.vala"
 static void identity_manager_view_remove_id_card_widget (IdentityManagerView* self, IdCardWidget* id_card_widget) {
+#line 390 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 390 "moonshot-identity-management-view.vala"
        g_return_if_fail (id_card_widget != NULL);
+#line 391 "moonshot-identity-management-view.vala"
        custom_vbox_remove_id_card_widget (self->priv->custom_vbox, id_card_widget);
+#line 1325 "moonshot-identity-management-view.c"
 }
 
 
+#line 394 "moonshot-identity-management-view.vala"
 static void identity_manager_view_remove_identity (IdentityManagerView* self, IdCardWidget* id_card_widget) {
+#line 1331 "moonshot-identity-management-view.c"
        IdCard* id_card;
+#line 394 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 394 "moonshot-identity-management-view.vala"
        g_return_if_fail (id_card_widget != NULL);
+#line 396 "moonshot-identity-management-view.vala"
        id_card = _g_object_ref0 (id_card_widget_get_id_card (id_card_widget));
+#line 397 "moonshot-identity-management-view.vala"
        identity_manager_view_remove_id_card_widget (self, id_card_widget);
+#line 399 "moonshot-identity-management-view.vala"
        identity_manager_model_remove_card (self->identities_manager, id_card);
+#line 1343 "moonshot-identity-management-view.c"
        _g_object_unref0 (id_card);
 }
 
 
+#line 402 "moonshot-identity-management-view.vala"
 static void identity_manager_view_redraw_id_card_widgets (IdentityManagerView* self) {
+#line 1350 "moonshot-identity-management-view.c"
        GtkTreeIter iter = {0};
        IdCard* id_card;
        GList* children;
+#line 402 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 1356 "moonshot-identity-management-view.c"
        id_card = NULL;
+#line 407 "moonshot-identity-management-view.vala"
        children = gtk_container_get_children ((GtkContainer*) self->priv->custom_vbox);
+#line 1360 "moonshot-identity-management-view.c"
        {
                GList* id_card_widget_collection;
                GList* id_card_widget_it;
+#line 408 "moonshot-identity-management-view.vala"
                id_card_widget_collection = children;
+#line 1366 "moonshot-identity-management-view.c"
                for (id_card_widget_it = id_card_widget_collection; id_card_widget_it != NULL; id_card_widget_it = id_card_widget_it->next) {
                        GtkWidget* id_card_widget;
+#line 408 "moonshot-identity-management-view.vala"
                        id_card_widget = (GtkWidget*) id_card_widget_it->data;
+#line 1371 "moonshot-identity-management-view.c"
                        {
+#line 409 "moonshot-identity-management-view.vala"
                                gtk_object_destroy ((GtkObject*) id_card_widget);
+#line 1375 "moonshot-identity-management-view.c"
                        }
                }
        }
+#line 411 "moonshot-identity-management-view.vala"
        if (gtk_tree_model_get_iter_first ((GtkTreeModel*) self->priv->filter, &iter)) {
+#line 1381 "moonshot-identity-management-view.c"
                {
                        gboolean _tmp0_;
+#line 413 "moonshot-identity-management-view.vala"
                        _tmp0_ = TRUE;
+#line 413 "moonshot-identity-management-view.vala"
                        while (TRUE) {
+#line 413 "moonshot-identity-management-view.vala"
                                if (!_tmp0_) {
+#line 420 "moonshot-identity-management-view.vala"
                                        if (!gtk_tree_model_iter_next ((GtkTreeModel*) self->priv->filter, &iter)) {
+#line 420 "moonshot-identity-management-view.vala"
                                                break;
+#line 1394 "moonshot-identity-management-view.c"
                                        }
                                }
+#line 413 "moonshot-identity-management-view.vala"
                                _tmp0_ = FALSE;
+#line 415 "moonshot-identity-management-view.vala"
                                gtk_tree_model_get ((GtkTreeModel*) self->priv->filter, &iter, IDENTITY_MANAGER_VIEW_COLUMNS_IDCARD_COL, &id_card, -1);
+#line 418 "moonshot-identity-management-view.vala"
                                identity_manager_view_add_id_card_widget (self, id_card);
+#line 1403 "moonshot-identity-management-view.c"
                        }
                }
        }
@@ -1015,27 +1408,43 @@ static void identity_manager_view_redraw_id_card_widgets (IdentityManagerView* s
 }
 
 
+#line 424 "moonshot-identity-management-view.vala"
 static void identity_manager_view_remove_identity_cb (IdentityManagerView* self, IdCardWidget* id_card_widget) {
+#line 1414 "moonshot-identity-management-view.c"
        IdCard* id_card;
        GtkMessageDialog* dialog;
        gint _result_;
+#line 424 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 424 "moonshot-identity-management-view.vala"
        g_return_if_fail (id_card_widget != NULL);
+#line 426 "moonshot-identity-management-view.vala"
        id_card = _g_object_ref0 (id_card_widget_get_id_card (id_card_widget));
-       dialog = g_object_ref_sink ((GtkMessageDialog*) gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, _ ("Are you sure you want to delete %s ID Card?"), id_card_get_issuer (id_card)));
+#line 428 "moonshot-identity-management-view.vala"
+       dialog = g_object_ref_sink ((GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) self, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, _ ("Are you sure you want to delete %s ID Card?"), id_card_get_issuer (id_card)));
+#line 433 "moonshot-identity-management-view.vala"
        _result_ = gtk_dialog_run ((GtkDialog*) dialog);
+#line 434 "moonshot-identity-management-view.vala"
        switch (_result_) {
+#line 1430 "moonshot-identity-management-view.c"
                case GTK_RESPONSE_YES:
                {
+#line 436 "moonshot-identity-management-view.vala"
                        identity_manager_view_remove_identity (self, id_card_widget);
+#line 437 "moonshot-identity-management-view.vala"
                        break;
+#line 1437 "moonshot-identity-management-view.c"
                }
                default:
                {
+#line 439 "moonshot-identity-management-view.vala"
                        break;
+#line 1443 "moonshot-identity-management-view.c"
                }
        }
+#line 441 "moonshot-identity-management-view.vala"
        gtk_object_destroy ((GtkObject*) dialog);
+#line 1448 "moonshot-identity-management-view.c"
        _g_object_unref0 (dialog);
        _g_object_unref0 (id_card);
 }
@@ -1047,17 +1456,25 @@ static void _g_slist_free_g_free (GSList* self) {
 }
 
 
+#line 574 "moonshot-identity-management-view.vala"
 static gboolean _lambda3_ (Block1Data* _data1_) {
+#line 1462 "moonshot-identity-management-view.c"
        IdentityManagerView * self;
        gboolean result = FALSE;
        self = _data1_->self;
+#line 574 "moonshot-identity-management-view.vala"
        identity_manager_view_send_identity_cb (self, _data1_->identity);
+#line 1468 "moonshot-identity-management-view.c"
        result = FALSE;
+#line 574 "moonshot-identity-management-view.vala"
        return result;
+#line 1472 "moonshot-identity-management-view.c"
 }
 
 
+#line 574 "moonshot-identity-management-view.vala"
 static gboolean __lambda3__gsource_func (gpointer self) {
+#line 1478 "moonshot-identity-management-view.c"
        gboolean result;
        result = _lambda3_ (self);
        return result;
@@ -1079,29 +1496,49 @@ static void block1_data_unref (Block1Data* _data1_) {
 }
 
 
+#line 444 "moonshot-identity-management-view.vala"
 void identity_manager_view_select_identity (IdentityManagerView* self, IdentityRequest* request) {
+#line 1502 "moonshot-identity-management-view.c"
        Block1Data* _data1_;
        gboolean _tmp0_ = FALSE;
+#line 444 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 444 "moonshot-identity-management-view.vala"
        g_return_if_fail (request != NULL);
+#line 1509 "moonshot-identity-management-view.c"
        _data1_ = g_slice_new0 (Block1Data);
        _data1_->_ref_count_ = 1;
        _data1_->self = g_object_ref (self);
        _data1_->identity = NULL;
+#line 448 "moonshot-identity-management-view.vala"
        g_queue_push_tail (self->request_queue, _g_object_ref0 (request));
+#line 450 "moonshot-identity-management-view.vala"
        if (custom_vbox_get_current_idcard (self->priv->custom_vbox) != NULL) {
+#line 451 "moonshot-identity-management-view.vala"
                _tmp0_ = id_card_widget_get_send_button (custom_vbox_get_current_idcard (self->priv->custom_vbox)) != NULL;
+#line 1520 "moonshot-identity-management-view.c"
        } else {
+#line 450 "moonshot-identity-management-view.vala"
                _tmp0_ = FALSE;
+#line 1524 "moonshot-identity-management-view.c"
        }
+#line 450 "moonshot-identity-management-view.vala"
        if (_tmp0_) {
+#line 452 "moonshot-identity-management-view.vala"
                gtk_widget_set_sensitive ((GtkWidget*) id_card_widget_get_send_button (custom_vbox_get_current_idcard (self->priv->custom_vbox)), TRUE);
+#line 1530 "moonshot-identity-management-view.c"
        }
+#line 454 "moonshot-identity-management-view.vala"
        if (request->select_default) {
+#line 1534 "moonshot-identity-management-view.c"
                IdCard* _tmp1_;
+#line 456 "moonshot-identity-management-view.vala"
                _data1_->identity = (_tmp1_ = _g_object_ref0 (self->priv->default_id_card), _g_object_unref0 (_data1_->identity), _tmp1_);
+#line 1538 "moonshot-identity-management-view.c"
        }
+#line 459 "moonshot-identity-management-view.vala"
        if (_data1_->identity == NULL) {
+#line 1542 "moonshot-identity-management-view.c"
                gboolean _tmp2_ = FALSE;
                gboolean has_nai;
                gboolean _tmp3_ = FALSE;
@@ -1109,60 +1546,103 @@ void identity_manager_view_select_identity (IdentityManagerView* self, IdentityR
                gboolean confirm;
                IdCard* nai_provided;
                gboolean _tmp9_ = FALSE;
+#line 461 "moonshot-identity-management-view.vala"
                if (request->nai != NULL) {
+#line 461 "moonshot-identity-management-view.vala"
                        _tmp2_ = _vala_strcmp0 (request->nai, "") != 0;
+#line 1554 "moonshot-identity-management-view.c"
                } else {
+#line 461 "moonshot-identity-management-view.vala"
                        _tmp2_ = FALSE;
+#line 1558 "moonshot-identity-management-view.c"
                }
+#line 461 "moonshot-identity-management-view.vala"
                has_nai = _tmp2_;
+#line 462 "moonshot-identity-management-view.vala"
                if (request->service != NULL) {
+#line 462 "moonshot-identity-management-view.vala"
                        _tmp3_ = _vala_strcmp0 (request->service, "") != 0;
+#line 1566 "moonshot-identity-management-view.c"
                } else {
+#line 462 "moonshot-identity-management-view.vala"
                        _tmp3_ = FALSE;
+#line 1570 "moonshot-identity-management-view.c"
                }
+#line 462 "moonshot-identity-management-view.vala"
                has_srv = _tmp3_;
+#line 463 "moonshot-identity-management-view.vala"
                confirm = FALSE;
+#line 464 "moonshot-identity-management-view.vala"
                nai_provided = NULL;
+#line 1578 "moonshot-identity-management-view.c"
                {
                        GeeLinkedList* _tmp4_;
                        GeeIterator* _tmp5_;
                        GeeIterator* _id_it;
+#line 466 "moonshot-identity-management-view.vala"
                        _id_it = (_tmp5_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) (_tmp4_ = identity_manager_model_get_card_list (self->identities_manager))), _g_object_unref0 (_tmp4_), _tmp5_);
+#line 466 "moonshot-identity-management-view.vala"
                        while (TRUE) {
+#line 1587 "moonshot-identity-management-view.c"
                                IdCard* id;
                                gboolean _tmp6_ = FALSE;
+#line 466 "moonshot-identity-management-view.vala"
                                if (!gee_iterator_next (_id_it)) {
+#line 466 "moonshot-identity-management-view.vala"
                                        break;
+#line 1594 "moonshot-identity-management-view.c"
                                }
+#line 466 "moonshot-identity-management-view.vala"
                                id = (IdCard*) gee_iterator_get (_id_it);
+#line 469 "moonshot-identity-management-view.vala"
                                if (has_nai) {
+#line 469 "moonshot-identity-management-view.vala"
                                        _tmp6_ = _vala_strcmp0 (request->nai, id_card_get_nai (id)) == 0;
+#line 1602 "moonshot-identity-management-view.c"
                                } else {
+#line 469 "moonshot-identity-management-view.vala"
                                        _tmp6_ = FALSE;
+#line 1606 "moonshot-identity-management-view.c"
                                }
+#line 469 "moonshot-identity-management-view.vala"
                                if (_tmp6_) {
+#line 1610 "moonshot-identity-management-view.c"
                                        IdCard* _tmp7_;
+#line 471 "moonshot-identity-management-view.vala"
                                        nai_provided = (_tmp7_ = _g_object_ref0 (id), _g_object_unref0 (nai_provided), _tmp7_);
+#line 472 "moonshot-identity-management-view.vala"
                                        identity_manager_view_add_candidate (self, id);
+#line 1616 "moonshot-identity-management-view.c"
                                        _g_object_unref0 (id);
+#line 473 "moonshot-identity-management-view.vala"
                                        continue;
+#line 1620 "moonshot-identity-management-view.c"
                                }
+#line 477 "moonshot-identity-management-view.vala"
                                if (has_srv) {
+#line 1624 "moonshot-identity-management-view.c"
                                        {
                                                gint _tmp8_;
                                                char** srv_collection;
                                                int srv_collection_length1;
                                                int srv_it;
+#line 479 "moonshot-identity-management-view.vala"
                                                srv_collection = id_card_get_services (id, &_tmp8_);
+#line 1632 "moonshot-identity-management-view.c"
                                                srv_collection_length1 = _tmp8_;
                                                for (srv_it = 0; srv_it < _tmp8_; srv_it = srv_it + 1) {
                                                        char* srv;
                                                        srv = g_strdup (srv_collection[srv_it]);
                                                        {
+#line 481 "moonshot-identity-management-view.vala"
                                                                if (_vala_strcmp0 (request->service, srv) == 0) {
+#line 483 "moonshot-identity-management-view.vala"
                                                                        identity_manager_view_add_candidate (self, id);
+#line 1642 "moonshot-identity-management-view.c"
                                                                        _g_free0 (srv);
+#line 484 "moonshot-identity-management-view.vala"
                                                                        continue;
+#line 1646 "moonshot-identity-management-view.c"
                                                                }
                                                                _g_free0 (srv);
                                                        }
@@ -1173,19 +1653,30 @@ void identity_manager_view_select_identity (IdentityManagerView* self, IdentityR
                        }
                        _g_object_unref0 (_id_it);
                }
+#line 491 "moonshot-identity-management-view.vala"
                if (has_srv) {
+#line 491 "moonshot-identity-management-view.vala"
                        _tmp9_ = g_slist_length (self->priv->candidates) > 1;
+#line 1661 "moonshot-identity-management-view.c"
                } else {
+#line 491 "moonshot-identity-management-view.vala"
                        _tmp9_ = FALSE;
+#line 1665 "moonshot-identity-management-view.c"
                }
+#line 491 "moonshot-identity-management-view.vala"
                if (_tmp9_) {
+#line 1669 "moonshot-identity-management-view.c"
                        {
                                GSList* id_collection;
                                GSList* id_it;
+#line 493 "moonshot-identity-management-view.vala"
                                id_collection = self->priv->candidates;
+#line 1675 "moonshot-identity-management-view.c"
                                for (id_it = id_collection; id_it != NULL; id_it = id_it->next) {
                                        IdCard* id;
+#line 493 "moonshot-identity-management-view.vala"
                                        id = _g_object_ref0 ((IdCard*) id_it->data);
+#line 1680 "moonshot-identity-management-view.c"
                                        {
                                                gint i;
                                                GSList* services_list;
@@ -1196,65 +1687,99 @@ void identity_manager_view_select_identity (IdentityManagerView* self, IdentityR
                                                gint _tmp14_;
                                                char** services;
                                                char** _tmp17_;
+#line 495 "moonshot-identity-management-view.vala"
                                                i = 0;
+#line 496 "moonshot-identity-management-view.vala"
                                                services_list = NULL;
+#line 497 "moonshot-identity-management-view.vala"
                                                has_service = FALSE;
+#line 1697 "moonshot-identity-management-view.c"
                                                {
                                                        gint _tmp10_;
                                                        char** srv_collection;
                                                        int srv_collection_length1;
                                                        int srv_it;
+#line 499 "moonshot-identity-management-view.vala"
                                                        srv_collection = id_card_get_services (id, &_tmp10_);
+#line 1705 "moonshot-identity-management-view.c"
                                                        srv_collection_length1 = _tmp10_;
                                                        for (srv_it = 0; srv_it < _tmp10_; srv_it = srv_it + 1) {
                                                                char* srv;
                                                                srv = g_strdup (srv_collection[srv_it]);
                                                                {
+#line 501 "moonshot-identity-management-view.vala"
                                                                        if (_vala_strcmp0 (srv, request->service) == 0) {
+#line 503 "moonshot-identity-management-view.vala"
                                                                                has_service = TRUE;
+#line 1715 "moonshot-identity-management-view.c"
                                                                                _g_free0 (srv);
+#line 504 "moonshot-identity-management-view.vala"
                                                                                continue;
+#line 1719 "moonshot-identity-management-view.c"
                                                                        }
+#line 506 "moonshot-identity-management-view.vala"
                                                                        services_list = g_slist_append (services_list, g_strdup (srv));
+#line 1723 "moonshot-identity-management-view.c"
                                                                        _g_free0 (srv);
                                                                }
                                                        }
                                                }
+#line 509 "moonshot-identity-management-view.vala"
                                                if (!has_service) {
+#line 1730 "moonshot-identity-management-view.c"
                                                        __g_slist_free_g_free0 (services_list);
                                                        _g_object_unref0 (id);
+#line 510 "moonshot-identity-management-view.vala"
                                                        continue;
+#line 1735 "moonshot-identity-management-view.c"
                                                }
+#line 512 "moonshot-identity-management-view.vala"
                                                if (g_slist_length (services_list) == 0) {
+#line 1739 "moonshot-identity-management-view.c"
                                                        char** _tmp11_ = NULL;
                                                        char** _tmp12_;
                                                        gint _tmp12__length1;
                                                        char** _tmp13_;
+#line 514 "moonshot-identity-management-view.vala"
                                                        _tmp13_ = (_tmp12_ = (_tmp11_ = g_new0 (char*, 0 + 1), _tmp11_), _tmp12__length1 = 0, _tmp12_);
+#line 514 "moonshot-identity-management-view.vala"
                                                        id_card_set_services (id, _tmp13_, 0);
+#line 1748 "moonshot-identity-management-view.c"
                                                        _tmp12_ = (_vala_array_free (_tmp12_, _tmp12__length1, (GDestroyNotify) g_free), NULL);
                                                        __g_slist_free_g_free0 (services_list);
                                                        _g_object_unref0 (id);
+#line 515 "moonshot-identity-management-view.vala"
                                                        continue;
+#line 1754 "moonshot-identity-management-view.c"
                                                }
                                                services = (_tmp15_ = g_new0 (char*, (_tmp14_ = g_slist_length (services_list)) + 1), services_length1 = _tmp14_, _services_size_ = services_length1, _tmp15_);
                                                {
                                                        GSList* srv_collection;
                                                        GSList* srv_it;
+#line 519 "moonshot-identity-management-view.vala"
                                                        srv_collection = services_list;
+#line 1762 "moonshot-identity-management-view.c"
                                                        for (srv_it = srv_collection; srv_it != NULL; srv_it = srv_it->next) {
                                                                char* srv;
+#line 519 "moonshot-identity-management-view.vala"
                                                                srv = g_strdup ((const char*) srv_it->data);
+#line 1767 "moonshot-identity-management-view.c"
                                                                {
                                                                        char* _tmp16_;
+#line 521 "moonshot-identity-management-view.vala"
                                                                        services[i] = (_tmp16_ = g_strdup (srv), _g_free0 (services[i]), _tmp16_);
+#line 522 "moonshot-identity-management-view.vala"
                                                                        i++;
+#line 1774 "moonshot-identity-management-view.c"
                                                                        _g_free0 (srv);
                                                                }
                                                        }
                                                }
+#line 525 "moonshot-identity-management-view.vala"
                                                _tmp17_ = services;
+#line 525 "moonshot-identity-management-view.vala"
                                                id_card_set_services (id, _tmp17_, services_length1);
+#line 1783 "moonshot-identity-management-view.c"
                                                services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_free), NULL);
                                                __g_slist_free_g_free0 (services_list);
                                                _g_object_unref0 (id);
@@ -1262,37 +1787,57 @@ void identity_manager_view_select_identity (IdentityManagerView* self, IdentityR
                                }
                        }
                }
+#line 532 "moonshot-identity-management-view.vala"
                if (g_slist_length (self->priv->candidates) == 0) {
+#line 1793 "moonshot-identity-management-view.c"
                        {
                                GeeLinkedList* _tmp18_;
                                GeeIterator* _tmp19_;
                                GeeIterator* _id_it;
+#line 534 "moonshot-identity-management-view.vala"
                                _id_it = (_tmp19_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) (_tmp18_ = identity_manager_model_get_card_list (self->identities_manager))), _g_object_unref0 (_tmp18_), _tmp19_);
+#line 534 "moonshot-identity-management-view.vala"
                                while (TRUE) {
+#line 1802 "moonshot-identity-management-view.c"
                                        IdCard* id;
+#line 534 "moonshot-identity-management-view.vala"
                                        if (!gee_iterator_next (_id_it)) {
+#line 534 "moonshot-identity-management-view.vala"
                                                break;
+#line 1808 "moonshot-identity-management-view.c"
                                        }
+#line 534 "moonshot-identity-management-view.vala"
                                        id = (IdCard*) gee_iterator_get (_id_it);
+#line 1812 "moonshot-identity-management-view.c"
                                        {
                                                gint _tmp20_;
                                                Rule* rule_collection;
                                                int rule_collection_length1;
                                                int rule_it;
+#line 536 "moonshot-identity-management-view.vala"
                                                rule_collection = id_card_get_rules (id, &_tmp20_);
+#line 1820 "moonshot-identity-management-view.c"
                                                rule_collection_length1 = _tmp20_;
                                                for (rule_it = 0; rule_it < _tmp20_; rule_it = rule_it + 1) {
                                                        Rule _tmp21_ = {0};
                                                        Rule rule;
                                                        rule = (rule_copy (&rule_collection[rule_it], &_tmp21_), _tmp21_);
                                                        {
+#line 538 "moonshot-identity-management-view.vala"
                                                                if (!identity_manager_view_match_service_pattern (self, request->service, rule.pattern)) {
+#line 1829 "moonshot-identity-management-view.c"
                                                                        rule_destroy (&rule);
+#line 539 "moonshot-identity-management-view.vala"
                                                                        continue;
+#line 1833 "moonshot-identity-management-view.c"
                                                                }
+#line 541 "moonshot-identity-management-view.vala"
                                                                self->priv->candidates = g_slist_append (self->priv->candidates, _g_object_ref0 (id));
+#line 543 "moonshot-identity-management-view.vala"
                                                                if (_vala_strcmp0 (rule.always_confirm, "true") == 0) {
+#line 544 "moonshot-identity-management-view.vala"
                                                                        confirm = TRUE;
+#line 1841 "moonshot-identity-management-view.c"
                                                                }
                                                                rule_destroy (&rule);
                                                        }
@@ -1303,162 +1848,306 @@ void identity_manager_view_select_identity (IdentityManagerView* self, IdentityR
                                _g_object_unref0 (_id_it);
                        }
                }
+#line 549 "moonshot-identity-management-view.vala"
                if (g_slist_length (self->priv->candidates) > 1) {
+#line 1854 "moonshot-identity-management-view.c"
                        gboolean _tmp22_ = FALSE;
+#line 551 "moonshot-identity-management-view.vala"
                        if (has_nai) {
+#line 551 "moonshot-identity-management-view.vala"
                                _tmp22_ = nai_provided != NULL;
+#line 1860 "moonshot-identity-management-view.c"
                        } else {
+#line 551 "moonshot-identity-management-view.vala"
                                _tmp22_ = FALSE;
+#line 1864 "moonshot-identity-management-view.c"
                        }
+#line 551 "moonshot-identity-management-view.vala"
                        if (_tmp22_) {
+#line 1868 "moonshot-identity-management-view.c"
                                IdCard* _tmp23_;
+#line 553 "moonshot-identity-management-view.vala"
                                _data1_->identity = (_tmp23_ = _g_object_ref0 (nai_provided), _g_object_unref0 (_data1_->identity), _tmp23_);
+#line 554 "moonshot-identity-management-view.vala"
                                confirm = FALSE;
+#line 1874 "moonshot-identity-management-view.c"
                        } else {
+#line 557 "moonshot-identity-management-view.vala"
                                confirm = TRUE;
+#line 1878 "moonshot-identity-management-view.c"
                        }
                } else {
                        IdCard* _tmp24_;
+#line 560 "moonshot-identity-management-view.vala"
                        _data1_->identity = (_tmp24_ = _g_object_ref0 ((IdCard*) g_slist_nth_data (self->priv->candidates, (guint) 0)), _g_object_unref0 (_data1_->identity), _tmp24_);
+#line 1884 "moonshot-identity-management-view.c"
                }
+#line 564 "moonshot-identity-management-view.vala"
                if (confirm) {
+#line 566 "moonshot-identity-management-view.vala"
                        gtk_tree_model_filter_refilter (self->priv->filter);
+#line 567 "moonshot-identity-management-view.vala"
                        identity_manager_view_redraw_id_card_widgets (self);
+#line 568 "moonshot-identity-management-view.vala"
                        gtk_widget_show ((GtkWidget*) self);
+#line 1894 "moonshot-identity-management-view.c"
                        _g_object_unref0 (nai_provided);
                        block1_data_unref (_data1_);
+#line 569 "moonshot-identity-management-view.vala"
                        return;
+#line 1899 "moonshot-identity-management-view.c"
                }
                _g_object_unref0 (nai_provided);
        }
+#line 574 "moonshot-identity-management-view.vala"
        g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, __lambda3__gsource_func, block1_data_ref (_data1_), block1_data_unref);
+#line 1905 "moonshot-identity-management-view.c"
        block1_data_unref (_data1_);
+#line 575 "moonshot-identity-management-view.vala"
        return;
+#line 1909 "moonshot-identity-management-view.c"
 }
 
 
+#line 578 "moonshot-identity-management-view.vala"
 static gboolean identity_manager_view_match_service_pattern (IdentityManagerView* self, const char* service, const char* pattern) {
+#line 1915 "moonshot-identity-management-view.c"
        gboolean result = FALSE;
        GPatternSpec* pspec;
+#line 578 "moonshot-identity-management-view.vala"
        g_return_val_if_fail (self != NULL, FALSE);
+#line 578 "moonshot-identity-management-view.vala"
        g_return_val_if_fail (service != NULL, FALSE);
+#line 578 "moonshot-identity-management-view.vala"
        g_return_val_if_fail (pattern != NULL, FALSE);
+#line 580 "moonshot-identity-management-view.vala"
        pspec = g_pattern_spec_new (pattern);
+#line 1926 "moonshot-identity-management-view.c"
        result = g_pattern_match_string (pspec, service);
        _g_pattern_spec_free0 (pspec);
+#line 581 "moonshot-identity-management-view.vala"
        return result;
+#line 1931 "moonshot-identity-management-view.c"
 }
 
 
+#line 584 "moonshot-identity-management-view.vala"
 void identity_manager_view_send_identity_cb (IdentityManagerView* self, IdCard* identity) {
+#line 1937 "moonshot-identity-management-view.c"
        IdentityRequest* request;
        gboolean reset_password;
        gboolean _tmp0_ = FALSE;
-       GSList* _tmp12_;
+       GSList* _tmp13_;
+#line 584 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 584 "moonshot-identity-management-view.vala"
        g_return_if_fail (identity != NULL);
+#line 586 "moonshot-identity-management-view.vala"
        g_return_if_fail (self->request_queue->length > 0);
+#line 588 "moonshot-identity-management-view.vala"
        request = (IdentityRequest*) g_queue_pop_head (self->request_queue);
+#line 589 "moonshot-identity-management-view.vala"
        reset_password = FALSE;
+#line 591 "moonshot-identity-management-view.vala"
        if (request->service != NULL) {
+#line 591 "moonshot-identity-management-view.vala"
                _tmp0_ = _vala_strcmp0 (request->service, "") != 0;
+#line 1956 "moonshot-identity-management-view.c"
        } else {
+#line 591 "moonshot-identity-management-view.vala"
                _tmp0_ = FALSE;
+#line 1960 "moonshot-identity-management-view.c"
        }
+#line 591 "moonshot-identity-management-view.vala"
        if (_tmp0_) {
-               gint services_length1;
-               gint _services_size_;
-               char** _tmp2_;
-               gint _tmp1_;
-               char** services;
-               gint _tmp7_;
-               gint _tmp8_;
-               char* _tmp9_;
-               char** _tmp10_;
-               services = (_tmp2_ = g_new0 (char*, (_tmp1_ + 1) + 1), services_length1 = _tmp1_ + 1, _services_size_ = services_length1, _tmp2_);
+#line 1964 "moonshot-identity-management-view.c"
+               gboolean duplicate_service;
+#line 593 "moonshot-identity-management-view.vala"
+               duplicate_service = FALSE;
+#line 1968 "moonshot-identity-management-view.c"
                {
-                       gint i;
-                       i = 0;
-                       {
-                               gboolean _tmp3_;
-                               _tmp3_ = TRUE;
-                               while (TRUE) {
-                                       gint _tmp4_;
-                                       gint _tmp5_;
-                                       char* _tmp6_;
-                                       if (!_tmp3_) {
-                                               i++;
+                       gint _tmp1_;
+                       char** service_collection;
+                       int service_collection_length1;
+                       int service_it;
+#line 595 "moonshot-identity-management-view.vala"
+                       service_collection = id_card_get_services (identity, &_tmp1_);
+#line 1976 "moonshot-identity-management-view.c"
+                       service_collection_length1 = _tmp1_;
+                       for (service_it = 0; service_it < _tmp1_; service_it = service_it + 1) {
+                               char* service;
+                               service = g_strdup (service_collection[service_it]);
+                               {
+#line 597 "moonshot-identity-management-view.vala"
+                                       if (_vala_strcmp0 (service, request->service) == 0) {
+#line 598 "moonshot-identity-management-view.vala"
+                                               duplicate_service = TRUE;
+#line 1986 "moonshot-identity-management-view.c"
                                        }
-                                       _tmp3_ = FALSE;
-                                       if (!(i < _tmp4_)) {
-                                               break;
+                                       _g_free0 (service);
+                               }
+                       }
+               }
+#line 600 "moonshot-identity-management-view.vala"
+               if (duplicate_service == FALSE) {
+#line 1994 "moonshot-identity-management-view.c"
+                       gint services_length1;
+                       gint _services_size_;
+                       char** _tmp3_;
+                       gint _tmp2_;
+                       char** services;
+                       gint _tmp8_;
+                       gint _tmp9_;
+                       char* _tmp10_;
+                       char** _tmp11_;
+                       services = (_tmp3_ = g_new0 (char*, (_tmp2_ + 1) + 1), services_length1 = _tmp2_ + 1, _services_size_ = services_length1, _tmp3_);
+                       {
+                               gint i;
+#line 604 "moonshot-identity-management-view.vala"
+                               i = 0;
+#line 2009 "moonshot-identity-management-view.c"
+                               {
+                                       gboolean _tmp4_;
+#line 604 "moonshot-identity-management-view.vala"
+                                       _tmp4_ = TRUE;
+#line 604 "moonshot-identity-management-view.vala"
+                                       while (TRUE) {
+#line 2016 "moonshot-identity-management-view.c"
+                                               gint _tmp5_;
+                                               gint _tmp6_;
+                                               char* _tmp7_;
+#line 604 "moonshot-identity-management-view.vala"
+                                               if (!_tmp4_) {
+#line 604 "moonshot-identity-management-view.vala"
+                                                       i++;
+#line 2024 "moonshot-identity-management-view.c"
+                                               }
+#line 604 "moonshot-identity-management-view.vala"
+                                               _tmp4_ = FALSE;
+#line 604 "moonshot-identity-management-view.vala"
+                                               if (!(i < _tmp5_)) {
+#line 604 "moonshot-identity-management-view.vala"
+                                                       break;
+#line 2032 "moonshot-identity-management-view.c"
+                                               }
+#line 605 "moonshot-identity-management-view.vala"
+                                               services[i] = (_tmp7_ = g_strdup (id_card_get_services (identity, &_tmp6_)[i]), _g_free0 (services[i]), _tmp7_);
+#line 2036 "moonshot-identity-management-view.c"
                                        }
-                                       services[i] = (_tmp6_ = g_strdup (id_card_get_services (identity, &_tmp5_)[i]), _g_free0 (services[i]), _tmp6_);
                                }
                        }
+#line 607 "moonshot-identity-management-view.vala"
+                       services[_tmp8_] = (_tmp10_ = g_strdup (request->service), _g_free0 (services[_tmp8_]), _tmp10_);
+#line 608 "moonshot-identity-management-view.vala"
+                       _tmp11_ = services;
+#line 608 "moonshot-identity-management-view.vala"
+                       id_card_set_services (identity, _tmp11_, services_length1);
+#line 610 "moonshot-identity-management-view.vala"
+                       identity_manager_model_update_card (self->identities_manager, identity);
+#line 2048 "moonshot-identity-management-view.c"
+                       services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_free), NULL);
                }
-               services[_tmp7_] = (_tmp9_ = g_strdup (request->service), _g_free0 (services[_tmp7_]), _tmp9_);
-               _tmp10_ = services;
-               id_card_set_services (identity, _tmp10_, services_length1);
-               identity_manager_model_update_card (self->identities_manager, identity);
-               services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_free), NULL);
        }
+#line 614 "moonshot-identity-management-view.vala"
        if (id_card_get_password (identity) == NULL) {
+#line 2054 "moonshot-identity-management-view.c"
                AddPasswordDialog* dialog;
                gint _result_;
+#line 616 "moonshot-identity-management-view.vala"
                dialog = g_object_ref_sink (add_password_dialog_new ());
+#line 617 "moonshot-identity-management-view.vala"
                _result_ = gtk_dialog_run ((GtkDialog*) dialog);
+#line 619 "moonshot-identity-management-view.vala"
                switch (_result_) {
+#line 2063 "moonshot-identity-management-view.c"
                        case GTK_RESPONSE_OK:
                        {
+#line 621 "moonshot-identity-management-view.vala"
                                id_card_set_password (identity, add_password_dialog_get_password (dialog));
+#line 622 "moonshot-identity-management-view.vala"
                                reset_password = !add_password_dialog_get_remember (dialog);
+#line 623 "moonshot-identity-management-view.vala"
                                break;
+#line 2072 "moonshot-identity-management-view.c"
                        }
                        default:
                        {
+#line 625 "moonshot-identity-management-view.vala"
                                identity = NULL;
+#line 626 "moonshot-identity-management-view.vala"
                                break;
+#line 2080 "moonshot-identity-management-view.c"
                        }
                }
+#line 629 "moonshot-identity-management-view.vala"
                gtk_object_destroy ((GtkObject*) dialog);
+#line 2085 "moonshot-identity-management-view.c"
                _g_object_unref0 (dialog);
        }
+#line 632 "moonshot-identity-management-view.vala"
        if (g_queue_is_empty (self->request_queue)) {
+#line 633 "moonshot-identity-management-view.vala"
                gtk_main_quit ();
+#line 2092 "moonshot-identity-management-view.c"
        }
+#line 635 "moonshot-identity-management-view.vala"
        if (identity != NULL) {
-               IdCard* _tmp11_;
-               self->priv->default_id_card = (_tmp11_ = _g_object_ref0 (identity), _g_object_unref0 (self->priv->default_id_card), _tmp11_);
+#line 2096 "moonshot-identity-management-view.c"
+               IdCard* _tmp12_;
+#line 636 "moonshot-identity-management-view.vala"
+               self->priv->default_id_card = (_tmp12_ = _g_object_ref0 (identity), _g_object_unref0 (self->priv->default_id_card), _tmp12_);
+#line 2100 "moonshot-identity-management-view.c"
        }
+#line 638 "moonshot-identity-management-view.vala"
        identity_request_return_identity (request, identity);
+#line 640 "moonshot-identity-management-view.vala"
        if (reset_password) {
+#line 641 "moonshot-identity-management-view.vala"
                id_card_set_password (identity, NULL);
+#line 2108 "moonshot-identity-management-view.c"
        }
-       self->priv->candidates = (_tmp12_ = NULL, __g_slist_free_g_object_unref0 (self->priv->candidates), _tmp12_);
+#line 643 "moonshot-identity-management-view.vala"
+       self->priv->candidates = (_tmp13_ = NULL, __g_slist_free_g_object_unref0 (self->priv->candidates), _tmp13_);
+#line 2112 "moonshot-identity-management-view.c"
        _g_object_unref0 (request);
 }
 
 
+#line 646 "moonshot-identity-management-view.vala"
 static void identity_manager_view_label_make_bold (IdentityManagerView* self, GtkLabel* label) {
+#line 2119 "moonshot-identity-management-view.c"
        PangoFontDescription* font_desc;
+#line 646 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 646 "moonshot-identity-management-view.vala"
        g_return_if_fail (label != NULL);
+#line 648 "moonshot-identity-management-view.vala"
        font_desc = pango_font_description_new ();
+#line 650 "moonshot-identity-management-view.vala"
        pango_font_description_set_weight (font_desc, PANGO_WEIGHT_BOLD);
+#line 657 "moonshot-identity-management-view.vala"
        gtk_widget_modify_font ((GtkWidget*) label, font_desc);
+#line 2131 "moonshot-identity-management-view.c"
        _pango_font_description_free0 (font_desc);
 }
 
 
+#line 685 "moonshot-identity-management-view.vala"
 static void _lambda1_ (GtkButton* remove_button, IdentityManagerView* self) {
+#line 2138 "moonshot-identity-management-view.c"
        GtkMessageDialog* dialog;
        gint ret;
+#line 685 "moonshot-identity-management-view.vala"
        g_return_if_fail (remove_button != NULL);
+#line 687 "moonshot-identity-management-view.vala"
        dialog = g_object_ref_sink ((GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) self, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, _ ("Are you sure you want to stop '%s' ID Card from being used with %s?"), id_card_get_display_name (id_card_widget_get_id_card (custom_vbox_get_current_idcard (self->priv->custom_vbox))), _ ("this service")));
+#line 694 "moonshot-identity-management-view.vala"
        ret = gtk_dialog_run ((GtkDialog*) dialog);
+#line 695 "moonshot-identity-management-view.vala"
        gtk_widget_hide ((GtkWidget*) dialog);
+#line 697 "moonshot-identity-management-view.vala"
        if (ret == GTK_RESPONSE_YES) {
+#line 2151 "moonshot-identity-management-view.c"
                IdCard* idcard;
                char* candidate;
                GSList* services;
@@ -1467,71 +2156,112 @@ static void _lambda1_ (GtkButton* remove_button, IdentityManagerView* self) {
                gint _tmp2__length1;
                char** _tmp3_;
                GList* children;
+#line 699 "moonshot-identity-management-view.vala"
                idcard = _g_object_ref0 (id_card_widget_get_id_card (custom_vbox_get_current_idcard (self->priv->custom_vbox)));
+#line 700 "moonshot-identity-management-view.vala"
                candidate = g_strdup ((const char*) g_hash_table_lookup (self->priv->service_button_map, remove_button));
+#line 702 "moonshot-identity-management-view.vala"
                services = NULL;
+#line 2166 "moonshot-identity-management-view.c"
                {
                        gint _tmp0_;
                        char** srv_collection;
                        int srv_collection_length1;
                        int srv_it;
+#line 704 "moonshot-identity-management-view.vala"
                        srv_collection = id_card_get_services (idcard, &_tmp0_);
+#line 2174 "moonshot-identity-management-view.c"
                        srv_collection_length1 = _tmp0_;
                        for (srv_it = 0; srv_it < _tmp0_; srv_it = srv_it + 1) {
                                char* srv;
                                srv = g_strdup (srv_collection[srv_it]);
                                {
+#line 706 "moonshot-identity-management-view.vala"
                                        if (_vala_strcmp0 (srv, candidate) == 0) {
+#line 2182 "moonshot-identity-management-view.c"
                                                _g_free0 (srv);
+#line 707 "moonshot-identity-management-view.vala"
                                                continue;
+#line 2186 "moonshot-identity-management-view.c"
                                        }
+#line 708 "moonshot-identity-management-view.vala"
                                        services = g_slist_append (services, g_strdup (srv));
+#line 2190 "moonshot-identity-management-view.c"
                                        _g_free0 (srv);
                                }
                        }
                }
+#line 711 "moonshot-identity-management-view.vala"
                _tmp3_ = (_tmp2_ = g_new0 (char*, (_tmp1_ = g_slist_length (services)) + 1), _tmp2__length1 = _tmp1_, _tmp2_);
+#line 711 "moonshot-identity-management-view.vala"
                id_card_set_services (idcard, _tmp3_, _tmp1_);
+#line 2199 "moonshot-identity-management-view.c"
                _tmp2_ = (_vala_array_free (_tmp2_, _tmp2__length1, (GDestroyNotify) g_free), NULL);
                {
                        gint j;
+#line 712 "moonshot-identity-management-view.vala"
                        j = 0;
+#line 2205 "moonshot-identity-management-view.c"
                        {
                                gboolean _tmp4_;
+#line 712 "moonshot-identity-management-view.vala"
                                _tmp4_ = TRUE;
+#line 712 "moonshot-identity-management-view.vala"
                                while (TRUE) {
+#line 2212 "moonshot-identity-management-view.c"
                                        gint _tmp5_;
                                        gint _tmp6_;
                                        gint _tmp7_;
                                        char* *_tmp8_;
                                        char* _tmp9_;
+#line 712 "moonshot-identity-management-view.vala"
                                        if (!_tmp4_) {
+#line 712 "moonshot-identity-management-view.vala"
                                                j++;
+#line 2222 "moonshot-identity-management-view.c"
                                        }
+#line 712 "moonshot-identity-management-view.vala"
                                        _tmp4_ = FALSE;
+#line 712 "moonshot-identity-management-view.vala"
                                        if (!(j < _tmp5_)) {
+#line 712 "moonshot-identity-management-view.vala"
                                                break;
+#line 2230 "moonshot-identity-management-view.c"
                                        }
+#line 714 "moonshot-identity-management-view.vala"
                                        _tmp8_ = &id_card_get_services (idcard, &_tmp7_)[j];
+#line 714 "moonshot-identity-management-view.vala"
                                        (*_tmp8_) = (_tmp9_ = g_strdup ((const char*) g_slist_nth_data (services, (guint) j)), _g_free0 ((*_tmp8_)), _tmp9_);
+#line 2236 "moonshot-identity-management-view.c"
                                }
                        }
                }
+#line 717 "moonshot-identity-management-view.vala"
                children = gtk_container_get_children ((GtkContainer*) self->priv->services_internal_vbox);
+#line 2242 "moonshot-identity-management-view.c"
                {
                        GList* hbox_collection;
                        GList* hbox_it;
+#line 718 "moonshot-identity-management-view.vala"
                        hbox_collection = children;
+#line 2248 "moonshot-identity-management-view.c"
                        for (hbox_it = hbox_collection; hbox_it != NULL; hbox_it = hbox_it->next) {
                                GtkWidget* hbox;
+#line 718 "moonshot-identity-management-view.vala"
                                hbox = (GtkWidget*) hbox_it->data;
+#line 2253 "moonshot-identity-management-view.c"
                                {
+#line 719 "moonshot-identity-management-view.vala"
                                        gtk_object_destroy ((GtkObject*) hbox);
+#line 2257 "moonshot-identity-management-view.c"
                                }
                        }
                }
+#line 721 "moonshot-identity-management-view.vala"
                identity_manager_view_fill_services_vbox (self, idcard);
+#line 722 "moonshot-identity-management-view.vala"
                id_card_widget_update_id_card_label (custom_vbox_get_current_idcard (self->priv->custom_vbox));
+#line 2265 "moonshot-identity-management-view.c"
                _g_list_free0 (children);
                __g_slist_free_g_free0 (services);
                _g_free0 (candidate);
@@ -1541,31 +2271,47 @@ static void _lambda1_ (GtkButton* remove_button, IdentityManagerView* self) {
 }
 
 
+#line 685 "moonshot-identity-management-view.vala"
 static void __lambda1__gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 2277 "moonshot-identity-management-view.c"
        _lambda1_ (_sender, self);
 }
 
 
+#line 660 "moonshot-identity-management-view.vala"
 static void identity_manager_view_fill_services_vbox (IdentityManagerView* self, IdCard* id_card) {
+#line 2284 "moonshot-identity-management-view.c"
        gint i;
        gint _tmp0_;
        gint n_columns;
        GtkTable* services_table;
+#line 660 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 660 "moonshot-identity-management-view.vala"
        g_return_if_fail (id_card != NULL);
+#line 662 "moonshot-identity-management-view.vala"
        i = 0;
+#line 663 "moonshot-identity-management-view.vala"
        n_columns = _tmp0_;
+#line 665 "moonshot-identity-management-view.vala"
        services_table = g_object_ref_sink ((GtkTable*) gtk_table_new ((guint) n_columns, (guint) 2, FALSE));
+#line 666 "moonshot-identity-management-view.vala"
        gtk_table_set_col_spacings (services_table, (guint) 10);
+#line 667 "moonshot-identity-management-view.vala"
        gtk_table_set_row_spacings (services_table, (guint) 10);
+#line 668 "moonshot-identity-management-view.vala"
        gtk_container_add ((GtkContainer*) self->priv->services_internal_vbox, (GtkWidget*) services_table);
+#line 670 "moonshot-identity-management-view.vala"
        g_hash_table_remove_all (self->priv->service_button_map);
+#line 2307 "moonshot-identity-management-view.c"
        {
                gint _tmp1_;
                char** service_collection;
                int service_collection_length1;
                int service_it;
+#line 672 "moonshot-identity-management-view.vala"
                service_collection = id_card_get_services (id_card, &_tmp1_);
+#line 2315 "moonshot-identity-management-view.c"
                service_collection_length1 = _tmp1_;
                for (service_it = 0; service_it < _tmp1_; service_it = service_it + 1) {
                        char* service;
@@ -1573,26 +2319,39 @@ static void identity_manager_view_fill_services_vbox (IdentityManagerView* self,
                        {
                                GtkLabel* label;
                                GtkButton* remove_button;
+#line 674 "moonshot-identity-management-view.vala"
                                label = g_object_ref_sink ((GtkLabel*) gtk_label_new (service));
+#line 675 "moonshot-identity-management-view.vala"
                                gtk_misc_set_alignment ((GtkMisc*) label, (float) 0, (float) 0.5);
+#line 679 "moonshot-identity-management-view.vala"
                                remove_button = g_object_ref_sink ((GtkButton*) gtk_button_new_from_stock (GTK_STOCK_REMOVE));
+#line 683 "moonshot-identity-management-view.vala"
                                g_hash_table_insert (self->priv->service_button_map, _g_object_ref0 (remove_button), g_strdup (service));
+#line 685 "moonshot-identity-management-view.vala"
                                g_signal_connect_object (remove_button, "clicked", (GCallback) __lambda1__gtk_button_clicked, self, 0);
+#line 726 "moonshot-identity-management-view.vala"
                                gtk_table_attach_defaults (services_table, (GtkWidget*) label, (guint) 0, (guint) 1, (guint) i, (guint) (i + 1));
+#line 727 "moonshot-identity-management-view.vala"
                                gtk_table_attach_defaults (services_table, (GtkWidget*) remove_button, (guint) 1, (guint) 2, (guint) i, (guint) (i + 1));
+#line 728 "moonshot-identity-management-view.vala"
                                i++;
+#line 2339 "moonshot-identity-management-view.c"
                                _g_object_unref0 (remove_button);
                                _g_object_unref0 (label);
                                _g_free0 (service);
                        }
                }
        }
+#line 730 "moonshot-identity-management-view.vala"
        gtk_widget_show_all ((GtkWidget*) self->priv->services_internal_vbox);
+#line 2348 "moonshot-identity-management-view.c"
        _g_object_unref0 (services_table);
 }
 
 
+#line 733 "moonshot-identity-management-view.vala"
 static void identity_manager_view_on_about_action (IdentityManagerView* self) {
+#line 2355 "moonshot-identity-management-view.c"
        gint authors_length1;
        gint _authors_size_;
        char** _tmp1_;
@@ -1600,9 +2359,13 @@ static void identity_manager_view_on_about_action (IdentityManagerView* self) {
        char** authors;
        char* copyright;
        char* license;
+#line 733 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 2365 "moonshot-identity-management-view.c"
        authors = (_tmp1_ = (_tmp0_ = g_new0 (char*, 4 + 1), _tmp0_[0] = g_strdup ("Javier Jardón <jjardon@codethink.co.uk>"), _tmp0_[1] = g_strdup ("Sam Thursfield <samthursfield@codethink.co.uk>"), _tmp0_[2] = g_strdup ("Alberto Ruiz <alberto.ruiz@codethink.co.uk>"), _tmp0_[3] = NULL, _tmp0_), authors_length1 = 4, _authors_size_ = authors_length1, _tmp1_);
+#line 742 "moonshot-identity-management-view.vala"
        copyright = g_strdup ("Copyright 2011 JANET");
+#line 745 "moonshot-identity-management-view.vala"
        license = g_strdup ("\n" \
 "Copyright (c) 2011, JANET(UK)\n" \
 "All rights reserved.\n" \
@@ -1645,7 +2408,9 @@ static void identity_manager_view_on_about_action (IdentityManagerView* self) {
 "OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF" \
 "\n" \
 "SUCH DAMAGE.\n");
-       gtk_show_about_dialog ((GtkWindow*) self, "comments", _ ("Moonshot project UI"), "copyright", copyright, "website", "http://www.project-moonshot.org/", "license", license, "website-label", _ ("Visit the Moonshot project web site"), "authors", authors, "translator-credits", _ ("translator-credits"), NULL, NULL);
+#line 777 "moonshot-identity-management-view.vala"
+       gtk_show_about_dialog ((GtkWindow*) self, "comments", _ ("Moonshot project UI"), "copyright", copyright, "website", PACKAGE_URL, "version", PACKAGE_VERSION, "license", license, "website-label", _ ("Visit the Moonshot project web site"), "authors", authors, "translator-credits", _ ("translator-credits"), NULL, NULL);
+#line 2373 "moonshot-identity-management-view.c"
        _g_free0 (license);
        _g_free0 (copyright);
        authors = (_vala_array_free (authors, authors_length1, (GDestroyNotify) g_free), NULL);
@@ -1661,7 +2426,9 @@ static void _vala_array_add1 (GtkActionEntry** array, int* length, int* size, co
 }
 
 
+#line 375 "moonshot-identity-management-view.vala"
 static void _identity_manager_view_add_identity_manual_cb_gtk_action_callback (GtkAction* action, gpointer self) {
+#line 2391 "moonshot-identity-management-view.c"
        identity_manager_view_add_identity_manual_cb (self);
 }
 
@@ -1675,7 +2442,9 @@ static void _vala_array_add2 (GtkActionEntry** array, int* length, int* size, co
 }
 
 
+#line 7766 "gtk+-2.0.vapi"
 static void _gtk_main_quit_gtk_action_callback (GtkAction* action, gpointer self) {
+#line 2407 "moonshot-identity-management-view.c"
        gtk_main_quit ();
 }
 
@@ -1698,7 +2467,9 @@ static void _vala_array_add4 (GtkActionEntry** array, int* length, int* size, co
 }
 
 
+#line 733 "moonshot-identity-management-view.vala"
 static void _identity_manager_view_on_about_action_gtk_action_callback (GtkAction* action, gpointer self) {
+#line 2432 "moonshot-identity-management-view.c"
        identity_manager_view_on_about_action (self);
 }
 
@@ -1712,7 +2483,9 @@ static void _vala_array_add5 (GtkActionEntry** array, int* length, int* size, co
 }
 
 
+#line 790 "moonshot-identity-management-view.vala"
 static GtkActionEntry* identity_manager_view_create_actions (IdentityManagerView* self, int* result_length1) {
+#line 2448 "moonshot-identity-management-view.c"
        GtkActionEntry* result = NULL;
        gint actions_length1;
        gint _actions_size_;
@@ -1729,39 +2502,65 @@ static GtkActionEntry* identity_manager_view_create_actions (IdentityManagerView
        GtkActionEntry _tmp5_ = {0};
        GtkActionEntry about;
        GtkActionEntry* _tmp6_;
+#line 790 "moonshot-identity-management-view.vala"
        g_return_val_if_fail (self != NULL, NULL);
+#line 2467 "moonshot-identity-management-view.c"
        actions = (_tmp0_ = g_new0 (GtkActionEntry, 0), actions_length1 = 0, _actions_size_ = actions_length1, _tmp0_);
+#line 793 "moonshot-identity-management-view.vala"
        filemenu = (_tmp1_.name = "FileMenuAction", _tmp1_.stock_id = NULL, _tmp1_.label = N_ ("_File"), _tmp1_.accelerator = NULL, _tmp1_.tooltip = NULL, _tmp1_.callback = (GCallback) NULL, _tmp1_);
+#line 797 "moonshot-identity-management-view.vala"
        _vala_array_add1 (&actions, &actions_length1, &_actions_size_, &filemenu);
+#line 798 "moonshot-identity-management-view.vala"
        add = (_tmp2_.name = "AddIdCardAction", _tmp2_.stock_id = GTK_STOCK_ADD, _tmp2_.label = N_ ("Add ID Card"), _tmp2_.accelerator = NULL, _tmp2_.tooltip = N_ ("Add a new ID Card"), _tmp2_.callback = (GCallback) _identity_manager_view_add_identity_manual_cb_gtk_action_callback, _tmp2_);
+#line 808 "moonshot-identity-management-view.vala"
        _vala_array_add2 (&actions, &actions_length1, &_actions_size_, &add);
+#line 809 "moonshot-identity-management-view.vala"
        quit = (_tmp3_.name = "QuitAction", _tmp3_.stock_id = GTK_STOCK_QUIT, _tmp3_.label = N_ ("Quit"), _tmp3_.accelerator = "<control>Q", _tmp3_.tooltip = N_ ("Quit the application"), _tmp3_.callback = (GCallback) _gtk_main_quit_gtk_action_callback, _tmp3_);
+#line 819 "moonshot-identity-management-view.vala"
        _vala_array_add3 (&actions, &actions_length1, &_actions_size_, &quit);
+#line 821 "moonshot-identity-management-view.vala"
        helpmenu = (_tmp4_.name = "HelpMenuAction", _tmp4_.stock_id = NULL, _tmp4_.label = N_ ("_Help"), _tmp4_.accelerator = NULL, _tmp4_.tooltip = NULL, _tmp4_.callback = (GCallback) NULL, _tmp4_);
+#line 825 "moonshot-identity-management-view.vala"
        _vala_array_add4 (&actions, &actions_length1, &_actions_size_, &helpmenu);
+#line 826 "moonshot-identity-management-view.vala"
        about = (_tmp5_.name = "AboutAction", _tmp5_.stock_id = GTK_STOCK_ABOUT, _tmp5_.label = N_ ("About"), _tmp5_.accelerator = NULL, _tmp5_.tooltip = N_ ("About this application"), _tmp5_.callback = (GCallback) _identity_manager_view_on_about_action_gtk_action_callback, _tmp5_);
+#line 836 "moonshot-identity-management-view.vala"
        _vala_array_add5 (&actions, &actions_length1, &_actions_size_, &about);
+#line 2489 "moonshot-identity-management-view.c"
        result = (_tmp6_ = actions, *result_length1 = actions_length1, _tmp6_);
+#line 838 "moonshot-identity-management-view.vala"
        return result;
+#line 2493 "moonshot-identity-management-view.c"
        actions = (g_free (actions), NULL);
 }
 
 
+#line 842 "moonshot-identity-management-view.vala"
 static void identity_manager_view_create_ui_manager (IdentityManagerView* self) {
+#line 2500 "moonshot-identity-management-view.c"
        GtkActionGroup* action_group;
        gint _tmp0_;
        GtkActionEntry* _tmp1_;
        gint _tmp1__length1;
        GtkActionEntry* _tmp2_;
        GError * _inner_error_ = NULL;
+#line 842 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 844 "moonshot-identity-management-view.vala"
        action_group = gtk_action_group_new ("GeneralActionGroup");
+#line 845 "moonshot-identity-management-view.vala"
        _tmp2_ = (_tmp1_ = identity_manager_view_create_actions (self, &_tmp0_), _tmp1__length1 = _tmp0_, _tmp1_);
+#line 845 "moonshot-identity-management-view.vala"
        gtk_action_group_add_actions (action_group, _tmp2_, _tmp0_, self);
+#line 2515 "moonshot-identity-management-view.c"
        _tmp1_ = (g_free (_tmp1_), NULL);
+#line 846 "moonshot-identity-management-view.vala"
        gtk_ui_manager_insert_action_group (self->priv->ui_manager, action_group, 0);
+#line 2519 "moonshot-identity-management-view.c"
        {
+#line 849 "moonshot-identity-management-view.vala"
                gtk_ui_manager_add_ui_from_string (self->priv->ui_manager, IDENTITY_MANAGER_VIEW_layout, (gssize) (-1), &_inner_error_);
+#line 2523 "moonshot-identity-management-view.c"
                if (_inner_error_ != NULL) {
                        goto __catch1_g_error;
                }
@@ -1773,7 +2572,9 @@ static void identity_manager_view_create_ui_manager (IdentityManagerView* self)
                e = _inner_error_;
                _inner_error_ = NULL;
                {
+#line 853 "moonshot-identity-management-view.vala"
                        fprintf (stderr, "%s\n", e->message);
+#line 2537 "moonshot-identity-management-view.c"
                        _g_error_free0 (e);
                }
        }
@@ -1784,29 +2585,39 @@ static void identity_manager_view_create_ui_manager (IdentityManagerView* self)
                g_clear_error (&_inner_error_);
                return;
        }
+#line 855 "moonshot-identity-management-view.vala"
        gtk_ui_manager_ensure_update (self->priv->ui_manager);
+#line 2550 "moonshot-identity-management-view.c"
        _g_object_unref0 (action_group);
 }
 
 
+#line 158 "moonshot-identity-management-view.vala"
 static void _identity_manager_view_search_entry_icon_press_cb_gtk_entry_icon_press (GtkEntry* _sender, GtkEntryIconPosition p0, GdkEvent* p1, gpointer self) {
+#line 2557 "moonshot-identity-management-view.c"
        identity_manager_view_search_entry_icon_press_cb (self, p0, p1);
 }
 
 
+#line 170 "moonshot-identity-management-view.vala"
 static void _identity_manager_view_search_entry_text_changed_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
+#line 2564 "moonshot-identity-management-view.c"
        identity_manager_view_search_entry_text_changed_cb (self);
 }
 
 
+#line 182 "moonshot-identity-management-view.vala"
 static gboolean _identity_manager_view_search_entry_key_press_event_cb_gtk_widget_key_press_event (GtkWidget* _sender, GdkEventKey* event, gpointer self) {
+#line 2571 "moonshot-identity-management-view.c"
        gboolean result;
        result = identity_manager_view_search_entry_key_press_event_cb (self, event);
        return result;
 }
 
 
+#line 858 "moonshot-identity-management-view.vala"
 static void identity_manager_view_build_ui (IdentityManagerView* self) {
+#line 2580 "moonshot-identity-management-view.c"
        GtkEntry* _tmp0_;
        GdkPixbuf* _tmp1_;
        GdkPixbuf* _tmp2_;
@@ -1831,84 +2642,163 @@ static void identity_manager_view_build_ui (IdentityManagerView* self) {
        GtkHBox* hbox;
        GtkVBox* main_vbox;
        GtkWidget* menubar;
+#line 858 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 860 "moonshot-identity-management-view.vala"
        identity_manager_view_create_ui_manager (self);
+#line 862 "moonshot-identity-management-view.vala"
        self->priv->search_entry = (_tmp0_ = g_object_ref_sink ((GtkEntry*) gtk_entry_new ()), _g_object_unref0 (self->priv->search_entry), _tmp0_);
+#line 864 "moonshot-identity-management-view.vala"
        identity_manager_view_set_atk_name_description (self, (GtkWidget*) self->priv->search_entry, _ ("Search entry"), _ ("Search for a specific ID Card"));
+#line 865 "moonshot-identity-management-view.vala"
        gtk_entry_set_icon_from_pixbuf (self->priv->search_entry, GTK_ENTRY_ICON_PRIMARY, _tmp1_ = find_icon_sized ("edit-find", GTK_ICON_SIZE_MENU));
+#line 2615 "moonshot-identity-management-view.c"
        _g_object_unref0 (_tmp1_);
+#line 868 "moonshot-identity-management-view.vala"
        gtk_entry_set_icon_tooltip_text (self->priv->search_entry, GTK_ENTRY_ICON_PRIMARY, _ ("Search identity or service"));
+#line 870 "moonshot-identity-management-view.vala"
        gtk_entry_set_icon_sensitive (self->priv->search_entry, GTK_ENTRY_ICON_PRIMARY, FALSE);
+#line 872 "moonshot-identity-management-view.vala"
        gtk_entry_set_icon_from_pixbuf (self->priv->search_entry, GTK_ENTRY_ICON_SECONDARY, _tmp2_ = find_icon_sized ("process-stop", GTK_ICON_SIZE_MENU));
+#line 2623 "moonshot-identity-management-view.c"
        _g_object_unref0 (_tmp2_);
+#line 875 "moonshot-identity-management-view.vala"
        gtk_entry_set_icon_tooltip_text (self->priv->search_entry, GTK_ENTRY_ICON_SECONDARY, _ ("Clear the current search"));
+#line 877 "moonshot-identity-management-view.vala"
        gtk_entry_set_icon_sensitive (self->priv->search_entry, GTK_ENTRY_ICON_SECONDARY, FALSE);
+#line 880 "moonshot-identity-management-view.vala"
        g_signal_connect_object (self->priv->search_entry, "icon-press", (GCallback) _identity_manager_view_search_entry_icon_press_cb_gtk_entry_icon_press, self, 0);
+#line 881 "moonshot-identity-management-view.vala"
        g_signal_connect_object ((GObject*) self->priv->search_entry, "notify::text", (GCallback) _identity_manager_view_search_entry_text_changed_cb_g_object_notify, self, 0);
+#line 882 "moonshot-identity-management-view.vala"
        g_signal_connect_object ((GtkWidget*) self->priv->search_entry, "key-press-event", (GCallback) _identity_manager_view_search_entry_key_press_event_cb_gtk_widget_key_press_event, self, 0);
+#line 884 "moonshot-identity-management-view.vala"
        self->priv->custom_vbox = (_tmp3_ = g_object_ref_sink (custom_vbox_new (self, FALSE, 6)), _g_object_unref0 (self->priv->custom_vbox), _tmp3_);
+#line 886 "moonshot-identity-management-view.vala"
        viewport = g_object_ref_sink ((GtkViewport*) gtk_viewport_new (NULL, NULL));
+#line 887 "moonshot-identity-management-view.vala"
        gtk_container_set_border_width ((GtkContainer*) viewport, (guint) 6);
+#line 888 "moonshot-identity-management-view.vala"
        gtk_viewport_set_shadow_type (viewport, GTK_SHADOW_NONE);
+#line 889 "moonshot-identity-management-view.vala"
        gtk_container_add ((GtkContainer*) viewport, (GtkWidget*) self->priv->custom_vbox);
+#line 890 "moonshot-identity-management-view.vala"
        scroll = g_object_ref_sink ((GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL));
+#line 891 "moonshot-identity-management-view.vala"
        gtk_scrolled_window_set_policy (scroll, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+#line 892 "moonshot-identity-management-view.vala"
        gtk_scrolled_window_set_shadow_type (scroll, GTK_SHADOW_IN);
+#line 893 "moonshot-identity-management-view.vala"
        gtk_scrolled_window_add_with_viewport (scroll, (GtkWidget*) viewport);
+#line 895 "moonshot-identity-management-view.vala"
        vbox_left = g_object_ref_sink ((GtkVBox*) gtk_vbox_new (FALSE, 0));
+#line 896 "moonshot-identity-management-view.vala"
        gtk_box_pack_start ((GtkBox*) vbox_left, (GtkWidget*) self->priv->search_entry, FALSE, FALSE, (guint) 6);
+#line 897 "moonshot-identity-management-view.vala"
        gtk_box_pack_start ((GtkBox*) vbox_left, (GtkWidget*) scroll, TRUE, TRUE, (guint) 0);
+#line 898 "moonshot-identity-management-view.vala"
        gtk_widget_set_size_request ((GtkWidget*) vbox_left, IDENTITY_MANAGER_VIEW_WINDOW_WIDTH, 0);
+#line 900 "moonshot-identity-management-view.vala"
        login_vbox_title = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Login: ")));
+#line 901 "moonshot-identity-management-view.vala"
        identity_manager_view_label_make_bold (self, login_vbox_title);
+#line 902 "moonshot-identity-management-view.vala"
        gtk_misc_set_alignment ((GtkMisc*) login_vbox_title, (float) 0, (float) 0.5);
+#line 903 "moonshot-identity-management-view.vala"
        username_label = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Username:")));
+#line 904 "moonshot-identity-management-view.vala"
        gtk_misc_set_alignment ((GtkMisc*) username_label, (float) 1, (float) 0.5);
+#line 905 "moonshot-identity-management-view.vala"
        self->priv->username_entry = (_tmp4_ = g_object_ref_sink ((GtkEntry*) gtk_entry_new ()), _g_object_unref0 (self->priv->username_entry), _tmp4_);
+#line 906 "moonshot-identity-management-view.vala"
        password_label = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Password:")));
+#line 907 "moonshot-identity-management-view.vala"
        gtk_misc_set_alignment ((GtkMisc*) password_label, (float) 1, (float) 0.5);
+#line 908 "moonshot-identity-management-view.vala"
        self->priv->password_entry = (_tmp5_ = g_object_ref_sink ((GtkEntry*) gtk_entry_new ()), _g_object_unref0 (self->priv->password_entry), _tmp5_);
+#line 909 "moonshot-identity-management-view.vala"
        gtk_entry_set_invisible_char (self->priv->password_entry, (gunichar) '*');
+#line 910 "moonshot-identity-management-view.vala"
        gtk_entry_set_visibility (self->priv->password_entry, FALSE);
+#line 911 "moonshot-identity-management-view.vala"
        remember_checkbutton = g_object_ref_sink ((GtkCheckButton*) gtk_check_button_new_with_label (_ ("Remember password")));
+#line 912 "moonshot-identity-management-view.vala"
        login_table = g_object_ref_sink ((GtkTable*) gtk_table_new ((guint) 3, (guint) 3, FALSE));
+#line 913 "moonshot-identity-management-view.vala"
        gtk_table_set_col_spacings (login_table, (guint) 10);
+#line 914 "moonshot-identity-management-view.vala"
        gtk_table_set_row_spacings (login_table, (guint) 10);
+#line 915 "moonshot-identity-management-view.vala"
        gtk_table_attach_defaults (login_table, (GtkWidget*) username_label, (guint) 0, (guint) 1, (guint) 0, (guint) 1);
+#line 916 "moonshot-identity-management-view.vala"
        gtk_table_attach_defaults (login_table, (GtkWidget*) self->priv->username_entry, (guint) 1, (guint) 2, (guint) 0, (guint) 1);
+#line 917 "moonshot-identity-management-view.vala"
        gtk_table_attach_defaults (login_table, (GtkWidget*) password_label, (guint) 0, (guint) 1, (guint) 1, (guint) 2);
+#line 918 "moonshot-identity-management-view.vala"
        gtk_table_attach_defaults (login_table, (GtkWidget*) self->priv->password_entry, (guint) 1, (guint) 2, (guint) 1, (guint) 2);
+#line 919 "moonshot-identity-management-view.vala"
        gtk_table_attach_defaults (login_table, (GtkWidget*) remember_checkbutton, (guint) 1, (guint) 2, (guint) 2, (guint) 3);
+#line 920 "moonshot-identity-management-view.vala"
        login_vbox_alignment = g_object_ref_sink ((GtkAlignment*) gtk_alignment_new ((float) 0, (float) 0, (float) 0, (float) 0));
+#line 921 "moonshot-identity-management-view.vala"
        gtk_alignment_set_padding (login_vbox_alignment, (guint) 0, (guint) 0, (guint) 12, (guint) 0);
+#line 922 "moonshot-identity-management-view.vala"
        gtk_container_add ((GtkContainer*) login_vbox_alignment, (GtkWidget*) login_table);
+#line 923 "moonshot-identity-management-view.vala"
        login_vbox = g_object_ref_sink ((GtkVBox*) gtk_vbox_new (FALSE, 6));
+#line 924 "moonshot-identity-management-view.vala"
        gtk_box_pack_start ((GtkBox*) login_vbox, (GtkWidget*) login_vbox_title, FALSE, TRUE, (guint) 0);
+#line 925 "moonshot-identity-management-view.vala"
        gtk_box_pack_start ((GtkBox*) login_vbox, (GtkWidget*) login_vbox_alignment, FALSE, TRUE, (guint) 0);
+#line 927 "moonshot-identity-management-view.vala"
        services_vbox_title = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Services:")));
+#line 928 "moonshot-identity-management-view.vala"
        identity_manager_view_label_make_bold (self, services_vbox_title);
+#line 929 "moonshot-identity-management-view.vala"
        gtk_misc_set_alignment ((GtkMisc*) services_vbox_title, (float) 0, (float) 0.5);
+#line 930 "moonshot-identity-management-view.vala"
        services_vbox_alignment = g_object_ref_sink ((GtkAlignment*) gtk_alignment_new ((float) 0, (float) 0, (float) 0, (float) 0));
+#line 931 "moonshot-identity-management-view.vala"
        gtk_alignment_set_padding (services_vbox_alignment, (guint) 0, (guint) 0, (guint) 12, (guint) 0);
+#line 932 "moonshot-identity-management-view.vala"
        self->priv->services_internal_vbox = (_tmp6_ = g_object_ref_sink ((GtkVBox*) gtk_vbox_new (TRUE, 6)), _g_object_unref0 (self->priv->services_internal_vbox), _tmp6_);
+#line 933 "moonshot-identity-management-view.vala"
        gtk_container_add ((GtkContainer*) services_vbox_alignment, (GtkWidget*) self->priv->services_internal_vbox);
+#line 934 "moonshot-identity-management-view.vala"
        services_vbox = g_object_ref_sink ((GtkVBox*) gtk_vbox_new (FALSE, 6));
+#line 935 "moonshot-identity-management-view.vala"
        gtk_box_pack_start ((GtkBox*) services_vbox, (GtkWidget*) services_vbox_title, FALSE, TRUE, (guint) 0);
+#line 936 "moonshot-identity-management-view.vala"
        gtk_box_pack_start ((GtkBox*) services_vbox, (GtkWidget*) services_vbox_alignment, FALSE, TRUE, (guint) 0);
+#line 938 "moonshot-identity-management-view.vala"
        self->priv->vbox_right = (_tmp7_ = g_object_ref_sink ((GtkVBox*) gtk_vbox_new (FALSE, 18)), _g_object_unref0 (self->priv->vbox_right), _tmp7_);
+#line 939 "moonshot-identity-management-view.vala"
        gtk_box_pack_start ((GtkBox*) self->priv->vbox_right, (GtkWidget*) login_vbox, FALSE, TRUE, (guint) 0);
+#line 940 "moonshot-identity-management-view.vala"
        gtk_box_pack_start ((GtkBox*) self->priv->vbox_right, (GtkWidget*) services_vbox, FALSE, TRUE, (guint) 0);
+#line 942 "moonshot-identity-management-view.vala"
        hbox = g_object_ref_sink ((GtkHBox*) gtk_hbox_new (FALSE, 12));
+#line 943 "moonshot-identity-management-view.vala"
        gtk_box_pack_start ((GtkBox*) hbox, (GtkWidget*) vbox_left, TRUE, TRUE, (guint) 0);
+#line 944 "moonshot-identity-management-view.vala"
        gtk_box_pack_start ((GtkBox*) hbox, (GtkWidget*) self->priv->vbox_right, FALSE, FALSE, (guint) 0);
+#line 946 "moonshot-identity-management-view.vala"
        main_vbox = g_object_ref_sink ((GtkVBox*) gtk_vbox_new (FALSE, 0));
+#line 947 "moonshot-identity-management-view.vala"
        gtk_container_set_border_width ((GtkContainer*) main_vbox, (guint) 12);
+#line 960 "moonshot-identity-management-view.vala"
        menubar = _g_object_ref0 (gtk_ui_manager_get_widget (self->priv->ui_manager, "/MenuBar"));
+#line 961 "moonshot-identity-management-view.vala"
        gtk_box_pack_start ((GtkBox*) main_vbox, menubar, FALSE, FALSE, (guint) 0);
+#line 963 "moonshot-identity-management-view.vala"
        gtk_box_pack_start ((GtkBox*) main_vbox, (GtkWidget*) hbox, TRUE, TRUE, (guint) 0);
+#line 964 "moonshot-identity-management-view.vala"
        gtk_container_add ((GtkContainer*) self, (GtkWidget*) main_vbox);
+#line 965 "moonshot-identity-management-view.vala"
        gtk_widget_show_all ((GtkWidget*) main_vbox);
+#line 966 "moonshot-identity-management-view.vala"
        gtk_widget_hide ((GtkWidget*) self->priv->vbox_right);
+#line 2761 "moonshot-identity-management-view.c"
        _g_object_unref0 (menubar);
        _g_object_unref0 (main_vbox);
        _g_object_unref0 (hbox);
@@ -1928,33 +2818,52 @@ static void identity_manager_view_build_ui (IdentityManagerView* self) {
 }
 
 
+#line 969 "moonshot-identity-management-view.vala"
 static void identity_manager_view_set_atk_name_description (IdentityManagerView* self, GtkWidget* widget, const char* name, const char* description) {
+#line 2783 "moonshot-identity-management-view.c"
        AtkObject* atk_widget;
+#line 969 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 969 "moonshot-identity-management-view.vala"
        g_return_if_fail (widget != NULL);
+#line 969 "moonshot-identity-management-view.vala"
        g_return_if_fail (name != NULL);
+#line 969 "moonshot-identity-management-view.vala"
        g_return_if_fail (description != NULL);
+#line 971 "moonshot-identity-management-view.vala"
        atk_widget = _g_object_ref0 (gtk_widget_get_accessible (widget));
+#line 973 "moonshot-identity-management-view.vala"
        atk_object_set_name (atk_widget, name);
+#line 974 "moonshot-identity-management-view.vala"
        atk_object_set_description (atk_widget, description);
+#line 2799 "moonshot-identity-management-view.c"
        _g_object_unref0 (atk_widget);
 }
 
 
+#line 7766 "gtk+-2.0.vapi"
 static void _gtk_main_quit_gtk_object_destroy (GtkObject* _sender, gpointer self) {
+#line 2806 "moonshot-identity-management-view.c"
        gtk_main_quit ();
 }
 
 
+#line 71 "moonshot-identity-management-view.vala"
 static void _identity_manager_view_on_card_list_changed_identity_manager_model_card_list_changed (IdentityManagerModel* _sender, gpointer self) {
+#line 2813 "moonshot-identity-management-view.c"
        identity_manager_view_on_card_list_changed (self);
 }
 
 
+#line 977 "moonshot-identity-management-view.vala"
 static void identity_manager_view_connect_signals (IdentityManagerView* self) {
+#line 977 "moonshot-identity-management-view.vala"
        g_return_if_fail (self != NULL);
+#line 979 "moonshot-identity-management-view.vala"
        g_signal_connect ((GtkObject*) self, "destroy", (GCallback) _gtk_main_quit_gtk_object_destroy, NULL);
+#line 980 "moonshot-identity-management-view.vala"
        g_signal_connect_object (self->identities_manager, "card-list-changed", (GCallback) _identity_manager_view_on_card_list_changed_identity_manager_model_card_list_changed, self, 0);
+#line 2826 "moonshot-identity-management-view.c"
 }
 
 
index 5816026..a5b8758 100644 (file)
@@ -57,7 +57,6 @@ typedef struct _MoonshotServerClass MoonshotServerClass;
 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
 #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
 typedef struct _ParamSpecIdentityManagerApp ParamSpecIdentityManagerApp;
-#define _g_free0(var) (var = (g_free (var), NULL))
 #define _identity_manager_app_unref0(var) ((var == NULL) ? NULL : (var = (identity_manager_app_unref (var), NULL)))
 
 struct _IdentityManagerApp {
@@ -122,35 +121,56 @@ gint _vala_main (char** args, int args_length1);
 
 
 
+#line 25 "moonshot-identity-manager-app.vala"
 void identity_manager_app_show (IdentityManagerApp* self) {
+#line 25 "moonshot-identity-manager-app.vala"
        g_return_if_fail (self != NULL);
+#line 26 "moonshot-identity-manager-app.vala"
        gtk_widget_show ((GtkWidget*) self->priv->view);
+#line 131 "moonshot-identity-manager-app.c"
 }
 
 
+#line 29 "moonshot-identity-manager-app.vala"
 IdentityManagerApp* identity_manager_app_construct (GType object_type) {
+#line 137 "moonshot-identity-manager-app.c"
        IdentityManagerApp* self = (IdentityManagerApp*) g_type_create_instance (object_type);
        IdentityManagerModel* _tmp0_;
        IdentityManagerView* _tmp1_;
+#line 30 "moonshot-identity-manager-app.vala"
        self->model = (_tmp0_ = identity_manager_model_new (self), _g_object_unref0 (self->model), _tmp0_);
+#line 31 "moonshot-identity-manager-app.vala"
        self->priv->view = (_tmp1_ = g_object_ref_sink (identity_manager_view_new (self)), _g_object_unref0 (self->priv->view), _tmp1_);
+#line 32 "moonshot-identity-manager-app.vala"
        identity_manager_app_init_ipc_server (self);
+#line 43 "moonshot-identity-manager-app.vala"
        gtk_widget_show ((GtkWidget*) self->priv->view);
+#line 149 "moonshot-identity-manager-app.c"
        return self;
 }
 
 
+#line 29 "moonshot-identity-manager-app.vala"
 IdentityManagerApp* identity_manager_app_new (void) {
+#line 29 "moonshot-identity-manager-app.vala"
        return identity_manager_app_construct (TYPE_IDENTITY_MANAGER_APP);
+#line 158 "moonshot-identity-manager-app.c"
 }
 
 
+#line 78 "moonshot-identity-manager-app.vala"
 static void identity_manager_app_bus_acquired_cb (IdentityManagerApp* self, GDBusConnection* conn) {
+#line 164 "moonshot-identity-manager-app.c"
        GError * _inner_error_ = NULL;
+#line 78 "moonshot-identity-manager-app.vala"
        g_return_if_fail (self != NULL);
+#line 78 "moonshot-identity-manager-app.vala"
        g_return_if_fail (conn != NULL);
+#line 170 "moonshot-identity-manager-app.c"
        {
+#line 81 "moonshot-identity-manager-app.vala"
                moonshot_server_register_object (self->priv->ipc_server, conn, "/org/janet/moonshot", &_inner_error_);
+#line 174 "moonshot-identity-manager-app.c"
                if (_inner_error_ != NULL) {
                        goto __catch0_g_error;
                }
@@ -162,7 +182,9 @@ static void identity_manager_app_bus_acquired_cb (IdentityManagerApp* self, GDBu
                e = _inner_error_;
                _inner_error_ = NULL;
                {
+#line 85 "moonshot-identity-manager-app.vala"
                        fprintf (stderr, "%s\n", e->message);
+#line 188 "moonshot-identity-manager-app.c"
                        _g_error_free0 (e);
                }
        }
@@ -175,39 +197,60 @@ static void identity_manager_app_bus_acquired_cb (IdentityManagerApp* self, GDBu
 }
 
 
+#line 78 "moonshot-identity-manager-app.vala"
 static void _identity_manager_app_bus_acquired_cb_gbus_acquired_callback (GDBusConnection* connection, const char* name, gpointer self) {
+#line 203 "moonshot-identity-manager-app.c"
        identity_manager_app_bus_acquired_cb (self, connection);
 }
 
 
+#line 96 "moonshot-identity-manager-app.vala"
 static void _lambda6_ (GDBusConnection* conn, const char* name, IdentityManagerApp* self) {
+#line 96 "moonshot-identity-manager-app.vala"
        g_return_if_fail (conn != NULL);
+#line 96 "moonshot-identity-manager-app.vala"
        g_return_if_fail (name != NULL);
+#line 214 "moonshot-identity-manager-app.c"
 }
 
 
+#line 96 "moonshot-identity-manager-app.vala"
 static void __lambda6__gbus_name_acquired_callback (GDBusConnection* connection, const char* name, gpointer self) {
+#line 220 "moonshot-identity-manager-app.c"
        _lambda6_ (connection, name, self);
 }
 
 
+#line 97 "moonshot-identity-manager-app.vala"
 static void _lambda7_ (GDBusConnection* conn, const char* name, IdentityManagerApp* self) {
+#line 97 "moonshot-identity-manager-app.vala"
        g_return_if_fail (conn != NULL);
+#line 97 "moonshot-identity-manager-app.vala"
        g_return_if_fail (name != NULL);
-       g_error ("moonshot-identity-manager-app.vala:79: Couldn't own name %s on DBus.", name);
+#line 98 "moonshot-identity-manager-app.vala"
+       g_error ("moonshot-identity-manager-app.vala:98: Couldn't own name %s on DBus.", name);
+#line 233 "moonshot-identity-manager-app.c"
 }
 
 
+#line 97 "moonshot-identity-manager-app.vala"
 static void __lambda7__gbus_name_lost_callback (GDBusConnection* connection, const char* name, gpointer self) {
+#line 239 "moonshot-identity-manager-app.c"
        _lambda7_ (connection, name, self);
 }
 
 
+#line 89 "moonshot-identity-manager-app.vala"
 static void identity_manager_app_init_ipc_server (IdentityManagerApp* self) {
+#line 246 "moonshot-identity-manager-app.c"
        MoonshotServer* _tmp0_;
+#line 89 "moonshot-identity-manager-app.vala"
        g_return_if_fail (self != NULL);
+#line 91 "moonshot-identity-manager-app.vala"
        self->priv->ipc_server = (_tmp0_ = moonshot_server_new ((GtkWindow*) self->priv->view), _g_object_unref0 (self->priv->ipc_server), _tmp0_);
+#line 92 "moonshot-identity-manager-app.vala"
        g_bus_own_name_with_closures (G_BUS_TYPE_SESSION, "org.janet.Moonshot", G_BUS_NAME_OWNER_FLAGS_NONE, (GClosure*) g_cclosure_new ((GCallback) _identity_manager_app_bus_acquired_cb_gbus_acquired_callback, identity_manager_app_ref (self), identity_manager_app_unref), (GClosure*) g_cclosure_new ((GCallback) __lambda6__gbus_name_acquired_callback, identity_manager_app_ref (self), identity_manager_app_unref), (GClosure*) g_cclosure_new ((GCallback) __lambda7__gbus_name_lost_callback, identity_manager_app_ref (self), identity_manager_app_unref));
+#line 254 "moonshot-identity-manager-app.c"
 }
 
 
@@ -375,41 +418,41 @@ void identity_manager_app_unref (gpointer instance) {
 }
 
 
+#line 105 "moonshot-identity-manager-app.vala"
 gint _vala_main (char** args, int args_length1) {
+#line 424 "moonshot-identity-manager-app.c"
        gint result = 0;
        IdentityManagerApp* app;
+#line 106 "moonshot-identity-manager-app.vala"
        gtk_init (&args_length1, &args);
-       fprintf (stdout, "Hello\n");
-       {
-               char** arg_collection;
-               int arg_collection_length1;
-               int arg_it;
-               arg_collection = args;
-               arg_collection_length1 = args_length1;
-               for (arg_it = 0; arg_it < args_length1; arg_it = arg_it + 1) {
-                       char* arg;
-                       arg = g_strdup (arg_collection[arg_it]);
-                       {
-                               fprintf (stdout, "arg %s\n", arg);
-                               _g_free0 (arg);
-                       }
-               }
-       }
+#line 115 "moonshot-identity-manager-app.vala"
        bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+#line 116 "moonshot-identity-manager-app.vala"
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+#line 117 "moonshot-identity-manager-app.vala"
        textdomain (GETTEXT_PACKAGE);
+#line 120 "moonshot-identity-manager-app.vala"
        app = identity_manager_app_new ();
+#line 122 "moonshot-identity-manager-app.vala"
        identity_manager_app_show (app);
+#line 124 "moonshot-identity-manager-app.vala"
        gtk_main ();
+#line 441 "moonshot-identity-manager-app.c"
        result = 0;
        _identity_manager_app_unref0 (app);
+#line 126 "moonshot-identity-manager-app.vala"
        return result;
+#line 446 "moonshot-identity-manager-app.c"
 }
 
 
+#line 105 "moonshot-identity-manager-app.vala"
 int main (int argc, char ** argv) {
+#line 105 "moonshot-identity-manager-app.vala"
        g_type_init ();
+#line 105 "moonshot-identity-manager-app.vala"
        return _vala_main (argv, argc);
+#line 456 "moonshot-identity-manager-app.c"
 }
 
 
index aab4a26..c39b03e 100644 (file)
@@ -105,55 +105,87 @@ static gpointer _g_object_ref0 (gpointer self) {
 }
 
 
+#line 15 "moonshot-identity-request.vala"
 IdentityRequest* identity_request_construct (GType object_type, IdentityManagerView* main_window, const char* nai, const char* password, const char* service) {
+#line 111 "moonshot-identity-request.c"
        IdentityRequest * self = NULL;
        IdentityManagerView* _tmp0_;
        char* _tmp1_;
        char* _tmp2_;
        char* _tmp3_;
+#line 15 "moonshot-identity-request.vala"
        g_return_val_if_fail (main_window != NULL, NULL);
+#line 15 "moonshot-identity-request.vala"
        g_return_val_if_fail (nai != NULL, NULL);
+#line 15 "moonshot-identity-request.vala"
        g_return_val_if_fail (password != NULL, NULL);
+#line 15 "moonshot-identity-request.vala"
        g_return_val_if_fail (service != NULL, NULL);
+#line 15 "moonshot-identity-request.vala"
        self = (IdentityRequest*) g_object_new (object_type, NULL);
+#line 20 "moonshot-identity-request.vala"
        self->priv->main_window = (_tmp0_ = _g_object_ref0 (main_window), _g_object_unref0 (self->priv->main_window), _tmp0_);
+#line 21 "moonshot-identity-request.vala"
        self->nai = (_tmp1_ = g_strdup (nai), _g_free0 (self->nai), _tmp1_);
+#line 22 "moonshot-identity-request.vala"
        self->password = (_tmp2_ = g_strdup (password), _g_free0 (self->password), _tmp2_);
+#line 23 "moonshot-identity-request.vala"
        self->service = (_tmp3_ = g_strdup (service), _g_free0 (self->service), _tmp3_);
+#line 135 "moonshot-identity-request.c"
        return self;
 }
 
 
+#line 15 "moonshot-identity-request.vala"
 IdentityRequest* identity_request_new (IdentityManagerView* main_window, const char* nai, const char* password, const char* service) {
+#line 15 "moonshot-identity-request.vala"
        return identity_request_construct (TYPE_IDENTITY_REQUEST, main_window, nai, password, service);
+#line 144 "moonshot-identity-request.c"
 }
 
 
+#line 26 "moonshot-identity-request.vala"
 IdentityRequest* identity_request_construct_default (GType object_type, IdentityManagerView* main_window) {
+#line 150 "moonshot-identity-request.c"
        IdentityRequest * self = NULL;
        IdentityManagerView* _tmp0_;
+#line 26 "moonshot-identity-request.vala"
        g_return_val_if_fail (main_window != NULL, NULL);
+#line 26 "moonshot-identity-request.vala"
        self = (IdentityRequest*) g_object_new (object_type, NULL);
+#line 28 "moonshot-identity-request.vala"
        self->priv->main_window = (_tmp0_ = _g_object_ref0 (main_window), _g_object_unref0 (self->priv->main_window), _tmp0_);
+#line 29 "moonshot-identity-request.vala"
        self->select_default = TRUE;
+#line 161 "moonshot-identity-request.c"
        return self;
 }
 
 
+#line 26 "moonshot-identity-request.vala"
 IdentityRequest* identity_request_new_default (IdentityManagerView* main_window) {
+#line 26 "moonshot-identity-request.vala"
        return identity_request_construct_default (TYPE_IDENTITY_REQUEST, main_window);
+#line 170 "moonshot-identity-request.c"
 }
 
 
+#line 37 "moonshot-identity-request.vala"
 static void _lambda0_ (IdentityRequest* IdCard, Block2Data* _data2_) {
+#line 176 "moonshot-identity-request.c"
        IdentityRequest * self;
        self = _data2_->self;
+#line 37 "moonshot-identity-request.vala"
        g_return_if_fail (IdCard != NULL);
+#line 37 "moonshot-identity-request.vala"
        _data2_->cb (IdCard, _data2_->cb_target);
+#line 183 "moonshot-identity-request.c"
 }
 
 
+#line 37 "moonshot-identity-request.vala"
 static void __lambda0__return_identity_callback (IdentityRequest* request, gpointer self) {
+#line 189 "moonshot-identity-request.c"
        _lambda0_ (request, self);
 }
 
@@ -176,37 +208,58 @@ static void block2_data_unref (Block2Data* _data2_) {
 }
 
 
+#line 32 "moonshot-identity-request.vala"
 void identity_request_set_callback (IdentityRequest* self, ReturnIdentityCallback cb, void* cb_target, GDestroyNotify cb_target_destroy_notify) {
+#line 214 "moonshot-identity-request.c"
        Block2Data* _data2_;
        ReturnIdentityCallback _tmp0_;
+#line 32 "moonshot-identity-request.vala"
        g_return_if_fail (self != NULL);
+#line 219 "moonshot-identity-request.c"
        _data2_ = g_slice_new0 (Block2Data);
        _data2_->_ref_count_ = 1;
        _data2_->self = g_object_ref (self);
        _data2_->cb = cb;
        _data2_->cb_target = cb_target;
        _data2_->cb_target_destroy_notify = cb_target_destroy_notify;
+#line 37 "moonshot-identity-request.vala"
        self->priv->callback = (_tmp0_ = __lambda0__return_identity_callback, ((self->priv->callback_target_destroy_notify == NULL) ? NULL : (self->priv->callback_target_destroy_notify (self->priv->callback_target), NULL), self->priv->callback = NULL, self->priv->callback_target = NULL, self->priv->callback_target_destroy_notify = NULL), self->priv->callback_target = block2_data_ref (_data2_), self->priv->callback_target_destroy_notify = block2_data_unref, _tmp0_);
+#line 228 "moonshot-identity-request.c"
        block2_data_unref (_data2_);
 }
 
 
+#line 41 "moonshot-identity-request.vala"
 gboolean identity_request_execute (IdentityRequest* self) {
+#line 235 "moonshot-identity-request.c"
        gboolean result = FALSE;
+#line 41 "moonshot-identity-request.vala"
        g_return_val_if_fail (self != NULL, FALSE);
+#line 42 "moonshot-identity-request.vala"
        identity_manager_view_select_identity (self->priv->main_window, self);
+#line 241 "moonshot-identity-request.c"
        result = FALSE;
+#line 47 "moonshot-identity-request.vala"
        return result;
+#line 245 "moonshot-identity-request.c"
 }
 
 
+#line 50 "moonshot-identity-request.vala"
 void identity_request_return_identity (IdentityRequest* self, IdCard* id_card) {
+#line 251 "moonshot-identity-request.c"
        IdCard* _tmp0_;
+#line 50 "moonshot-identity-request.vala"
        g_return_if_fail (self != NULL);
+#line 51 "moonshot-identity-request.vala"
        g_return_if_fail (self->priv->callback != NULL);
+#line 53 "moonshot-identity-request.vala"
        self->id_card = (_tmp0_ = _g_object_ref0 (id_card), _g_object_unref0 (self->id_card), _tmp0_);
+#line 54 "moonshot-identity-request.vala"
        self->complete = TRUE;
+#line 56 "moonshot-identity-request.vala"
        self->priv->callback (self, self->priv->callback_target);
+#line 263 "moonshot-identity-request.c"
 }
 
 
index 839d8b9..6f2be43 100644 (file)
@@ -144,31 +144,50 @@ static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify
 
 
 
+#line 7 "moonshot-local-flat-file-store.vala"
 static void local_flat_file_store_real_add_card (IIdentityCardStore* base, IdCard* card) {
+#line 150 "moonshot-local-flat-file-store.c"
        LocalFlatFileStore * self;
        self = (LocalFlatFileStore*) base;
+#line 7 "moonshot-local-flat-file-store.vala"
        g_return_if_fail (card != NULL);
+#line 8 "moonshot-local-flat-file-store.vala"
        gee_abstract_collection_add ((GeeAbstractCollection*) self->priv->id_card_list, card);
+#line 9 "moonshot-local-flat-file-store.vala"
        local_flat_file_store_store_id_cards (self);
+#line 159 "moonshot-local-flat-file-store.c"
 }
 
 
+#line 12 "moonshot-local-flat-file-store.vala"
 static void local_flat_file_store_real_update_card (IIdentityCardStore* base, IdCard* card) {
+#line 165 "moonshot-local-flat-file-store.c"
        LocalFlatFileStore * self;
        self = (LocalFlatFileStore*) base;
+#line 12 "moonshot-local-flat-file-store.vala"
        g_return_if_fail (card != NULL);
+#line 13 "moonshot-local-flat-file-store.vala"
        gee_abstract_collection_remove ((GeeAbstractCollection*) self->priv->id_card_list, card);
+#line 14 "moonshot-local-flat-file-store.vala"
        gee_abstract_collection_add ((GeeAbstractCollection*) self->priv->id_card_list, card);
+#line 15 "moonshot-local-flat-file-store.vala"
        local_flat_file_store_store_id_cards (self);
+#line 176 "moonshot-local-flat-file-store.c"
 }
 
 
+#line 18 "moonshot-local-flat-file-store.vala"
 static void local_flat_file_store_real_remove_card (IIdentityCardStore* base, IdCard* card) {
+#line 182 "moonshot-local-flat-file-store.c"
        LocalFlatFileStore * self;
        self = (LocalFlatFileStore*) base;
+#line 18 "moonshot-local-flat-file-store.vala"
        g_return_if_fail (card != NULL);
+#line 19 "moonshot-local-flat-file-store.vala"
        gee_abstract_collection_remove ((GeeAbstractCollection*) self->priv->id_card_list, card);
+#line 20 "moonshot-local-flat-file-store.vala"
        local_flat_file_store_store_id_cards (self);
+#line 191 "moonshot-local-flat-file-store.c"
 }
 
 
@@ -177,12 +196,16 @@ static gpointer _g_object_ref0 (gpointer self) {
 }
 
 
+#line 23 "moonshot-local-flat-file-store.vala"
 static GeeLinkedList* local_flat_file_store_real_get_card_list (IIdentityCardStore* base) {
+#line 202 "moonshot-local-flat-file-store.c"
        LocalFlatFileStore * self;
        GeeLinkedList* result = NULL;
        self = (LocalFlatFileStore*) base;
        result = _g_object_ref0 (self->priv->id_card_list);
+#line 24 "moonshot-local-flat-file-store.vala"
        return result;
+#line 209 "moonshot-local-flat-file-store.c"
 }
 
 
@@ -197,7 +220,9 @@ static void _vala_Rule_array_free (Rule* array, gint array_length) {
 }
 
 
+#line 27 "moonshot-local-flat-file-store.vala"
 static void local_flat_file_store_load_id_cards (LocalFlatFileStore* self) {
+#line 226 "moonshot-local-flat-file-store.c"
        GKeyFile* key_file;
        char* path;
        char* filename;
@@ -207,13 +232,21 @@ static void local_flat_file_store_load_id_cards (LocalFlatFileStore* self) {
        gsize _tmp0_;
        char** identities_uris;
        GError * _inner_error_ = NULL;
+#line 27 "moonshot-local-flat-file-store.vala"
        g_return_if_fail (self != NULL);
+#line 28 "moonshot-local-flat-file-store.vala"
        gee_abstract_collection_clear ((GeeAbstractCollection*) self->priv->id_card_list);
+#line 29 "moonshot-local-flat-file-store.vala"
        key_file = g_key_file_new ();
+#line 30 "moonshot-local-flat-file-store.vala"
        path = local_flat_file_store_get_data_dir (self);
+#line 31 "moonshot-local-flat-file-store.vala"
        filename = g_build_filename (path, LOCAL_FLAT_FILE_STORE_FILE_NAME, NULL);
+#line 246 "moonshot-local-flat-file-store.c"
        {
+#line 34 "moonshot-local-flat-file-store.vala"
                g_key_file_load_from_file (key_file, filename, G_KEY_FILE_NONE, &_inner_error_);
+#line 250 "moonshot-local-flat-file-store.c"
                if (_inner_error_ != NULL) {
                        goto __catch2_g_error;
                }
@@ -225,12 +258,16 @@ static void local_flat_file_store_load_id_cards (LocalFlatFileStore* self) {
                e = _inner_error_;
                _inner_error_ = NULL;
                {
+#line 37 "moonshot-local-flat-file-store.vala"
                        fprintf (stdout, "Error: %s\n", e->message);
+#line 264 "moonshot-local-flat-file-store.c"
                        _g_error_free0 (e);
                        _g_free0 (filename);
                        _g_free0 (path);
                        _g_key_file_free0 (key_file);
+#line 38 "moonshot-local-flat-file-store.vala"
                        return;
+#line 271 "moonshot-local-flat-file-store.c"
                }
        }
        __finally2:
@@ -247,7 +284,9 @@ static void local_flat_file_store_load_id_cards (LocalFlatFileStore* self) {
                char** identity_collection;
                int identity_collection_length1;
                int identity_it;
+#line 42 "moonshot-local-flat-file-store.vala"
                identity_collection = identities_uris;
+#line 290 "moonshot-local-flat-file-store.c"
                identity_collection_length1 = identities_uris_length1;
                for (identity_it = 0; identity_it < identities_uris_length1; identity_it = identity_it + 1) {
                        char* identity;
@@ -281,61 +320,94 @@ static void local_flat_file_store_load_id_cards (LocalFlatFileStore* self) {
                                        char* _tmp32_;
                                        char* _tmp33_;
                                        char* _tmp34_;
+#line 44 "moonshot-local-flat-file-store.vala"
                                        id_card = id_card_new ();
+#line 46 "moonshot-local-flat-file-store.vala"
                                        _tmp2_ = g_key_file_get_string (key_file, identity, "Issuer", &_inner_error_);
+#line 328 "moonshot-local-flat-file-store.c"
                                        if (_inner_error_ != NULL) {
                                                _g_object_unref0 (id_card);
                                                goto __catch3_g_error;
                                        }
+#line 46 "moonshot-local-flat-file-store.vala"
                                        id_card_set_issuer (id_card, _tmp3_ = _tmp2_);
+#line 335 "moonshot-local-flat-file-store.c"
                                        _g_free0 (_tmp3_);
+#line 47 "moonshot-local-flat-file-store.vala"
                                        _tmp4_ = g_key_file_get_string (key_file, identity, "Username", &_inner_error_);
+#line 339 "moonshot-local-flat-file-store.c"
                                        if (_inner_error_ != NULL) {
                                                _g_object_unref0 (id_card);
                                                goto __catch3_g_error;
                                        }
+#line 47 "moonshot-local-flat-file-store.vala"
                                        id_card_set_username (id_card, _tmp5_ = _tmp4_);
+#line 346 "moonshot-local-flat-file-store.c"
                                        _g_free0 (_tmp5_);
+#line 48 "moonshot-local-flat-file-store.vala"
                                        _tmp6_ = g_key_file_get_string (key_file, identity, "Password", &_inner_error_);
+#line 350 "moonshot-local-flat-file-store.c"
                                        if (_inner_error_ != NULL) {
                                                _g_object_unref0 (id_card);
                                                goto __catch3_g_error;
                                        }
+#line 48 "moonshot-local-flat-file-store.vala"
                                        id_card_set_password (id_card, _tmp7_ = _tmp6_);
+#line 357 "moonshot-local-flat-file-store.c"
                                        _g_free0 (_tmp7_);
                                        _tmp9_ = (_tmp10_ = g_key_file_get_string_list (key_file, identity, "Services", &_tmp8_, &_inner_error_), _tmp9__length1 = _tmp8_, __tmp9__size_ = _tmp9__length1, _tmp10_);
                                        if (_inner_error_ != NULL) {
                                                _g_object_unref0 (id_card);
                                                goto __catch3_g_error;
                                        }
+#line 49 "moonshot-local-flat-file-store.vala"
                                        _tmp12_ = (_tmp11_ = _tmp9_, _tmp11__length1 = _tmp9__length1, _tmp11_);
+#line 49 "moonshot-local-flat-file-store.vala"
                                        id_card_set_services (id_card, _tmp12_, _tmp9__length1);
+#line 368 "moonshot-local-flat-file-store.c"
                                        _tmp11_ = (_vala_array_free (_tmp11_, _tmp11__length1, (GDestroyNotify) g_free), NULL);
+#line 50 "moonshot-local-flat-file-store.vala"
                                        _tmp13_ = g_key_file_get_string (key_file, identity, "DisplayName", &_inner_error_);
+#line 372 "moonshot-local-flat-file-store.c"
                                        if (_inner_error_ != NULL) {
                                                _g_object_unref0 (id_card);
                                                goto __catch3_g_error;
                                        }
+#line 50 "moonshot-local-flat-file-store.vala"
                                        id_card_set_display_name (id_card, _tmp14_ = _tmp13_);
+#line 379 "moonshot-local-flat-file-store.c"
                                        _g_free0 (_tmp14_);
+#line 51 "moonshot-local-flat-file-store.vala"
                                        g_object_set_data_full ((GObject*) id_card, "pixbuf", find_icon ("avatar-default", 48), g_object_unref);
+#line 54 "moonshot-local-flat-file-store.vala"
                                        _tmp16_ = g_key_file_has_key (key_file, identity, "Rules-Patterns", &_inner_error_);
+#line 385 "moonshot-local-flat-file-store.c"
                                        if (_inner_error_ != NULL) {
                                                _g_object_unref0 (id_card);
                                                goto __catch3_g_error;
                                        }
+#line 54 "moonshot-local-flat-file-store.vala"
                                        if (_tmp16_) {
+#line 392 "moonshot-local-flat-file-store.c"
                                                gboolean _tmp17_;
+#line 55 "moonshot-local-flat-file-store.vala"
                                                _tmp17_ = g_key_file_has_key (key_file, identity, "Rules-AlwaysConfirm", &_inner_error_);
+#line 396 "moonshot-local-flat-file-store.c"
                                                if (_inner_error_ != NULL) {
                                                        _g_object_unref0 (id_card);
                                                        goto __catch3_g_error;
                                                }
+#line 55 "moonshot-local-flat-file-store.vala"
                                                _tmp15_ = _tmp17_;
+#line 403 "moonshot-local-flat-file-store.c"
                                        } else {
+#line 54 "moonshot-local-flat-file-store.vala"
                                                _tmp15_ = FALSE;
+#line 407 "moonshot-local-flat-file-store.c"
                                        }
+#line 54 "moonshot-local-flat-file-store.vala"
                                        if (_tmp15_) {
+#line 411 "moonshot-local-flat-file-store.c"
                                                gint rules_patterns_length1;
                                                gint _rules_patterns_size_;
                                                char** _tmp19_;
@@ -357,7 +429,9 @@ static void local_flat_file_store_load_id_cards (LocalFlatFileStore* self) {
                                                        _g_object_unref0 (id_card);
                                                        goto __catch3_g_error;
                                                }
+#line 59 "moonshot-local-flat-file-store.vala"
                                                if (rules_patterns_length1 == rules_always_conf_length1) {
+#line 435 "moonshot-local-flat-file-store.c"
                                                        gint rules_length1;
                                                        gint _rules_size_;
                                                        Rule* _tmp22_;
@@ -366,60 +440,95 @@ static void local_flat_file_store_load_id_cards (LocalFlatFileStore* self) {
                                                        rules = (_tmp22_ = g_new0 (Rule, rules_patterns_length1), rules_length1 = rules_patterns_length1, _rules_size_ = rules_length1, _tmp22_);
                                                        {
                                                                gint i;
+#line 61 "moonshot-local-flat-file-store.vala"
                                                                i = 0;
+#line 446 "moonshot-local-flat-file-store.c"
                                                                {
                                                                        gboolean _tmp23_;
+#line 61 "moonshot-local-flat-file-store.vala"
                                                                        _tmp23_ = TRUE;
+#line 61 "moonshot-local-flat-file-store.vala"
                                                                        while (TRUE) {
+#line 453 "moonshot-local-flat-file-store.c"
                                                                                Rule _tmp24_ = {0};
                                                                                Rule _tmp25_;
+#line 61 "moonshot-local-flat-file-store.vala"
                                                                                if (!_tmp23_) {
+#line 61 "moonshot-local-flat-file-store.vala"
                                                                                        i++;
+#line 460 "moonshot-local-flat-file-store.c"
                                                                                }
+#line 61 "moonshot-local-flat-file-store.vala"
                                                                                _tmp23_ = FALSE;
+#line 61 "moonshot-local-flat-file-store.vala"
                                                                                if (!(i < rules_patterns_length1)) {
+#line 61 "moonshot-local-flat-file-store.vala"
                                                                                        break;
+#line 468 "moonshot-local-flat-file-store.c"
                                                                                }
+#line 62 "moonshot-local-flat-file-store.vala"
                                                                                rules[i] = (_tmp25_ = (_tmp24_.pattern = g_strdup (rules_patterns[i]), _tmp24_.always_confirm = g_strdup (rules_always_conf[i]), _tmp24_), rule_destroy (&rules[i]), _tmp25_);
+#line 472 "moonshot-local-flat-file-store.c"
                                                                        }
                                                                }
                                                        }
+#line 64 "moonshot-local-flat-file-store.vala"
                                                        _tmp26_ = rules;
+#line 64 "moonshot-local-flat-file-store.vala"
                                                        id_card_set_rules (id_card, _tmp26_, rules_length1);
+#line 480 "moonshot-local-flat-file-store.c"
                                                        rules = (_vala_Rule_array_free (rules, rules_length1), NULL);
                                                }
                                                rules_always_conf = (_vala_array_free (rules_always_conf, rules_always_conf_length1, (GDestroyNotify) g_free), NULL);
                                                rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
                                        }
+#line 69 "moonshot-local-flat-file-store.vala"
                                        _tmp27_ = g_key_file_get_string (key_file, identity, "CA-Cert", &_inner_error_);
+#line 488 "moonshot-local-flat-file-store.c"
                                        if (_inner_error_ != NULL) {
                                                _g_object_unref0 (id_card);
                                                goto __catch3_g_error;
                                        }
+#line 69 "moonshot-local-flat-file-store.vala"
                                        trust_anchor_set_ca_cert (id_card_get_trust_anchor (id_card), _tmp28_ = _tmp27_);
+#line 495 "moonshot-local-flat-file-store.c"
                                        _g_free0 (_tmp28_);
+#line 70 "moonshot-local-flat-file-store.vala"
                                        _tmp29_ = g_key_file_get_string (key_file, identity, "Subject", &_inner_error_);
+#line 499 "moonshot-local-flat-file-store.c"
                                        if (_inner_error_ != NULL) {
                                                _g_object_unref0 (id_card);
                                                goto __catch3_g_error;
                                        }
+#line 70 "moonshot-local-flat-file-store.vala"
                                        trust_anchor_set_subject (id_card_get_trust_anchor (id_card), _tmp30_ = _tmp29_);
+#line 506 "moonshot-local-flat-file-store.c"
                                        _g_free0 (_tmp30_);
+#line 71 "moonshot-local-flat-file-store.vala"
                                        _tmp31_ = g_key_file_get_string (key_file, identity, "SubjectAlt", &_inner_error_);
+#line 510 "moonshot-local-flat-file-store.c"
                                        if (_inner_error_ != NULL) {
                                                _g_object_unref0 (id_card);
                                                goto __catch3_g_error;
                                        }
+#line 71 "moonshot-local-flat-file-store.vala"
                                        trust_anchor_set_subject_alt (id_card_get_trust_anchor (id_card), _tmp32_ = _tmp31_);
+#line 517 "moonshot-local-flat-file-store.c"
                                        _g_free0 (_tmp32_);
+#line 72 "moonshot-local-flat-file-store.vala"
                                        _tmp33_ = g_key_file_get_string (key_file, identity, "ServerCert", &_inner_error_);
+#line 521 "moonshot-local-flat-file-store.c"
                                        if (_inner_error_ != NULL) {
                                                _g_object_unref0 (id_card);
                                                goto __catch3_g_error;
                                        }
+#line 72 "moonshot-local-flat-file-store.vala"
                                        trust_anchor_set_server_cert (id_card_get_trust_anchor (id_card), _tmp34_ = _tmp33_);
+#line 528 "moonshot-local-flat-file-store.c"
                                        _g_free0 (_tmp34_);
+#line 74 "moonshot-local-flat-file-store.vala"
                                        gee_abstract_collection_add ((GeeAbstractCollection*) self->priv->id_card_list, id_card);
+#line 532 "moonshot-local-flat-file-store.c"
                                        _g_object_unref0 (id_card);
                                }
                                goto __finally3;
@@ -429,7 +538,9 @@ static void local_flat_file_store_load_id_cards (LocalFlatFileStore* self) {
                                        e = _inner_error_;
                                        _inner_error_ = NULL;
                                        {
+#line 77 "moonshot-local-flat-file-store.vala"
                                                fprintf (stdout, "Error:  %s\n", e->message);
+#line 544 "moonshot-local-flat-file-store.c"
                                                _g_error_free0 (e);
                                        }
                                }
@@ -455,18 +566,28 @@ static void local_flat_file_store_load_id_cards (LocalFlatFileStore* self) {
 }
 
 
+#line 82 "moonshot-local-flat-file-store.vala"
 static char* local_flat_file_store_get_data_dir (LocalFlatFileStore* self) {
+#line 572 "moonshot-local-flat-file-store.c"
        char* result = NULL;
        char* path;
        char* _tmp0_;
+#line 82 "moonshot-local-flat-file-store.vala"
        g_return_val_if_fail (self != NULL, NULL);
+#line 578 "moonshot-local-flat-file-store.c"
        path = NULL;
+#line 84 "moonshot-local-flat-file-store.vala"
        path = (_tmp0_ = g_build_filename (g_get_user_data_dir (), PACKAGE_TARNAME, NULL), _g_free0 (path), _tmp0_);
+#line 87 "moonshot-local-flat-file-store.vala"
        if (!g_file_test (path, G_FILE_TEST_EXISTS)) {
+#line 88 "moonshot-local-flat-file-store.vala"
                g_mkdir_with_parents (path, 0700);
+#line 586 "moonshot-local-flat-file-store.c"
        }
        result = path;
+#line 90 "moonshot-local-flat-file-store.vala"
        return result;
+#line 591 "moonshot-local-flat-file-store.c"
 }
 
 
@@ -481,16 +602,24 @@ static char** _vala_array_dup1 (char** self, int length) {
 }
 
 
+#line 93 "moonshot-local-flat-file-store.vala"
 void local_flat_file_store_store_id_cards (LocalFlatFileStore* self) {
+#line 608 "moonshot-local-flat-file-store.c"
        GKeyFile* key_file;
        char* text;
        GError * _inner_error_ = NULL;
+#line 93 "moonshot-local-flat-file-store.vala"
        g_return_if_fail (self != NULL);
+#line 94 "moonshot-local-flat-file-store.vala"
        key_file = g_key_file_new ();
+#line 616 "moonshot-local-flat-file-store.c"
        {
                GeeIterator* _id_card_it;
+#line 95 "moonshot-local-flat-file-store.vala"
                _id_card_it = gee_abstract_collection_iterator ((GeeAbstractCollection*) self->priv->id_card_list);
+#line 95 "moonshot-local-flat-file-store.vala"
                while (TRUE) {
+#line 623 "moonshot-local-flat-file-store.c"
                        IdCard* id_card;
                        gint rules_patterns_length1;
                        gint _rules_patterns_size_;
@@ -517,95 +646,174 @@ void local_flat_file_store_store_id_cards (LocalFlatFileStore* self) {
                        char* _tmp27_;
                        char* _tmp29_;
                        char* _tmp31_;
+#line 95 "moonshot-local-flat-file-store.vala"
                        if (!gee_iterator_next (_id_card_it)) {
+#line 95 "moonshot-local-flat-file-store.vala"
                                break;
+#line 654 "moonshot-local-flat-file-store.c"
                        }
+#line 95 "moonshot-local-flat-file-store.vala"
                        id_card = (IdCard*) gee_iterator_get (_id_card_it);
+#line 658 "moonshot-local-flat-file-store.c"
                        rules_patterns = (_tmp1_ = g_new0 (char*, _tmp0_ + 1), rules_patterns_length1 = _tmp0_, _rules_patterns_size_ = rules_patterns_length1, _tmp1_);
                        rules_always_conf = (_tmp3_ = g_new0 (char*, _tmp2_ + 1), rules_always_conf_length1 = _tmp2_, _rules_always_conf_size_ = rules_always_conf_length1, _tmp3_);
                        {
                                gint i;
+#line 99 "moonshot-local-flat-file-store.vala"
                                i = 0;
+#line 665 "moonshot-local-flat-file-store.c"
                                {
                                        gboolean _tmp4_;
+#line 99 "moonshot-local-flat-file-store.vala"
                                        _tmp4_ = TRUE;
+#line 99 "moonshot-local-flat-file-store.vala"
                                        while (TRUE) {
+#line 672 "moonshot-local-flat-file-store.c"
                                                gint _tmp5_;
                                                gint _tmp6_;
                                                char* _tmp7_;
                                                gint _tmp8_;
                                                char* _tmp9_;
+#line 99 "moonshot-local-flat-file-store.vala"
                                                if (!_tmp4_) {
+#line 99 "moonshot-local-flat-file-store.vala"
                                                        i++;
+#line 682 "moonshot-local-flat-file-store.c"
                                                }
+#line 99 "moonshot-local-flat-file-store.vala"
                                                _tmp4_ = FALSE;
+#line 99 "moonshot-local-flat-file-store.vala"
                                                if (!(i < _tmp5_)) {
+#line 99 "moonshot-local-flat-file-store.vala"
                                                        break;
+#line 690 "moonshot-local-flat-file-store.c"
                                                }
+#line 100 "moonshot-local-flat-file-store.vala"
                                                rules_patterns[i] = (_tmp7_ = g_strdup (id_card_get_rules (id_card, &_tmp6_)[i].pattern), _g_free0 (rules_patterns[i]), _tmp7_);
+#line 101 "moonshot-local-flat-file-store.vala"
                                                rules_always_conf[i] = (_tmp9_ = g_strdup (id_card_get_rules (id_card, &_tmp8_)[i].always_confirm), _g_free0 (rules_always_conf[i]), _tmp9_);
+#line 696 "moonshot-local-flat-file-store.c"
                                        }
                                }
                        }
+#line 104 "moonshot-local-flat-file-store.vala"
                        _tmp10_ = g_strdup (id_card_get_issuer (id_card));
+#line 104 "moonshot-local-flat-file-store.vala"
                        if (_tmp10_ == NULL) {
+#line 704 "moonshot-local-flat-file-store.c"
                                char* _tmp11_;
+#line 104 "moonshot-local-flat-file-store.vala"
                                _tmp10_ = (_tmp11_ = g_strdup (""), _g_free0 (_tmp10_), _tmp11_);
+#line 708 "moonshot-local-flat-file-store.c"
                        }
+#line 104 "moonshot-local-flat-file-store.vala"
                        g_key_file_set_string (key_file, id_card_get_display_name (id_card), "Issuer", _tmp10_);
+#line 105 "moonshot-local-flat-file-store.vala"
                        _tmp12_ = g_strdup (id_card_get_display_name (id_card));
+#line 105 "moonshot-local-flat-file-store.vala"
                        if (_tmp12_ == NULL) {
+#line 716 "moonshot-local-flat-file-store.c"
                                char* _tmp13_;
+#line 105 "moonshot-local-flat-file-store.vala"
                                _tmp12_ = (_tmp13_ = g_strdup (""), _g_free0 (_tmp12_), _tmp13_);
+#line 720 "moonshot-local-flat-file-store.c"
                        }
+#line 105 "moonshot-local-flat-file-store.vala"
                        g_key_file_set_string (key_file, id_card_get_display_name (id_card), "DisplayName", _tmp12_);
+#line 106 "moonshot-local-flat-file-store.vala"
                        _tmp14_ = g_strdup (id_card_get_username (id_card));
+#line 106 "moonshot-local-flat-file-store.vala"
                        if (_tmp14_ == NULL) {
+#line 728 "moonshot-local-flat-file-store.c"
                                char* _tmp15_;
+#line 106 "moonshot-local-flat-file-store.vala"
                                _tmp14_ = (_tmp15_ = g_strdup (""), _g_free0 (_tmp14_), _tmp15_);
+#line 732 "moonshot-local-flat-file-store.c"
                        }
+#line 106 "moonshot-local-flat-file-store.vala"
                        g_key_file_set_string (key_file, id_card_get_display_name (id_card), "Username", _tmp14_);
+#line 107 "moonshot-local-flat-file-store.vala"
                        _tmp16_ = g_strdup (id_card_get_password (id_card));
+#line 107 "moonshot-local-flat-file-store.vala"
                        if (_tmp16_ == NULL) {
+#line 740 "moonshot-local-flat-file-store.c"
                                char* _tmp17_;
+#line 107 "moonshot-local-flat-file-store.vala"
                                _tmp16_ = (_tmp17_ = g_strdup (""), _g_free0 (_tmp16_), _tmp17_);
+#line 744 "moonshot-local-flat-file-store.c"
                        }
+#line 107 "moonshot-local-flat-file-store.vala"
                        g_key_file_set_string (key_file, id_card_get_display_name (id_card), "Password", _tmp16_);
+#line 748 "moonshot-local-flat-file-store.c"
                        _tmp20_ = (_tmp21_ = (_tmp19_ = id_card_get_services (id_card, &_tmp18_), (_tmp19_ == NULL) ? ((gpointer) _tmp19_) : _vala_array_dup1 (_tmp19_, _tmp18_)), _tmp20__length1 = _tmp18_, __tmp20__size_ = _tmp20__length1, _tmp21_);
+#line 108 "moonshot-local-flat-file-store.vala"
                        if (_tmp20_ == NULL) {
+#line 752 "moonshot-local-flat-file-store.c"
                                char** _tmp22_ = NULL;
                                char** _tmp23_;
+#line 108 "moonshot-local-flat-file-store.vala"
                                _tmp20_ = (_tmp23_ = (_tmp22_ = g_new0 (char*, 0 + 1), _tmp22_), _tmp20_ = (_vala_array_free (_tmp20_, _tmp20__length1, (GDestroyNotify) g_free), NULL), _tmp20__length1 = 0, __tmp20__size_ = _tmp20__length1, _tmp23_);
+#line 757 "moonshot-local-flat-file-store.c"
                        }
+#line 108 "moonshot-local-flat-file-store.vala"
                        g_key_file_set_string_list (key_file, id_card_get_display_name (id_card), "Services", (const gchar* const*) _tmp20_, _tmp20__length1);
+#line 110 "moonshot-local-flat-file-store.vala"
                        if (_tmp24_ > 0) {
+#line 111 "moonshot-local-flat-file-store.vala"
                                g_key_file_set_string_list (key_file, id_card_get_display_name (id_card), "Rules-Patterns", (const gchar* const*) rules_patterns, rules_patterns_length1);
+#line 112 "moonshot-local-flat-file-store.vala"
                                g_key_file_set_string_list (key_file, id_card_get_display_name (id_card), "Rules-AlwaysConfirm", (const gchar* const*) rules_always_conf, rules_always_conf_length1);
+#line 767 "moonshot-local-flat-file-store.c"
                        }
+#line 116 "moonshot-local-flat-file-store.vala"
                        _tmp25_ = g_strdup (trust_anchor_get_ca_cert (id_card_get_trust_anchor (id_card)));
+#line 116 "moonshot-local-flat-file-store.vala"
                        if (_tmp25_ == NULL) {
+#line 773 "moonshot-local-flat-file-store.c"
                                char* _tmp26_;
+#line 116 "moonshot-local-flat-file-store.vala"
                                _tmp25_ = (_tmp26_ = g_strdup (""), _g_free0 (_tmp25_), _tmp26_);
+#line 777 "moonshot-local-flat-file-store.c"
                        }
+#line 116 "moonshot-local-flat-file-store.vala"
                        g_key_file_set_string (key_file, id_card_get_display_name (id_card), "CA-Cert", _tmp25_);
+#line 117 "moonshot-local-flat-file-store.vala"
                        _tmp27_ = g_strdup (trust_anchor_get_subject (id_card_get_trust_anchor (id_card)));
+#line 117 "moonshot-local-flat-file-store.vala"
                        if (_tmp27_ == NULL) {
+#line 785 "moonshot-local-flat-file-store.c"
                                char* _tmp28_;
+#line 117 "moonshot-local-flat-file-store.vala"
                                _tmp27_ = (_tmp28_ = g_strdup (""), _g_free0 (_tmp27_), _tmp28_);
+#line 789 "moonshot-local-flat-file-store.c"
                        }
+#line 117 "moonshot-local-flat-file-store.vala"
                        g_key_file_set_string (key_file, id_card_get_display_name (id_card), "Subject", _tmp27_);
+#line 118 "moonshot-local-flat-file-store.vala"
                        _tmp29_ = g_strdup (trust_anchor_get_subject_alt (id_card_get_trust_anchor (id_card)));
+#line 118 "moonshot-local-flat-file-store.vala"
                        if (_tmp29_ == NULL) {
+#line 797 "moonshot-local-flat-file-store.c"
                                char* _tmp30_;
+#line 118 "moonshot-local-flat-file-store.vala"
                                _tmp29_ = (_tmp30_ = g_strdup (""), _g_free0 (_tmp29_), _tmp30_);
+#line 801 "moonshot-local-flat-file-store.c"
                        }
+#line 118 "moonshot-local-flat-file-store.vala"
                        g_key_file_set_string (key_file, id_card_get_display_name (id_card), "SubjectAlt", _tmp29_);
+#line 119 "moonshot-local-flat-file-store.vala"
                        _tmp31_ = g_strdup (trust_anchor_get_server_cert (id_card_get_trust_anchor (id_card)));
+#line 119 "moonshot-local-flat-file-store.vala"
                        if (_tmp31_ == NULL) {
+#line 809 "moonshot-local-flat-file-store.c"
                                char* _tmp32_;
+#line 119 "moonshot-local-flat-file-store.vala"
                                _tmp31_ = (_tmp32_ = g_strdup (""), _g_free0 (_tmp31_), _tmp32_);
+#line 813 "moonshot-local-flat-file-store.c"
                        }
+#line 119 "moonshot-local-flat-file-store.vala"
                        g_key_file_set_string (key_file, id_card_get_display_name (id_card), "ServerCert", _tmp31_);
+#line 817 "moonshot-local-flat-file-store.c"
                        _g_free0 (_tmp31_);
                        _g_free0 (_tmp29_);
                        _g_free0 (_tmp27_);
@@ -621,13 +829,19 @@ void local_flat_file_store_store_id_cards (LocalFlatFileStore* self) {
                }
                _g_object_unref0 (_id_card_it);
        }
+#line 122 "moonshot-local-flat-file-store.vala"
        text = g_key_file_to_data (key_file, NULL, NULL);
+#line 835 "moonshot-local-flat-file-store.c"
        {
                char* path;
                char* filename;
+#line 125 "moonshot-local-flat-file-store.vala"
                path = local_flat_file_store_get_data_dir (self);
+#line 126 "moonshot-local-flat-file-store.vala"
                filename = g_build_filename (path, LOCAL_FLAT_FILE_STORE_FILE_NAME, NULL);
+#line 127 "moonshot-local-flat-file-store.vala"
                g_file_set_contents (filename, text, (gssize) (-1), &_inner_error_);
+#line 845 "moonshot-local-flat-file-store.c"
                if (_inner_error_ != NULL) {
                        _g_free0 (filename);
                        _g_free0 (path);
@@ -643,7 +857,9 @@ void local_flat_file_store_store_id_cards (LocalFlatFileStore* self) {
                e = _inner_error_;
                _inner_error_ = NULL;
                {
+#line 130 "moonshot-local-flat-file-store.vala"
                        fprintf (stdout, "Error:  %s\n", e->message);
+#line 863 "moonshot-local-flat-file-store.c"
                        _g_error_free0 (e);
                }
        }
@@ -655,24 +871,35 @@ void local_flat_file_store_store_id_cards (LocalFlatFileStore* self) {
                g_clear_error (&_inner_error_);
                return;
        }
+#line 133 "moonshot-local-flat-file-store.vala"
        local_flat_file_store_load_id_cards (self);
+#line 877 "moonshot-local-flat-file-store.c"
        _g_free0 (text);
        _g_key_file_free0 (key_file);
 }
 
 
+#line 136 "moonshot-local-flat-file-store.vala"
 LocalFlatFileStore* local_flat_file_store_construct (GType object_type) {
+#line 885 "moonshot-local-flat-file-store.c"
        LocalFlatFileStore * self = NULL;
        GeeLinkedList* _tmp0_;
+#line 136 "moonshot-local-flat-file-store.vala"
        self = (LocalFlatFileStore*) g_object_new (object_type, NULL);
+#line 137 "moonshot-local-flat-file-store.vala"
        self->priv->id_card_list = (_tmp0_ = gee_linked_list_new (TYPE_ID_CARD, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL), _g_object_unref0 (self->priv->id_card_list), _tmp0_);
+#line 138 "moonshot-local-flat-file-store.vala"
        local_flat_file_store_load_id_cards (self);
+#line 894 "moonshot-local-flat-file-store.c"
        return self;
 }
 
 
+#line 136 "moonshot-local-flat-file-store.vala"
 LocalFlatFileStore* local_flat_file_store_new (void) {
+#line 136 "moonshot-local-flat-file-store.vala"
        return local_flat_file_store_construct (TYPE_LOCAL_FLAT_FILE_STORE);
+#line 903 "moonshot-local-flat-file-store.c"
 }
 
 
index 0e636c6..c008664 100644 (file)
@@ -64,7 +64,9 @@ static gpointer _g_object_ref0 (gpointer self) {
 }
 
 
+#line 16 "moonshot-password-dialog.vala"
 AddPasswordDialog* add_password_dialog_construct (GType object_type) {
+#line 70 "moonshot-password-dialog.c"
        AddPasswordDialog * self;
        GtkWidget* content_area;
        GtkLabel* password_label;
@@ -73,33 +75,61 @@ AddPasswordDialog* add_password_dialog_construct (GType object_type) {
        GtkTable* table;
        GtkVBox* vbox;
        self = g_object_newv (object_type, 0, NULL);
+#line 18 "moonshot-password-dialog.vala"
        gtk_window_set_title ((GtkWindow*) self, _ ("Please enter your password"));
+#line 19 "moonshot-password-dialog.vala"
        gtk_window_set_modal ((GtkWindow*) self, TRUE);
+#line 21 "moonshot-password-dialog.vala"
        gtk_dialog_add_buttons ((GtkDialog*) self, _ ("Send"), GTK_RESPONSE_OK, _ ("Return to application"), GTK_RESPONSE_CANCEL, NULL);
+#line 23 "moonshot-password-dialog.vala"
        gtk_dialog_set_default_response ((GtkDialog*) self, (gint) GTK_RESPONSE_OK);
+#line 25 "moonshot-password-dialog.vala"
        content_area = _g_object_ref0 (gtk_dialog_get_content_area ((GtkDialog*) self));
+#line 26 "moonshot-password-dialog.vala"
        gtk_box_set_spacing (GTK_BOX (content_area), 12);
+#line 28 "moonshot-password-dialog.vala"
        password_label = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Password:")));
+#line 29 "moonshot-password-dialog.vala"
        gtk_misc_set_alignment ((GtkMisc*) password_label, (float) 1, (float) 0.5);
+#line 30 "moonshot-password-dialog.vala"
        self->priv->password_entry = (_tmp0_ = g_object_ref_sink ((GtkEntry*) gtk_entry_new ()), _g_object_unref0 (self->priv->password_entry), _tmp0_);
+#line 31 "moonshot-password-dialog.vala"
        gtk_entry_set_invisible_char (self->priv->password_entry, (gunichar) '*');
+#line 32 "moonshot-password-dialog.vala"
        gtk_entry_set_visibility (self->priv->password_entry, FALSE);
+#line 33 "moonshot-password-dialog.vala"
        gtk_entry_set_activates_default (self->priv->password_entry, TRUE);
+#line 34 "moonshot-password-dialog.vala"
        self->priv->remember_checkbutton = (_tmp1_ = g_object_ref_sink ((GtkCheckButton*) gtk_check_button_new_with_label (_ ("Remember password"))), _g_object_unref0 (self->priv->remember_checkbutton), _tmp1_);
+#line 36 "moonshot-password-dialog.vala"
        add_password_dialog_set_atk_relation (self, (GtkWidget*) self->priv->password_entry, (GtkWidget*) self->priv->password_entry, ATK_RELATION_LABEL_FOR);
+#line 38 "moonshot-password-dialog.vala"
        table = g_object_ref_sink ((GtkTable*) gtk_table_new ((guint) 2, (guint) 2, FALSE));
+#line 39 "moonshot-password-dialog.vala"
        gtk_table_set_col_spacings (table, (guint) 10);
+#line 40 "moonshot-password-dialog.vala"
        gtk_table_set_row_spacings (table, (guint) 10);
+#line 41 "moonshot-password-dialog.vala"
        gtk_table_attach_defaults (table, (GtkWidget*) password_label, (guint) 0, (guint) 1, (guint) 2, (guint) 3);
+#line 42 "moonshot-password-dialog.vala"
        gtk_table_attach_defaults (table, (GtkWidget*) self->priv->password_entry, (guint) 1, (guint) 2, (guint) 2, (guint) 3);
+#line 43 "moonshot-password-dialog.vala"
        gtk_table_attach_defaults (table, (GtkWidget*) self->priv->remember_checkbutton, (guint) 1, (guint) 2, (guint) 3, (guint) 4);
+#line 45 "moonshot-password-dialog.vala"
        vbox = g_object_ref_sink ((GtkVBox*) gtk_vbox_new (FALSE, 0));
+#line 46 "moonshot-password-dialog.vala"
        gtk_container_set_border_width ((GtkContainer*) vbox, (guint) 6);
+#line 47 "moonshot-password-dialog.vala"
        gtk_box_pack_start ((GtkBox*) vbox, (GtkWidget*) table, FALSE, FALSE, (guint) 0);
+#line 49 "moonshot-password-dialog.vala"
        gtk_container_add (GTK_CONTAINER (content_area), (GtkWidget*) vbox);
+#line 51 "moonshot-password-dialog.vala"
        gtk_container_set_border_width ((GtkContainer*) self, (guint) 6);
+#line 52 "moonshot-password-dialog.vala"
        gtk_window_set_resizable ((GtkWindow*) self, FALSE);
+#line 53 "moonshot-password-dialog.vala"
        gtk_widget_show_all ((GtkWidget*) self);
+#line 133 "moonshot-password-dialog.c"
        _g_object_unref0 (vbox);
        _g_object_unref0 (table);
        _g_object_unref0 (password_label);
@@ -108,20 +138,32 @@ AddPasswordDialog* add_password_dialog_construct (GType object_type) {
 }
 
 
+#line 16 "moonshot-password-dialog.vala"
 AddPasswordDialog* add_password_dialog_new (void) {
+#line 16 "moonshot-password-dialog.vala"
        return add_password_dialog_construct (TYPE_ADD_PASSWORD_DIALOG);
+#line 146 "moonshot-password-dialog.c"
 }
 
 
+#line 56 "moonshot-password-dialog.vala"
 static void add_password_dialog_set_atk_relation (AddPasswordDialog* self, GtkWidget* widget, GtkWidget* target_widget, AtkRelationType relationship) {
+#line 152 "moonshot-password-dialog.c"
        AtkObject* atk_widget;
        AtkObject* atk_target_widget;
+#line 56 "moonshot-password-dialog.vala"
        g_return_if_fail (self != NULL);
+#line 56 "moonshot-password-dialog.vala"
        g_return_if_fail (widget != NULL);
+#line 56 "moonshot-password-dialog.vala"
        g_return_if_fail (target_widget != NULL);
+#line 58 "moonshot-password-dialog.vala"
        atk_widget = _g_object_ref0 (gtk_widget_get_accessible (widget));
+#line 59 "moonshot-password-dialog.vala"
        atk_target_widget = _g_object_ref0 (gtk_widget_get_accessible (target_widget));
+#line 61 "moonshot-password-dialog.vala"
        atk_object_add_relationship (atk_widget, relationship, atk_target_widget);
+#line 167 "moonshot-password-dialog.c"
        _g_object_unref0 (atk_target_widget);
        _g_object_unref0 (atk_widget);
 }
@@ -131,7 +173,9 @@ const char* add_password_dialog_get_password (AddPasswordDialog* self) {
        const char* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = gtk_entry_get_text (self->priv->password_entry);
+#line 9 "moonshot-password-dialog.vala"
        return result;
+#line 179 "moonshot-password-dialog.c"
 }
 
 
@@ -139,7 +183,9 @@ gboolean add_password_dialog_get_remember (AddPasswordDialog* self) {
        gboolean result;
        g_return_val_if_fail (self != NULL, FALSE);
        result = gtk_toggle_button_get_active ((GtkToggleButton*) self->priv->remember_checkbutton);
+#line 13 "moonshot-password-dialog.vala"
        return result;
+#line 189 "moonshot-password-dialog.c"
 }
 
 
index 9147352..6384a5b 100644 (file)
@@ -148,39 +148,64 @@ static int _vala_strcmp0 (const char * str1, const char * str2);
 
 
 
+#line 6 "moonshot-provisioning-common.vala"
 gboolean web_provisioning_check_stack (GSList* stack, char** reference, int reference_length1) {
+#line 154 "moonshot-provisioning-common.c"
        gboolean result = FALSE;
+#line 9 "moonshot-provisioning-common.vala"
        if (g_slist_length (stack) < reference_length1) {
+#line 158 "moonshot-provisioning-common.c"
                result = FALSE;
+#line 10 "moonshot-provisioning-common.vala"
                return result;
+#line 162 "moonshot-provisioning-common.c"
        }
        {
                gint i;
+#line 12 "moonshot-provisioning-common.vala"
                i = 0;
+#line 168 "moonshot-provisioning-common.c"
                {
                        gboolean _tmp0_;
+#line 12 "moonshot-provisioning-common.vala"
                        _tmp0_ = TRUE;
+#line 12 "moonshot-provisioning-common.vala"
                        while (TRUE) {
+#line 12 "moonshot-provisioning-common.vala"
                                if (!_tmp0_) {
+#line 12 "moonshot-provisioning-common.vala"
                                        i++;
+#line 179 "moonshot-provisioning-common.c"
                                }
+#line 12 "moonshot-provisioning-common.vala"
                                _tmp0_ = FALSE;
+#line 12 "moonshot-provisioning-common.vala"
                                if (!(i < reference_length1)) {
+#line 12 "moonshot-provisioning-common.vala"
                                        break;
+#line 187 "moonshot-provisioning-common.c"
                                }
+#line 14 "moonshot-provisioning-common.vala"
                                if (_vala_strcmp0 ((const char*) g_slist_nth_data (stack, (guint) i), reference[i]) != 0) {
+#line 191 "moonshot-provisioning-common.c"
                                        result = FALSE;
+#line 15 "moonshot-provisioning-common.vala"
                                        return result;
+#line 195 "moonshot-provisioning-common.c"
                                }
                        }
                }
        }
        result = TRUE;
+#line 18 "moonshot-provisioning-common.vala"
        return result;
+#line 203 "moonshot-provisioning-common.c"
 }
 
 
+#line 21 "moonshot-provisioning-common.vala"
 gboolean web_provisioning_always_confirm_handler (GSList* stack) {
+#line 209 "moonshot-provisioning-common.c"
        gboolean result = FALSE;
        gint always_confirm_path_length1;
        gint _always_confirm_path_size_;
@@ -190,11 +215,15 @@ gboolean web_provisioning_always_confirm_handler (GSList* stack) {
        always_confirm_path = (_tmp1_ = (_tmp0_ = g_new0 (char*, 5 + 1), _tmp0_[0] = g_strdup ("always-confirm"), _tmp0_[1] = g_strdup ("rule"), _tmp0_[2] = g_strdup ("selection-rules"), _tmp0_[3] = g_strdup ("identity"), _tmp0_[4] = g_strdup ("identities"), _tmp0_), always_confirm_path_length1 = 5, _always_confirm_path_size_ = always_confirm_path_length1, _tmp1_);
        result = web_provisioning_check_stack (stack, always_confirm_path, always_confirm_path_length1);
        always_confirm_path = (_vala_array_free (always_confirm_path, always_confirm_path_length1, (GDestroyNotify) g_free), NULL);
+#line 26 "moonshot-provisioning-common.vala"
        return result;
+#line 221 "moonshot-provisioning-common.c"
 }
 
 
+#line 29 "moonshot-provisioning-common.vala"
 gboolean web_provisioning_pattern_handler (GSList* stack) {
+#line 227 "moonshot-provisioning-common.c"
        gboolean result = FALSE;
        gint pattern_path_length1;
        gint _pattern_path_size_;
@@ -204,11 +233,15 @@ gboolean web_provisioning_pattern_handler (GSList* stack) {
        pattern_path = (_tmp1_ = (_tmp0_ = g_new0 (char*, 5 + 1), _tmp0_[0] = g_strdup ("pattern"), _tmp0_[1] = g_strdup ("rule"), _tmp0_[2] = g_strdup ("selection-rules"), _tmp0_[3] = g_strdup ("identity"), _tmp0_[4] = g_strdup ("identities"), _tmp0_), pattern_path_length1 = 5, _pattern_path_size_ = pattern_path_length1, _tmp1_);
        result = web_provisioning_check_stack (stack, pattern_path, pattern_path_length1);
        pattern_path = (_vala_array_free (pattern_path, pattern_path_length1, (GDestroyNotify) g_free), NULL);
+#line 34 "moonshot-provisioning-common.vala"
        return result;
+#line 239 "moonshot-provisioning-common.c"
 }
 
 
+#line 37 "moonshot-provisioning-common.vala"
 gboolean web_provisioning_server_cert_handler (GSList* stack) {
+#line 245 "moonshot-provisioning-common.c"
        gboolean result = FALSE;
        gint server_cert_path_length1;
        gint _server_cert_path_size_;
@@ -218,11 +251,15 @@ gboolean web_provisioning_server_cert_handler (GSList* stack) {
        server_cert_path = (_tmp1_ = (_tmp0_ = g_new0 (char*, 4 + 1), _tmp0_[0] = g_strdup ("server-cert"), _tmp0_[1] = g_strdup ("trust-anchor"), _tmp0_[2] = g_strdup ("identity"), _tmp0_[3] = g_strdup ("identities"), _tmp0_), server_cert_path_length1 = 4, _server_cert_path_size_ = server_cert_path_length1, _tmp1_);
        result = web_provisioning_check_stack (stack, server_cert_path, server_cert_path_length1);
        server_cert_path = (_vala_array_free (server_cert_path, server_cert_path_length1, (GDestroyNotify) g_free), NULL);
+#line 42 "moonshot-provisioning-common.vala"
        return result;
+#line 257 "moonshot-provisioning-common.c"
 }
 
 
+#line 45 "moonshot-provisioning-common.vala"
 gboolean web_provisioning_subject_alt_handler (GSList* stack) {
+#line 263 "moonshot-provisioning-common.c"
        gboolean result = FALSE;
        gint subject_alt_path_length1;
        gint _subject_alt_path_size_;
@@ -232,11 +269,15 @@ gboolean web_provisioning_subject_alt_handler (GSList* stack) {
        subject_alt_path = (_tmp1_ = (_tmp0_ = g_new0 (char*, 4 + 1), _tmp0_[0] = g_strdup ("subject-alt"), _tmp0_[1] = g_strdup ("trust-anchor"), _tmp0_[2] = g_strdup ("identity"), _tmp0_[3] = g_strdup ("identities"), _tmp0_), subject_alt_path_length1 = 4, _subject_alt_path_size_ = subject_alt_path_length1, _tmp1_);
        result = web_provisioning_check_stack (stack, subject_alt_path, subject_alt_path_length1);
        subject_alt_path = (_vala_array_free (subject_alt_path, subject_alt_path_length1, (GDestroyNotify) g_free), NULL);
+#line 50 "moonshot-provisioning-common.vala"
        return result;
+#line 275 "moonshot-provisioning-common.c"
 }
 
 
+#line 53 "moonshot-provisioning-common.vala"
 gboolean web_provisioning_subject_handler (GSList* stack) {
+#line 281 "moonshot-provisioning-common.c"
        gboolean result = FALSE;
        gint subject_path_length1;
        gint _subject_path_size_;
@@ -246,11 +287,15 @@ gboolean web_provisioning_subject_handler (GSList* stack) {
        subject_path = (_tmp1_ = (_tmp0_ = g_new0 (char*, 4 + 1), _tmp0_[0] = g_strdup ("subject"), _tmp0_[1] = g_strdup ("trust-anchor"), _tmp0_[2] = g_strdup ("identity"), _tmp0_[3] = g_strdup ("identities"), _tmp0_), subject_path_length1 = 4, _subject_path_size_ = subject_path_length1, _tmp1_);
        result = web_provisioning_check_stack (stack, subject_path, subject_path_length1);
        subject_path = (_vala_array_free (subject_path, subject_path_length1, (GDestroyNotify) g_free), NULL);
+#line 58 "moonshot-provisioning-common.vala"
        return result;
+#line 293 "moonshot-provisioning-common.c"
 }
 
 
+#line 61 "moonshot-provisioning-common.vala"
 gboolean web_provisioning_ca_cert_handler (GSList* stack) {
+#line 299 "moonshot-provisioning-common.c"
        gboolean result = FALSE;
        gint ca_path_length1;
        gint _ca_path_size_;
@@ -260,11 +305,15 @@ gboolean web_provisioning_ca_cert_handler (GSList* stack) {
        ca_path = (_tmp1_ = (_tmp0_ = g_new0 (char*, 4 + 1), _tmp0_[0] = g_strdup ("ca-cert"), _tmp0_[1] = g_strdup ("trust-anchor"), _tmp0_[2] = g_strdup ("identity"), _tmp0_[3] = g_strdup ("identities"), _tmp0_), ca_path_length1 = 4, _ca_path_size_ = ca_path_length1, _tmp1_);
        result = web_provisioning_check_stack (stack, ca_path, ca_path_length1);
        ca_path = (_vala_array_free (ca_path, ca_path_length1, (GDestroyNotify) g_free), NULL);
+#line 66 "moonshot-provisioning-common.vala"
        return result;
+#line 311 "moonshot-provisioning-common.c"
 }
 
 
+#line 69 "moonshot-provisioning-common.vala"
 gboolean web_provisioning_realm_handler (GSList* stack) {
+#line 317 "moonshot-provisioning-common.c"
        gboolean result = FALSE;
        gint realm_path_length1;
        gint _realm_path_size_;
@@ -274,11 +323,15 @@ gboolean web_provisioning_realm_handler (GSList* stack) {
        realm_path = (_tmp1_ = (_tmp0_ = g_new0 (char*, 3 + 1), _tmp0_[0] = g_strdup ("realm"), _tmp0_[1] = g_strdup ("identity"), _tmp0_[2] = g_strdup ("identities"), _tmp0_), realm_path_length1 = 3, _realm_path_size_ = realm_path_length1, _tmp1_);
        result = web_provisioning_check_stack (stack, realm_path, realm_path_length1);
        realm_path = (_vala_array_free (realm_path, realm_path_length1, (GDestroyNotify) g_free), NULL);
+#line 74 "moonshot-provisioning-common.vala"
        return result;
+#line 329 "moonshot-provisioning-common.c"
 }
 
 
+#line 77 "moonshot-provisioning-common.vala"
 gboolean web_provisioning_password_handler (GSList* stack) {
+#line 335 "moonshot-provisioning-common.c"
        gboolean result = FALSE;
        gint password_path_length1;
        gint _password_path_size_;
@@ -288,11 +341,15 @@ gboolean web_provisioning_password_handler (GSList* stack) {
        password_path = (_tmp1_ = (_tmp0_ = g_new0 (char*, 3 + 1), _tmp0_[0] = g_strdup ("password"), _tmp0_[1] = g_strdup ("identity"), _tmp0_[2] = g_strdup ("identities"), _tmp0_), password_path_length1 = 3, _password_path_size_ = password_path_length1, _tmp1_);
        result = web_provisioning_check_stack (stack, password_path, password_path_length1);
        password_path = (_vala_array_free (password_path, password_path_length1, (GDestroyNotify) g_free), NULL);
+#line 82 "moonshot-provisioning-common.vala"
        return result;
+#line 347 "moonshot-provisioning-common.c"
 }
 
 
+#line 85 "moonshot-provisioning-common.vala"
 gboolean web_provisioning_user_handler (GSList* stack) {
+#line 353 "moonshot-provisioning-common.c"
        gboolean result = FALSE;
        gint user_path_length1;
        gint _user_path_size_;
@@ -302,11 +359,15 @@ gboolean web_provisioning_user_handler (GSList* stack) {
        user_path = (_tmp1_ = (_tmp0_ = g_new0 (char*, 3 + 1), _tmp0_[0] = g_strdup ("user"), _tmp0_[1] = g_strdup ("identity"), _tmp0_[2] = g_strdup ("identities"), _tmp0_), user_path_length1 = 3, _user_path_size_ = user_path_length1, _tmp1_);
        result = web_provisioning_check_stack (stack, user_path, user_path_length1);
        user_path = (_vala_array_free (user_path, user_path_length1, (GDestroyNotify) g_free), NULL);
+#line 90 "moonshot-provisioning-common.vala"
        return result;
+#line 365 "moonshot-provisioning-common.c"
 }
 
 
+#line 93 "moonshot-provisioning-common.vala"
 gboolean web_provisioning_display_name_handler (GSList* stack) {
+#line 371 "moonshot-provisioning-common.c"
        gboolean result = FALSE;
        gint display_name_path_length1;
        gint _display_name_path_size_;
@@ -316,7 +377,9 @@ gboolean web_provisioning_display_name_handler (GSList* stack) {
        display_name_path = (_tmp1_ = (_tmp0_ = g_new0 (char*, 3 + 1), _tmp0_[0] = g_strdup ("display-name"), _tmp0_[1] = g_strdup ("identity"), _tmp0_[2] = g_strdup ("identities"), _tmp0_), display_name_path_length1 = 3, _display_name_path_size_ = display_name_path_length1, _tmp1_);
        result = web_provisioning_check_stack (stack, display_name_path, display_name_path_length1);
        display_name_path = (_vala_array_free (display_name_path, display_name_path_length1, (GDestroyNotify) g_free), NULL);
+#line 98 "moonshot-provisioning-common.vala"
        return result;
+#line 383 "moonshot-provisioning-common.c"
 }
 
 
@@ -359,10 +422,15 @@ static void _vala_Rule_array_free (Rule* array, gint array_length) {
 }
 
 
+#line 101 "moonshot-provisioning-common.vala"
 void web_provisioning_start_element_func (GMarkupParseContext* context, const char* element_name, char** attribute_names, int attribute_names_length1, char** attribute_values, int attribute_values_length1, GError** error) {
+#line 101 "moonshot-provisioning-common.vala"
        g_return_if_fail (context != NULL);
+#line 101 "moonshot-provisioning-common.vala"
        g_return_if_fail (element_name != NULL);
+#line 107 "moonshot-provisioning-common.vala"
        if (_vala_strcmp0 (element_name, "identity") == 0) {
+#line 434 "moonshot-provisioning-common.c"
                gint tmp_cards_length1;
                gint _tmp_cards_size_;
                IdCard** _tmp1_;
@@ -372,31 +440,52 @@ void web_provisioning_start_element_func (GMarkupParseContext* context, const ch
                IdCard* _tmp5_;
                IdCard* _tmp6_;
                tmp_cards = (_tmp1_ = (_tmp0_ = web_provisioning_cards, (_tmp0_ == NULL) ? ((gpointer) _tmp0_) : _vala_array_dup4 (_tmp0_, web_provisioning_cards_length1)), tmp_cards_length1 = web_provisioning_cards_length1, _tmp_cards_size_ = tmp_cards_length1, _tmp1_);
+#line 111 "moonshot-provisioning-common.vala"
                web_provisioning_cards = (_tmp2_ = g_new0 (IdCard*, (tmp_cards_length1 + 1) + 1), web_provisioning_cards = (_vala_array_free (web_provisioning_cards, web_provisioning_cards_length1, (GDestroyNotify) g_object_unref), NULL), web_provisioning_cards_length1 = tmp_cards_length1 + 1, _web_provisioning_cards_size_ = web_provisioning_cards_length1, _tmp2_);
+#line 446 "moonshot-provisioning-common.c"
                {
                        gint i;
+#line 112 "moonshot-provisioning-common.vala"
                        i = 0;
+#line 451 "moonshot-provisioning-common.c"
                        {
                                gboolean _tmp3_;
+#line 112 "moonshot-provisioning-common.vala"
                                _tmp3_ = TRUE;
+#line 112 "moonshot-provisioning-common.vala"
                                while (TRUE) {
+#line 458 "moonshot-provisioning-common.c"
                                        IdCard* _tmp4_;
+#line 112 "moonshot-provisioning-common.vala"
                                        if (!_tmp3_) {
+#line 112 "moonshot-provisioning-common.vala"
                                                i++;
+#line 464 "moonshot-provisioning-common.c"
                                        }
+#line 112 "moonshot-provisioning-common.vala"
                                        _tmp3_ = FALSE;
+#line 112 "moonshot-provisioning-common.vala"
                                        if (!(i < tmp_cards_length1)) {
+#line 112 "moonshot-provisioning-common.vala"
                                                break;
+#line 472 "moonshot-provisioning-common.c"
                                        }
+#line 114 "moonshot-provisioning-common.vala"
                                        web_provisioning_cards[i] = (_tmp4_ = _g_object_ref0 (tmp_cards[i]), _g_object_unref0 (web_provisioning_cards[i]), _tmp4_);
+#line 476 "moonshot-provisioning-common.c"
                                }
                        }
                }
+#line 116 "moonshot-provisioning-common.vala"
                web_provisioning_card = (_tmp5_ = id_card_new (), _g_object_unref0 (web_provisioning_card), _tmp5_);
+#line 117 "moonshot-provisioning-common.vala"
                web_provisioning_cards[tmp_cards_length1] = (_tmp6_ = _g_object_ref0 (web_provisioning_card), _g_object_unref0 (web_provisioning_cards[tmp_cards_length1]), _tmp6_);
+#line 484 "moonshot-provisioning-common.c"
                tmp_cards = (_vala_array_free (tmp_cards, tmp_cards_length1, (GDestroyNotify) g_object_unref), NULL);
        } else {
+#line 119 "moonshot-provisioning-common.vala"
                if (_vala_strcmp0 (element_name, "rule") == 0) {
+#line 489 "moonshot-provisioning-common.c"
                        gint tmp_rules_length1;
                        gint _tmp_rules_size_;
                        Rule* _tmp9_;
@@ -412,35 +501,56 @@ void web_provisioning_start_element_func (GMarkupParseContext* context, const ch
                        Rule *_tmp21_;
                        Rule _tmp22_;
                        tmp_rules = (_tmp9_ = (_tmp8_ = id_card_get_rules (web_provisioning_card, &_tmp7_), (_tmp8_ == NULL) ? ((gpointer) _tmp8_) : _vala_array_dup5 (_tmp8_, _tmp7_)), tmp_rules_length1 = _tmp7_, _tmp_rules_size_ = tmp_rules_length1, _tmp9_);
+#line 122 "moonshot-provisioning-common.vala"
                        _tmp11_ = (_tmp10_ = g_new0 (Rule, tmp_rules_length1 + 1), _tmp10__length1 = tmp_rules_length1 + 1, _tmp10_);
+#line 122 "moonshot-provisioning-common.vala"
                        id_card_set_rules (web_provisioning_card, _tmp11_, tmp_rules_length1 + 1);
+#line 509 "moonshot-provisioning-common.c"
                        _tmp10_ = (_vala_Rule_array_free (_tmp10_, _tmp10__length1), NULL);
                        {
                                gint i;
+#line 123 "moonshot-provisioning-common.vala"
                                i = 0;
+#line 515 "moonshot-provisioning-common.c"
                                {
                                        gboolean _tmp12_;
+#line 123 "moonshot-provisioning-common.vala"
                                        _tmp12_ = TRUE;
+#line 123 "moonshot-provisioning-common.vala"
                                        while (TRUE) {
+#line 522 "moonshot-provisioning-common.c"
                                                gint _tmp13_;
                                                Rule _tmp14_ = {0};
                                                gint _tmp15_;
                                                Rule *_tmp16_;
                                                Rule _tmp17_;
+#line 123 "moonshot-provisioning-common.vala"
                                                if (!_tmp12_) {
+#line 123 "moonshot-provisioning-common.vala"
                                                        i++;
+#line 532 "moonshot-provisioning-common.c"
                                                }
+#line 123 "moonshot-provisioning-common.vala"
                                                _tmp12_ = FALSE;
+#line 123 "moonshot-provisioning-common.vala"
                                                if (!(i < tmp_rules_length1)) {
+#line 123 "moonshot-provisioning-common.vala"
                                                        break;
+#line 540 "moonshot-provisioning-common.c"
                                                }
+#line 125 "moonshot-provisioning-common.vala"
                                                _tmp16_ = &id_card_get_rules (web_provisioning_card, &_tmp15_)[i];
+#line 125 "moonshot-provisioning-common.vala"
                                                (*_tmp16_) = (_tmp17_ = (rule_copy (&tmp_rules[i], &_tmp14_), _tmp14_), rule_destroy (&(*_tmp16_)), _tmp17_);
+#line 546 "moonshot-provisioning-common.c"
                                        }
                                }
                        }
+#line 128 "moonshot-provisioning-common.vala"
                        _tmp21_ = &id_card_get_rules (web_provisioning_card, &_tmp20_)[tmp_rules_length1];
+#line 128 "moonshot-provisioning-common.vala"
                        (*_tmp21_) = (_tmp22_ = (memset (&_tmp19_, 0, sizeof (Rule)), _tmp19_), rule_destroy (&(*_tmp21_)), _tmp22_);
+#line 554 "moonshot-provisioning-common.c"
                        tmp_rules = (_vala_Rule_array_free (tmp_rules, tmp_rules_length1), NULL);
                }
        }
@@ -458,51 +568,93 @@ static char** _vala_array_dup6 (char** self, int length) {
 }
 
 
+#line 132 "moonshot-provisioning-common.vala"
 void web_provisioning_text_element_func (GMarkupParseContext* context, const char* text, gsize text_len, GError** error) {
+#line 574 "moonshot-provisioning-common.c"
        GSList* stack;
        gboolean _tmp0_ = FALSE;
+#line 132 "moonshot-provisioning-common.vala"
        g_return_if_fail (context != NULL);
+#line 132 "moonshot-provisioning-common.vala"
        g_return_if_fail (text != NULL);
+#line 137 "moonshot-provisioning-common.vala"
        stack = g_markup_parse_context_get_element_stack (context);
+#line 139 "moonshot-provisioning-common.vala"
        if (text_len < 1) {
+#line 140 "moonshot-provisioning-common.vala"
                return;
+#line 587 "moonshot-provisioning-common.c"
        }
+#line 142 "moonshot-provisioning-common.vala"
        if (_vala_strcmp0 ((const char*) g_slist_nth_data (stack, (guint) 0), "display-name") == 0) {
+#line 142 "moonshot-provisioning-common.vala"
                _tmp0_ = web_provisioning_display_name_handler (stack);
+#line 593 "moonshot-provisioning-common.c"
        } else {
+#line 142 "moonshot-provisioning-common.vala"
                _tmp0_ = FALSE;
+#line 597 "moonshot-provisioning-common.c"
        }
+#line 142 "moonshot-provisioning-common.vala"
        if (_tmp0_) {
+#line 144 "moonshot-provisioning-common.vala"
                id_card_set_display_name (web_provisioning_card, text);
+#line 603 "moonshot-provisioning-common.c"
        } else {
                gboolean _tmp1_ = FALSE;
+#line 146 "moonshot-provisioning-common.vala"
                if (_vala_strcmp0 ((const char*) g_slist_nth_data (stack, (guint) 0), "user") == 0) {
+#line 146 "moonshot-provisioning-common.vala"
                        _tmp1_ = web_provisioning_user_handler (stack);
+#line 610 "moonshot-provisioning-common.c"
                } else {
+#line 146 "moonshot-provisioning-common.vala"
                        _tmp1_ = FALSE;
+#line 614 "moonshot-provisioning-common.c"
                }
+#line 146 "moonshot-provisioning-common.vala"
                if (_tmp1_) {
+#line 148 "moonshot-provisioning-common.vala"
                        id_card_set_username (web_provisioning_card, text);
+#line 620 "moonshot-provisioning-common.c"
                } else {
                        gboolean _tmp2_ = FALSE;
+#line 150 "moonshot-provisioning-common.vala"
                        if (_vala_strcmp0 ((const char*) g_slist_nth_data (stack, (guint) 0), "password") == 0) {
+#line 150 "moonshot-provisioning-common.vala"
                                _tmp2_ = web_provisioning_password_handler (stack);
+#line 627 "moonshot-provisioning-common.c"
                        } else {
+#line 150 "moonshot-provisioning-common.vala"
                                _tmp2_ = FALSE;
+#line 631 "moonshot-provisioning-common.c"
                        }
+#line 150 "moonshot-provisioning-common.vala"
                        if (_tmp2_) {
+#line 152 "moonshot-provisioning-common.vala"
                                id_card_set_password (web_provisioning_card, text);
+#line 637 "moonshot-provisioning-common.c"
                        } else {
                                gboolean _tmp3_ = FALSE;
+#line 154 "moonshot-provisioning-common.vala"
                                if (_vala_strcmp0 ((const char*) g_slist_nth_data (stack, (guint) 0), "realm") == 0) {
+#line 154 "moonshot-provisioning-common.vala"
                                        _tmp3_ = web_provisioning_realm_handler (stack);
+#line 644 "moonshot-provisioning-common.c"
                                } else {
+#line 154 "moonshot-provisioning-common.vala"
                                        _tmp3_ = FALSE;
+#line 648 "moonshot-provisioning-common.c"
                                }
+#line 154 "moonshot-provisioning-common.vala"
                                if (_tmp3_) {
+#line 156 "moonshot-provisioning-common.vala"
                                        id_card_set_issuer (web_provisioning_card, text);
+#line 654 "moonshot-provisioning-common.c"
                                } else {
+#line 158 "moonshot-provisioning-common.vala"
                                        if (_vala_strcmp0 ((const char*) g_slist_nth_data (stack, (guint) 0), "service") == 0) {
+#line 658 "moonshot-provisioning-common.c"
                                                gint services_length1;
                                                gint _services_size_;
                                                char** _tmp6_;
@@ -517,107 +669,187 @@ void web_provisioning_text_element_func (GMarkupParseContext* context, const cha
                                                char* *_tmp16_;
                                                char* _tmp17_;
                                                services = (_tmp6_ = (_tmp5_ = id_card_get_services (web_provisioning_card, &_tmp4_), (_tmp5_ == NULL) ? ((gpointer) _tmp5_) : _vala_array_dup6 (_tmp5_, _tmp4_)), services_length1 = _tmp4_, _services_size_ = services_length1, _tmp6_);
+#line 161 "moonshot-provisioning-common.vala"
                                                _tmp8_ = (_tmp7_ = g_new0 (char*, (services_length1 + 1) + 1), _tmp7__length1 = services_length1 + 1, _tmp7_);
+#line 161 "moonshot-provisioning-common.vala"
                                                id_card_set_services (web_provisioning_card, _tmp8_, services_length1 + 1);
+#line 677 "moonshot-provisioning-common.c"
                                                _tmp7_ = (_vala_array_free (_tmp7_, _tmp7__length1, (GDestroyNotify) g_free), NULL);
                                                {
                                                        gint i;
+#line 162 "moonshot-provisioning-common.vala"
                                                        i = 0;
+#line 683 "moonshot-provisioning-common.c"
                                                        {
                                                                gboolean _tmp9_;
+#line 162 "moonshot-provisioning-common.vala"
                                                                _tmp9_ = TRUE;
+#line 162 "moonshot-provisioning-common.vala"
                                                                while (TRUE) {
+#line 690 "moonshot-provisioning-common.c"
                                                                        gint _tmp10_;
                                                                        gint _tmp11_;
                                                                        char* *_tmp12_;
                                                                        char* _tmp13_;
+#line 162 "moonshot-provisioning-common.vala"
                                                                        if (!_tmp9_) {
+#line 162 "moonshot-provisioning-common.vala"
                                                                                i++;
+#line 699 "moonshot-provisioning-common.c"
                                                                        }
+#line 162 "moonshot-provisioning-common.vala"
                                                                        _tmp9_ = FALSE;
+#line 162 "moonshot-provisioning-common.vala"
                                                                        if (!(i < services_length1)) {
+#line 162 "moonshot-provisioning-common.vala"
                                                                                break;
+#line 707 "moonshot-provisioning-common.c"
                                                                        }
+#line 164 "moonshot-provisioning-common.vala"
                                                                        _tmp12_ = &id_card_get_services (web_provisioning_card, &_tmp11_)[i];
+#line 164 "moonshot-provisioning-common.vala"
                                                                        (*_tmp12_) = (_tmp13_ = g_strdup (services[i]), _g_free0 ((*_tmp12_)), _tmp13_);
+#line 713 "moonshot-provisioning-common.c"
                                                                }
                                                        }
                                                }
+#line 166 "moonshot-provisioning-common.vala"
                                                _tmp16_ = &id_card_get_services (web_provisioning_card, &_tmp15_)[services_length1];
+#line 166 "moonshot-provisioning-common.vala"
                                                (*_tmp16_) = (_tmp17_ = g_strdup (text), _g_free0 ((*_tmp16_)), _tmp17_);
+#line 721 "moonshot-provisioning-common.c"
                                                services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_free), NULL);
                                        } else {
                                                gboolean _tmp18_ = FALSE;
+#line 169 "moonshot-provisioning-common.vala"
                                                if (_vala_strcmp0 ((const char*) g_slist_nth_data (stack, (guint) 0), "pattern") == 0) {
+#line 169 "moonshot-provisioning-common.vala"
                                                        _tmp18_ = web_provisioning_pattern_handler (stack);
+#line 729 "moonshot-provisioning-common.c"
                                                } else {
+#line 169 "moonshot-provisioning-common.vala"
                                                        _tmp18_ = FALSE;
+#line 733 "moonshot-provisioning-common.c"
                                                }
+#line 169 "moonshot-provisioning-common.vala"
                                                if (_tmp18_) {
+#line 737 "moonshot-provisioning-common.c"
                                                        gint _tmp19_;
                                                        gint _tmp20_;
                                                        char* *_tmp21_;
                                                        char* _tmp22_;
+#line 171 "moonshot-provisioning-common.vala"
                                                        _tmp21_ = &id_card_get_rules (web_provisioning_card, &_tmp19_)[_tmp20_ - 1].pattern;
+#line 171 "moonshot-provisioning-common.vala"
                                                        (*_tmp21_) = (_tmp22_ = g_strdup (text), _g_free0 ((*_tmp21_)), _tmp22_);
+#line 746 "moonshot-provisioning-common.c"
                                                } else {
                                                        gboolean _tmp23_ = FALSE;
+#line 173 "moonshot-provisioning-common.vala"
                                                        if (_vala_strcmp0 ((const char*) g_slist_nth_data (stack, (guint) 0), "always-confirm") == 0) {
+#line 173 "moonshot-provisioning-common.vala"
                                                                _tmp23_ = web_provisioning_always_confirm_handler (stack);
+#line 753 "moonshot-provisioning-common.c"
                                                        } else {
+#line 173 "moonshot-provisioning-common.vala"
                                                                _tmp23_ = FALSE;
+#line 757 "moonshot-provisioning-common.c"
                                                        }
+#line 173 "moonshot-provisioning-common.vala"
                                                        if (_tmp23_) {
+#line 761 "moonshot-provisioning-common.c"
                                                                gboolean _tmp24_ = FALSE;
+#line 175 "moonshot-provisioning-common.vala"
                                                                if (_vala_strcmp0 (text, "true") == 0) {
+#line 175 "moonshot-provisioning-common.vala"
                                                                        _tmp24_ = TRUE;
+#line 767 "moonshot-provisioning-common.c"
                                                                } else {
+#line 175 "moonshot-provisioning-common.vala"
                                                                        _tmp24_ = _vala_strcmp0 (text, "false") == 0;
+#line 771 "moonshot-provisioning-common.c"
                                                                }
+#line 175 "moonshot-provisioning-common.vala"
                                                                if (_tmp24_) {
+#line 775 "moonshot-provisioning-common.c"
                                                                        gint _tmp25_;
                                                                        gint _tmp26_;
                                                                        char* *_tmp27_;
                                                                        char* _tmp28_;
+#line 176 "moonshot-provisioning-common.vala"
                                                                        _tmp27_ = &id_card_get_rules (web_provisioning_card, &_tmp25_)[_tmp26_ - 1].always_confirm;
+#line 176 "moonshot-provisioning-common.vala"
                                                                        (*_tmp27_) = (_tmp28_ = g_strdup (text), _g_free0 ((*_tmp27_)), _tmp28_);
+#line 784 "moonshot-provisioning-common.c"
                                                                }
                                                        } else {
                                                                gboolean _tmp29_ = FALSE;
+#line 179 "moonshot-provisioning-common.vala"
                                                                if (_vala_strcmp0 ((const char*) g_slist_nth_data (stack, (guint) 0), "ca-cert") == 0) {
+#line 179 "moonshot-provisioning-common.vala"
                                                                        _tmp29_ = web_provisioning_ca_cert_handler (stack);
+#line 792 "moonshot-provisioning-common.c"
                                                                } else {
+#line 179 "moonshot-provisioning-common.vala"
                                                                        _tmp29_ = FALSE;
+#line 796 "moonshot-provisioning-common.c"
                                                                }
+#line 179 "moonshot-provisioning-common.vala"
                                                                if (_tmp29_) {
+#line 181 "moonshot-provisioning-common.vala"
                                                                        trust_anchor_set_ca_cert (id_card_get_trust_anchor (web_provisioning_card), text);
+#line 802 "moonshot-provisioning-common.c"
                                                                } else {
                                                                        gboolean _tmp30_ = FALSE;
+#line 183 "moonshot-provisioning-common.vala"
                                                                        if (_vala_strcmp0 ((const char*) g_slist_nth_data (stack, (guint) 0), "subject") == 0) {
+#line 183 "moonshot-provisioning-common.vala"
                                                                                _tmp30_ = web_provisioning_subject_handler (stack);
+#line 809 "moonshot-provisioning-common.c"
                                                                        } else {
+#line 183 "moonshot-provisioning-common.vala"
                                                                                _tmp30_ = FALSE;
+#line 813 "moonshot-provisioning-common.c"
                                                                        }
+#line 183 "moonshot-provisioning-common.vala"
                                                                        if (_tmp30_) {
+#line 185 "moonshot-provisioning-common.vala"
                                                                                trust_anchor_set_subject (id_card_get_trust_anchor (web_provisioning_card), text);
+#line 819 "moonshot-provisioning-common.c"
                                                                        } else {
                                                                                gboolean _tmp31_ = FALSE;
+#line 187 "moonshot-provisioning-common.vala"
                                                                                if (_vala_strcmp0 ((const char*) g_slist_nth_data (stack, (guint) 0), "subject-alt") == 0) {
+#line 187 "moonshot-provisioning-common.vala"
                                                                                        _tmp31_ = web_provisioning_subject_alt_handler (stack);
+#line 826 "moonshot-provisioning-common.c"
                                                                                } else {
+#line 187 "moonshot-provisioning-common.vala"
                                                                                        _tmp31_ = FALSE;
+#line 830 "moonshot-provisioning-common.c"
                                                                                }
+#line 187 "moonshot-provisioning-common.vala"
                                                                                if (_tmp31_) {
+#line 189 "moonshot-provisioning-common.vala"
                                                                                        trust_anchor_set_subject_alt (id_card_get_trust_anchor (web_provisioning_card), text);
+#line 836 "moonshot-provisioning-common.c"
                                                                                } else {
                                                                                        gboolean _tmp32_ = FALSE;
+#line 191 "moonshot-provisioning-common.vala"
                                                                                        if (_vala_strcmp0 ((const char*) g_slist_nth_data (stack, (guint) 0), "server-cert") == 0) {
+#line 191 "moonshot-provisioning-common.vala"
                                                                                                _tmp32_ = web_provisioning_server_cert_handler (stack);
+#line 843 "moonshot-provisioning-common.c"
                                                                                        } else {
+#line 191 "moonshot-provisioning-common.vala"
                                                                                                _tmp32_ = FALSE;
+#line 847 "moonshot-provisioning-common.c"
                                                                                        }
+#line 191 "moonshot-provisioning-common.vala"
                                                                                        if (_tmp32_) {
+#line 193 "moonshot-provisioning-common.vala"
                                                                                                trust_anchor_set_server_cert (id_card_get_trust_anchor (web_provisioning_card), text);
+#line 853 "moonshot-provisioning-common.c"
                                                                                        }
                                                                                }
                                                                        }
@@ -632,53 +864,77 @@ void web_provisioning_text_element_func (GMarkupParseContext* context, const cha
 }
 
 
+#line 101 "moonshot-provisioning-common.vala"
 static void _web_provisioning_start_element_func_gmarkup_parser_start_element_func (GMarkupParseContext* context, const char* element_name, char** attribute_names, char** attribute_values, gpointer self, GError** error) {
+#line 870 "moonshot-provisioning-common.c"
        web_provisioning_start_element_func (context, element_name, attribute_names, _vala_array_length (attribute_names), attribute_values, _vala_array_length (attribute_values), error);
 }
 
 
+#line 132 "moonshot-provisioning-common.vala"
 static void _web_provisioning_text_element_func_gmarkup_parser_text_func (GMarkupParseContext* context, const char* text, gsize text_len, gpointer self, GError** error) {
+#line 877 "moonshot-provisioning-common.c"
        web_provisioning_text_element_func (context, text, text_len, error);
 }
 
 
+#line 202 "moonshot-provisioning-common.vala"
 WebProvisioningParser* web_provisioning_parser_construct (GType object_type, const char* path) {
+#line 884 "moonshot-provisioning-common.c"
        WebProvisioningParser* self = (WebProvisioningParser*) g_type_create_instance (object_type);
        char* _tmp0_;
        char* _tmp1_;
        GFile* file;
        GMarkupParser _tmp8_ = {0};
        GError * _inner_error_ = NULL;
+#line 202 "moonshot-provisioning-common.vala"
        g_return_val_if_fail (path != NULL, NULL);
+#line 204 "moonshot-provisioning-common.vala"
        self->priv->text = (_tmp0_ = g_strdup (""), _g_free0 (self->priv->text), _tmp0_);
+#line 205 "moonshot-provisioning-common.vala"
        self->priv->path = (_tmp1_ = g_strdup (path), _g_free0 (self->priv->path), _tmp1_);
+#line 207 "moonshot-provisioning-common.vala"
        file = g_file_new_for_path (path);
+#line 899 "moonshot-provisioning-common.c"
        {
                GFileInputStream* _tmp2_;
                GFileInputStream* _tmp3_;
                GDataInputStream* _tmp4_;
                GDataInputStream* dis;
                char* line;
+#line 211 "moonshot-provisioning-common.vala"
                _tmp2_ = g_file_read (file, NULL, &_inner_error_);
+#line 908 "moonshot-provisioning-common.c"
                if (_inner_error_ != NULL) {
                        goto __catch5_g_error;
                }
+#line 211 "moonshot-provisioning-common.vala"
                dis = (_tmp4_ = g_data_input_stream_new ((GInputStream*) (_tmp3_ = _tmp2_)), _g_object_unref0 (_tmp3_), _tmp4_);
+#line 914 "moonshot-provisioning-common.c"
                line = NULL;
+#line 213 "moonshot-provisioning-common.vala"
                while (TRUE) {
+#line 918 "moonshot-provisioning-common.c"
                        char* _tmp5_;
                        char* _tmp6_;
                        char* _tmp7_;
+#line 213 "moonshot-provisioning-common.vala"
                        _tmp5_ = g_data_input_stream_read_line (dis, NULL, NULL, &_inner_error_);
+#line 924 "moonshot-provisioning-common.c"
                        if (_inner_error_ != NULL) {
                                _g_free0 (line);
                                _g_object_unref0 (dis);
                                goto __catch5_g_error;
                        }
+#line 213 "moonshot-provisioning-common.vala"
                        if (!((line = (_tmp6_ = _tmp5_, _g_free0 (line), _tmp6_)) != NULL)) {
+#line 213 "moonshot-provisioning-common.vala"
                                break;
+#line 934 "moonshot-provisioning-common.c"
                        }
+#line 214 "moonshot-provisioning-common.vala"
                        self->priv->text = (_tmp7_ = g_strconcat (self->priv->text, line, NULL), _g_free0 (self->priv->text), _tmp7_);
+#line 938 "moonshot-provisioning-common.c"
                }
                _g_free0 (line);
                _g_object_unref0 (dis);
@@ -690,7 +946,9 @@ WebProvisioningParser* web_provisioning_parser_construct (GType object_type, con
                e = _inner_error_;
                _inner_error_ = NULL;
                {
+#line 218 "moonshot-provisioning-common.vala"
                        g_error ("moonshot-provisioning-common.vala:218: Could not retreive file size");
+#line 952 "moonshot-provisioning-common.c"
                        _g_error_free0 (e);
                }
        }
@@ -701,14 +959,19 @@ WebProvisioningParser* web_provisioning_parser_construct (GType object_type, con
                g_clear_error (&_inner_error_);
                return NULL;
        }
+#line 221 "moonshot-provisioning-common.vala"
        self->priv->parser = (_tmp8_.start_element = _web_provisioning_start_element_func_gmarkup_parser_start_element_func, _tmp8_.end_element = NULL, _tmp8_.text = _web_provisioning_text_element_func_gmarkup_parser_text_func, _tmp8_.passthrough = NULL, _tmp8_.error = NULL, _tmp8_);
+#line 965 "moonshot-provisioning-common.c"
        _g_object_unref0 (file);
        return self;
 }
 
 
+#line 202 "moonshot-provisioning-common.vala"
 WebProvisioningParser* web_provisioning_parser_new (const char* path) {
+#line 202 "moonshot-provisioning-common.vala"
        return web_provisioning_parser_construct (WEB_PROVISIONING_TYPE_PARSER, path);
+#line 975 "moonshot-provisioning-common.c"
 }
 
 
@@ -716,17 +979,26 @@ static glong string_get_length (const char* self) {
        glong result;
        g_return_val_if_fail (self != NULL, 0L);
        result = g_utf8_strlen (self, (gssize) (-1));
+#line 1194 "glib-2.0.vapi"
        return result;
+#line 985 "moonshot-provisioning-common.c"
 }
 
 
+#line 224 "moonshot-provisioning-common.vala"
 void web_provisioning_parser_parse (WebProvisioningParser* self) {
+#line 991 "moonshot-provisioning-common.c"
        GMarkupParseContext* ctx;
        GError * _inner_error_ = NULL;
+#line 224 "moonshot-provisioning-common.vala"
        g_return_if_fail (self != NULL);
+#line 227 "moonshot-provisioning-common.vala"
        ctx = g_markup_parse_context_new (&self->priv->parser, 0, NULL, NULL);
+#line 998 "moonshot-provisioning-common.c"
        {
+#line 231 "moonshot-provisioning-common.vala"
                g_markup_parse_context_parse (ctx, self->priv->text, (gssize) string_get_length (self->priv->text), &_inner_error_);
+#line 1002 "moonshot-provisioning-common.c"
                if (_inner_error_ != NULL) {
                        goto __catch6_g_error;
                }
@@ -738,8 +1010,10 @@ void web_provisioning_parser_parse (WebProvisioningParser* self) {
                e = _inner_error_;
                _inner_error_ = NULL;
                {
+#line 235 "moonshot-provisioning-common.vala"
                        g_error ("moonshot-provisioning-common.vala:235: Could not parse %s, invalid con" \
 "tent", self->priv->path);
+#line 1016 "moonshot-provisioning-common.c"
                        _g_error_free0 (e);
                }
        }
index 403e095..eb024b7 100644 (file)
@@ -269,7 +269,7 @@ void id_card_set_rules (IdCard* self, Rule* value, int value_length1);
 static void _vala_Rule_array_free (Rule* array, gint array_length);
 Rule* id_card_get_rules (IdCard* self, int* result_length1);
 gboolean identity_manager_view_add_identity (IdentityManagerView* self, IdCard* id_card);
-gboolean moonshot_server_install_from_file (MoonshotServer* self, const char* file_name);
+gint moonshot_server_install_from_file (MoonshotServer* self, const char* file_name);
 WebProvisioningParser* web_provisioning_parser_new (const char* path);
 WebProvisioningParser* web_provisioning_parser_construct (GType object_type, const char* path);
 gpointer web_provisioning_parser_ref (gpointer instance);
@@ -337,7 +337,7 @@ static const GDBusArgInfo * const _moonshot_server_dbus_arg_info_install_id_card
 static const GDBusArgInfo * const _moonshot_server_dbus_arg_info_install_id_card_out[] = {&_moonshot_server_dbus_arg_info_install_id_card_result, NULL};
 static const GDBusMethodInfo _moonshot_server_dbus_method_info_install_id_card = {-1, "InstallIdCard", (GDBusArgInfo **) (&_moonshot_server_dbus_arg_info_install_id_card_in), (GDBusArgInfo **) (&_moonshot_server_dbus_arg_info_install_id_card_out)};
 static const GDBusArgInfo _moonshot_server_dbus_arg_info_install_from_file_file_name = {-1, "file_name", "s"};
-static const GDBusArgInfo _moonshot_server_dbus_arg_info_install_from_file_result = {-1, "result", "b"};
+static const GDBusArgInfo _moonshot_server_dbus_arg_info_install_from_file_result = {-1, "result", "i"};
 static const GDBusArgInfo * const _moonshot_server_dbus_arg_info_install_from_file_in[] = {&_moonshot_server_dbus_arg_info_install_from_file_file_name, NULL};
 static const GDBusArgInfo * const _moonshot_server_dbus_arg_info_install_from_file_out[] = {&_moonshot_server_dbus_arg_info_install_from_file_result, NULL};
 static const GDBusMethodInfo _moonshot_server_dbus_method_info_install_from_file = {-1, "InstallFromFile", (GDBusArgInfo **) (&_moonshot_server_dbus_arg_info_install_from_file_in), (GDBusArgInfo **) (&_moonshot_server_dbus_arg_info_install_from_file_out)};
@@ -353,18 +353,27 @@ static gpointer _g_object_ref0 (gpointer self) {
 }
 
 
+#line 8 "moonshot-server.vala"
 MoonshotServer* moonshot_server_construct (GType object_type, GtkWindow* window) {
+#line 359 "moonshot-server.c"
        MoonshotServer * self = NULL;
        IdentityManagerView* _tmp0_;
+#line 8 "moonshot-server.vala"
        g_return_val_if_fail (window != NULL, NULL);
+#line 8 "moonshot-server.vala"
        self = (MoonshotServer*) g_object_new (object_type, NULL);
+#line 10 "moonshot-server.vala"
        self->priv->main_window = (_tmp0_ = _g_object_ref0 (IDENTITY_MANAGER_VIEW (window)), _g_object_unref0 (self->priv->main_window), _tmp0_);
+#line 368 "moonshot-server.c"
        return self;
 }
 
 
+#line 8 "moonshot-server.vala"
 MoonshotServer* moonshot_server_new (GtkWindow* window) {
+#line 8 "moonshot-server.vala"
        return moonshot_server_construct (TYPE_MOONSHOT_SERVER, window);
+#line 377 "moonshot-server.c"
 }
 
 
@@ -421,15 +430,22 @@ static void moonshot_server_get_identity_ready (GObject* source_object, GAsyncRe
 }
 
 
+#line 27 "moonshot-server.vala"
 static void _lambda4_ (IdentityRequest* IdentityRequest, Block3Data* _data3_) {
+#line 436 "moonshot-server.c"
        MoonshotServer * self;
        self = _data3_->self;
+#line 27 "moonshot-server.vala"
        g_return_if_fail (IdentityRequest != NULL);
+#line 27 "moonshot-server.vala"
        moonshot_server_get_identity_co (_data3_->_async_data_);
+#line 443 "moonshot-server.c"
 }
 
 
+#line 27 "moonshot-server.vala"
 static void __lambda4__return_identity_callback (IdentityRequest* request, gpointer self) {
+#line 449 "moonshot-server.c"
        _lambda4_ (request, self);
 }
 
@@ -463,43 +479,78 @@ static gboolean moonshot_server_get_identity_co (MoonshotServerGetIdentityData*
        data->_data3_->self = g_object_ref (data->self);
        data->_data3_->_async_data_ = data;
        data->request = identity_request_new (data->self->priv->main_window, data->nai, data->password, data->service);
+#line 27 "moonshot-server.vala"
        identity_request_set_callback (data->request, __lambda4__return_identity_callback, block3_data_ref (data->_data3_), block3_data_unref);
+#line 28 "moonshot-server.vala"
        identity_request_execute (data->request);
+#line 487 "moonshot-server.c"
        data->_state_ = 1;
        return FALSE;
        _state_1:
        ;
+#line 31 "moonshot-server.vala"
        data->nai_out = (data->_tmp0_ = g_strdup (""), _g_free0 (data->nai_out), data->_tmp0_);
+#line 32 "moonshot-server.vala"
        data->password_out = (data->_tmp1_ = g_strdup (""), _g_free0 (data->password_out), data->_tmp1_);
+#line 33 "moonshot-server.vala"
        data->server_certificate_hash = (data->_tmp2_ = g_strdup (""), _g_free0 (data->server_certificate_hash), data->_tmp2_);
+#line 34 "moonshot-server.vala"
        data->ca_certificate = (data->_tmp3_ = g_strdup (""), _g_free0 (data->ca_certificate), data->_tmp3_);
+#line 35 "moonshot-server.vala"
        data->subject_name_constraint = (data->_tmp4_ = g_strdup (""), _g_free0 (data->subject_name_constraint), data->_tmp4_);
+#line 36 "moonshot-server.vala"
        data->subject_alt_name_constraint = (data->_tmp5_ = g_strdup (""), _g_free0 (data->subject_alt_name_constraint), data->_tmp5_);
+#line 504 "moonshot-server.c"
        data->id_card = _g_object_ref0 (data->request->id_card);
+#line 40 "moonshot-server.vala"
        if (data->id_card != NULL) {
+#line 41 "moonshot-server.vala"
                data->nai_out = (data->_tmp6_ = g_strdup (id_card_get_nai (data->id_card)), _g_free0 (data->nai_out), data->_tmp6_);
+#line 42 "moonshot-server.vala"
                data->password_out = (data->_tmp7_ = g_strdup (id_card_get_password (data->id_card)), _g_free0 (data->password_out), data->_tmp7_);
+#line 44 "moonshot-server.vala"
                data->server_certificate_hash = (data->_tmp8_ = g_strdup (trust_anchor_get_server_cert (id_card_get_trust_anchor (data->id_card))), _g_free0 (data->server_certificate_hash), data->_tmp8_);
+#line 45 "moonshot-server.vala"
                data->ca_certificate = (data->_tmp9_ = g_strdup (trust_anchor_get_ca_cert (id_card_get_trust_anchor (data->id_card))), _g_free0 (data->ca_certificate), data->_tmp9_);
+#line 46 "moonshot-server.vala"
                data->subject_name_constraint = (data->_tmp10_ = g_strdup (trust_anchor_get_subject (id_card_get_trust_anchor (data->id_card))), _g_free0 (data->subject_name_constraint), data->_tmp10_);
+#line 47 "moonshot-server.vala"
                data->subject_alt_name_constraint = (data->_tmp11_ = g_strdup (trust_anchor_get_subject_alt (id_card_get_trust_anchor (data->id_card))), _g_free0 (data->subject_alt_name_constraint), data->_tmp11_);
+#line 49 "moonshot-server.vala"
                if (data->nai_out == NULL) {
+#line 50 "moonshot-server.vala"
                        data->nai_out = (data->_tmp12_ = g_strdup (""), _g_free0 (data->nai_out), data->_tmp12_);
+#line 524 "moonshot-server.c"
                }
+#line 51 "moonshot-server.vala"
                if (data->password_out == NULL) {
+#line 52 "moonshot-server.vala"
                        data->password_out = (data->_tmp13_ = g_strdup (""), _g_free0 (data->password_out), data->_tmp13_);
+#line 530 "moonshot-server.c"
                }
+#line 53 "moonshot-server.vala"
                if (data->server_certificate_hash == NULL) {
+#line 54 "moonshot-server.vala"
                        data->server_certificate_hash = (data->_tmp14_ = g_strdup (""), _g_free0 (data->server_certificate_hash), data->_tmp14_);
+#line 536 "moonshot-server.c"
                }
+#line 55 "moonshot-server.vala"
                if (data->ca_certificate == NULL) {
+#line 56 "moonshot-server.vala"
                        data->ca_certificate = (data->_tmp15_ = g_strdup (""), _g_free0 (data->ca_certificate), data->_tmp15_);
+#line 542 "moonshot-server.c"
                }
+#line 57 "moonshot-server.vala"
                if (data->subject_name_constraint == NULL) {
+#line 58 "moonshot-server.vala"
                        data->subject_name_constraint = (data->_tmp16_ = g_strdup (""), _g_free0 (data->subject_name_constraint), data->_tmp16_);
+#line 548 "moonshot-server.c"
                }
+#line 59 "moonshot-server.vala"
                if (data->subject_alt_name_constraint == NULL) {
+#line 60 "moonshot-server.vala"
                        data->subject_alt_name_constraint = (data->_tmp17_ = g_strdup (""), _g_free0 (data->subject_alt_name_constraint), data->_tmp17_);
+#line 554 "moonshot-server.c"
                }
                data->result = TRUE;
                _g_object_unref0 (data->id_card);
@@ -590,15 +641,22 @@ static void moonshot_server_get_default_identity_ready (GObject* source_object,
 }
 
 
+#line 76 "moonshot-server.vala"
 static void _lambda5_ (IdentityRequest* IdentityRequest, Block4Data* _data4_) {
+#line 647 "moonshot-server.c"
        MoonshotServer * self;
        self = _data4_->self;
+#line 76 "moonshot-server.vala"
        g_return_if_fail (IdentityRequest != NULL);
+#line 76 "moonshot-server.vala"
        moonshot_server_get_default_identity_co (_data4_->_async_data_);
+#line 654 "moonshot-server.c"
 }
 
 
+#line 76 "moonshot-server.vala"
 static void __lambda5__return_identity_callback (IdentityRequest* request, gpointer self) {
+#line 660 "moonshot-server.c"
        _lambda5_ (request, self);
 }
 
@@ -632,42 +690,76 @@ static gboolean moonshot_server_get_default_identity_co (MoonshotServerGetDefaul
        data->_data4_->self = g_object_ref (data->self);
        data->_data4_->_async_data_ = data;
        data->request = identity_request_new_default (data->self->priv->main_window);
+#line 76 "moonshot-server.vala"
        identity_request_set_callback (data->request, __lambda5__return_identity_callback, block4_data_ref (data->_data4_), block4_data_unref);
+#line 77 "moonshot-server.vala"
        identity_request_execute (data->request);
+#line 698 "moonshot-server.c"
        data->_state_ = 2;
        return FALSE;
        _state_2:
        ;
+#line 80 "moonshot-server.vala"
        data->nai_out = (data->_tmp0_ = g_strdup (""), _g_free0 (data->nai_out), data->_tmp0_);
+#line 81 "moonshot-server.vala"
        data->password_out = (data->_tmp1_ = g_strdup (""), _g_free0 (data->password_out), data->_tmp1_);
+#line 82 "moonshot-server.vala"
        data->server_certificate_hash = (data->_tmp2_ = g_strdup (""), _g_free0 (data->server_certificate_hash), data->_tmp2_);
+#line 83 "moonshot-server.vala"
        data->ca_certificate = (data->_tmp3_ = g_strdup (""), _g_free0 (data->ca_certificate), data->_tmp3_);
+#line 84 "moonshot-server.vala"
        data->subject_name_constraint = (data->_tmp4_ = g_strdup (""), _g_free0 (data->subject_name_constraint), data->_tmp4_);
+#line 85 "moonshot-server.vala"
        data->subject_alt_name_constraint = (data->_tmp5_ = g_strdup (""), _g_free0 (data->subject_alt_name_constraint), data->_tmp5_);
+#line 87 "moonshot-server.vala"
        if (data->request->id_card != NULL) {
+#line 89 "moonshot-server.vala"
                data->nai_out = (data->_tmp6_ = g_strdup (id_card_get_nai (data->request->id_card)), _g_free0 (data->nai_out), data->_tmp6_);
+#line 90 "moonshot-server.vala"
                data->password_out = (data->_tmp7_ = g_strdup (id_card_get_password (data->request->id_card)), _g_free0 (data->password_out), data->_tmp7_);
+#line 92 "moonshot-server.vala"
                data->server_certificate_hash = (data->_tmp8_ = g_strdup (trust_anchor_get_server_cert (id_card_get_trust_anchor (data->request->id_card))), _g_free0 (data->server_certificate_hash), data->_tmp8_);
+#line 93 "moonshot-server.vala"
                data->ca_certificate = (data->_tmp9_ = g_strdup (trust_anchor_get_ca_cert (id_card_get_trust_anchor (data->request->id_card))), _g_free0 (data->ca_certificate), data->_tmp9_);
+#line 94 "moonshot-server.vala"
                data->subject_name_constraint = (data->_tmp10_ = g_strdup (trust_anchor_get_subject (id_card_get_trust_anchor (data->request->id_card))), _g_free0 (data->subject_name_constraint), data->_tmp10_);
+#line 95 "moonshot-server.vala"
                data->subject_alt_name_constraint = (data->_tmp11_ = g_strdup (trust_anchor_get_subject_alt (id_card_get_trust_anchor (data->request->id_card))), _g_free0 (data->subject_alt_name_constraint), data->_tmp11_);
+#line 97 "moonshot-server.vala"
                if (data->nai_out == NULL) {
+#line 98 "moonshot-server.vala"
                        data->nai_out = (data->_tmp12_ = g_strdup (""), _g_free0 (data->nai_out), data->_tmp12_);
+#line 733 "moonshot-server.c"
                }
+#line 99 "moonshot-server.vala"
                if (data->password_out == NULL) {
+#line 100 "moonshot-server.vala"
                        data->password_out = (data->_tmp13_ = g_strdup (""), _g_free0 (data->password_out), data->_tmp13_);
+#line 739 "moonshot-server.c"
                }
+#line 101 "moonshot-server.vala"
                if (data->server_certificate_hash == NULL) {
+#line 102 "moonshot-server.vala"
                        data->server_certificate_hash = (data->_tmp14_ = g_strdup (""), _g_free0 (data->server_certificate_hash), data->_tmp14_);
+#line 745 "moonshot-server.c"
                }
+#line 103 "moonshot-server.vala"
                if (data->ca_certificate == NULL) {
+#line 104 "moonshot-server.vala"
                        data->ca_certificate = (data->_tmp15_ = g_strdup (""), _g_free0 (data->ca_certificate), data->_tmp15_);
+#line 751 "moonshot-server.c"
                }
+#line 105 "moonshot-server.vala"
                if (data->subject_name_constraint == NULL) {
+#line 106 "moonshot-server.vala"
                        data->subject_name_constraint = (data->_tmp16_ = g_strdup (""), _g_free0 (data->subject_name_constraint), data->_tmp16_);
+#line 757 "moonshot-server.c"
                }
+#line 107 "moonshot-server.vala"
                if (data->subject_alt_name_constraint == NULL) {
+#line 108 "moonshot-server.vala"
                        data->subject_alt_name_constraint = (data->_tmp17_ = g_strdup (""), _g_free0 (data->subject_alt_name_constraint), data->_tmp17_);
+#line 763 "moonshot-server.c"
                }
                data->result = TRUE;
                _g_object_unref0 (data->request);
@@ -719,44 +811,64 @@ static void _vala_Rule_array_free (Rule* array, gint array_length) {
 }
 
 
+#line 116 "moonshot-server.vala"
 gboolean moonshot_server_install_id_card (MoonshotServer* self, const char* display_name, const char* user_name, const char* password, const char* realm, char** rules_patterns, int rules_patterns_length1, char** rules_always_confirm, int rules_always_confirm_length1, char** services, int services_length1, const char* ca_cert, const char* subject, const char* subject_alt, const char* server_cert) {
+#line 817 "moonshot-server.c"
        gboolean result = FALSE;
        IdCard* idcard;
        char** _tmp0_;
+#line 116 "moonshot-server.vala"
        g_return_val_if_fail (self != NULL, FALSE);
+#line 116 "moonshot-server.vala"
        g_return_val_if_fail (display_name != NULL, FALSE);
+#line 116 "moonshot-server.vala"
        g_return_val_if_fail (user_name != NULL, FALSE);
-       g_return_val_if_fail (password != NULL, FALSE);
-       g_return_val_if_fail (realm != NULL, FALSE);
-       g_return_val_if_fail (ca_cert != NULL, FALSE);
-       g_return_val_if_fail (subject != NULL, FALSE);
-       g_return_val_if_fail (subject_alt != NULL, FALSE);
-       g_return_val_if_fail (server_cert != NULL, FALSE);
+#line 128 "moonshot-server.vala"
        idcard = id_card_new ();
+#line 130 "moonshot-server.vala"
        id_card_set_display_name (idcard, display_name);
+#line 131 "moonshot-server.vala"
        id_card_set_username (idcard, user_name);
+#line 132 "moonshot-server.vala"
        id_card_set_password (idcard, password);
+#line 133 "moonshot-server.vala"
        id_card_set_issuer (idcard, realm);
+#line 134 "moonshot-server.vala"
        _tmp0_ = services;
+#line 134 "moonshot-server.vala"
        id_card_set_services (idcard, _tmp0_, services_length1);
+#line 135 "moonshot-server.vala"
        trust_anchor_set_ca_cert (id_card_get_trust_anchor (idcard), ca_cert);
+#line 136 "moonshot-server.vala"
        trust_anchor_set_subject (id_card_get_trust_anchor (idcard), subject);
+#line 137 "moonshot-server.vala"
        trust_anchor_set_subject_alt (id_card_get_trust_anchor (idcard), subject_alt);
+#line 138 "moonshot-server.vala"
        trust_anchor_set_server_cert (id_card_get_trust_anchor (idcard), server_cert);
+#line 140 "moonshot-server.vala"
        if (rules_patterns_length1 == rules_always_confirm_length1) {
+#line 851 "moonshot-server.c"
                Rule* _tmp1_;
                gint _tmp1__length1;
                Rule* _tmp2_;
+#line 142 "moonshot-server.vala"
                _tmp2_ = (_tmp1_ = g_new0 (Rule, rules_patterns_length1), _tmp1__length1 = rules_patterns_length1, _tmp1_);
+#line 142 "moonshot-server.vala"
                id_card_set_rules (idcard, _tmp2_, rules_patterns_length1);
+#line 859 "moonshot-server.c"
                _tmp1_ = (_vala_Rule_array_free (_tmp1_, _tmp1__length1), NULL);
                {
                        gint i;
+#line 144 "moonshot-server.vala"
                        i = 0;
+#line 865 "moonshot-server.c"
                        {
                                gboolean _tmp3_;
+#line 144 "moonshot-server.vala"
                                _tmp3_ = TRUE;
+#line 144 "moonshot-server.vala"
                                while (TRUE) {
+#line 872 "moonshot-server.c"
                                        gint _tmp4_;
                                        gint _tmp5_;
                                        char* *_tmp6_;
@@ -764,41 +876,68 @@ gboolean moonshot_server_install_id_card (MoonshotServer* self, const char* disp
                                        gint _tmp8_;
                                        char* *_tmp9_;
                                        char* _tmp10_;
+#line 144 "moonshot-server.vala"
                                        if (!_tmp3_) {
+#line 144 "moonshot-server.vala"
                                                i++;
+#line 884 "moonshot-server.c"
                                        }
+#line 144 "moonshot-server.vala"
                                        _tmp3_ = FALSE;
+#line 144 "moonshot-server.vala"
                                        if (!(i < _tmp4_)) {
+#line 144 "moonshot-server.vala"
                                                break;
+#line 892 "moonshot-server.c"
                                        }
+#line 146 "moonshot-server.vala"
                                        _tmp6_ = &id_card_get_rules (idcard, &_tmp5_)[i].pattern;
+#line 146 "moonshot-server.vala"
                                        (*_tmp6_) = (_tmp7_ = g_strdup (rules_patterns[i]), _g_free0 ((*_tmp6_)), _tmp7_);
+#line 147 "moonshot-server.vala"
                                        _tmp9_ = &id_card_get_rules (idcard, &_tmp8_)[i].always_confirm;
+#line 147 "moonshot-server.vala"
                                        (*_tmp9_) = (_tmp10_ = g_strdup (rules_always_confirm[i]), _g_free0 ((*_tmp9_)), _tmp10_);
+#line 902 "moonshot-server.c"
                                }
                        }
                }
        }
        result = identity_manager_view_add_identity (self->priv->main_window, idcard);
        _g_object_unref0 (idcard);
+#line 151 "moonshot-server.vala"
        return result;
+#line 911 "moonshot-server.c"
 }
 
 
-gboolean moonshot_server_install_from_file (MoonshotServer* self, const char* file_name) {
-       gboolean result = FALSE;
+#line 155 "moonshot-server.vala"
+gint moonshot_server_install_from_file (MoonshotServer* self, const char* file_name) {
+#line 917 "moonshot-server.c"
+       gint result = 0;
        WebProvisioningParser* webp;
        gboolean _result_;
-       g_return_val_if_fail (self != NULL, FALSE);
-       g_return_val_if_fail (file_name != NULL, FALSE);
+       gint installed_cards;
+#line 155 "moonshot-server.vala"
+       g_return_val_if_fail (self != NULL, 0);
+#line 155 "moonshot-server.vala"
+       g_return_val_if_fail (file_name != NULL, 0);
+#line 157 "moonshot-server.vala"
        webp = web_provisioning_parser_new (file_name);
+#line 159 "moonshot-server.vala"
        web_provisioning_parser_parse (webp);
+#line 160 "moonshot-server.vala"
        _result_ = FALSE;
+#line 161 "moonshot-server.vala"
+       installed_cards = 0;
+#line 934 "moonshot-server.c"
        {
                IdCard** card_collection;
                int card_collection_length1;
                int card_it;
+#line 162 "moonshot-server.vala"
                card_collection = web_provisioning_cards;
+#line 941 "moonshot-server.c"
                card_collection_length1 = web_provisioning_cards_length1;
                for (card_it = 0; card_it < web_provisioning_cards_length1; card_it = card_it + 1) {
                        IdCard* card;
@@ -818,21 +957,29 @@ gboolean moonshot_server_install_from_file (MoonshotServer* self, const char* fi
                                gint _tmp13_;
                                rules_patterns = (_tmp1_ = (_tmp0_ = g_new0 (char*, 0 + 1), _tmp0_), rules_patterns_length1 = 0, _rules_patterns_size_ = rules_patterns_length1, _tmp1_);
                                rules_always_confirm = (_tmp3_ = (_tmp2_ = g_new0 (char*, 0 + 1), _tmp2_), rules_always_confirm_length1 = 0, _rules_always_confirm_size_ = rules_always_confirm_length1, _tmp3_);
+#line 167 "moonshot-server.vala"
                                if (_tmp4_ > 0) {
+#line 963 "moonshot-server.c"
                                        gint i;
                                        gint _tmp5_;
                                        char** _tmp6_;
                                        gint _tmp7_;
                                        char** _tmp8_;
+#line 169 "moonshot-server.vala"
                                        i = 0;
+#line 170 "moonshot-server.vala"
                                        rules_patterns = (_tmp6_ = g_new0 (char*, _tmp5_ + 1), rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL), rules_patterns_length1 = _tmp5_, _rules_patterns_size_ = rules_patterns_length1, _tmp6_);
+#line 171 "moonshot-server.vala"
                                        rules_always_confirm = (_tmp8_ = g_new0 (char*, _tmp7_ + 1), rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL), rules_always_confirm_length1 = _tmp7_, _rules_always_confirm_size_ = rules_always_confirm_length1, _tmp8_);
+#line 975 "moonshot-server.c"
                                        {
                                                gint _tmp9_;
                                                Rule* r_collection;
                                                int r_collection_length1;
                                                int r_it;
+#line 172 "moonshot-server.vala"
                                                r_collection = id_card_get_rules (card, &_tmp9_);
+#line 983 "moonshot-server.c"
                                                r_collection_length1 = _tmp9_;
                                                for (r_it = 0; r_it < _tmp9_; r_it = r_it + 1) {
                                                        Rule _tmp12_ = {0};
@@ -841,24 +988,37 @@ gboolean moonshot_server_install_from_file (MoonshotServer* self, const char* fi
                                                        {
                                                                char* _tmp10_;
                                                                char* _tmp11_;
+#line 174 "moonshot-server.vala"
                                                                rules_patterns[i] = (_tmp10_ = g_strdup (r.pattern), _g_free0 (rules_patterns[i]), _tmp10_);
+#line 175 "moonshot-server.vala"
                                                                rules_always_confirm[i] = (_tmp11_ = g_strdup (r.always_confirm), _g_free0 (rules_always_confirm[i]), _tmp11_);
+#line 176 "moonshot-server.vala"
                                                                i++;
+#line 998 "moonshot-server.c"
                                                                rule_destroy (&r);
                                                        }
                                                }
                                        }
                                }
+#line 180 "moonshot-server.vala"
                                _result_ = moonshot_server_install_id_card (self, id_card_get_display_name (card), id_card_get_username (card), id_card_get_password (card), id_card_get_issuer (card), rules_patterns, rules_patterns_length1, rules_always_confirm, rules_always_confirm_length1, id_card_get_services (card, &_tmp13_), _tmp13_, trust_anchor_get_ca_cert (id_card_get_trust_anchor (card)), trust_anchor_get_subject (id_card_get_trust_anchor (card)), trust_anchor_get_subject_alt (id_card_get_trust_anchor (card)), trust_anchor_get_server_cert (id_card_get_trust_anchor (card)));
+#line 191 "moonshot-server.vala"
+                               if (_result_) {
+#line 192 "moonshot-server.vala"
+                                       installed_cards++;
+#line 1010 "moonshot-server.c"
+                               }
                                rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL);
                                rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
                                _g_object_unref0 (card);
                        }
                }
        }
-       result = TRUE;
+       result = installed_cards;
        _web_provisioning_parser_unref0 (webp);
+#line 195 "moonshot-server.vala"
        return result;
+#line 1022 "moonshot-server.c"
 }
 
 
@@ -1153,7 +1313,7 @@ static void _dbus_moonshot_server_install_from_file (MoonshotServer* self, GVari
        GError* error;
        char* file_name = NULL;
        GVariant* _tmp23_;
-       gboolean result;
+       gint result;
        GVariantIter _arguments_iter;
        GVariant* _reply;
        GVariantBuilder _reply_builder;
@@ -1165,7 +1325,7 @@ static void _dbus_moonshot_server_install_from_file (MoonshotServer* self, GVari
        result = moonshot_server_install_from_file (self, file_name);
        g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
        _g_free0 (file_name);
-       g_variant_builder_add_value (&_reply_builder, g_variant_new_boolean (result));
+       g_variant_builder_add_value (&_reply_builder, g_variant_new_int32 (result));
        _reply = g_variant_builder_end (&_reply_builder);
        g_dbus_method_invocation_return_value (invocation, _reply);
 }
index 6f71deb..1574d52 100644 (file)
@@ -20,14 +20,21 @@ GdkPixbuf* find_icon (const char* name, gint size);
 
 
 
+#line 5 "moonshot-utils.vala"
 GdkPixbuf* find_icon_sized (const char* name, GtkIconSize icon_size) {
+#line 26 "moonshot-utils.c"
        GdkPixbuf* result = NULL;
        gint width = 0;
        gint height = 0;
+#line 5 "moonshot-utils.vala"
        g_return_val_if_fail (name != NULL, NULL);
+#line 8 "moonshot-utils.vala"
        gtk_icon_size_lookup (icon_size, &width, &height);
+#line 34 "moonshot-utils.c"
        result = find_icon (name, width);
+#line 9 "moonshot-utils.vala"
        return result;
+#line 38 "moonshot-utils.c"
 }
 
 
@@ -36,23 +43,31 @@ static gpointer _g_object_ref0 (gpointer self) {
 }
 
 
+#line 17 "moonshot-utils.vala"
 GdkPixbuf* find_icon (const char* name, gint size) {
+#line 49 "moonshot-utils.c"
        GdkPixbuf* result = NULL;
        GError * _inner_error_ = NULL;
+#line 17 "moonshot-utils.vala"
        g_return_val_if_fail (name != NULL, NULL);
+#line 54 "moonshot-utils.c"
        {
                GtkIconTheme* icon_theme;
                GdkPixbuf* _tmp0_;
-               g_print ("Linux\n");
+#line 33 "moonshot-utils.vala"
                icon_theme = _g_object_ref0 (gtk_icon_theme_get_default ());
+#line 34 "moonshot-utils.vala"
                _tmp0_ = gtk_icon_theme_load_icon (icon_theme, name, size, GTK_ICON_LOOKUP_FORCE_SIZE, &_inner_error_);
+#line 62 "moonshot-utils.c"
                if (_inner_error_ != NULL) {
                        _g_object_unref0 (icon_theme);
                        goto __catch7_g_error;
                }
                result = _tmp0_;
                _g_object_unref0 (icon_theme);
+#line 34 "moonshot-utils.vala"
                return result;
+#line 71 "moonshot-utils.c"
        }
        goto __finally7;
        __catch7_g_error:
@@ -61,10 +76,14 @@ GdkPixbuf* find_icon (const char* name, gint size) {
                e = _inner_error_;
                _inner_error_ = NULL;
                {
+#line 39 "moonshot-utils.vala"
                        fprintf (stdout, "Error loading icon '%s': %s\n", name, e->message);
+#line 82 "moonshot-utils.c"
                        result = NULL;
                        _g_error_free0 (e);
+#line 40 "moonshot-utils.vala"
                        return result;
+#line 87 "moonshot-utils.c"
                }
        }
        __finally7: