![]() |
![]() |
![]() |
GPE Manual: libgpewidget Reference | ![]() |
---|---|---|---|---|
GtkWidget* popup_menu_button_new (GtkWidget *child); GtkWidget* popup_menu_button_new_from_stock (const gchar *stock_id); void toggle_popup_menu (GtkWidget *parent_button); void popup_menu_close (GtkWidget *parent_button); GtkWidget* popup_menu_button_new_type_font (); GtkWidget* popup_menu_button_new_type_color ();
In order to construct popup menus for various purposes libgpewidget contains some functions to make construction of this kind of menus easier.
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. |
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. |
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. |
void popup_menu_close (GtkWidget *parent_button);
Close a popup menu.
parent_button : |
Menu button the menu belongs to. |
GtkWidget* popup_menu_button_new_type_font ();
Create a menu button for font selection.
Returns : | A new menu button. |