forked from AuroraMiddleware/gtk
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
69 lines
2.3 KiB
XML
69 lines
2.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<requires lib="gtk+" version="3.12"/>
|
|
<object class="GtkWindow" id="window1">
|
|
<child>
|
|
<object class="GtkGrid" id="grid1">
|
|
<child>
|
|
<object class="GtkSpinner" id="spinner1">
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkCheckButton" id="checkbutton1">
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkCheckButton" id="radiobutton1">
|
|
<property name="active">1</property>
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImage" id="arrow1">
|
|
<property name="icon_name">pan-down-symbolic</property>
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">3</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkExpander" id="expander1">
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
<child>
|
|
<placeholder/>
|
|
</child>
|
|
<child type="label_item">
|
|
<placeholder/>
|
|
</child>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">4</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|