| Top |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkToolItem ╰── GtkToolButton ╰── TalkatuMenuToolButton
The normal GtkMenuToolButton forces you to have an action on the always visible button. This GtkToolItem instead just uses a label with no action.
GtkToolItem * talkatu_menu_tool_button_new (const gchar *label,const gchar *icon_name,GtkWidget *menu);
Creates a new TalkatuMenuToolButton with the given label
, icon_name
, and
menu
.
GtkWidget *
talkatu_menu_tool_button_get_menu (TalkatuMenuToolButton *menu_button);
Get's the menu that this tool button will display on click or NULL if no menu is set.
void talkatu_menu_tool_button_set_menu (TalkatuMenuToolButton *menu_button,GtkWidget *menu);
Sets the menu to be displayed when the user clicks the button.
“menu” property“menu” GtkMenu *
The menu to show.
Owner: TalkatuMenuToolButton
Flags: Read / Write / Construct