![]() |
![]() |
![]() |
![]() |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkToolItem ╰── GtkToolButton ╰── TalkatuMenuToolButton
TalkatuMenuToolButton implements AtkImplementorIface, GtkBuildable, GtkActivatable and GtkActionable.
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.
#define TALKATU_TYPE_MENU_TOOL_BUTTON (talkatu_menu_tool_button_get_type())
The standard _get_type macro for TalkatuMenuToolButton.
typedef struct _TalkatuMenuToolButton TalkatuMenuToolButton;
A GtkToolButton subclass that behaves like a GtkComboBox.
“menu”
property“menu” GtkMenu *
The menu to show.
Owner: TalkatuMenuToolButton
Flags: Read / Write / Construct