mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
1375fb4464
A radiobutton without indicator is really just a togglebutton with a group. A radiobutton with indicator is really just a checkbutton with a group. Make checkbutton its own widget not inheriting from GtkButton. GtkRadioButton could be removed but it stays for now. Radiobutton && !draw-indicator => Togglebutton Checkbutton && !draw-indicator => Togglebutton Radiobutton && draw-indicator => CheckButton + group
23 lines
633 B
XML
23 lines
633 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<object class="GtkWindow" id="window1">
|
|
<property name="decorated">0</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkCheckButton">
|
|
<property name="label">label</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkCheckButton">
|
|
<property name="active">1</property>
|
|
<property name="label">label</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|