GtkRadioToolButton

GtkRadioToolButton — A toolbar item that contains a radio button

Functions

Properties

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── GtkToolItem
                        ╰── GtkToolButton
                            ╰── GtkToggleToolButton
                                ╰── GtkRadioToolButton

Implemented Interfaces

GtkRadioToolButton implements AtkImplementor, GtkBuildable and GtkActionable.

Includes

#include <gtk/gtk.h>

Description

A 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 gtk_radio_tool_button_new() to create a new GtkRadioToolButton. Use gtk_radio_tool_button_new_from_widget() to create a new GtkRadioToolButton that is part of the same group as an existing GtkRadioToolButton.

CSS nodes

GtkRadioToolButton has a single CSS node with name toolbutton.

Functions

gtk_radio_tool_button_new ()

GtkToolItem *
gtk_radio_tool_button_new (GSList *group);

Creates a new GtkRadioToolButton, adding it to group .

Parameters

group

An existing radio button group, or NULL if you are creating a new group.

[allow-none][element-type GtkRadioButton]

Returns

The new GtkRadioToolButton


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 gruup

[constructor]

Parameters

group

An existing GtkRadioToolButton, or NULL.

[allow-none]

Returns

The new GtkRadioToolButton.

[transfer none]


gtk_radio_tool_button_get_group ()

GSList *
gtk_radio_tool_button_get_group (GtkRadioToolButton *button);

Returns the radio button group button belongs to.

Parameters

button

a GtkRadioToolButton

 

Returns

The group button belongs to.

[transfer none][element-type GtkRadioButton]


gtk_radio_tool_button_set_group ()

void
gtk_radio_tool_button_set_group (GtkRadioToolButton *button,
                                 GSList *group);

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

Parameters

button

a GtkRadioToolButton

 

group

an existing radio button group, or NULL.

[element-type GtkRadioButton][allow-none]

Types and Values

struct GtkRadioToolButton

struct GtkRadioToolButton;

Property Details

The “group” property

  “group”                    GtkRadioToolButton *

Sets a new group for a radio tool button.

Flags: Write

See Also

GtkToolbar, GtkToolButton