Typedefs | |
typedef gboolean(* | ROXMenuPreFilter )(GtkWidget *menu, GtkWidget *window, gpointer udata) |
Functions | |
GtkWidget * | rox_menu_build (GtkWidget *window, GtkItemFactoryEntry *menu_items, int n_menu, const gchar *menu_name, const gchar *accel_name) |
void | rox_menu_attach (GtkWidget *menu, GtkWidget *window, gboolean on_button_press, ROXMenuPreFilter filter, gpointer udata) |
void | rox_menu_attach_to_applet (GtkWidget *menu, GtkWidget *applet, ROXMenuPreFilter filter, gpointer udata) |
GtkWidget * | rox_menu_get_widget (GtkWidget *menu, const char *path) |
|
Type of function called before a menu is shown. This allows a program to update the menu, record state information, or even veto the display of the menu.
|
|
Attach a menu to a window (or other widget). The menu will be displayed when the "popup-menu" signal is triggered on window and optionally when the "button_press_event" signal is triggered.
|
|
Attach a menu to an applet's window. The menu will be displayed when the "popup-menu" signal or button_press_event" signal is triggered on applet.
|
|
Create a menu. The menu is built from a static definition and connected to a window for the purposes of reacting to key accelerators. It is not attached to a window, use either rox_menu_attach() or rox_menu_attach_to_applet().
|
|
Look up a menu widget by its path in a menu created by rox_menu_build().
|