Synopsis#include <gtk/gtk.h> GtkRadioToolButton; GtkToolItem* gtk_radio_tool_button_new (GSList *group); GtkToolItem* gtk_radio_tool_button_new_from_stock (GSList *group, const gchar *stock_id); GtkToolItem* gtk_radio_tool_button_new_from_widget (GtkRadioToolButton *group); GtkToolItem* gtk_radio_tool_button_new_with_stock_from_widget (GtkRadioToolButton *group, const gchar *stock_id); GSList* gtk_radio_tool_button_get_group (GtkRadioToolButton *button); void gtk_radio_tool_button_set_group (GtkRadioToolButton *button, GSList *group); Object HierarchyGObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkToolItem +----GtkToolButton +----GtkToggleToolButton +----GtkRadioToolButton DescriptionA GtkRadioToolButton is a GtkToolItem that contains a radio button, that is, a button that is part of a group of toggle buttons where only one button can be active at a time.
Use DetailsGtkRadioToolButtontypedef struct _GtkRadioToolButton GtkRadioToolButton; The GtkRadioToolButton contains only private data and should only be accessed through the functions described below. gtk_radio_tool_button_new ()GtkToolItem* gtk_radio_tool_button_new (GSList *group);
Creates a new GtkRadioToolButton, adding it to
Since 2.4 gtk_radio_tool_button_new_from_stock ()GtkToolItem* gtk_radio_tool_button_new_from_stock (GSList *group, const gchar *stock_id);
Creates a new GtkRadioToolButton, adding it to
Since 2.4 gtk_radio_tool_button_new_from_widget ()GtkToolItem* gtk_radio_tool_button_new_from_widget (GtkRadioToolButton *group);
Creates a new GtkRadioToolButton adding it to the same group as
Since 2.4 gtk_radio_tool_button_new_with_stock_from_widget ()GtkToolItem* gtk_radio_tool_button_new_with_stock_from_widget (GtkRadioToolButton *group, const gchar *stock_id);
Creates a new GtkRadioToolButton adding it to the same group as
Since 2.4 gtk_radio_tool_button_get_group ()GSList* gtk_radio_tool_button_get_group (GtkRadioToolButton *button);
Returns the radio button group
Since 2.4 gtk_radio_tool_button_set_group ()void gtk_radio_tool_button_set_group (GtkRadioToolButton *button, GSList *group);
Adds
Since 2.4 Property DetailsThe
|
The toolbar widget |
|
An ancestor class of GtkRadioToolButton. The properties "label_widget", "label", "icon_widget", and "stock_id" on GtkToolButton determine the label and icon used on a GtkRadioToolButton. |
|
A subclass of GtkToolItem that separates groups of items on a toolbar. It is usually a good idea to put a separator before and after a group of GtkRadioToolButtons on a GtkToolbar. |