GTK+ Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#include <gtk/gtk.h> void (*GtkMenuCallback) (GtkWidget *widget, gpointer user_data); struct GtkMenuEntry; struct GtkMenuPath; struct GtkMenuFactory; GtkMenuFactory* gtk_menu_factory_new (GtkMenuFactoryType type); void gtk_menu_factory_destroy (GtkMenuFactory *factory); void gtk_menu_factory_add_entries (GtkMenuFactory *factory, GtkMenuEntry *entries, int nentries); void gtk_menu_factory_add_subfactory (GtkMenuFactory *factory, GtkMenuFactory *subfactory, const char *path); void gtk_menu_factory_remove_paths (GtkMenuFactory *factory, char **paths, int npaths); void gtk_menu_factory_remove_entries (GtkMenuFactory *factory, GtkMenuEntry *entries, int nentries); void gtk_menu_factory_remove_subfactory (GtkMenuFactory *factory, GtkMenuFactory *subfactory, const char *path); GtkMenuPath* gtk_menu_factory_find (GtkMenuFactory *factory, const char *path); |
void (*GtkMenuCallback) (GtkWidget *widget, gpointer user_data); |
widget : | |
user_data : |
struct GtkMenuEntry { gchar *path; gchar *accelerator; GtkMenuCallback callback; gpointer callback_data; GtkWidget *widget; }; |
struct GtkMenuFactory { gchar *path; GtkMenuFactoryType type; GtkAccelGroup *accel_group; GtkWidget *widget; GList *subfactories; }; |
GtkMenuFactory* gtk_menu_factory_new (GtkMenuFactoryType type); |
type : | |
Returns : |
void gtk_menu_factory_add_entries (GtkMenuFactory *factory, GtkMenuEntry *entries, int nentries); |
factory : | |
entries : | |
nentries : |
void gtk_menu_factory_add_subfactory (GtkMenuFactory *factory, GtkMenuFactory *subfactory, const char *path); |
factory : | |
subfactory : | |
path : |
void gtk_menu_factory_remove_paths (GtkMenuFactory *factory, char **paths, int npaths); |
factory : | |
paths : | |
npaths : |
void gtk_menu_factory_remove_entries (GtkMenuFactory *factory, GtkMenuEntry *entries, int nentries); |
factory : | |
entries : | |
nentries : |
void gtk_menu_factory_remove_subfactory (GtkMenuFactory *factory, GtkMenuFactory *subfactory, const char *path); |
factory : | |
subfactory : | |
path : |
GtkMenuPath* gtk_menu_factory_find (GtkMenuFactory *factory, const char *path); |
factory : | |
path : | |
Returns : |