/* AboutDialog.c generated by valac 0.26.2, the Vala compiler
 * generated from AboutDialog.vala, do not modify */

/*  This file is part of corebird, a Gtk+ linux Twitter client.
 *  Copyright (C) 2013 Timm Bäder
 *
 *  corebird 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 3 of the License, or
 *  (at your option) any later version.
 *
 *  corebird 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 corebird.  If not, see <http://www.gnu.org/licenses/>.
 */

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


#define TYPE_ABOUT_DIALOG (about_dialog_get_type ())
#define ABOUT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABOUT_DIALOG, AboutDialog))
#define ABOUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABOUT_DIALOG, AboutDialogClass))
#define IS_ABOUT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABOUT_DIALOG))
#define IS_ABOUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABOUT_DIALOG))
#define ABOUT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABOUT_DIALOG, AboutDialogClass))

typedef struct _AboutDialog AboutDialog;
typedef struct _AboutDialogClass AboutDialogClass;
typedef struct _AboutDialogPrivate AboutDialogPrivate;

struct _AboutDialog {
	GtkAboutDialog parent_instance;
	AboutDialogPrivate * priv;
};

struct _AboutDialogClass {
	GtkAboutDialogClass parent_class;
};


static gpointer about_dialog_parent_class = NULL;

GType about_dialog_get_type (void) G_GNUC_CONST;
enum  {
	ABOUT_DIALOG_DUMMY_PROPERTY
};
static void about_dialog_response_cb (AboutDialog* self, gint id);
static void _about_dialog_response_cb_gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
AboutDialog* about_dialog_new (void);
AboutDialog* about_dialog_construct (GType object_type);


static void about_dialog_response_cb (AboutDialog* self, gint id) {
	gint _tmp0_ = 0;
	g_return_if_fail (IS_ABOUT_DIALOG (self));
	_tmp0_ = id;
	if (_tmp0_ == ((gint) GTK_RESPONSE_DELETE_EVENT)) {
		g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), "close");
	} else {
		gint _tmp1_ = 0;
		_tmp1_ = id;
		g_warning ("AboutDialog.vala:26: Unhandled response: %d", _tmp1_);
	}
}


static void _about_dialog_response_cb_gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
	about_dialog_response_cb ((AboutDialog*) self, response_id);
}


AboutDialog* about_dialog_construct (GType object_type) {
	AboutDialog * self = NULL;
	self = (AboutDialog*) g_object_new (object_type, NULL);
	return self;
}


AboutDialog* about_dialog_new (void) {
	return about_dialog_construct (TYPE_ABOUT_DIALOG);
}


static void about_dialog_class_init (AboutDialogClass * klass) {
	about_dialog_parent_class = g_type_class_peek_parent (klass);
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/baedert/corebird/ui/about-dialog.ui");
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "response_cb", G_CALLBACK(_about_dialog_response_cb_gtk_dialog_response));
}


static void about_dialog_instance_init (AboutDialog * self) {
	gtk_widget_init_template (GTK_WIDGET (self));
}


GType about_dialog_get_type (void) {
	static volatile gsize about_dialog_type_id__volatile = 0;
	if (g_once_init_enter (&about_dialog_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (AboutDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) about_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AboutDialog), 0, (GInstanceInitFunc) about_dialog_instance_init, NULL };
		GType about_dialog_type_id;
		about_dialog_type_id = g_type_register_static (gtk_about_dialog_get_type (), "AboutDialog", &g_define_type_info, 0);
		g_once_init_leave (&about_dialog_type_id__volatile, about_dialog_type_id);
	}
	return about_dialog_type_id__volatile;
}



