r898: Applied Bernard Jungen's latest patch:
[rox-filer.git] / ROX-Filer / src / menu.h
blob30883fcdb742dd57862c5aaecb1a3e2e74a1531a
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 #define MENU_MARGIN 32
13 extern GtkAccelGroup *filer_keys;
14 extern GtkWidget *popup_menu;
15 extern char *xterm_here_value;
17 extern GtkWidget *display_large_menu; /* Display->Large With... */
18 extern GtkWidget *display_small_menu; /* Display->Small With... */
20 void menu_init(void);
22 void show_filer_menu(FilerWindow *filer_window, GdkEvent *event, int item);
23 GtkItemFactory *menu_create(GtkItemFactoryEntry *def,
24 int n_entries, guchar *name);
25 void menu_set_items_shaded(GtkWidget *menu, gboolean shaded, int from, int n);
26 void position_menu(GtkMenu *menu, gint *x, gint *y,
27 #ifdef GTK2
28 gboolean *push_in,
29 #endif
30 gpointer data);
31 void show_popup_menu(GtkWidget *menu, GdkEvent *event, int item);
33 /* Public menu handlers */
34 void menu_rox_help(gpointer data, guint action, GtkWidget *widget);
35 void menu_show_options(gpointer data, guint action, GtkWidget *widget);
36 void open_home(gpointer data, guint action, GtkWidget *widget);
37 void menu_show_shift_action(GtkWidget *menu_item, DirItem *item, gboolean next);
39 #endif /* _MENU_H */