2 * Copyright (C) 2004 John Ellis
3 * Copyright (C) 2008 - 2016 The Geeqie Team
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 along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 GtkWidget *menu_item_add(GtkWidget *menu, const gchar *label,
27 GCallback func, gpointer data);
28 GtkWidget *menu_item_add_stock(GtkWidget *menu, const gchar *label, const gchar *stock_id,
29 GCallback func, gpointer data);
30 GtkWidget *menu_item_add_sensitive(GtkWidget *menu, const gchar *label, gboolean sensitive,
31 GCallback func, gpointer data);
32 GtkWidget *menu_item_add_stock_sensitive(GtkWidget *menu, const gchar *label, const gchar *stock_id, gboolean sensitive,
33 GCallback func, gpointer data);
34 GtkWidget *menu_item_add_check(GtkWidget *menu, const gchar *label, gboolean active,
35 GCallback func, gpointer data);
36 GtkWidget *menu_item_add_radio(GtkWidget *menu, const gchar *label, gpointer item_data, gboolean active,
37 GCallback func, gpointer data);
38 void menu_item_add_divider(GtkWidget *menu);
40 /* use to avoid mnemonics, for example filenames */
41 GtkWidget *menu_item_add_simple(GtkWidget *menu, const gchar *label,
42 GCallback func, gpointer data);
44 GtkWidget *popup_menu_short_lived(void);
46 /* clamp a menu's position to within the screen
47 * if menu will attempt to stay out of region y to y+height
49 gboolean popup_menu_position_clamp(GtkMenu *menu, gint *x, gint *y, gint height);
53 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */