2 * toolbar.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2009 The Geany contributors
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.
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.
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.
21 #ifndef GEANY_TOOLBAR_H
22 #define GEANY_TOOLBAR_H 1
24 #include "gtkcompat.h"
28 /** Toolbar settings. */
29 typedef struct GeanyToolbarPrefs
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
;
43 extern GeanyToolbarPrefs toolbar_prefs
;
46 GtkWidget
*toolbar_get_widget_child_by_name(const gchar
*name
);
48 GtkWidget
*toolbar_get_widget_by_name(const gchar
*name
);
50 GtkAction
*toolbar_get_action_by_name(const gchar
*name
);
52 gint
toolbar_get_insert_position(void);
54 void toolbar_update_ui(void);
56 void toolbar_apply_settings(void);
58 void toolbar_show_hide(void);
60 void toolbar_item_ref(GtkToolItem
*item
);
62 GtkWidget
*toolbar_init(void);
64 void toolbar_finalize(void);
66 void toolbar_configure(GtkWindow
*parent
);
68 #endif /* GEANY_PRIVATE */
72 #endif /* GEANY_TOOLBAR_H */