Mercurial > geeqie
annotate src/ui_menu.h @ 1811:f405ec9b696b default tip
Some small logic mistakes
Use boolean operators for booleans and bitwise otherwise only.
| author | mow |
|---|---|
| date | Mon, 10 May 2010 11:33:13 +0000 |
| parents | 956aab097ea7 |
| children |
| rev | line source |
|---|---|
| 9 | 1 /* |
| 2 * (SLIK) SimpLIstic sKin functions | |
| 3 * (C) 2004 John Ellis | |
| 1802 | 4 * Copyright (C) 2008 - 2010 The Geeqie Team |
| 9 | 5 * |
| 6 * Author: John Ellis | |
| 7 * | |
| 8 * This software is released under the GNU General Public License (GNU GPL). | |
| 9 * Please read the included file COPYING for more information. | |
| 10 * This software comes with no warranty of any kind, use at your own risk! | |
| 11 */ | |
| 12 | |
| 13 | |
| 14 #ifndef UI_MENU_H | |
| 15 #define UI_MENU_H | |
| 16 | |
| 17 | |
| 18 GtkWidget *menu_item_add(GtkWidget *menu, const gchar *label, | |
| 19 GCallback func, gpointer data); | |
| 20 GtkWidget *menu_item_add_stock(GtkWidget *menu, const gchar *label, const gchar *stock_id, | |
| 21 GCallback func, gpointer data); | |
| 1448 | 22 GtkWidget *menu_item_add_sensitive(GtkWidget *menu, const gchar *label, gboolean sensitive, |
| 9 | 23 GCallback func, gpointer data); |
| 1448 | 24 GtkWidget *menu_item_add_stock_sensitive(GtkWidget *menu, const gchar *label, const gchar *stock_id, gboolean sensitive, |
| 9 | 25 GCallback func, gpointer data); |
| 1448 | 26 GtkWidget *menu_item_add_check(GtkWidget *menu, const gchar *label, gboolean active, |
| 9 | 27 GCallback func, gpointer data); |
| 1667 | 28 GtkWidget *menu_item_add_radio(GtkWidget *menu, const gchar *label, gpointer item_data, gboolean active, |
|
113
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, | |
| 442 | 34 GCallback func, gpointer data); |
| 9 | 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 */ | |
| 1448 | 41 gboolean popup_menu_position_clamp(GtkMenu *menu, gint *x, gint *y, gint height); |
| 9 | 42 |
| 43 | |
| 44 #endif | |
|
1055
1646720364cf
Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents:
475
diff
changeset
|
45 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |
