Merge pull request #3916 from techee/symtree_icons
[geany-mirror.git] / src / geanymenubuttonaction.h
blobb52395f0453dc807073e3987d54acf1147502942
1 /*
2 * geanymenubuttonaction.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2009 The Geany contributors
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef GEANY_MENU_BUTTON_ACTION_H
23 #define GEANY_MENU_BUTTON_ACTION_H 1
25 #include "gtkcompat.h"
27 G_BEGIN_DECLS
29 #define GEANY_MENU_BUTTON_ACTION_TYPE (geany_menu_button_action_get_type())
30 #define GEANY_MENU_BUTTON_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\
31 GEANY_MENU_BUTTON_ACTION_TYPE, GeanyMenubuttonAction))
32 #define GEANY_MENU_BUTTON_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),\
33 GEANY_MENU_BUTTON_ACTION_TYPE, GeanyMenubuttonActionClass))
34 #define IS_GEANY_MENU_BUTTON_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),\
35 GEANY_MENU_BUTTON_ACTION_TYPE))
36 #define IS_GEANY_MENU_BUTTON_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),\
37 GEANY_MENU_BUTTON_ACTION_TYPE))
39 typedef struct _GeanyMenubuttonAction GeanyMenubuttonAction;
40 typedef struct _GeanyMenubuttonActionClass GeanyMenubuttonActionClass;
42 struct _GeanyMenubuttonActionPrivate;
44 struct _GeanyMenubuttonAction
46 GtkAction parent;
47 struct _GeanyMenubuttonActionPrivate *priv;
50 struct _GeanyMenubuttonActionClass
52 GtkActionClass parent_class;
55 GType geany_menu_button_action_get_type (void);
56 GtkAction* geany_menu_button_action_new (const gchar *name,
57 const gchar *label,
58 const gchar *tooltip,
59 const gchar *tooltip_arrow,
60 const gchar *stock_id);
61 GtkWidget* geany_menu_button_action_get_menu (GeanyMenubuttonAction *action);
63 void geany_menu_button_action_set_menu (GeanyMenubuttonAction *action, GtkWidget *menu);
65 G_END_DECLS
67 #endif /* GEANY_MENU_BUTTON_ACTION_H */