/* auth-notification.c generated by valac 0.26.0.50-d9a75, the Vala compiler
 * generated from auth-notification.vala, do not modify */

/* This file is part of GNOME Boxes. License: LGPLv2+*/

#include <glib.h>
#include <glib-object.h>
#include <libgd/gd.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <gdk/gdk.h>


#define BOXES_TYPE_AUTH_NOTIFICATION (boxes_auth_notification_get_type ())
#define BOXES_AUTH_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_AUTH_NOTIFICATION, BoxesAuthNotification))
#define BOXES_AUTH_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_AUTH_NOTIFICATION, BoxesAuthNotificationClass))
#define BOXES_IS_AUTH_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_AUTH_NOTIFICATION))
#define BOXES_IS_AUTH_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_AUTH_NOTIFICATION))
#define BOXES_AUTH_NOTIFICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_AUTH_NOTIFICATION, BoxesAuthNotificationClass))

typedef struct _BoxesAuthNotification BoxesAuthNotification;
typedef struct _BoxesAuthNotificationClass BoxesAuthNotificationClass;
typedef struct _BoxesAuthNotificationPrivate BoxesAuthNotificationPrivate;

#define BOXES_TYPE_SEARCHBAR (boxes_searchbar_get_type ())
#define BOXES_SEARCHBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SEARCHBAR, BoxesSearchbar))
#define BOXES_SEARCHBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SEARCHBAR, BoxesSearchbarClass))
#define BOXES_IS_SEARCHBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SEARCHBAR))
#define BOXES_IS_SEARCHBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SEARCHBAR))
#define BOXES_SEARCHBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SEARCHBAR, BoxesSearchbarClass))

typedef struct _BoxesSearchbar BoxesSearchbar;
typedef struct _BoxesSearchbarClass BoxesSearchbarClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block17Data Block17Data;

struct _BoxesAuthNotification {
	GdNotification parent_instance;
	BoxesAuthNotificationPrivate * priv;
};

struct _BoxesAuthNotificationClass {
	GdNotificationClass parent_class;
};

typedef void (*BoxesAuthNotificationAuthFunc) (const gchar* username, const gchar* password, void* user_data);
struct _BoxesAuthNotificationPrivate {
	GtkLabel* title_label;
	GtkLabel* username_label;
	GtkEntry* username_entry;
	GtkEntry* password_entry;
	GtkButton* auth_button;
	BoxesAuthNotificationAuthFunc auth_func;
	gpointer auth_func_target;
	GDestroyNotify auth_func_target_destroy_notify;
	gboolean auth_pressed;
	BoxesSearchbar* searchbar;
};

typedef void (*BoxesNotificationCancelFunc) (void* user_data);
struct _Block17Data {
	int _ref_count_;
	BoxesAuthNotification* self;
	BoxesNotificationCancelFunc cancel_func;
	gpointer cancel_func_target;
	GDestroyNotify cancel_func_target_destroy_notify;
};


static gpointer boxes_auth_notification_parent_class = NULL;

GType boxes_auth_notification_get_type (void) G_GNUC_CONST;
GType boxes_searchbar_get_type (void) G_GNUC_CONST;
#define BOXES_AUTH_NOTIFICATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_AUTH_NOTIFICATION, BoxesAuthNotificationPrivate))
enum  {
	BOXES_AUTH_NOTIFICATION_DUMMY_PROPERTY
};
BoxesAuthNotification* boxes_auth_notification_new (const gchar* auth_string, BoxesAuthNotificationAuthFunc auth_func, void* auth_func_target, GDestroyNotify auth_func_target_destroy_notify, BoxesNotificationCancelFunc cancel_func, void* cancel_func_target, GDestroyNotify cancel_func_target_destroy_notify, gboolean need_username, BoxesSearchbar* searchbar);
BoxesAuthNotification* boxes_auth_notification_construct (GType object_type, const gchar* auth_string, BoxesAuthNotificationAuthFunc auth_func, void* auth_func_target, GDestroyNotify auth_func_target_destroy_notify, BoxesNotificationCancelFunc cancel_func, void* cancel_func_target, GDestroyNotify cancel_func_target_destroy_notify, gboolean need_username, BoxesSearchbar* searchbar);
static Block17Data* block17_data_ref (Block17Data* _data17_);
static void block17_data_unref (void * _userdata_);
static void __lambda34_ (Block17Data* _data17_);
static void ___lambda34__gd_notification_dismissed (GdNotification* _sender, gpointer self);
static gboolean boxes_auth_notification_on_entry_focus_in_event (BoxesAuthNotification* self);
void boxes_searchbar_set_enable_key_handler (BoxesSearchbar* self, gboolean value);
static gboolean _boxes_auth_notification_on_entry_focus_in_event_gtk_widget_focus_in_event (GtkWidget* _sender, GdkEventFocus* event, gpointer self);
static gboolean boxes_auth_notification_on_entry_focus_out_event (BoxesAuthNotification* self);
static gboolean _boxes_auth_notification_on_entry_focus_out_event_gtk_widget_focus_out_event (GtkWidget* _sender, GdkEventFocus* event, gpointer self);
static void boxes_auth_notification_on_username_entry_map (BoxesAuthNotification* self);
static void _boxes_auth_notification_on_username_entry_map_gtk_widget_map (GtkWidget* _sender, gpointer self);
static void boxes_auth_notification_on_username_entry_activated (BoxesAuthNotification* self);
static void _boxes_auth_notification_on_username_entry_activated_gtk_entry_activate (GtkEntry* _sender, gpointer self);
static void boxes_auth_notification_on_password_entry_activated (BoxesAuthNotification* self);
static void _boxes_auth_notification_on_password_entry_activated_gtk_entry_activate (GtkEntry* _sender, gpointer self);
static void boxes_auth_notification_on_auth_button_clicked (BoxesAuthNotification* self);
static void _boxes_auth_notification_on_auth_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
static void boxes_auth_notification_finalize (GObject* obj);


static Block17Data* block17_data_ref (Block17Data* _data17_) {
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	g_atomic_int_inc (&_data17_->_ref_count_);
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	return _data17_;
#line 107 "auth-notification.c"
}


static void block17_data_unref (void * _userdata_) {
	Block17Data* _data17_;
	_data17_ = (Block17Data*) _userdata_;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	if (g_atomic_int_dec_and_test (&_data17_->_ref_count_)) {
#line 116 "auth-notification.c"
		BoxesAuthNotification* self;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		self = _data17_->self;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		(_data17_->cancel_func_target_destroy_notify == NULL) ? NULL : (_data17_->cancel_func_target_destroy_notify (_data17_->cancel_func_target), NULL);
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_data17_->cancel_func = NULL;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_data17_->cancel_func_target = NULL;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_data17_->cancel_func_target_destroy_notify = NULL;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_g_object_unref0 (self);
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		g_slice_free (Block17Data, _data17_);
#line 132 "auth-notification.c"
	}
}


static void __lambda34_ (Block17Data* _data17_) {
	BoxesAuthNotification* self;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	self = _data17_->self;
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp1_ = self->priv->auth_pressed;
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	if (!_tmp1_) {
#line 147 "auth-notification.c"
		BoxesNotificationCancelFunc _tmp2_ = NULL;
		void* _tmp2__target = NULL;
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_tmp2_ = _data17_->cancel_func;
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_tmp2__target = _data17_->cancel_func_target;
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_tmp0_ = _tmp2_ != NULL;
#line 156 "auth-notification.c"
	} else {
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_tmp0_ = FALSE;
#line 160 "auth-notification.c"
	}
#line 33 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	if (_tmp0_) {
#line 164 "auth-notification.c"
		BoxesNotificationCancelFunc _tmp3_ = NULL;
		void* _tmp3__target = NULL;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_tmp3_ = _data17_->cancel_func;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_tmp3__target = _data17_->cancel_func_target;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_tmp3_ (_tmp3__target);
#line 173 "auth-notification.c"
	}
}


static void ___lambda34__gd_notification_dismissed (GdNotification* _sender, gpointer self) {
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	__lambda34_ (self);
#line 181 "auth-notification.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	return self ? g_object_ref (self) : NULL;
#line 188 "auth-notification.c"
}


BoxesAuthNotification* boxes_auth_notification_construct (GType object_type, const gchar* auth_string, BoxesAuthNotificationAuthFunc auth_func, void* auth_func_target, GDestroyNotify auth_func_target_destroy_notify, BoxesNotificationCancelFunc cancel_func, void* cancel_func_target, GDestroyNotify cancel_func_target_destroy_notify, gboolean need_username, BoxesSearchbar* searchbar) {
	BoxesAuthNotification * self = NULL;
	Block17Data* _data17_;
	BoxesNotificationCancelFunc _tmp0_ = NULL;
	void* _tmp0__target = NULL;
	GtkLabel* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	GtkLabel* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	GtkEntry* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
	BoxesAuthNotificationAuthFunc _tmp7_ = NULL;
	void* _tmp7__target = NULL;
	GDestroyNotify _tmp7__target_destroy_notify = NULL;
	BoxesSearchbar* _tmp8_ = NULL;
	BoxesSearchbar* _tmp9_ = NULL;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	g_return_val_if_fail (auth_string != NULL, NULL);
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	g_return_val_if_fail (searchbar != NULL, NULL);
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_data17_ = g_slice_new0 (Block17Data);
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_data17_->_ref_count_ = 1;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp0_ = cancel_func;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp0__target = cancel_func_target;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	(_data17_->cancel_func_target_destroy_notify == NULL) ? NULL : (_data17_->cancel_func_target_destroy_notify (_data17_->cancel_func_target), NULL);
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_data17_->cancel_func = NULL;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_data17_->cancel_func_target = NULL;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_data17_->cancel_func_target_destroy_notify = NULL;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_data17_->cancel_func = _tmp0_;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_data17_->cancel_func_target = _tmp0__target;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_data17_->cancel_func_target_destroy_notify = cancel_func_target_destroy_notify;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	self = (BoxesAuthNotification*) g_object_new (object_type, NULL);
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_data17_->self = g_object_ref (self);
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	g_object_set ((GdNotification*) self, "show-close-button", FALSE, NULL);
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp1_ = self->priv->title_label;
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp2_ = auth_string;
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_label_set_label (_tmp1_, _tmp2_);
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	g_signal_connect_data ((GdNotification*) self, "dismissed", (GCallback) ___lambda34__gd_notification_dismissed, block17_data_ref (_data17_), (GClosureNotify) block17_data_unref, 0);
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp3_ = self->priv->username_label;
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp4_ = need_username;
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp3_, _tmp4_);
#line 38 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp5_ = self->priv->username_entry;
#line 38 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp6_ = need_username;
#line 38 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp5_, _tmp6_);
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp7_ = auth_func;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp7__target = auth_func_target;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp7__target_destroy_notify = auth_func_target_destroy_notify;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	auth_func_target_destroy_notify = NULL;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	(self->priv->auth_func_target_destroy_notify == NULL) ? NULL : (self->priv->auth_func_target_destroy_notify (self->priv->auth_func_target), NULL);
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	self->priv->auth_func = NULL;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	self->priv->auth_func_target = NULL;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	self->priv->auth_func_target_destroy_notify = NULL;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	self->priv->auth_func = _tmp7_;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	self->priv->auth_func_target = _tmp7__target;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	self->priv->auth_func_target_destroy_notify = _tmp7__target_destroy_notify;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp8_ = searchbar;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp9_ = _g_object_ref0 (_tmp8_);
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_g_object_unref0 (self->priv->searchbar);
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	self->priv->searchbar = _tmp9_;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	(auth_func_target_destroy_notify == NULL) ? NULL : (auth_func_target_destroy_notify (auth_func_target), NULL);
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	auth_func = NULL;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	auth_func_target = NULL;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	auth_func_target_destroy_notify = NULL;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	block17_data_unref (_data17_);
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_data17_ = NULL;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	return self;
#line 304 "auth-notification.c"
}


BoxesAuthNotification* boxes_auth_notification_new (const gchar* auth_string, BoxesAuthNotificationAuthFunc auth_func, void* auth_func_target, GDestroyNotify auth_func_target_destroy_notify, BoxesNotificationCancelFunc cancel_func, void* cancel_func_target, GDestroyNotify cancel_func_target_destroy_notify, gboolean need_username, BoxesSearchbar* searchbar) {
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	return boxes_auth_notification_construct (BOXES_TYPE_AUTH_NOTIFICATION, auth_string, auth_func, auth_func_target, auth_func_target_destroy_notify, cancel_func, cancel_func_target, cancel_func_target_destroy_notify, need_username, searchbar);
#line 311 "auth-notification.c"
}


static gboolean boxes_auth_notification_on_entry_focus_in_event (BoxesAuthNotification* self) {
	gboolean result = FALSE;
	BoxesSearchbar* _tmp0_ = NULL;
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp0_ = self->priv->searchbar;
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	boxes_searchbar_set_enable_key_handler (_tmp0_, FALSE);
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	result = FALSE;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	return result;
#line 328 "auth-notification.c"
}


static gboolean _boxes_auth_notification_on_entry_focus_in_event_gtk_widget_focus_in_event (GtkWidget* _sender, GdkEventFocus* event, gpointer self) {
	gboolean result;
	result = boxes_auth_notification_on_entry_focus_in_event ((BoxesAuthNotification*) self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	return result;
#line 337 "auth-notification.c"
}


static gboolean boxes_auth_notification_on_entry_focus_out_event (BoxesAuthNotification* self) {
	gboolean result = FALSE;
	BoxesSearchbar* _tmp0_ = NULL;
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp0_ = self->priv->searchbar;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	boxes_searchbar_set_enable_key_handler (_tmp0_, TRUE);
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	result = FALSE;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	return result;
#line 354 "auth-notification.c"
}


static gboolean _boxes_auth_notification_on_entry_focus_out_event_gtk_widget_focus_out_event (GtkWidget* _sender, GdkEventFocus* event, gpointer self) {
	gboolean result;
	result = boxes_auth_notification_on_entry_focus_out_event ((BoxesAuthNotification*) self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	return result;
#line 363 "auth-notification.c"
}


static void boxes_auth_notification_on_username_entry_map (BoxesAuthNotification* self) {
	GtkEntry* _tmp0_ = NULL;
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	g_return_if_fail (self != NULL);
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp0_ = self->priv->username_entry;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_grab_focus ((GtkWidget*) _tmp0_);
#line 375 "auth-notification.c"
}


static void _boxes_auth_notification_on_username_entry_map_gtk_widget_map (GtkWidget* _sender, gpointer self) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	boxes_auth_notification_on_username_entry_map ((BoxesAuthNotification*) self);
#line 382 "auth-notification.c"
}


static void boxes_auth_notification_on_username_entry_activated (BoxesAuthNotification* self) {
	GtkEntry* _tmp0_ = NULL;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	g_return_if_fail (self != NULL);
#line 66 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp0_ = self->priv->password_entry;
#line 66 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_grab_focus ((GtkWidget*) _tmp0_);
#line 394 "auth-notification.c"
}


static void _boxes_auth_notification_on_username_entry_activated_gtk_entry_activate (GtkEntry* _sender, gpointer self) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	boxes_auth_notification_on_username_entry_activated ((BoxesAuthNotification*) self);
#line 401 "auth-notification.c"
}


static void boxes_auth_notification_on_password_entry_activated (BoxesAuthNotification* self) {
	GtkButton* _tmp0_ = NULL;
#line 70 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	g_return_if_fail (self != NULL);
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp0_ = self->priv->auth_button;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	g_signal_emit_by_name (_tmp0_, "activate");
#line 413 "auth-notification.c"
}


static void _boxes_auth_notification_on_password_entry_activated_gtk_entry_activate (GtkEntry* _sender, gpointer self) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	boxes_auth_notification_on_password_entry_activated ((BoxesAuthNotification*) self);
#line 420 "auth-notification.c"
}


static void boxes_auth_notification_on_auth_button_clicked (BoxesAuthNotification* self) {
	BoxesAuthNotificationAuthFunc _tmp0_ = NULL;
	void* _tmp0__target = NULL;
#line 75 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	g_return_if_fail (self != NULL);
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp0_ = self->priv->auth_func;
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_tmp0__target = self->priv->auth_func_target;
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	if (_tmp0_ != NULL) {
#line 435 "auth-notification.c"
		BoxesAuthNotificationAuthFunc _tmp1_ = NULL;
		void* _tmp1__target = NULL;
		GtkEntry* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		GtkEntry* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_tmp1_ = self->priv->auth_func;
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_tmp1__target = self->priv->auth_func_target;
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_tmp2_ = self->priv->username_entry;
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_tmp3_ = gtk_entry_get_text (_tmp2_);
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_tmp4_ = self->priv->password_entry;
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_tmp5_ = gtk_entry_get_text (_tmp4_);
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
		_tmp1_ (_tmp3_, _tmp5_, _tmp1__target);
#line 456 "auth-notification.c"
	}
#line 78 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	self->priv->auth_pressed = TRUE;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gd_notification_dismiss ((GdNotification*) self);
#line 462 "auth-notification.c"
}


static void _boxes_auth_notification_on_auth_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	boxes_auth_notification_on_auth_button_clicked ((BoxesAuthNotification*) self);
#line 469 "auth-notification.c"
}


static void boxes_auth_notification_class_init (BoxesAuthNotificationClass * klass) {
	gint BoxesAuthNotification_private_offset;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	boxes_auth_notification_parent_class = g_type_class_peek_parent (klass);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	g_type_class_add_private (klass, sizeof (BoxesAuthNotificationPrivate));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_auth_notification_finalize;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	BoxesAuthNotification_private_offset = g_type_class_get_instance_private_offset (klass);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/auth-notification.ui");
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "title_label", FALSE, BoxesAuthNotification_private_offset + G_STRUCT_OFFSET (BoxesAuthNotificationPrivate, title_label));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "username_label", FALSE, BoxesAuthNotification_private_offset + G_STRUCT_OFFSET (BoxesAuthNotificationPrivate, username_label));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "username_entry", FALSE, BoxesAuthNotification_private_offset + G_STRUCT_OFFSET (BoxesAuthNotificationPrivate, username_entry));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "password_entry", FALSE, BoxesAuthNotification_private_offset + G_STRUCT_OFFSET (BoxesAuthNotificationPrivate, password_entry));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "auth_button", FALSE, BoxesAuthNotification_private_offset + G_STRUCT_OFFSET (BoxesAuthNotificationPrivate, auth_button));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_entry_focus_in_event", G_CALLBACK(_boxes_auth_notification_on_entry_focus_in_event_gtk_widget_focus_in_event));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_entry_focus_out_event", G_CALLBACK(_boxes_auth_notification_on_entry_focus_out_event_gtk_widget_focus_out_event));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_username_entry_map", G_CALLBACK(_boxes_auth_notification_on_username_entry_map_gtk_widget_map));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_username_entry_activated", G_CALLBACK(_boxes_auth_notification_on_username_entry_activated_gtk_entry_activate));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_password_entry_activated", G_CALLBACK(_boxes_auth_notification_on_password_entry_activated_gtk_entry_activate));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_auth_button_clicked", G_CALLBACK(_boxes_auth_notification_on_auth_button_clicked_gtk_button_clicked));
#line 507 "auth-notification.c"
}


static void boxes_auth_notification_instance_init (BoxesAuthNotification * self) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	self->priv = BOXES_AUTH_NOTIFICATION_GET_PRIVATE (self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 516 "auth-notification.c"
}


static void boxes_auth_notification_finalize (GObject* obj) {
	BoxesAuthNotification * self;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_AUTH_NOTIFICATION, BoxesAuthNotification);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_g_object_unref0 (self->priv->title_label);
#line 11 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_g_object_unref0 (self->priv->username_label);
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_g_object_unref0 (self->priv->username_entry);
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_g_object_unref0 (self->priv->password_entry);
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_g_object_unref0 (self->priv->auth_button);
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	(self->priv->auth_func_target_destroy_notify == NULL) ? NULL : (self->priv->auth_func_target_destroy_notify (self->priv->auth_func_target), NULL);
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	self->priv->auth_func = NULL;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	self->priv->auth_func_target = NULL;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	self->priv->auth_func_target_destroy_notify = NULL;
#line 22 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	_g_object_unref0 (self->priv->searchbar);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/auth-notification.vala"
	G_OBJECT_CLASS (boxes_auth_notification_parent_class)->finalize (obj);
#line 546 "auth-notification.c"
}


GType boxes_auth_notification_get_type (void) {
	static volatile gsize boxes_auth_notification_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_auth_notification_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesAuthNotificationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_auth_notification_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesAuthNotification), 0, (GInstanceInitFunc) boxes_auth_notification_instance_init, NULL };
		GType boxes_auth_notification_type_id;
		boxes_auth_notification_type_id = g_type_register_static (gd_notification_get_type (), "BoxesAuthNotification", &g_define_type_info, 0);
		g_once_init_leave (&boxes_auth_notification_type_id__volatile, boxes_auth_notification_type_id);
	}
	return boxes_auth_notification_type_id__volatile;
}



