Menu Tool Button

Menu Tool Button — A simple menu tool button.

Functions

Properties

GtkMenu * menu Read / Write / Construct

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── GtkToolItem
                        ╰── GtkToolButton
                            ╰── TalkatuMenuToolButton

Implemented Interfaces

TalkatuMenuToolButton implements AtkImplementorIface, GtkBuildable, GtkActivatable and GtkActionable.

Description

The normal GtkMenuToolButton forces you to have an action on the always visible button. This GtkToolItem instead just uses a label with no action.

Functions

talkatu_menu_tool_button_new ()

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 .

Parameters

label

The label to display.

 

icon_name

The optional name of the icon to display.

 

menu

The menu to display.

 

Returns

The new TalkatuMenuToolButton instance.

[transfer full]


talkatu_menu_tool_button_get_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.

Parameters

menu_button

The TalkatuMenuToolButton instance.

 

Returns

The menu.

[transfer full]


talkatu_menu_tool_button_set_menu ()

void
talkatu_menu_tool_button_set_menu (TalkatuMenuToolButton *menu_button,
                                   GtkWidget *menu);

Sets the menu to be displayed when the user clicks the button.

Parameters

menu_button

The TalkatuMenuToolButton instance.

 

menu

The menu to set.

 

Types and Values

TALKATU_TYPE_MENU_TOOL_BUTTON

#define TALKATU_TYPE_MENU_TOOL_BUTTON            (talkatu_menu_tool_button_get_type())

TalkatuMenuToolButton

typedef struct _TalkatuMenuToolButton TalkatuMenuToolButton;

Property Details

The “menu” property

  “menu”                     GtkMenu *

The menu to show.

Flags: Read / Write / Construct