Synopsis#include <gtk/gtk.h> GtkMenuToolButton; GtkToolItem* gtk_menu_tool_button_new (GtkWidget *icon_widget, const gchar *label); GtkToolItem* gtk_menu_tool_button_new_from_stock (const gchar *stock_id); void gtk_menu_tool_button_set_menu (GtkMenuToolButton *button, GtkWidget *menu); GtkWidget* gtk_menu_tool_button_get_menu (GtkMenuToolButton *button); void gtk_menu_tool_button_set_arrow_tooltip (GtkMenuToolButton *button, GtkTooltips *tooltips, const gchar *tip_text, const gchar *tip_private); void gtk_menu_tool_button_set_arrow_tooltip_text (GtkMenuToolButton *button, const gchar *text); void gtk_menu_tool_button_set_arrow_tooltip_markup (GtkMenuToolButton *button, const gchar *markup); Object HierarchyGObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkToolItem +----GtkToolButton +----GtkMenuToolButton DescriptionA GtkMenuToolButton is a GtkToolItem that contains a button and a small additional button with an arrow. When clicked, the arrow button pops up a dropdown menu.
Use DetailsGtkMenuToolButtontypedef struct _GtkMenuToolButton GtkMenuToolButton; The GtkMenuToolButton struct contains only private data and should only be accessed through the functions described below. gtk_menu_tool_button_new ()GtkToolItem* gtk_menu_tool_button_new (GtkWidget *icon_widget, const gchar *label);
Creates a new GtkMenuToolButton using
Since 2.6 gtk_menu_tool_button_new_from_stock ()GtkToolItem* gtk_menu_tool_button_new_from_stock (const gchar *stock_id);
Creates a new GtkMenuToolButton.
The new GtkMenuToolButton will contain an icon and label from
the stock item indicated by
Since 2.6 gtk_menu_tool_button_set_menu ()void gtk_menu_tool_button_set_menu (GtkMenuToolButton *button, GtkWidget *menu);
Sets the GtkMenu that is popped up when the user clicks on the arrow.
If
Since 2.6 gtk_menu_tool_button_get_menu ()GtkWidget* gtk_menu_tool_button_get_menu (GtkMenuToolButton *button); Gets the GtkMenu associated with GtkMenuToolButton.
Since 2.6 gtk_menu_tool_button_set_arrow_tooltip ()void gtk_menu_tool_button_set_arrow_tooltip (GtkMenuToolButton *button, GtkTooltips *tooltips, const gchar *tip_text, const gchar *tip_private); Warning
Sets the GtkTooltips object to be used for arrow button which
pops up the menu. See
Since 2.6 gtk_menu_tool_button_set_arrow_tooltip_text ()void gtk_menu_tool_button_set_arrow_tooltip_text (GtkMenuToolButton *button, const gchar *text);
Sets the tooltip text to be used as tooltip for the arrow button which
pops up the menu. See
Since 2.12 gtk_menu_tool_button_set_arrow_tooltip_markup ()void gtk_menu_tool_button_set_arrow_tooltip_markup (GtkMenuToolButton *button, const gchar *markup);
Sets the tooltip markup text to be used as tooltip for the arrow button
which pops up the menu. See
Since 2.12 Signal DetailsThe
|
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
The toolbar widget
The parent class of GtkMenuToolButton. The properties "label_widget", "label", "icon_widget", and "stock_id" on GtkToolButton determine the label and icon used on GtkMenuToolButtons.