/* menu_in_toolbar.c generated by valac 0.40.0.227-717ea, the Vala compiler
 * generated from menu_in_toolbar.vala, do not modify */

/*
 * This file is part of GNOME LaTeX.
 *
 * Copyright © 2010 Sébastien Wilmet
 *
 * GNOME LaTeX 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.
 *
 * GNOME LaTeX 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 GNOME LaTeX.  If not, see <http://www.gnu.org/licenses/>.
 */


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


#define TYPE_MENU_TOOL_ACTION (menu_tool_action_get_type ())
#define MENU_TOOL_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MENU_TOOL_ACTION, MenuToolAction))
#define MENU_TOOL_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MENU_TOOL_ACTION, MenuToolActionClass))
#define IS_MENU_TOOL_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MENU_TOOL_ACTION))
#define IS_MENU_TOOL_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MENU_TOOL_ACTION))
#define MENU_TOOL_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MENU_TOOL_ACTION, MenuToolActionClass))

typedef struct _MenuToolAction MenuToolAction;
typedef struct _MenuToolActionClass MenuToolActionClass;
typedef struct _MenuToolActionPrivate MenuToolActionPrivate;
enum  {
	MENU_TOOL_ACTION_0_PROPERTY,
	MENU_TOOL_ACTION_NUM_PROPERTIES
};
static GParamSpec* menu_tool_action_properties[MENU_TOOL_ACTION_NUM_PROPERTIES];

struct _MenuToolAction {
	GtkAction parent_instance;
	MenuToolActionPrivate * priv;
};

struct _MenuToolActionClass {
	GtkActionClass parent_class;
};


static gpointer menu_tool_action_parent_class = NULL;

GType menu_tool_action_get_type (void) G_GNUC_CONST;
MenuToolAction* menu_tool_action_new (const gchar* name,
                                      const gchar* label,
                                      const gchar* tooltip,
                                      const gchar* icon_name);
MenuToolAction* menu_tool_action_construct (GType object_type,
                                            const gchar* name,
                                            const gchar* label,
                                            const gchar* tooltip,
                                            const gchar* icon_name);


MenuToolAction*
menu_tool_action_construct (GType object_type,
                            const gchar* name,
                            const gchar* label,
                            const gchar* tooltip,
                            const gchar* icon_name)
{
	MenuToolAction * self = NULL;
	GtkActionClass* ac = NULL;
	GObjectClass* _tmp0_;
#line 24 "menu_in_toolbar.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 26 "menu_in_toolbar.vala"
	self = (MenuToolAction*) g_object_new (object_type, "name", name, "label", label, "tooltip", tooltip, "icon-name", icon_name, NULL);
#line 27 "menu_in_toolbar.vala"
	_tmp0_ = G_OBJECT_GET_CLASS ((GObject*) self);
#line 27 "menu_in_toolbar.vala"
	ac = (GtkActionClass*) _tmp0_;
#line 28 "menu_in_toolbar.vala"
	ac->toolbar_item_type = gtk_menu_tool_button_get_type ();
#line 24 "menu_in_toolbar.vala"
	return self;
#line 94 "menu_in_toolbar.c"
}


MenuToolAction*
menu_tool_action_new (const gchar* name,
                      const gchar* label,
                      const gchar* tooltip,
                      const gchar* icon_name)
{
#line 24 "menu_in_toolbar.vala"
	return menu_tool_action_construct (TYPE_MENU_TOOL_ACTION, name, label, tooltip, icon_name);
#line 106 "menu_in_toolbar.c"
}


static void
menu_tool_action_class_init (MenuToolActionClass * klass)
{
#line 22 "menu_in_toolbar.vala"
	menu_tool_action_parent_class = g_type_class_peek_parent (klass);
#line 115 "menu_in_toolbar.c"
}


static void
menu_tool_action_instance_init (MenuToolAction * self)
{
}


GType
menu_tool_action_get_type (void)
{
	static volatile gsize menu_tool_action_type_id__volatile = 0;
	if (g_once_init_enter (&menu_tool_action_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (MenuToolActionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) menu_tool_action_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MenuToolAction), 0, (GInstanceInitFunc) menu_tool_action_instance_init, NULL };
		GType menu_tool_action_type_id;
		menu_tool_action_type_id = g_type_register_static (gtk_action_get_type (), "MenuToolAction", &g_define_type_info, 0);
		g_once_init_leave (&menu_tool_action_type_id__volatile, menu_tool_action_type_id);
	}
	return menu_tool_action_type_id__volatile;
}



