Start to make it easier to compile the core in isolation
[geany-mirror.git] / src / toolbar.h
blob06cf95c16783c73fe2da9b43122d219aad48064e
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
25 G_BEGIN_DECLS
27 /** Toolbar settings. */
28 typedef struct GeanyToolbarPrefs
30 gboolean visible;
31 GtkIconSize icon_size;
32 GtkToolbarStyle icon_style; /**< Icon style. */
33 gboolean use_gtk_default_style;
34 gboolean use_gtk_default_icon;
35 gboolean append_to_menu;
37 GeanyToolbarPrefs;
39 extern GeanyToolbarPrefs toolbar_prefs;
42 GtkWidget *toolbar_get_widget_child_by_name(const gchar *name);
44 GtkWidget *toolbar_get_widget_by_name(const gchar *name);
46 GtkAction *toolbar_get_action_by_name(const gchar *name);
48 gint toolbar_get_insert_position(void);
50 void toolbar_update_ui(void);
52 void toolbar_apply_settings(void);
54 void toolbar_show_hide(void);
56 void toolbar_item_ref(GtkToolItem *item);
58 GtkWidget *toolbar_init(void);
60 void toolbar_finalize(void);
62 void toolbar_configure(GtkWindow *parent);
64 G_END_DECLS
66 #endif