Updated Spanish translation
[anjuta-git-plugin.git] / libegg / menu / egg-submenu-action.h
blob7c4376e0d04a222507a2f20a48ba4a2256a484af
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 /* egg-submenu-action widget
5 * Copyright (C) Naba Kumar <naba@gnome.org>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public
18 * License along with this program; if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
22 #ifndef EGG_SUBMENU_ACTION_H
23 #define EGG_SUBMENU_ACTION_H
25 #include <gtk/gtk.h>
26 #include <gtk/gtkaction.h>
28 G_BEGIN_DECLS
30 #define EGG_TYPE_SUBMENU_ACTION (egg_submenu_action_get_type ())
31 #define EGG_SUBMENU_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_SUBMENU_ACTION, EggSubmenuAction))
32 #define EGG_SUBMENU_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_SUBMENU_ACTION, EggSubmenuActionClass))
33 #define EGG_IS_SUBMENU_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_SUBMENU_ACTION))
34 #define EGG_IS_SUBMENU_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EGG_TYPE_SUBMENU_ACTION))
35 #define EGG_SUBMENU_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), EGG_TYPE_SUBMENU_ACTION, EggSubmenuActionClass))
37 typedef struct _EggSubmenuAction EggSubmenuAction;
38 typedef struct _EggSubmenuActionClass EggSubmenuActionClass;
39 typedef struct _EggSubmenuActionPriv EggSubmenuActionPriv;
41 typedef GtkWidget* (*EggSubmenuFactory) (gpointer user_data);
43 struct _EggSubmenuAction
45 GtkAction parent;
46 EggSubmenuActionPriv *priv;
49 struct _EggSubmenuActionClass
51 GtkActionClass parent_class;
54 GType egg_submenu_action_get_type (void);
55 void egg_submenu_action_set_menu_factory (EggSubmenuAction *action,
56 EggSubmenuFactory factory,
57 gpointer user_data);
58 G_END_DECLS
60 #endif