4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@users.sourceforge.net>.
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... */
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
,
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
);