"Fix" some GCC -Wparentheses warnings
[geany-mirror.git] / src / geanyentryaction.h
blob79ca2a7abb68e9ec8dbabb01f0c8d8870bf26718
1 /*
2 * geanyentryaction.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2008 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_ENTRY_ACTION_H
23 #define GEANY_ENTRY_ACTION_H 1
25 #include "gtkcompat.h"
27 G_BEGIN_DECLS
29 #define GEANY_ENTRY_ACTION_TYPE (geany_entry_action_get_type())
30 #define GEANY_ENTRY_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\
31 GEANY_ENTRY_ACTION_TYPE, GeanyEntryAction))
32 #define GEANY_ENTRY_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),\
33 GEANY_ENTRY_ACTION_TYPE, GeanyEntryActionClass))
34 #define IS_GEANY_ENTRY_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),\
35 GEANY_ENTRY_ACTION_TYPE))
36 #define IS_GEANY_ENTRY_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),\
37 GEANY_ENTRY_ACTION_TYPE))
39 typedef struct _GeanyEntryAction GeanyEntryAction;
40 typedef struct _GeanyEntryActionClass GeanyEntryActionClass;
42 struct _GeanyEntryActionPrivate;
44 struct _GeanyEntryAction
46 GtkAction parent;
47 struct _GeanyEntryActionPrivate *priv;
50 struct _GeanyEntryActionClass
52 GtkActionClass parent_class;
55 GType geany_entry_action_get_type (void);
56 GtkAction* geany_entry_action_new (const gchar *name,
57 const gchar *label,
58 const gchar *tooltip,
59 gboolean numeric);
60 GtkWidget* geany_entry_action_get_menu (GeanyEntryAction *action);
62 G_END_DECLS
64 #endif /* GEANY_ENTRY_ACTION_H */