2 * toolbar.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2009-2011 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2009-2011 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
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef GEANY_TOOLBAR_H
23 #define GEANY_TOOLBAR_H
27 /** Toolbar settings. */
28 typedef struct GeanyToolbarPrefs
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
;
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
);