2 * (SLIK) SimpLIstic sKin functions
4 * Copyright (C) 2008 - 2012 The Geeqie Team
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!
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);
22 GtkWidget *menu_item_add_sensitive(GtkWidget *menu, const gchar *label, gboolean sensitive,
23 GCallback func, gpointer data);
24 GtkWidget *menu_item_add_stock_sensitive(GtkWidget *menu, const gchar *label, const gchar *stock_id, gboolean sensitive,
25 GCallback func, gpointer data);
26 GtkWidget *menu_item_add_check(GtkWidget *menu, const gchar *label, gboolean active,
27 GCallback func, gpointer data);
28 GtkWidget *menu_item_add_radio(GtkWidget *menu, const gchar *label, gpointer item_data, gboolean active,
29 GCallback func, gpointer data);
30 void menu_item_add_divider(GtkWidget *menu);
32 /* use to avoid mnemonics, for example filenames */
33 GtkWidget *menu_item_add_simple(GtkWidget *menu, const gchar *label,
34 GCallback func, gpointer data);
36 GtkWidget *popup_menu_short_lived(void);
38 /* clamp a menu's position to within the screen
39 * if menu will attempt to stay out of region y to y+height
41 gboolean popup_menu_position_clamp(GtkMenu *menu, gint *x, gint *y, gint height);
45 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */