Update HACKING for changed doc generation instructions
[geany-mirror.git] / src / toolbar.h
blob63f1b1dfdc05da0698a64d97c31995376941d537
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;
41 extern GeanyToolbarPrefs toolbar_prefs;
44 GtkWidget *toolbar_get_widget_child_by_name(const gchar *name);
46 GtkWidget *toolbar_get_widget_by_name(const gchar *name);
48 GtkAction *toolbar_get_action_by_name(const gchar *name);
50 gint toolbar_get_insert_position(void);
52 void toolbar_update_ui(void);
54 void toolbar_apply_settings(void);
56 void toolbar_show_hide(void);
58 void toolbar_item_ref(GtkToolItem *item);
60 GtkWidget *toolbar_init(void);
62 void toolbar_finalize(void);
64 void toolbar_configure(GtkWindow *parent);
66 G_END_DECLS
68 #endif /* GEANY_TOOLBAR_H */