r1476: Options to forward button-3 clicks on the pinboard to the window manager
[rox-filer.git] / ROX-Filer / src / menu.h
blob6348e421b50329a7f696395d77cae5d0927c675c
1 /*
2 * $Id$
4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@users.sourceforge.net>.
6 */
8 #ifndef _MENU_H
9 #define _MENU_H
11 extern GtkAccelGroup *filer_keys;
13 void menu_init(void);
15 GtkItemFactory *menu_create(GtkItemFactoryEntry *def, int n_entries,
16 const gchar *name, GtkAccelGroup *keys);
17 void menu_set_items_shaded(GtkWidget *menu, gboolean shaded, int from, int n);
18 void position_menu(GtkMenu *menu, gint *x, gint *y,
19 gboolean *push_in, gpointer data);
20 void show_popup_menu(GtkWidget *menu, GdkEvent *event, int item);
22 void ensure_filer_menu(void);
23 void show_filer_menu(FilerWindow *filer_window, GdkEvent *event, int item);
24 void menu_popdown(void);
26 /* Public menu handlers */
27 void menu_rox_help(gpointer data, guint action, GtkWidget *widget);
28 void menu_show_options(gpointer data, guint action, GtkWidget *widget);
29 void open_home(gpointer data, guint action, GtkWidget *widget);
30 void menu_show_shift_action(GtkWidget *menu_item, DirItem *item, gboolean next);
32 #endif /* _MENU_H */