mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
ceb18a989e
The adjustments need to have step-increment and page-increment set up, or keynav and autoscrolling will not work.
124 lines
4.7 KiB
XML
124 lines
4.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<!-- interface-requires gtk+ 3.6 -->
|
|
<object class="GtkAdjustment" id="adjustment1">
|
|
<property name="upper">4</property>
|
|
<property name="value">2</property>
|
|
<property name="step-increment">0.1</property>
|
|
<property name="page-increment">1</property>
|
|
</object>
|
|
<object class="GtkAdjustment" id="adjustment2">
|
|
<property name="upper">4</property>
|
|
<property name="value">2</property>
|
|
<property name="step-increment">0.1</property>
|
|
<property name="page-increment">1</property>
|
|
</object>
|
|
<object class="GtkAdjustment" id="adjustment3">
|
|
<property name="upper">4</property>
|
|
<property name="value">2</property>
|
|
<property name="step-increment">0.1</property>
|
|
<property name="page-increment">1</property>
|
|
</object>
|
|
<object class="GtkWindow" id="window1">
|
|
<property name="title" translatable="yes">Scales</property>
|
|
<property name="border-width" translatable="yes">20</property>
|
|
<child>
|
|
<object class="GtkGrid" id="grid1">
|
|
<property name="visible">1</property>
|
|
<property name="row-spacing">10</property>
|
|
<property name="column-spacing">10</property>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="visible">1</property>
|
|
<property name="label">Plain</property>
|
|
<property name="xalign">0</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkScale">
|
|
<property name="visible">1</property>
|
|
<property name="can_focus">1</property>
|
|
<property name="width-request">200</property>
|
|
<property name="draw_value">0</property>
|
|
<property name="adjustment">adjustment1</property>
|
|
<property name="hexpand">1</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="visible">1</property>
|
|
<property name="label">Marks</property>
|
|
<property name="xalign">0</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkScale">
|
|
<property name="visible">1</property>
|
|
<property name="can_focus">1</property>
|
|
<property name="width-request">200</property>
|
|
<property name="draw_value">0</property>
|
|
<property name="adjustment">adjustment2</property>
|
|
<property name="hexpand">1</property>
|
|
<marks>
|
|
<mark value="0" position="bottom"></mark>
|
|
<mark value="1" position="bottom"></mark>
|
|
<mark value="2" position="bottom"></mark>
|
|
<mark value="3" position="bottom"></mark>
|
|
<mark value="4" position="bottom"></mark>
|
|
</marks>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="visible">1</property>
|
|
<property name="label">Discrete</property>
|
|
<property name="xalign">0</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkScale">
|
|
<property name="visible">1</property>
|
|
<property name="can_focus">1</property>
|
|
<property name="width-request">200</property>
|
|
<property name="round-digits">0</property>
|
|
<property name="draw_value">0</property>
|
|
<property name="adjustment">adjustment3</property>
|
|
<property name="hexpand">1</property>
|
|
<marks>
|
|
<mark value="0" position="bottom"></mark>
|
|
<mark value="1" position="bottom"></mark>
|
|
<mark value="2" position="bottom"></mark>
|
|
<mark value="3" position="bottom"></mark>
|
|
<mark value="4" position="bottom"></mark>
|
|
</marks>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">2</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|