/* gitg-ext-user-query.c generated by valac 0.32.1, 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>
#include <stdarg.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_;
	gboolean _default_is_destructive;
	gboolean _message_use_markup;
};


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,
	GITG_EXT_USER_QUERY_DEFAULT_IS_DESTRUCTIVE,
	GITG_EXT_USER_QUERY_MESSAGE_USE_MARKUP
};
GitgExtUserQuery* gitg_ext_user_query_new_full (const gchar* title, const gchar* message, GtkMessageType message_type, ...);
GitgExtUserQuery* gitg_ext_user_query_construct_full (GType object_type, const gchar* title, const gchar* message, GtkMessageType message_type, ...);
GitgExtUserQuery* gitg_ext_user_query_constructv_full (GType object_type, const gchar* title, const gchar* message, GtkMessageType message_type, va_list _vala_va_list);
static void _vala_array_add1 (GitgExtUserQueryResponse*** array, int* length, int* size, GitgExtUserQueryResponse* value);
void gitg_ext_user_query_set_responses (GitgExtUserQuery* self, GitgExtUserQueryResponse** value, int value_length1);
void gitg_ext_user_query_set_default_response (GitgExtUserQuery* self, GtkResponseType value);
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);
GitgExtUserQueryResponse** gitg_ext_user_query_get_responses (GitgExtUserQuery* self, int* result_length1);
static GitgExtUserQueryResponse** _vala_array_dup2 (GitgExtUserQueryResponse** self, int length);
gboolean gitg_ext_user_query_get_default_is_destructive (GitgExtUserQuery* self);
void gitg_ext_user_query_set_default_is_destructive (GitgExtUserQuery* self, gboolean value);
gboolean gitg_ext_user_query_get_message_use_markup (GitgExtUserQuery* self);
void gitg_ext_user_query_set_message_use_markup (GitgExtUserQuery* self, gboolean value);
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/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_val_if_fail (text != NULL, NULL);
#line 28 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self = (GitgExtUserQueryResponse*) g_object_new (object_type, NULL);
#line 30 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = text;
#line 30 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 30 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_g_free0 (self->text);
#line 30 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->text = _tmp1_;
#line 31 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp2_ = response_type;
#line 31 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->response_type = _tmp2_;
#line 28 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return self;
#line 161 "gitg-ext-user-query.c"
}


GitgExtUserQueryResponse* gitg_ext_user_query_response_new (const gchar* text, GtkResponseType response_type) {
#line 28 "/home/jesse/dev/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 168 "gitg-ext-user-query.c"
}


static void gitg_ext_user_query_response_class_init (GitgExtUserQueryResponseClass * klass) {
#line 23 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	gitg_ext_user_query_response_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_ext_user_query_response_finalize;
#line 177 "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/jesse/dev/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/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_g_free0 (self->text);
#line 23 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	G_OBJECT_CLASS (gitg_ext_user_query_response_parent_class)->finalize (obj);
#line 193 "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;
}


static void _vala_array_add1 (GitgExtUserQueryResponse*** array, int* length, int* size, GitgExtUserQueryResponse* value) {
#line 62 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	if ((*length) == (*size)) {
#line 62 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 62 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		*array = g_renew (GitgExtUserQueryResponse*, *array, (*size) + 1);
#line 216 "gitg-ext-user-query.c"
	}
#line 62 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	(*array)[(*length)++] = value;
#line 62 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	(*array)[*length] = NULL;
#line 222 "gitg-ext-user-query.c"
}


GitgExtUserQuery* gitg_ext_user_query_constructv_full (GType object_type, const gchar* title, const gchar* message, GtkMessageType message_type, va_list _vala_va_list) {
	GitgExtUserQuery * self = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	GtkMessageType _tmp2_ = 0;
	va_list l = {0};
	GitgExtUserQueryResponse** resps = NULL;
	GitgExtUserQueryResponse** _tmp3_ = NULL;
	gint resps_length1 = 0;
	gint _resps_size_ = 0;
	GitgExtUserQueryResponse** _tmp11_ = NULL;
	gint _tmp11__length1 = 0;
	GitgExtUserQueryResponse** _tmp12_ = NULL;
	gint _tmp12__length1 = 0;
#line 48 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_val_if_fail (title != NULL, NULL);
#line 48 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_val_if_fail (message != NULL, NULL);
#line 50 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = title;
#line 50 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp1_ = message;
#line 50 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp2_ = message_type;
#line 50 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self = (GitgExtUserQuery*) g_object_new (object_type, "title", _tmp0_, "message", _tmp1_, "message-type", _tmp2_, NULL);
#line 52 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	va_copy (l, _vala_va_list);
#line 53 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp3_ = g_new0 (GitgExtUserQueryResponse*, 0 + 1);
#line 53 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	resps = _tmp3_;
#line 53 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	resps_length1 = 0;
#line 53 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_resps_size_ = resps_length1;
#line 55 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	while (TRUE) {
#line 264 "gitg-ext-user-query.c"
		gchar* text = NULL;
		const gchar* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		GitgExtUserQueryResponse** _tmp7_ = NULL;
		gint _tmp7__length1 = 0;
		const gchar* _tmp8_ = NULL;
		GtkResponseType _tmp9_ = 0;
		GitgExtUserQueryResponse* _tmp10_ = NULL;
#line 56 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_tmp4_ = va_arg (l, gchar*);
#line 56 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_tmp5_ = g_strdup (_tmp4_);
#line 56 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		text = _tmp5_;
#line 58 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_tmp6_ = text;
#line 58 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		if (_tmp6_ == NULL) {
#line 59 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
			_g_free0 (text);
#line 59 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
			break;
#line 288 "gitg-ext-user-query.c"
		}
#line 62 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_tmp7_ = resps;
#line 62 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_tmp7__length1 = resps_length1;
#line 62 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_tmp8_ = text;
#line 62 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_tmp9_ = va_arg (l, GtkResponseType);
#line 62 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_tmp10_ = gitg_ext_user_query_response_new (_tmp8_, _tmp9_);
#line 62 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_vala_array_add1 (&resps, &resps_length1, &_resps_size_, _tmp10_);
#line 55 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_g_free0 (text);
#line 304 "gitg-ext-user-query.c"
	}
#line 65 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp11_ = resps;
#line 65 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp11__length1 = resps_length1;
#line 65 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	gitg_ext_user_query_set_responses (self, _tmp11_, _tmp11__length1);
#line 67 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp12_ = resps;
#line 67 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp12__length1 = resps_length1;
#line 67 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	if (_tmp12__length1 > 0) {
#line 318 "gitg-ext-user-query.c"
		GitgExtUserQueryResponse** _tmp13_ = NULL;
		gint _tmp13__length1 = 0;
		GitgExtUserQueryResponse** _tmp14_ = NULL;
		gint _tmp14__length1 = 0;
		GitgExtUserQueryResponse* _tmp15_ = NULL;
		GtkResponseType _tmp16_ = 0;
#line 68 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_tmp13_ = resps;
#line 68 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_tmp13__length1 = resps_length1;
#line 68 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_tmp14_ = resps;
#line 68 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_tmp14__length1 = resps_length1;
#line 68 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_tmp15_ = _tmp13_[_tmp14__length1 - 1];
#line 68 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_tmp16_ = _tmp15_->response_type;
#line 68 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		gitg_ext_user_query_set_default_response (self, _tmp16_);
#line 339 "gitg-ext-user-query.c"
	}
#line 48 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	resps = (_vala_array_free (resps, resps_length1, (GDestroyNotify) g_object_unref), NULL);
#line 48 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	va_end (l);
#line 48 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return self;
#line 347 "gitg-ext-user-query.c"
}


GitgExtUserQuery* gitg_ext_user_query_new_full (const gchar* title, const gchar* message, GtkMessageType message_type, ...) {
	va_list _vala_va_list_obj;
#line 48 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	va_start (_vala_va_list_obj, message_type);
#line 48 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return gitg_ext_user_query_constructv_full (GITG_EXT_TYPE_USER_QUERY, title, message, message_type, _vala_va_list_obj);
#line 357 "gitg-ext-user-query.c"
}


GitgExtUserQuery* gitg_ext_user_query_construct_full (GType object_type, const gchar* title, const gchar* message, GtkMessageType message_type, ...) {
	va_list _vala_va_list_obj;
#line 48 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	va_start (_vala_va_list_obj, message_type);
#line 48 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return gitg_ext_user_query_constructv_full (object_type, title, message, message_type, _vala_va_list_obj);
#line 367 "gitg-ext-user-query.c"
}


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


GitgExtUserQuery* gitg_ext_user_query_new (void) {
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return gitg_ext_user_query_construct (GITG_EXT_TYPE_USER_QUERY);
#line 384 "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/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 37 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = self->priv->_title;
#line 37 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	result = _tmp0_;
#line 37 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return result;
#line 399 "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/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_if_fail (self != NULL);
#line 37 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = value;
#line 37 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 37 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_g_free0 (self->priv->_title);
#line 37 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->_title = _tmp1_;
#line 37 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_object_notify ((GObject *) self, "title");
#line 418 "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/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 38 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = self->priv->_message;
#line 38 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	result = _tmp0_;
#line 38 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return result;
#line 433 "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/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_if_fail (self != NULL);
#line 38 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = value;
#line 38 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 38 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_g_free0 (self->priv->_message);
#line 38 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->_message = _tmp1_;
#line 38 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_object_notify ((GObject *) self, "message");
#line 452 "gitg-ext-user-query.c"
}


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


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


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


void gitg_ext_user_query_set_default_response (GitgExtUserQuery* self, GtkResponseType value) {
	GtkResponseType _tmp0_ = 0;
#line 40 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_if_fail (self != NULL);
#line 40 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = value;
#line 40 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->_default_response = _tmp0_;
#line 40 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_object_notify ((GObject *) self, "default-response");
#line 510 "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/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = self->priv->_responses;
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0__length1 = self->priv->_responses_length1;
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp1_ = _tmp0_;
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp1__length1 = _tmp0__length1;
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	if (result_length1) {
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		*result_length1 = _tmp1__length1;
#line 534 "gitg-ext-user-query.c"
	}
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	result = _tmp1_;
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return result;
#line 540 "gitg-ext-user-query.c"
}


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


static GitgExtUserQueryResponse** _vala_array_dup2 (GitgExtUserQueryResponse** self, int length) {
	GitgExtUserQueryResponse** result;
	int i;
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	result = g_new0 (GitgExtUserQueryResponse*, length + 1);
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	for (i = 0; i < length; i++) {
#line 558 "gitg-ext-user-query.c"
		GitgExtUserQueryResponse* _tmp0_ = NULL;
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		_tmp0_ = _g_object_ref0 (self[i]);
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		result[i] = _tmp0_;
#line 564 "gitg-ext-user-query.c"
	}
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return result;
#line 568 "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/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_if_fail (self != NULL);
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = value;
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0__length1 = value_length1;
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup2 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp1__length1 = _tmp0__length1;
#line 41 "/home/jesse/dev/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/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->_responses = _tmp1_;
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->_responses_length1 = _tmp1__length1;
#line 41 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->__responses_size_ = self->priv->_responses_length1;
#line 595 "gitg-ext-user-query.c"
}


gboolean gitg_ext_user_query_get_default_is_destructive (GitgExtUserQuery* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 42 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 42 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = self->priv->_default_is_destructive;
#line 42 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	result = _tmp0_;
#line 42 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return result;
#line 610 "gitg-ext-user-query.c"
}


void gitg_ext_user_query_set_default_is_destructive (GitgExtUserQuery* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 42 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_if_fail (self != NULL);
#line 42 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = value;
#line 42 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->_default_is_destructive = _tmp0_;
#line 42 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_object_notify ((GObject *) self, "default-is-destructive");
#line 624 "gitg-ext-user-query.c"
}


gboolean gitg_ext_user_query_get_message_use_markup (GitgExtUserQuery* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 43 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 43 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = self->priv->_message_use_markup;
#line 43 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	result = _tmp0_;
#line 43 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	return result;
#line 639 "gitg-ext-user-query.c"
}


void gitg_ext_user_query_set_message_use_markup (GitgExtUserQuery* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 43 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_if_fail (self != NULL);
#line 43 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_tmp0_ = value;
#line 43 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self->priv->_message_use_markup = _tmp0_;
#line 43 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_object_notify ((GObject *) self, "message-use-markup");
#line 653 "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/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_if_fail (return_value != NULL);
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_return_if_fail (n_param_values == 2);
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	if (G_CCLOSURE_SWAP_DATA (closure)) {
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		data1 = closure->data;
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		data2 = param_values->data[0].v_pointer;
#line 675 "gitg-ext-user-query.c"
	} else {
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		data1 = param_values->data[0].v_pointer;
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		data2 = closure->data;
#line 681 "gitg-ext-user-query.c"
	}
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	callback = (GMarshalFunc_BOOLEAN__ENUM) (marshal_data ? marshal_data : cc->callback);
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	v_return = callback (data1, g_value_get_enum (param_values + 1), data2);
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_value_set_boolean (return_value, v_return);
#line 689 "gitg-ext-user-query.c"
}


static void gitg_ext_user_query_class_init (GitgExtUserQueryClass * klass) {
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	gitg_ext_user_query_parent_class = g_type_class_peek_parent (klass);
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_type_class_add_private (klass, sizeof (GitgExtUserQueryPrivate));
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_ext_user_query_get_property;
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_ext_user_query_set_property;
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_ext_user_query_finalize;
#line 35 "/home/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_EXT_USER_QUERY_DEFAULT_IS_DESTRUCTIVE, g_param_spec_boolean ("default-is-destructive", "default-is-destructive", "default-is-destructive", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_EXT_USER_QUERY_MESSAGE_USE_MARKUP, g_param_spec_boolean ("message-use-markup", "message-use-markup", "message-use-markup", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 35 "/home/jesse/dev/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/jesse/dev/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 720 "gitg-ext-user-query.c"
}


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


static void gitg_ext_user_query_finalize (GObject* obj) {
	GitgExtUserQuery * self;
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_EXT_TYPE_USER_QUERY, GitgExtUserQuery);
#line 37 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_g_free0 (self->priv->_title);
#line 38 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	_g_free0 (self->priv->_message);
#line 41 "/home/jesse/dev/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/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	G_OBJECT_CLASS (gitg_ext_user_query_parent_class)->finalize (obj);
#line 745 "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/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	switch (property_id) {
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_TITLE:
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		g_value_set_string (value, gitg_ext_user_query_get_title (self));
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_MESSAGE:
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		g_value_set_string (value, gitg_ext_user_query_get_message (self));
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_MESSAGE_TYPE:
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		g_value_set_enum (value, gitg_ext_user_query_get_message_type (self));
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_DEFAULT_RESPONSE:
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		g_value_set_enum (value, gitg_ext_user_query_get_default_response (self));
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_DEFAULT_IS_DESTRUCTIVE:
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		g_value_set_boolean (value, gitg_ext_user_query_get_default_is_destructive (self));
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_MESSAGE_USE_MARKUP:
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		g_value_set_boolean (value, gitg_ext_user_query_get_message_use_markup (self));
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 802 "gitg-ext-user-query.c"
		default:
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 808 "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/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
	switch (property_id) {
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_TITLE:
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		gitg_ext_user_query_set_title (self, g_value_get_string (value));
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_MESSAGE:
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		gitg_ext_user_query_set_message (self, g_value_get_string (value));
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_MESSAGE_TYPE:
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		gitg_ext_user_query_set_message_type (self, g_value_get_enum (value));
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_DEFAULT_RESPONSE:
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		gitg_ext_user_query_set_default_response (self, g_value_get_enum (value));
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_DEFAULT_IS_DESTRUCTIVE:
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		gitg_ext_user_query_set_default_is_destructive (self, g_value_get_boolean (value));
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		case GITG_EXT_USER_QUERY_MESSAGE_USE_MARKUP:
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		gitg_ext_user_query_set_message_use_markup (self, g_value_get_boolean (value));
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 854 "gitg-ext-user-query.c"
		default:
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 35 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-user-query.vala"
		break;
#line 860 "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);
}



