Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkToolItem ╰── FmMenuToolItem
FmMenuToolItem implements AtkImplementorIface, GtkBuildable and GtkActivatable.
include
: libfm/fm-gtk.h
The FmMenuToolItem shows button with arrow which shows menu when is clicked, similar to GtkMenuToolButton, but without any actual button, just an arrow for menu.
GtkWidget *
fm_menu_tool_item_get_menu (FmMenuToolItem *button
);
Gets the GtkMenu associated with FmMenuToolItem.
Since: 1.2.0
GtkToolItem *
fm_menu_tool_item_new (void
);
Creates a new FmMenuToolItem.
Since: 1.2.0
void fm_menu_tool_item_set_menu (FmMenuToolItem *button
,GtkWidget *menu
);
Sets the GtkMenu that is popped up when the user clicks on the arrow.
If menu
is NULL, the arrow button becomes insensitive.
Since: 1.2.0
“show-menu”
signalvoid user_function (FmMenuToolItem *button, gpointer user_data)
The ::show-menu signal is emitted before the menu is shown.
It can be used to populate the menu on demand, using
fm_menu_tool_item_get_menu()
.
Note that even if you populate the menu dynamically in this way, you must set an empty menu on the FmMenuToolItem beforehand, since the arrow is made insensitive if the menu is not set.
button |
the object on which the signal is emitted |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First