Cache G_TYPE_INSTANCE_GET_PRIVATE() result when initializing an
[geany-mirror.git] / src / toolbar.h
blob197288e31c907510cfa2976935b11ceff8bad50f
1 /*
2 * toolbar.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2009-2010 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2009-2010 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.
21 * $Id$
24 #ifndef GEANY_TOOLBAR_H
25 #define GEANY_TOOLBAR_H
27 /** Toolbar settings. */
28 typedef struct GeanyToolbarPrefs
30 gboolean visible;
31 GtkIconSize icon_size;
32 GtkToolbarStyle icon_style; /**< Icon style. */
33 gboolean append_to_menu;
35 GeanyToolbarPrefs;
37 extern GeanyToolbarPrefs toolbar_prefs;
40 GtkWidget *toolbar_get_widget_child_by_name(const gchar *name);
42 GtkWidget *toolbar_get_widget_by_name(const gchar *name);
44 GtkAction *toolbar_get_action_by_name(const gchar *name);
46 gint toolbar_get_insert_position(void);
48 void toolbar_update_ui(void);
50 void toolbar_apply_settings(void);
52 void toolbar_show_hide(void);
54 void toolbar_item_ref(GtkToolItem *item);
56 GtkWidget *toolbar_init(void);
58 void toolbar_finalize(void);
60 void toolbar_configure(GtkWindow *parent);
62 #endif