Mercurial > geeqie
annotate src/ui_menu.h @ 322:d344bcf37618
Rationalize fullscreen options naming.
author | zas_ |
---|---|
date | Fri, 11 Apr 2008 23:32:22 +0000 |
parents | 55166d93498d |
children | 4b2d7f9af171 |
rev | line source |
---|---|
9 | 1 /* |
2 * (SLIK) SimpLIstic sKin functions | |
3 * (C) 2004 John Ellis | |
4 * | |
5 * Author: John Ellis | |
6 * | |
7 * This software is released under the GNU General Public License (GNU GPL). | |
8 * Please read the included file COPYING for more information. | |
9 * This software comes with no warranty of any kind, use at your own risk! | |
10 */ | |
11 | |
12 | |
13 #ifndef UI_MENU_H | |
14 #define UI_MENU_H | |
15 | |
16 | |
17 GtkWidget *menu_item_add(GtkWidget *menu, const gchar *label, | |
18 GCallback func, gpointer data); | |
19 GtkWidget *menu_item_add_stock(GtkWidget *menu, const gchar *label, const gchar *stock_id, | |
20 GCallback func, gpointer data); | |
21 GtkWidget *menu_item_add_sensitive(GtkWidget *menu, const gchar *label, gint sensitive, | |
22 GCallback func, gpointer data); | |
23 GtkWidget *menu_item_add_stock_sensitive(GtkWidget *menu, const gchar *label, const gchar *stock_id, gint sensitive, | |
24 GCallback func, gpointer data); | |
25 GtkWidget *menu_item_add_check(GtkWidget *menu, const gchar *label, gint active, | |
26 GCallback func, gpointer data); | |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
9
diff
changeset
|
27 GtkWidget *menu_item_add_radio(GtkWidget *menu, GtkWidget *parent, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
9
diff
changeset
|
28 const gchar *label, gint active, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
9
diff
changeset
|
29 GCallback func, gpointer data); |
9 | 30 void menu_item_add_divider(GtkWidget *menu); |
31 | |
32 /* use to avoid mnemonics, for example filenames */ | |
33 GtkWidget *menu_item_add_simple(GtkWidget *menu, const gchar *label, | |
34 GCallback func, gpointer data); | |
35 | |
36 GtkWidget *popup_menu_short_lived(void); | |
37 | |
38 /* clamp a menu's position to within the screen | |
39 * if menu will attempt to stay out of region y to y+height | |
40 */ | |
41 gint popup_menu_position_clamp(GtkMenu *menu, gint *x, gint *y, gint height); | |
42 | |
43 | |
44 #endif | |
45 |