Forum und email

GtkMenuToolButton

A menu item that shows both a button and a drop down menu.

Йерархия на обектите

GObject
`-- GtkObject
       `-- GtkWidget
              `-- GtkContainer
                     `-- GtkBin
                            `-- GtkToolItem
                                   `-- GtkToolButton
                                          `-- GtkMenuToolButton

Описание

This tool item class represents a normal button with a button on the right displaying an arrow. Pressing it will popup the attached GtkMenu.

If no menu is attached with set_menu() , the arrow is greyed out.

Constructors

GtkMenuToolButton (GtkWidget icon_widget, string label);

-- Creates a new menu tool button.

Методи

get_menu()
  Retrieves the attached menu.
set_arrow_tooltip()
  Set the tooltip for the arrow button.
set_menu()
  Attaches a menu to the button.

Свойства

Използвай методите get_property и set_property, за да получиш достъп до това.

menu:
  Menu widget.

Сигнали

"show-menu"
  The dropdown menu is being shown.