Synopsis#include <gtk/gtk.h> GtkToggleToolButton; GtkToolItem* gtk_toggle_tool_button_new (void); GtkToolItem* gtk_toggle_tool_button_new_from_stock (const gchar *stock_id); void gtk_toggle_tool_button_set_active (GtkToggleToolButton *button, gboolean is_active); gboolean gtk_toggle_tool_button_get_active (GtkToggleToolButton *button); Object HierarchyGObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkToolItem +----GtkToolButton +----GtkToggleToolButton +----GtkRadioToolButton DescriptionA GtkToggleToolButton is a GtkToolItem that contains a toggle button.
Use DetailsGtkToggleToolButtontypedef struct _GtkToggleToolButton GtkToggleToolButton; The GtkToggleToolButton struct contains only private data and should only be accessed through the functions described below. gtk_toggle_tool_button_new ()GtkToolItem* gtk_toggle_tool_button_new (void); Returns a new GtkToggleToolButton
Since 2.4 gtk_toggle_tool_button_new_from_stock ()GtkToolItem* gtk_toggle_tool_button_new_from_stock (const gchar *stock_id); Creates a new GtkToggleToolButton containing the image and text from a stock item. Some stock ids have preprocessor macros like GTK_STOCK_OK and GTK_STOCK_APPLY.
It is an error if
Since 2.4 gtk_toggle_tool_button_set_active ()void gtk_toggle_tool_button_set_active (GtkToggleToolButton *button, gboolean is_active);
Sets the status of the toggle tool button. Set to
Since 2.4 gtk_toggle_tool_button_get_active ()gboolean gtk_toggle_tool_button_get_active (GtkToggleToolButton *button);
Queries a GtkToggleToolButton and returns its current state.
Returns
Since 2.4 Signal DetailsThe
|
|
the object that emitted the signal |
|
user data set when the signal handler was connected. |
The toolbar widget
The parent class of GtkToggleToolButton. The properties "label_widget", "label", "icon_widget", and "stock_id" on GtkToolButton determine the label and icon used on GtkToggleToolButtons.
A subclass of GtkToolItem that separates groups of items on a toolbar.