r1996: Cope slightly better with invalid filenames in various places (reported by
[rox-filer.git] / ROX-Filer / src / menu.h
blob29c269e2c6348131409a91907e046833f1b074ff
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 /* 'action's for menu_rox_help */
12 enum {HELP_ABOUT, HELP_DIR, HELP_MANUAL};
14 extern GtkAccelGroup *filer_keys;
16 void menu_init(void);
18 GtkItemFactory *menu_create(GtkItemFactoryEntry *def, int n_entries,
19 const gchar *name, GtkAccelGroup *keys);
20 void menu_set_items_shaded(GtkWidget *menu, gboolean shaded, int from, int n);
21 void position_menu(GtkMenu *menu, gint *x, gint *y,
22 gboolean *push_in, gpointer data);
23 void show_popup_menu(GtkWidget *menu, GdkEvent *event, int item);
25 void ensure_filer_menu(void);
26 void show_filer_menu(FilerWindow *filer_window,
27 GdkEvent *event,
28 ViewIter *item);
29 void menu_popdown(void);
31 /* Public menu handlers */
32 void menu_rox_help(gpointer data, guint action, GtkWidget *widget);
33 void menu_show_options(gpointer data, guint action, GtkWidget *widget);
34 void open_home(gpointer data, guint action, GtkWidget *widget);
35 void menu_show_shift_action(GtkWidget *menu_item, DirItem *item, gboolean next);
37 #endif /* _MENU_H */