r585: AppInfo file may contain a <Summary> element - the text inside will be
[rox-filer.git] / ROX-Filer / src / menu.h
blob26f81c1868785240b59b27e9d57340131cef3547
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 GtkWidget *create_menu_options(void);
23 void menu_update_options(void);
24 void menu_set_options(void);
25 void menu_save_options(void);
27 void show_filer_menu(FilerWindow *filer_window, GdkEventButton *event,
28 int item);
29 GtkWidget *menu_create(GtkItemFactoryEntry *def, int n_entries, guchar *name);
30 void menu_set_items_shaded(GtkWidget *menu, gboolean shaded, int from, int n);
31 void show_style_menu(FilerWindow *filer_window,
32 GdkEventButton *event,
33 GtkWidget *menu);
34 void position_menu(GtkMenu *menu, gint *x, gint *y, gpointer data);
36 /* Public menu handlers */
37 void menu_rox_help(gpointer data, guint action, GtkWidget *widget);
38 void menu_show_options(gpointer data, guint action, GtkWidget *widget);
39 void open_home(gpointer data, guint action, GtkWidget *widget);
41 #endif /* _MENU_H */