Popup menusPopup menus — Functions to construct popup menus. | |
Description
In order to construct popup menus for various purposes libgpewidget contains
some functions to make construction of this kind of menus easier.
Details
popup_menu_button_new ()
GtkWidget* popup_menu_button_new (GtkWidget *child);
Create a new menu button containing a given widget.
child : | Widget to put into the menu button.
|
Returns : | New menu button.
|
popup_menu_button_new_from_stock ()
GtkWidget* popup_menu_button_new_from_stock
(const gchar *stock_id);
Create a menu buton containing a stock item.
stock_id : | Id of the stock item to use.
|
Returns : | New menu button.
|
toggle_popup_menu ()
void toggle_popup_menu (GtkWidget *parent_button);
This function the status of the menu attached to a menu button. If the menu is
shown the function hides it, if it is hidden the function shows it.
parent_button : | Menu button the menu belongs to.
|
popup_menu_close ()
void popup_menu_close (GtkWidget *parent_button);
Close a popup menu.
parent_button : | Menu button the menu belongs to.
|
popup_menu_button_new_type_font ()
GtkWidget* popup_menu_button_new_type_font ();
Create a menu button for font selection.
Returns : | A new menu button.
|
popup_menu_button_new_type_color ()
GtkWidget* popup_menu_button_new_type_color
();
Create a menu button for color selection.
Returns : | A new menu button.
|
See Also
Used by: gpe-sketchbook, gpe-word