/* setup-main.c generated by valac 0.12.0, the Vala compiler
 * generated from setup-main.vala, do not modify */

/* -*- mode: vala; indent-tabs-mode: nil -*-*/
/* Copyright (C) 2011  Daiki Ueno*/
/* Copyright (C) 2011  Red Hat, Inc.*/
/* This program 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.*/
/* This program 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 this program; if not, write to the Free Software*/
/* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA*/
/* 02110-1301, USA.*/

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


#define IBUS_GUCHARMAP_TYPE_SETUP (ibus_gucharmap_setup_get_type ())
#define IBUS_GUCHARMAP_SETUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IBUS_GUCHARMAP_TYPE_SETUP, IBusGucharmapSetup))
#define IBUS_GUCHARMAP_SETUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IBUS_GUCHARMAP_TYPE_SETUP, IBusGucharmapSetupClass))
#define IBUS_GUCHARMAP_IS_SETUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IBUS_GUCHARMAP_TYPE_SETUP))
#define IBUS_GUCHARMAP_IS_SETUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IBUS_GUCHARMAP_TYPE_SETUP))
#define IBUS_GUCHARMAP_SETUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IBUS_GUCHARMAP_TYPE_SETUP, IBusGucharmapSetupClass))

typedef struct _IBusGucharmapSetup IBusGucharmapSetup;
typedef struct _IBusGucharmapSetupClass IBusGucharmapSetupClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))



gint ibus_gucharmap_main (gchar** args, int args_length1);
IBusGucharmapSetup* ibus_gucharmap_setup_new (IBusConfig* _config);
IBusGucharmapSetup* ibus_gucharmap_setup_construct (GType object_type, IBusConfig* _config);
GType ibus_gucharmap_setup_get_type (void) G_GNUC_CONST;
void ibus_gucharmap_setup_run (IBusGucharmapSetup* self);


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


gint ibus_gucharmap_main (gchar** args, int args_length1) {
	gint result = 0;
	IBusBus* _tmp0_ = NULL;
	IBusBus* bus;
	IBusConfig* _tmp1_ = NULL;
	IBusConfig* _tmp2_;
	IBusConfig* config;
	IBusGucharmapSetup* _tmp3_ = NULL;
	IBusGucharmapSetup* setup;
	gtk_init (&args_length1, &args);
	ibus_init ();
	_tmp0_ = ibus_bus_new ();
	bus = g_object_ref_sink (_tmp0_);
	_tmp1_ = ibus_bus_get_config (bus);
	_tmp2_ = _g_object_ref0 (_tmp1_);
	config = _tmp2_;
	_tmp3_ = ibus_gucharmap_setup_new (config);
	setup = _tmp3_;
	ibus_gucharmap_setup_run (setup);
	result = 0;
	_g_object_unref0 (setup);
	_g_object_unref0 (config);
	_g_object_unref0 (bus);
	return result;
}


int main (int argc, char ** argv) {
	g_type_init ();
	return ibus_gucharmap_main (argv, argc);
}



