r1774: Updated Spanish translation (Marcelo Ramos).
[rox-filer.git] / ROX-Filer / src / menu.h
blob0308bbe82e61800968818d860319f029d97d59ee
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, GdkEvent *event, int item);
27 void menu_popdown(void);
29 /* Public menu handlers */
30 void menu_rox_help(gpointer data, guint action, GtkWidget *widget);
31 void menu_show_options(gpointer data, guint action, GtkWidget *widget);
32 void open_home(gpointer data, guint action, GtkWidget *widget);
33 void menu_show_shift_action(GtkWidget *menu_item, DirItem *item, gboolean next);
35 #endif /* _MENU_H */