1 /*
2  *      toolbar.h - this file is part of Geany, a fast and lightweight IDE
3  *
4  *      Copyright 2009 The Geany contributors
5  *
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.
10  *
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.
15  *
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.
19  */
20 
21 #ifndef GEANY_TOOLBAR_H
22 #define GEANY_TOOLBAR_H 1
23 
24 #include "gtkcompat.h"
25 
26 G_BEGIN_DECLS
27 
28 /** Toolbar settings. */
29 typedef struct GeanyToolbarPrefs
30 {
31 	gboolean		visible;
32 	GtkIconSize		icon_size;
33 	GtkToolbarStyle	icon_style;	/**< Icon style. */
34 	gboolean		use_gtk_default_style;
35 	gboolean		use_gtk_default_icon;
36 	gboolean		append_to_menu;
37 }
38 GeanyToolbarPrefs;
39 
40 
41 #ifdef GEANY_PRIVATE
42 
43 extern GeanyToolbarPrefs toolbar_prefs;
44 
45 
46 GtkWidget *toolbar_get_widget_child_by_name(const gchar *name);
47 
48 GtkWidget *toolbar_get_widget_by_name(const gchar *name);
49 
50 GtkAction *toolbar_get_action_by_name(const gchar *name);
51 
52 gint toolbar_get_insert_position(void);
53 
54 void toolbar_update_ui(void);
55 
56 void toolbar_apply_settings(void);
57 
58 void toolbar_show_hide(void);
59 
60 void toolbar_item_ref(GtkToolItem *item);
61 
62 GtkWidget *toolbar_init(void);
63 
64 void toolbar_finalize(void);
65 
66 void toolbar_configure(GtkWindow *parent);
67 
68 #endif /* GEANY_PRIVATE */
69 
70 G_END_DECLS
71 
72 #endif /* GEANY_TOOLBAR_H */
73