Next: , Previous: GtkToggleToolButton, Up: Top


71 GtkRadioToolButton

A toolbar item that contains a radio button

71.1 Overview

A <gtk-radio-tool-button> is a <gtk-tool-item> 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 gtk-radio-tool-button-new to create a new <gtk-radio-tool-button>. use gtk-radio-tool-button-new-from-widget to create a new <gtk-radio-tool-button> that is part of the same group as an existing <gtk-radio-tool-button>. Use gtk-radio-tool-button-new-from-stock or gtk-radio-tool-button-new-from-widget-with-stock to create a new <gtk-radio-tool-button> containing a stock item.

71.2 Usage

— Class: <gtk-radio-tool-button>

Derives from <gtk-toggle-tool-button>.

This class defines the following slots:

group
The radio tool button whose group this button belongs to.
— Function: gtk-radio-tool-button-new (group <gtk-radio-group*>) ⇒  (ret <gtk-tool-item>)

Creates a new <gtk-radio-tool-button>, adding it to group.

group
An existing radio button group, or ‘#f’ if you are creating a new group
ret
The new <gtk-radio-tool-button>

Since 2.4

— Function: gtk-radio-tool-button-get-group (self <gtk-radio-tool-button>) ⇒  (ret <gtk-radio-group*>)
— Method: get-group

Returns the radio button group button belongs to.

button
a <gtk-radio-tool-button>
ret
The group button belongs to.

Since 2.4

— Function: gtk-radio-tool-button-set-group (self <gtk-radio-tool-button>) (group <gtk-radio-group*>)
— Method: set-group

Adds button to group, removing it from the group it belonged to before.

button
a <gtk-radio-tool-button>
group
an existing radio button group

Since 2.4