/* gitg-ext-user-query.c generated by valac 0.27.1.26-9b1a5-dirty, the Vala compiler
 * generated from gitg-ext-user-query.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2014 - Jesse van den Kieboom
 *
 * gitg is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * gitg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with gitg. If not, see <http://www.gnu.org/licenses/>.
 */

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


#define GITG_EXT_TYPE_USER_QUERY_RESPONSE (gitg_ext_user_query_response_get_type ())
#define GITG_EXT_USER_QUERY_RESPONSE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_EXT_TYPE_USER_QUERY_RESPONSE, GitgExtUserQueryResponse))
#define GITG_EXT_USER_QUERY_RESPONSE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_EXT_TYPE_USER_QUERY_RESPONSE, GitgExtUserQueryResponseClass))
#define GITG_EXT_IS_USER_QUERY_RESPONSE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_EXT_TYPE_USER_QUERY_RESPONSE))
#define GITG_EXT_IS_USER_QUERY_RESPONSE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_EXT_TYPE_USER_QUERY_RESPONSE))
#define GITG_EXT_USER_QUERY_RESPONSE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_EXT_TYPE_USER_QUERY_RESPONSE, GitgExtUserQueryResponseClass))

typedef struct _GitgExtUserQueryResponse GitgExtUserQueryResponse;
typedef struct _GitgExtUserQueryResponseClass GitgExtUserQueryResponseClass;
typedef struct _GitgExtUserQueryResponsePrivate GitgExtUserQueryResponsePrivate;
#define _g_free0(var) (var = (g_free (var), NULL))

#define GITG_EXT_TYPE_USER_QUERY (gitg_ext_user_query_get_type ())
#define GITG_EXT_USER_QUERY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_EXT_TYPE_USER_QUERY, GitgExtUserQuery))
#define GITG_EXT_USER_QUERY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_EXT_TYPE_USER_QUERY, GitgExtUserQueryClass))
#define GITG_EXT_IS_USER_QUERY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_EXT_TYPE_USER_QUERY))
#define GITG_EXT_IS_USER_QUERY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_EXT_TYPE_USER_QUERY))
#define GITG_EXT_USER_QUERY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_EXT_TYPE_USER_QUERY, GitgExtUserQueryClass))

typedef struct _GitgExtUserQuery GitgExtUserQuery;
typedef struct _GitgExtUserQueryClass GitgExtUserQueryClass;
typedef struct _GitgExtUserQueryPrivate GitgExtUserQueryPrivate;

struct _GitgExtUserQueryResponse {
	GObject parent_instance;
	GitgExtUserQueryResponsePrivate * priv;
	gchar* text;
	GtkResponseType response_type;
};

struct _GitgExtUserQueryResponseClass {
	GObjectClass parent_class;
};

struct _GitgExtUserQuery {
	GObject parent_instance;
	GitgExtUserQueryPrivate * priv;
};

struct _GitgExtUserQueryClass {
	GObjectClass parent_class;
};

struct _GitgExtUserQueryPrivate {
	gchar* _title;
	gchar* _message;
	GtkMessageType _message_type;
	GtkResponseType _default_response;
	GitgExtUserQueryResponse** _responses;
	gint _responses_length1;
	gint __responses_size_;
};


static gpointer gitg_ext_user_query_response_parent_class = NULL;
static gpointer gitg_ext_user_query_parent_class = NULL;

GType gitg_ext_user_query_response_get_type (void) G_GNUC_CONST;
enum  {
	GITG_EXT_USER_QUERY_RESPONSE_DUMMY_PROPERTY
};
GitgExtUserQueryResponse* gitg_ext_user_query_response_new (const gchar* text, GtkResponseType response_type);
GitgExtUserQueryResponse* gitg_ext_user_query_response_construct (GType object_type, const gchar* text, GtkResponseType response_type);
static void gitg_ext_user_query_response_finalize (GObject* obj);
GType gitg_ext_user_query_get_type (void) G_GNUC_CONST;
#define GITG_EXT_USER_QUERY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_EXT_TYPE_USER_QUERY, GitgExtUserQueryPrivate))
enum  {
	GITG_EXT_USER_QUERY_DUMMY_PROPERTY,
	GITG_EXT_USER_QUERY_TITLE,
	GITG_EXT_USER_QUERY_MESSAGE,
	GITG_EXT_USER_QUERY_MESSAGE_TYPE,
	GITG_EXT_USER_QUERY_DEFAULT_RESPONSE
};
GitgExtUserQuery* gitg_ext_user_query_new (void);
GitgExtUserQuery* gitg_ext_user_query_construct (GType object_type);
const gchar* gitg_ext_user_query_get_title (GitgExtUserQuery* self);
void gitg_ext_user_query_set_title (GitgExtUserQuery* self, const gchar* value);
const gchar* gitg_ext_user_query_get_message (GitgExtUserQuery* self);
void gitg_ext_user_query_set_message (GitgExtUserQuery* self, const gchar* value);
GtkMessageType gitg_ext_user_query_get_message_type (GitgExtUserQuery* self);
void gitg_ext_user_query_set_message_type (GitgExtUserQuery* self, GtkMessageType value);
GtkResponseType gitg_ext_user_query_get_default_response (GitgExtUserQuery* self);
void gitg_ext_user_query_set_default_response (GitgExtUserQuery* self, GtkResponseType value);
GitgExtUserQueryResponse** gitg_ext_user_query_get_responses (GitgExtUserQuery* self, int* result_length1);
void gitg_ext_user_query_set_responses (GitgExtUserQuery* self, GitgExtUserQueryResponse** value, int value_length1);
static GitgExtUserQueryResponse** _vala_array_dup1 (GitgExtUserQueryResponse** self, int length);
static void g_cclosure_user_marshal_BOOLEAN__ENUM (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
static void gitg_ext_user_query_finalize (GObject* obj);
static void _vala_gitg_ext_user_query_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_ext_user_query_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


GitgExtUserQueryResponse* gitg_ext_user_query_response_construct (GType object_type, const gchar* text, GtkResponseType response_type) {
	GitgExtUserQueryResponse * self = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	GtkResponseType _tmp2_ = 0;
#line 28 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_val_if_fail (text != NULL, NULL);
#line 28 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self = (GitgExtUserQueryResponse*) g_object_new (object_type, NULL);
#line 30 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = text;
#line 30 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 30 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_g_free0 (self->text);
#line 30 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->text = _tmp1_;
#line 31 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp2_ = response_type;
#line 31 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->response_type = _tmp2_;
#line 28 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return self;
#line 148 "gitg-ext-user-query.c"
}


GitgExtUserQueryResponse* gitg_ext_user_query_response_new (const gchar* text, GtkResponseType response_type) {
#line 28 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return gitg_ext_user_query_response_construct (GITG_EXT_TYPE_USER_QUERY_RESPONSE, text, response_type);
#line 155 "gitg-ext-user-query.c"
}


static void gitg_ext_user_query_response_class_init (GitgExtUserQueryResponseClass * klass) {
#line 23 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	gitg_ext_user_query_response_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_ext_user_query_response_finalize;
#line 164 "gitg-ext-user-query.c"
}


static void gitg_ext_user_query_response_instance_init (GitgExtUserQueryResponse * self) {
}


static void gitg_ext_user_query_response_finalize (GObject* obj) {
	GitgExtUserQueryResponse * self;
#line 23 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_EXT_TYPE_USER_QUERY_RESPONSE, GitgExtUserQueryResponse);
#line 25 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_g_free0 (self->text);
#line 23 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	G_OBJECT_CLASS (gitg_ext_user_query_response_parent_class)->finalize (obj);
#line 180 "gitg-ext-user-query.c"
}


GType gitg_ext_user_query_response_get_type (void) {
	static volatile gsize gitg_ext_user_query_response_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_ext_user_query_response_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgExtUserQueryResponseClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_ext_user_query_response_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgExtUserQueryResponse), 0, (GInstanceInitFunc) gitg_ext_user_query_response_instance_init, NULL };
		GType gitg_ext_user_query_response_type_id;
		gitg_ext_user_query_response_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgExtUserQueryResponse", &g_define_type_info, 0);
		g_once_init_leave (&gitg_ext_user_query_response_type_id__volatile, gitg_ext_user_query_response_type_id);
	}
	return gitg_ext_user_query_response_type_id__volatile;
}


GitgExtUserQuery* gitg_ext_user_query_construct (GType object_type) {
	GitgExtUserQuery * self = NULL;
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self = (GitgExtUserQuery*) g_object_new (object_type, NULL);
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return self;
#line 202 "gitg-ext-user-query.c"
}


GitgExtUserQuery* gitg_ext_user_query_new (void) {
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return gitg_ext_user_query_construct (GITG_EXT_TYPE_USER_QUERY);
#line 209 "gitg-ext-user-query.c"
}


const gchar* gitg_ext_user_query_get_title (GitgExtUserQuery* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 37 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 37 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = self->priv->_title;
#line 37 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	result = _tmp0_;
#line 37 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return result;
#line 224 "gitg-ext-user-query.c"
}


void gitg_ext_user_query_set_title (GitgExtUserQuery* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 37 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_if_fail (self != NULL);
#line 37 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = value;
#line 37 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 37 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_g_free0 (self->priv->_title);
#line 37 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->_title = _tmp1_;
#line 37 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_object_notify ((GObject *) self, "title");
#line 243 "gitg-ext-user-query.c"
}


const gchar* gitg_ext_user_query_get_message (GitgExtUserQuery* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 38 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 38 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = self->priv->_message;
#line 38 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	result = _tmp0_;
#line 38 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return result;
#line 258 "gitg-ext-user-query.c"
}


void gitg_ext_user_query_set_message (GitgExtUserQuery* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 38 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_if_fail (self != NULL);
#line 38 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = value;
#line 38 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 38 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_g_free0 (self->priv->_message);
#line 38 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->_message = _tmp1_;
#line 38 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_object_notify ((GObject *) self, "message");
#line 277 "gitg-ext-user-query.c"
}


GtkMessageType gitg_ext_user_query_get_message_type (GitgExtUserQuery* self) {
	GtkMessageType result;
	GtkMessageType _tmp0_ = 0;
#line 39 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 39 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = self->priv->_message_type;
#line 39 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	result = _tmp0_;
#line 39 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return result;
#line 292 "gitg-ext-user-query.c"
}


void gitg_ext_user_query_set_message_type (GitgExtUserQuery* self, GtkMessageType value) {
	GtkMessageType _tmp0_ = 0;
#line 39 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_if_fail (self != NULL);
#line 39 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = value;
#line 39 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->_message_type = _tmp0_;
#line 39 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_object_notify ((GObject *) self, "message-type");
#line 306 "gitg-ext-user-query.c"
}


GtkResponseType gitg_ext_user_query_get_default_response (GitgExtUserQuery* self) {
	GtkResponseType result;
	GtkResponseType _tmp0_ = 0;
#line 40 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 40 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = self->priv->_default_response;
#line 40 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	result = _tmp0_;
#line 40 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return result;
#line 321 "gitg-ext-user-query.c"
}


void gitg_ext_user_query_set_default_response (GitgExtUserQuery* self, GtkResponseType value) {
	GtkResponseType _tmp0_ = 0;
#line 40 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_if_fail (self != NULL);
#line 40 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = value;
#line 40 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->_default_response = _tmp0_;
#line 40 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_object_notify ((GObject *) self, "default-response");
#line 335 "gitg-ext-user-query.c"
}


GitgExtUserQueryResponse** gitg_ext_user_query_get_responses (GitgExtUserQuery* self, int* result_length1) {
	GitgExtUserQueryResponse** result;
	GitgExtUserQueryResponse** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	GitgExtUserQueryResponse** _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = self->priv->_responses;
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0__length1 = self->priv->_responses_length1;
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp1_ = _tmp0_;
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp1__length1 = _tmp0__length1;
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	if (result_length1) {
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		*result_length1 = _tmp1__length1;
#line 359 "gitg-ext-user-query.c"
	}
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	result = _tmp1_;
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return result;
#line 365 "gitg-ext-user-query.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return self ? g_object_ref (self) : NULL;
#line 372 "gitg-ext-user-query.c"
}


static GitgExtUserQueryResponse** _vala_array_dup1 (GitgExtUserQueryResponse** self, int length) {
	GitgExtUserQueryResponse** result;
	int i;
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	result = g_new0 (GitgExtUserQueryResponse*, length + 1);
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	for (i = 0; i < length; i++) {
#line 383 "gitg-ext-user-query.c"
		GitgExtUserQueryResponse* _tmp0_ = NULL;
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_tmp0_ = _g_object_ref0 (self[i]);
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		result[i] = _tmp0_;
#line 389 "gitg-ext-user-query.c"
	}
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return result;
#line 393 "gitg-ext-user-query.c"
}


void gitg_ext_user_query_set_responses (GitgExtUserQuery* self, GitgExtUserQueryResponse** value, int value_length1) {
	GitgExtUserQueryResponse** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	GitgExtUserQueryResponse** _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_if_fail (self != NULL);
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = value;
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0__length1 = value_length1;
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup1 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp1__length1 = _tmp0__length1;
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->_responses = (_vala_array_free (self->priv->_responses, self->priv->_responses_length1, (GDestroyNotify) g_object_unref), NULL);
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->_responses = _tmp1_;
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->_responses_length1 = _tmp1__length1;
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->__responses_size_ = self->priv->_responses_length1;
#line 420 "gitg-ext-user-query.c"
}


static void g_cclosure_user_marshal_BOOLEAN__ENUM (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
	typedef gboolean (*GMarshalFunc_BOOLEAN__ENUM) (gpointer data1, gint arg_1, gpointer data2);
	register GMarshalFunc_BOOLEAN__ENUM callback;
	register GCClosure * cc;
	register gpointer data1;
	register gpointer data2;
	gboolean v_return;
	cc = (GCClosure *) closure;
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_if_fail (return_value != NULL);
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_if_fail (n_param_values == 2);
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	if (G_CCLOSURE_SWAP_DATA (closure)) {
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		data1 = closure->data;
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		data2 = param_values->data[0].v_pointer;
#line 442 "gitg-ext-user-query.c"
	} else {
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		data1 = param_values->data[0].v_pointer;
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		data2 = closure->data;
#line 448 "gitg-ext-user-query.c"
	}
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	callback = (GMarshalFunc_BOOLEAN__ENUM) (marshal_data ? marshal_data : cc->callback);
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	v_return = callback (data1, g_value_get_enum (param_values + 1), data2);
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_value_set_boolean (return_value, v_return);
#line 456 "gitg-ext-user-query.c"
}


static void gitg_ext_user_query_class_init (GitgExtUserQueryClass * klass) {
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	gitg_ext_user_query_parent_class = g_type_class_peek_parent (klass);
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_type_class_add_private (klass, sizeof (GitgExtUserQueryPrivate));
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_ext_user_query_get_property;
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_ext_user_query_set_property;
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_ext_user_query_finalize;
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_EXT_USER_QUERY_TITLE, g_param_spec_string ("title", "title", "title", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_EXT_USER_QUERY_MESSAGE, g_param_spec_string ("message", "message", "message", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_EXT_USER_QUERY_MESSAGE_TYPE, g_param_spec_enum ("message-type", "message-type", "message-type", GTK_TYPE_MESSAGE_TYPE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_EXT_USER_QUERY_DEFAULT_RESPONSE, g_param_spec_enum ("default-response", "default-response", "default-response", GTK_TYPE_RESPONSE_TYPE, GTK_RESPONSE_CLOSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_signal_new ("quit", GITG_EXT_TYPE_USER_QUERY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_signal_new ("response", GITG_EXT_TYPE_USER_QUERY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_BOOLEAN__ENUM, G_TYPE_BOOLEAN, 1, GTK_TYPE_RESPONSE_TYPE);
#line 483 "gitg-ext-user-query.c"
}


static void gitg_ext_user_query_instance_init (GitgExtUserQuery * self) {
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv = GITG_EXT_USER_QUERY_GET_PRIVATE (self);
#line 40 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->_default_response = GTK_RESPONSE_CLOSE;
#line 492 "gitg-ext-user-query.c"
}


static void gitg_ext_user_query_finalize (GObject* obj) {
	GitgExtUserQuery * self;
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_EXT_TYPE_USER_QUERY, GitgExtUserQuery);
#line 37 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_g_free0 (self->priv->_title);
#line 38 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_g_free0 (self->priv->_message);
#line 41 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->_responses = (_vala_array_free (self->priv->_responses, self->priv->_responses_length1, (GDestroyNotify) g_object_unref), NULL);
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	G_OBJECT_CLASS (gitg_ext_user_query_parent_class)->finalize (obj);
#line 508 "gitg-ext-user-query.c"
}


GType gitg_ext_user_query_get_type (void) {
	static volatile gsize gitg_ext_user_query_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_ext_user_query_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgExtUserQueryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_ext_user_query_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgExtUserQuery), 0, (GInstanceInitFunc) gitg_ext_user_query_instance_init, NULL };
		GType gitg_ext_user_query_type_id;
		gitg_ext_user_query_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgExtUserQuery", &g_define_type_info, 0);
		g_once_init_leave (&gitg_ext_user_query_type_id__volatile, gitg_ext_user_query_type_id);
	}
	return gitg_ext_user_query_type_id__volatile;
}


static void _vala_gitg_ext_user_query_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgExtUserQuery * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_EXT_TYPE_USER_QUERY, GitgExtUserQuery);
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	switch (property_id) {
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_TITLE:
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		g_value_set_string (value, gitg_ext_user_query_get_title (self));
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_MESSAGE:
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		g_value_set_string (value, gitg_ext_user_query_get_message (self));
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_MESSAGE_TYPE:
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		g_value_set_enum (value, gitg_ext_user_query_get_message_type (self));
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_DEFAULT_RESPONSE:
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		g_value_set_enum (value, gitg_ext_user_query_get_default_response (self));
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 553 "gitg-ext-user-query.c"
		default:
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 559 "gitg-ext-user-query.c"
	}
}


static void _vala_gitg_ext_user_query_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgExtUserQuery * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_EXT_TYPE_USER_QUERY, GitgExtUserQuery);
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
	switch (property_id) {
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_TITLE:
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		gitg_ext_user_query_set_title (self, g_value_get_string (value));
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_MESSAGE:
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		gitg_ext_user_query_set_message (self, g_value_get_string (value));
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_MESSAGE_TYPE:
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		gitg_ext_user_query_set_message_type (self, g_value_get_enum (value));
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_DEFAULT_RESPONSE:
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		gitg_ext_user_query_set_default_response (self, g_value_get_enum (value));
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 593 "gitg-ext-user-query.c"
		default:
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 599 "gitg-ext-user-query.c"
	}
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}



