/* moonshot-password-dialog.c generated by valac 0.24.0, the Vala compiler
 * generated from moonshot-password-dialog.vala, do not modify */

/*
 * Copyright (c) 2011-2014, JANET(UK)
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * 3. Neither the name of JANET(UK) nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
*/

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <glib/gi18n-lib.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include <math.h>
#include <atk/atk.h>


#define TYPE_ADD_PASSWORD_DIALOG (add_password_dialog_get_type ())
#define ADD_PASSWORD_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_PASSWORD_DIALOG, AddPasswordDialog))
#define ADD_PASSWORD_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_PASSWORD_DIALOG, AddPasswordDialogClass))
#define IS_ADD_PASSWORD_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_PASSWORD_DIALOG))
#define IS_ADD_PASSWORD_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_PASSWORD_DIALOG))
#define ADD_PASSWORD_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_PASSWORD_DIALOG, AddPasswordDialogClass))

typedef struct _AddPasswordDialog AddPasswordDialog;
typedef struct _AddPasswordDialogClass AddPasswordDialogClass;
typedef struct _AddPasswordDialogPrivate AddPasswordDialogPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define TYPE_ID_CARD (id_card_get_type ())
#define ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ID_CARD, IdCard))
#define ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ID_CARD, IdCardClass))
#define IS_ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ID_CARD))
#define IS_ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ID_CARD))
#define ID_CARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ID_CARD, IdCardClass))

typedef struct _IdCard IdCard;
typedef struct _IdCardClass IdCardClass;

#define TYPE_IDENTITY_REQUEST (identity_request_get_type ())
#define IDENTITY_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_REQUEST, IdentityRequest))
#define IDENTITY_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_REQUEST, IdentityRequestClass))
#define IS_IDENTITY_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_REQUEST))
#define IS_IDENTITY_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_REQUEST))
#define IDENTITY_REQUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_REQUEST, IdentityRequestClass))

typedef struct _IdentityRequest IdentityRequest;
typedef struct _IdentityRequestClass IdentityRequestClass;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _IdentityRequestPrivate IdentityRequestPrivate;

struct _AddPasswordDialog {
	GtkDialog parent_instance;
	AddPasswordDialogPrivate * priv;
};

struct _AddPasswordDialogClass {
	GtkDialogClass parent_class;
};

struct _AddPasswordDialogPrivate {
	GtkEntry* password_entry;
	GtkCheckButton* remember_checkbutton;
};

struct _IdentityRequest {
	GObject parent_instance;
	IdentityRequestPrivate * priv;
	IdCard* id_card;
	gboolean complete;
	gboolean select_default;
	gchar* nai;
	gchar* password;
	gchar* service;
	GSList* candidates;
};

struct _IdentityRequestClass {
	GObjectClass parent_class;
};


static gpointer add_password_dialog_parent_class = NULL;

GType add_password_dialog_get_type (void) G_GNUC_CONST;
#define ADD_PASSWORD_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADD_PASSWORD_DIALOG, AddPasswordDialogPrivate))
enum  {
	ADD_PASSWORD_DIALOG_DUMMY_PROPERTY,
	ADD_PASSWORD_DIALOG_PASSWORD,
	ADD_PASSWORD_DIALOG_REMEMBER
};
GType id_card_get_type (void) G_GNUC_CONST;
GType identity_request_get_type (void) G_GNUC_CONST;
AddPasswordDialog* add_password_dialog_new (IdCard* id_card, IdentityRequest* request);
AddPasswordDialog* add_password_dialog_construct (GType object_type, IdCard* id_card, IdentityRequest* request);
const gchar* id_card_get_display_name (IdCard* self);
const gchar* id_card_get_nai (IdCard* self);
static void add_password_dialog_set_atk_relation (AddPasswordDialog* self, GtkWidget* widget, GtkWidget* target_widget, AtkRelationType relationship);
const gchar* add_password_dialog_get_password (AddPasswordDialog* self);
gboolean add_password_dialog_get_remember (AddPasswordDialog* self);
static void add_password_dialog_finalize (GObject* obj);
static void _vala_add_password_dialog_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);


static gpointer _g_object_ref0 (gpointer self) {
#line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	return self ? g_object_ref (self) : NULL;
#line 138 "moonshot-password-dialog.c"
}


AddPasswordDialog* add_password_dialog_construct (GType object_type, IdCard* id_card, IdentityRequest* request) {
	AddPasswordDialog * self = NULL;
	const gchar* _tmp0_ = NULL;
	IdCard* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	IdentityRequest* _tmp6_ = NULL;
	GtkWidget* content_area = NULL;
	GtkWidget* _tmp11_ = NULL;
	GtkWidget* _tmp12_ = NULL;
	GtkWidget* _tmp13_ = NULL;
	GtkLabel* service_label = NULL;
	GtkLabel* service_value = NULL;
	IdentityRequest* _tmp14_ = NULL;
	GtkLabel* nai_label = NULL;
	const gchar* _tmp22_ = NULL;
	GtkLabel* _tmp23_ = NULL;
	GtkLabel* _tmp24_ = NULL;
	GtkLabel* nai_value = NULL;
	IdCard* _tmp25_ = NULL;
	const gchar* _tmp26_ = NULL;
	const gchar* _tmp27_ = NULL;
	GtkLabel* _tmp28_ = NULL;
	GtkLabel* _tmp29_ = NULL;
	GtkLabel* password_label = NULL;
	const gchar* _tmp30_ = NULL;
	GtkLabel* _tmp31_ = NULL;
	GtkLabel* _tmp32_ = NULL;
	GtkEntry* _tmp33_ = NULL;
	GtkEntry* _tmp34_ = NULL;
	GtkEntry* _tmp35_ = NULL;
	GtkEntry* _tmp36_ = NULL;
	const gchar* _tmp37_ = NULL;
	GtkCheckButton* _tmp38_ = NULL;
	GtkEntry* _tmp39_ = NULL;
	GtkEntry* _tmp40_ = NULL;
	GtkTable* table = NULL;
	GtkTable* _tmp41_ = NULL;
	gint row = 0;
	GtkTable* _tmp42_ = NULL;
	GtkTable* _tmp43_ = NULL;
	IdentityRequest* _tmp44_ = NULL;
	GtkTable* _tmp54_ = NULL;
	GtkLabel* _tmp55_ = NULL;
	gint _tmp56_ = 0;
	gint _tmp57_ = 0;
	GtkTable* _tmp58_ = NULL;
	GtkLabel* _tmp59_ = NULL;
	gint _tmp60_ = 0;
	gint _tmp61_ = 0;
	gint _tmp62_ = 0;
	GtkTable* _tmp63_ = NULL;
	GtkLabel* _tmp64_ = NULL;
	gint _tmp65_ = 0;
	gint _tmp66_ = 0;
	GtkTable* _tmp67_ = NULL;
	GtkEntry* _tmp68_ = NULL;
	gint _tmp69_ = 0;
	gint _tmp70_ = 0;
	gint _tmp71_ = 0;
	GtkTable* _tmp72_ = NULL;
	GtkCheckButton* _tmp73_ = NULL;
	gint _tmp74_ = 0;
	gint _tmp75_ = 0;
	GtkVBox* vbox = NULL;
	GtkVBox* _tmp76_ = NULL;
	GtkTable* _tmp77_ = NULL;
	GtkWidget* _tmp78_ = NULL;
#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	g_return_val_if_fail (id_card != NULL, NULL);
#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	self = (AddPasswordDialog*) g_object_new (object_type, NULL);
#line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp0_ = _ ("Please enter password for ");
#line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp1_ = id_card;
#line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp2_ = id_card_get_display_name (_tmp1_);
#line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp3_ = _tmp2_;
#line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp4_ = g_strconcat (_tmp0_, _tmp3_, NULL);
#line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp5_ = _tmp4_;
#line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_window_set_title ((GtkWindow*) self, _tmp5_);
#line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_g_free0 (_tmp5_);
#line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_window_set_modal ((GtkWindow*) self, TRUE);
#line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp6_ = request;
#line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	if (_tmp6_ != NULL) {
#line 238 "moonshot-password-dialog.c"
		const gchar* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
#line 53 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp7_ = _ ("Send");
#line 53 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp8_ = _ ("Return to application");
#line 53 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		gtk_dialog_add_buttons ((GtkDialog*) self, _tmp7_, GTK_RESPONSE_OK, _tmp8_, GTK_RESPONSE_CANCEL, NULL);
#line 247 "moonshot-password-dialog.c"
	} else {
		const gchar* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp9_ = _ ("Done");
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp10_ = _ ("Cancel");
#line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		gtk_dialog_add_buttons ((GtkDialog*) self, _tmp9_, GTK_RESPONSE_OK, _tmp10_, GTK_RESPONSE_CANCEL, NULL);
#line 257 "moonshot-password-dialog.c"
	}
#line 59 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_dialog_set_default_response ((GtkDialog*) self, (gint) GTK_RESPONSE_OK);
#line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp11_ = gtk_dialog_get_content_area ((GtkDialog*) self);
#line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp12_ = _g_object_ref0 (_tmp11_);
#line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	content_area = _tmp12_;
#line 62 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp13_ = content_area;
#line 62 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_box_set_spacing (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GTK_TYPE_BOX, GtkBox), 12);
#line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	service_label = NULL;
#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	service_value = NULL;
#line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp14_ = request;
#line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	if (_tmp14_ != NULL) {
#line 279 "moonshot-password-dialog.c"
		const gchar* _tmp15_ = NULL;
		GtkLabel* _tmp16_ = NULL;
		GtkLabel* _tmp17_ = NULL;
		IdentityRequest* _tmp18_ = NULL;
		const gchar* _tmp19_ = NULL;
		GtkLabel* _tmp20_ = NULL;
		GtkLabel* _tmp21_ = NULL;
#line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp15_ = _ ("for use with:");
#line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp16_ = (GtkLabel*) gtk_label_new (_tmp15_);
#line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		g_object_ref_sink (_tmp16_);
#line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_g_object_unref0 (service_label);
#line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		service_label = _tmp16_;
#line 67 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp17_ = service_label;
#line 67 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		gtk_misc_set_alignment ((GtkMisc*) _tmp17_, (gfloat) 1, (gfloat) 0.5);
#line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp18_ = request;
#line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp19_ = _tmp18_->service;
#line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp20_ = (GtkLabel*) gtk_label_new (_tmp19_);
#line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		g_object_ref_sink (_tmp20_);
#line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_g_object_unref0 (service_value);
#line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		service_value = _tmp20_;
#line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp21_ = service_value;
#line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		gtk_misc_set_alignment ((GtkMisc*) _tmp21_, (gfloat) 0, (gfloat) 0.5);
#line 317 "moonshot-password-dialog.c"
	}
#line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp22_ = _ ("Network Access Identifier:");
#line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp23_ = (GtkLabel*) gtk_label_new (_tmp22_);
#line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	g_object_ref_sink (_tmp23_);
#line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	nai_label = _tmp23_;
#line 73 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp24_ = nai_label;
#line 73 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_misc_set_alignment ((GtkMisc*) _tmp24_, (gfloat) 1, (gfloat) 0.5);
#line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp25_ = id_card;
#line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp26_ = id_card_get_nai (_tmp25_);
#line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp27_ = _tmp26_;
#line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp28_ = (GtkLabel*) gtk_label_new (_tmp27_);
#line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	g_object_ref_sink (_tmp28_);
#line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	nai_value = _tmp28_;
#line 75 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp29_ = nai_value;
#line 75 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_misc_set_alignment ((GtkMisc*) _tmp29_, (gfloat) 0, (gfloat) 0.5);
#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp30_ = _ ("Password:");
#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp31_ = (GtkLabel*) gtk_label_new (_tmp30_);
#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	g_object_ref_sink (_tmp31_);
#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	password_label = _tmp31_;
#line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp32_ = password_label;
#line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_misc_set_alignment ((GtkMisc*) _tmp32_, (gfloat) 1, (gfloat) 0.5);
#line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp33_ = (GtkEntry*) gtk_entry_new ();
#line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	g_object_ref_sink (_tmp33_);
#line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_g_object_unref0 (self->priv->password_entry);
#line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	self->priv->password_entry = _tmp33_;
#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp34_ = self->priv->password_entry;
#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_entry_set_invisible_char (_tmp34_, (gunichar) '*');
#line 81 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp35_ = self->priv->password_entry;
#line 81 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_entry_set_visibility (_tmp35_, FALSE);
#line 82 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp36_ = self->priv->password_entry;
#line 82 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_entry_set_activates_default (_tmp36_, TRUE);
#line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp37_ = _ ("Remember password");
#line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp38_ = (GtkCheckButton*) gtk_check_button_new_with_label (_tmp37_);
#line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	g_object_ref_sink (_tmp38_);
#line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_g_object_unref0 (self->priv->remember_checkbutton);
#line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	self->priv->remember_checkbutton = _tmp38_;
#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp39_ = self->priv->password_entry;
#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp40_ = self->priv->password_entry;
#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	add_password_dialog_set_atk_relation (self, (GtkWidget*) _tmp39_, (GtkWidget*) _tmp40_, ATK_RELATION_LABEL_FOR);
#line 87 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp41_ = (GtkTable*) gtk_table_new ((guint) 4, (guint) 2, FALSE);
#line 87 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	g_object_ref_sink (_tmp41_);
#line 87 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	table = _tmp41_;
#line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	row = 0;
#line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp42_ = table;
#line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_table_set_col_spacings (_tmp42_, (guint) 10);
#line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp43_ = table;
#line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_table_set_row_spacings (_tmp43_, (guint) 10);
#line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp44_ = request;
#line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	if (_tmp44_ != NULL) {
#line 415 "moonshot-password-dialog.c"
		GtkTable* _tmp45_ = NULL;
		GtkLabel* _tmp46_ = NULL;
		gint _tmp47_ = 0;
		gint _tmp48_ = 0;
		GtkTable* _tmp49_ = NULL;
		GtkLabel* _tmp50_ = NULL;
		gint _tmp51_ = 0;
		gint _tmp52_ = 0;
		gint _tmp53_ = 0;
#line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp45_ = table;
#line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp46_ = service_label;
#line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp47_ = row;
#line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp48_ = row;
#line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		gtk_table_attach_defaults (_tmp45_, (GtkWidget*) _tmp46_, (guint) 0, (guint) 1, (guint) _tmp47_, (guint) (_tmp48_ + 1));
#line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp49_ = table;
#line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp50_ = service_value;
#line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp51_ = row;
#line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp52_ = row;
#line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		gtk_table_attach_defaults (_tmp49_, (GtkWidget*) _tmp50_, (guint) 1, (guint) 2, (guint) _tmp51_, (guint) (_tmp52_ + 1));
#line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		_tmp53_ = row;
#line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		row = _tmp53_ + 1;
#line 449 "moonshot-password-dialog.c"
	}
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp54_ = table;
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp55_ = nai_label;
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp56_ = row;
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp57_ = row;
#line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_table_attach_defaults (_tmp54_, (GtkWidget*) _tmp55_, (guint) 0, (guint) 1, (guint) _tmp56_, (guint) (_tmp57_ + 1));
#line 97 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp58_ = table;
#line 97 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp59_ = nai_value;
#line 97 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp60_ = row;
#line 97 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp61_ = row;
#line 97 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_table_attach_defaults (_tmp58_, (GtkWidget*) _tmp59_, (guint) 1, (guint) 2, (guint) _tmp60_, (guint) (_tmp61_ + 1));
#line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp62_ = row;
#line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	row = _tmp62_ + 1;
#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp63_ = table;
#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp64_ = password_label;
#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp65_ = row;
#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp66_ = row;
#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_table_attach_defaults (_tmp63_, (GtkWidget*) _tmp64_, (guint) 0, (guint) 1, (guint) _tmp65_, (guint) (_tmp66_ + 1));
#line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp67_ = table;
#line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp68_ = self->priv->password_entry;
#line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp69_ = row;
#line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp70_ = row;
#line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_table_attach_defaults (_tmp67_, (GtkWidget*) _tmp68_, (guint) 1, (guint) 2, (guint) _tmp69_, (guint) (_tmp70_ + 1));
#line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp71_ = row;
#line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	row = _tmp71_ + 1;
#line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp72_ = table;
#line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp73_ = self->priv->remember_checkbutton;
#line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp74_ = row;
#line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp75_ = row;
#line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_table_attach_defaults (_tmp72_, (GtkWidget*) _tmp73_, (guint) 1, (guint) 2, (guint) _tmp74_, (guint) (_tmp75_ + 1));
#line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp76_ = (GtkVBox*) gtk_vbox_new (FALSE, 0);
#line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	g_object_ref_sink (_tmp76_);
#line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	vbox = _tmp76_;
#line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_container_set_border_width ((GtkContainer*) vbox, (guint) 6);
#line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp77_ = table;
#line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_box_pack_start ((GtkBox*) vbox, (GtkWidget*) _tmp77_, FALSE, FALSE, (guint) 0);
#line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp78_ = content_area;
#line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, GTK_TYPE_CONTAINER, GtkContainer), (GtkWidget*) vbox);
#line 110 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_container_set_border_width ((GtkContainer*) self, (guint) 6);
#line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	gtk_widget_show_all ((GtkWidget*) self);
#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_g_object_unref0 (vbox);
#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_g_object_unref0 (table);
#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_g_object_unref0 (password_label);
#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_g_object_unref0 (nai_value);
#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_g_object_unref0 (nai_label);
#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_g_object_unref0 (service_value);
#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_g_object_unref0 (service_label);
#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_g_object_unref0 (content_area);
#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	return self;
#line 547 "moonshot-password-dialog.c"
}


AddPasswordDialog* add_password_dialog_new (IdCard* id_card, IdentityRequest* request) {
#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	return add_password_dialog_construct (TYPE_ADD_PASSWORD_DIALOG, id_card, request);
#line 554 "moonshot-password-dialog.c"
}


static void add_password_dialog_set_atk_relation (AddPasswordDialog* self, GtkWidget* widget, GtkWidget* target_widget, AtkRelationType relationship) {
	AtkObject* atk_widget = NULL;
	GtkWidget* _tmp0_ = NULL;
	AtkObject* _tmp1_ = NULL;
	AtkObject* _tmp2_ = NULL;
	AtkObject* atk_target_widget = NULL;
	GtkWidget* _tmp3_ = NULL;
	AtkObject* _tmp4_ = NULL;
	AtkObject* _tmp5_ = NULL;
	AtkRelationType _tmp6_ = 0;
#line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	g_return_if_fail (self != NULL);
#line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	g_return_if_fail (widget != NULL);
#line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	g_return_if_fail (target_widget != NULL);
#line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp0_ = widget;
#line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp1_ = gtk_widget_get_accessible (_tmp0_);
#line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	atk_widget = _tmp2_;
#line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp3_ = target_widget;
#line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp4_ = gtk_widget_get_accessible (_tmp3_);
#line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	atk_target_widget = _tmp5_;
#line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp6_ = relationship;
#line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	atk_object_add_relationship (atk_widget, _tmp6_, atk_target_widget);
#line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_g_object_unref0 (atk_target_widget);
#line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_g_object_unref0 (atk_widget);
#line 598 "moonshot-password-dialog.c"
}


const gchar* add_password_dialog_get_password (AddPasswordDialog* self) {
	const gchar* result;
	GtkEntry* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 40 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 40 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp0_ = self->priv->password_entry;
#line 40 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp1_ = gtk_entry_get_text (_tmp0_);
#line 40 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	result = _tmp1_;
#line 40 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	return result;
#line 616 "moonshot-password-dialog.c"
}


gboolean add_password_dialog_get_remember (AddPasswordDialog* self) {
	gboolean result;
	GtkCheckButton* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp0_ = self->priv->remember_checkbutton;
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_tmp1_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp0_);
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	result = _tmp1_;
#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	return result;
#line 634 "moonshot-password-dialog.c"
}


static void add_password_dialog_class_init (AddPasswordDialogClass * klass) {
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	add_password_dialog_parent_class = g_type_class_peek_parent (klass);
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	g_type_class_add_private (klass, sizeof (AddPasswordDialogPrivate));
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_add_password_dialog_get_property;
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	G_OBJECT_CLASS (klass)->finalize = add_password_dialog_finalize;
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), ADD_PASSWORD_DIALOG_PASSWORD, g_param_spec_string ("password", "password", "password", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), ADD_PASSWORD_DIALOG_REMEMBER, g_param_spec_boolean ("remember", "remember", "remember", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 651 "moonshot-password-dialog.c"
}


static void add_password_dialog_instance_init (AddPasswordDialog * self) {
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	self->priv = ADD_PASSWORD_DIALOG_GET_PRIVATE (self);
#line 658 "moonshot-password-dialog.c"
}


static void add_password_dialog_finalize (GObject* obj) {
	AddPasswordDialog * self;
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADD_PASSWORD_DIALOG, AddPasswordDialog);
#line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_g_object_unref0 (self->priv->password_entry);
#line 37 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	_g_object_unref0 (self->priv->remember_checkbutton);
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	G_OBJECT_CLASS (add_password_dialog_parent_class)->finalize (obj);
#line 672 "moonshot-password-dialog.c"
}


GType add_password_dialog_get_type (void) {
	static volatile gsize add_password_dialog_type_id__volatile = 0;
	if (g_once_init_enter (&add_password_dialog_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (AddPasswordDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) add_password_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AddPasswordDialog), 0, (GInstanceInitFunc) add_password_dialog_instance_init, NULL };
		GType add_password_dialog_type_id;
		add_password_dialog_type_id = g_type_register_static (GTK_TYPE_DIALOG, "AddPasswordDialog", &g_define_type_info, 0);
		g_once_init_leave (&add_password_dialog_type_id__volatile, add_password_dialog_type_id);
	}
	return add_password_dialog_type_id__volatile;
}


static void _vala_add_password_dialog_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	AddPasswordDialog * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_ADD_PASSWORD_DIALOG, AddPasswordDialog);
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
	switch (property_id) {
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		case ADD_PASSWORD_DIALOG_PASSWORD:
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		g_value_set_string (value, add_password_dialog_get_password (self));
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		break;
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		case ADD_PASSWORD_DIALOG_REMEMBER:
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		g_value_set_boolean (value, add_password_dialog_get_remember (self));
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		break;
#line 705 "moonshot-password-dialog.c"
		default:
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-password-dialog.vala"
		break;
#line 711 "moonshot-password-dialog.c"
	}
}



