Converted README to markdown
[rox-filer.git] / ROX-Filer / src / menu.h
blobac9f7e6300de94e8667d693b00ebfd3570545d08
1 /*
2 * ROX-Filer, filer for the ROX desktop project
3 * By Thomas Leonard, <tal197@users.sourceforge.net>.
4 */
6 #ifndef _MENU_H
7 #define _MENU_H
9 /* 'action's for menu_rox_help */
10 enum {HELP_ABOUT, HELP_DIR, HELP_MANUAL};
12 typedef enum menu_icon_style {
13 MIS_NONE, MIS_SMALL, MIS_LARGE,
14 MIS_HUGE_UNUSED,
15 MIS_CURRENT, /* As per current filer window */
16 MIS_DEFAULT
17 } MenuIconStyle;
19 extern GtkAccelGroup *filer_keys;
21 void menu_init(void);
23 GtkItemFactory *menu_create(GtkItemFactoryEntry *def, int n_entries,
24 const gchar *name, GtkAccelGroup *keys);
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 gboolean *push_in, gpointer data);
28 void show_popup_menu(GtkWidget *menu, GdkEvent *event, int item);
30 gboolean ensure_filer_menu(void);
31 void show_filer_menu(FilerWindow *filer_window,
32 GdkEvent *event,
33 ViewIter *item);
34 void menu_popdown(void);
35 GtkWidget *make_send_to_item(DirItem *ditem, const char *label,
36 MenuIconStyle style);
38 /* Public menu handlers */
39 void menu_rox_help(gpointer data, guint action, GtkWidget *widget);
40 void menu_show_options(gpointer data, guint action, GtkWidget *widget);
41 void open_home(gpointer data, guint action, GtkWidget *widget);
42 void menu_show_shift_action(GtkWidget *menu_item, DirItem *item, gboolean next);
44 #endif /* _MENU_H */