#include "rox-clib.h"
#include <stdlib.h>
#include <glib.h>
#include <gtk/gtk.h>
#include "rox.h"
#include "menu.h"
#include "applet.h"
Functions | |
GtkWidget * | rox_menu_build (GtkWidget *window, GtkItemFactoryEntry *menu_items, int n_menu, const gchar *menu_name, const gchar *accel_name) |
GtkWidget * | rox_menu_get_widget (GtkWidget *menu, const char *path) |
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) |
|
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().
|