Menu Factory

Name

Menu Factory —

Synopsis


#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);

Description

Details

GtkMenuCallback ()

void        (*GtkMenuCallback)              (GtkWidget *widget,
                                             gpointer user_data);

widget : 
user_data : 


struct GtkMenuEntry

struct GtkMenuEntry
{
  gchar *path;
  gchar *accelerator;
  GtkMenuCallback callback;
  gpointer callback_data;
  GtkWidget *widget;
};


struct GtkMenuPath

struct GtkMenuPath
{
  char *path;
  GtkWidget *widget;
};


struct GtkMenuFactory

struct GtkMenuFactory
{
  gchar *path;
  GtkMenuFactoryType type;
  GtkAccelGroup *accel_group;
  GtkWidget *widget;
  GList *subfactories;
};


gtk_menu_factory_new ()

GtkMenuFactory* gtk_menu_factory_new        (GtkMenuFactoryType type);

type : 
Returns : 


gtk_menu_factory_destroy ()

void        gtk_menu_factory_destroy        (GtkMenuFactory *factory);

factory : 


gtk_menu_factory_add_entries ()

void        gtk_menu_factory_add_entries    (GtkMenuFactory *factory,
                                             GtkMenuEntry *entries,
                                             int nentries);

factory : 
entries : 
nentries : 


gtk_menu_factory_add_subfactory ()

void        gtk_menu_factory_add_subfactory (GtkMenuFactory *factory,
                                             GtkMenuFactory *subfactory,
                                             const char *path);

factory : 
subfactory : 
path : 


gtk_menu_factory_remove_paths ()

void        gtk_menu_factory_remove_paths   (GtkMenuFactory *factory,
                                             char **paths,
                                             int npaths);

factory : 
paths : 
npaths : 


gtk_menu_factory_remove_entries ()

void        gtk_menu_factory_remove_entries (GtkMenuFactory *factory,
                                             GtkMenuEntry *entries,
                                             int nentries);

factory : 
entries : 
nentries : 


gtk_menu_factory_remove_subfactory ()

void        gtk_menu_factory_remove_subfactory
                                            (GtkMenuFactory *factory,
                                             GtkMenuFactory *subfactory,
                                             const char *path);

factory : 
subfactory : 
path : 


gtk_menu_factory_find ()

GtkMenuPath* gtk_menu_factory_find          (GtkMenuFactory *factory,
                                             const char *path);

factory : 
path : 
Returns :