mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
be4a25231d
More or less copied from the spin button example in testgtk.
206 lines
8.1 KiB
XML
206 lines
8.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<object class="GtkAdjustment" id="basic_adjustment">
|
|
<property name="lower">-10000</property>
|
|
<property name="upper">10000</property>
|
|
<property name="value">0</property>
|
|
<property name="step_increment">0.5</property>
|
|
<property name="page_increment">100</property>
|
|
<property name="page_size">0</property>
|
|
</object>
|
|
<object class="GtkAdjustment" id="hex_adjustment">
|
|
<property name="lower">0</property>
|
|
<property name="upper">255</property>
|
|
<property name="value">0</property>
|
|
<property name="step_increment">1</property>
|
|
<property name="page_increment">16</property>
|
|
<property name="page_size">0</property>
|
|
</object>
|
|
<object class="GtkAdjustment" id="time_adjustment">
|
|
<property name="lower">0</property>
|
|
<property name="upper">1410</property>
|
|
<property name="value">0</property>
|
|
<property name="step_increment">30</property>
|
|
<property name="page_increment">60</property>
|
|
<property name="page_size">0</property>
|
|
</object>
|
|
<object class="GtkAdjustment" id="month_adjustment">
|
|
<property name="lower">1</property>
|
|
<property name="upper">12</property>
|
|
<property name="value">1</property>
|
|
<property name="step_increment">1</property>
|
|
<property name="page_increment">5</property>
|
|
<property name="page_size">0</property>
|
|
</object>
|
|
<object class="GtkWindow" id="window">
|
|
<property name="can_focus">False</property>
|
|
<property name="title" translatable="yes">Spin Button</property>
|
|
<child>
|
|
<object class="GtkGrid">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="margin">20</property>
|
|
<property name="row-spacing">10</property>
|
|
<property name="column-spacing">10</property>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="visible">True</property>
|
|
<property name="label">_Numeric</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="mnemonic_widget">basic_spin</property>
|
|
<property name="xalign">1</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSpinButton" id="basic_spin">
|
|
<property name="visible">True</property>
|
|
<property name="halign">start</property>
|
|
<property name="width_chars">5</property>
|
|
<property name="adjustment">basic_adjustment</property>
|
|
<property name="climb_rate">1</property>
|
|
<property name="digits">2</property>
|
|
<property name="numeric">True</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="basic_label">
|
|
<property name="visible">True</property>
|
|
<property name="width_chars">10</property>
|
|
<property name="xalign">1</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">2</property>
|
|
<property name="top_attach">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="visible">True</property>
|
|
<property name="label">_Hexadecimal</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="mnemonic_widget">hex_spin</property>
|
|
<property name="xalign">1</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSpinButton" id="hex_spin">
|
|
<property name="visible">True</property>
|
|
<property name="halign">start</property>
|
|
<property name="width_chars">4</property>
|
|
<property name="adjustment">hex_adjustment</property>
|
|
<signal name="input" handler="hex_spin_input"/>
|
|
<signal name="output" handler="hex_spin_output"/>
|
|
<property name="wrap">True</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="hex_label">
|
|
<property name="visible">True</property>
|
|
<property name="width_chars">10</property>
|
|
<property name="xalign">1</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">2</property>
|
|
<property name="top_attach">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="visible">True</property>
|
|
<property name="label">_Time</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="mnemonic_widget">time_spin</property>
|
|
<property name="xalign">1</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSpinButton" id="time_spin">
|
|
<property name="visible">True</property>
|
|
<property name="halign">start</property>
|
|
<property name="width_chars">5</property>
|
|
<property name="adjustment">time_adjustment</property>
|
|
<signal name="input" handler="time_spin_input"/>
|
|
<signal name="output" handler="time_spin_output"/>
|
|
<property name="wrap">True</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="time_label">
|
|
<property name="visible">True</property>
|
|
<property name="width_chars">10</property>
|
|
<property name="xalign">1</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">2</property>
|
|
<property name="top_attach">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="visible">True</property>
|
|
<property name="label">_Month</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="mnemonic_widget">month_spin</property>
|
|
<property name="xalign">1</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">3</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSpinButton" id="month_spin">
|
|
<property name="visible">True</property>
|
|
<property name="halign">start</property>
|
|
<property name="width_chars">9</property>
|
|
<signal name="input" handler="month_spin_input"/>
|
|
<signal name="output" handler="month_spin_output"/>
|
|
<property name="adjustment">month_adjustment</property>
|
|
<property name="wrap">True</property>
|
|
<property name="update_policy">if-valid</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">3</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="month_label">
|
|
<property name="visible">True</property>
|
|
<property name="width_chars">10</property>
|
|
<property name="xalign">1</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">2</property>
|
|
<property name="top_attach">3</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|