GtkSimpleMenu

GtkSimpleMenu — Simple menu widget

Synopsis




            GtkSimpleMenu;
            GtkSimpleMenuClass;
GtkWidget*  gtk_simple_menu_new             (void);
void        gtk_simple_menu_append_item     (GtkSimpleMenu *sel,
                                             const gchar *item);
void        gtk_simple_menu_flush           (GtkSimpleMenu *sel);

Description

This widget provides a simple selection menu with an easy to use interface.

Details

GtkSimpleMenu

typedef struct _GtkSimpleMenu GtkSimpleMenu;

Menu struct containing a GtkOptionMenu (optionmenu) and a menu widget (menu).


GtkSimpleMenuClass

typedef struct _GtkSimpleMenuClass GtkSimpleMenuClass;

Abstract class type, don't use directly.


gtk_simple_menu_new ()

GtkWidget*  gtk_simple_menu_new             (void);

Create a new simple menu widget.

Returns : New widget.

gtk_simple_menu_append_item ()

void        gtk_simple_menu_append_item     (GtkSimpleMenu *sel,
                                             const gchar *item);

Adds a new menu item to a GtkSimpleMenu.

sel : Menu to add an item to.
item : Title for menu item.

gtk_simple_menu_flush ()

void        gtk_simple_menu_flush           (GtkSimpleMenu *sel);

Cleans up a GtkSimpleMenu and removes all its items.

sel : Menu to flush.