Return an unisgned tag count in tm_tags_find()
[geany-mirror.git] / src / toolbar.h
blob2f18aeae3caf238acc378eb7e309058127d7dba1
1 /*
2 * toolbar.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2009-2012 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2009-2012 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (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
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef GEANY_TOOLBAR_H
23 #define GEANY_TOOLBAR_H 1
25 #include "gtkcompat.h"
27 G_BEGIN_DECLS
29 /** Toolbar settings. */
30 typedef struct GeanyToolbarPrefs
32 gboolean visible;
33 GtkIconSize icon_size;
34 GtkToolbarStyle icon_style; /**< Icon style. */
35 gboolean use_gtk_default_style;
36 gboolean use_gtk_default_icon;
37 gboolean append_to_menu;
39 GeanyToolbarPrefs;
42 #ifdef GEANY_PRIVATE
44 extern GeanyToolbarPrefs toolbar_prefs;
47 GtkWidget *toolbar_get_widget_child_by_name(const gchar *name);
49 GtkWidget *toolbar_get_widget_by_name(const gchar *name);
51 GtkAction *toolbar_get_action_by_name(const gchar *name);
53 gint toolbar_get_insert_position(void);
55 void toolbar_update_ui(void);
57 void toolbar_apply_settings(void);
59 void toolbar_show_hide(void);
61 void toolbar_item_ref(GtkToolItem *item);
63 GtkWidget *toolbar_init(void);
65 void toolbar_finalize(void);
67 void toolbar_configure(GtkWindow *parent);
69 #endif /* GEANY_PRIVATE */
71 G_END_DECLS
73 #endif /* GEANY_TOOLBAR_H */