gtkscalebutton.ui 4.02 KB
Newer Older
1 2 3 4 5
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="gtk30">
  <!-- interface-requires gtk+ 3.10 -->
  <!-- interface-requires gtkprivate 3.10 -->
  <template class="GtkScaleButton" parent="GtkButton">
Matthias Clasen's avatar
Matthias Clasen committed
6 7
    <property name="can-focus">1</property>
    <property name="receives-default">1</property>
8
    <property name="relief">none</property>
Matthias Clasen's avatar
Matthias Clasen committed
9
    <property name="focus-on-click">0</property>
10 11
    <child>
      <object class="GtkImage" id="image">
12
        <property name="visible">1</property>
Matthias Clasen's avatar
Matthias Clasen committed
13
        <property name="icon-name">image-missing</property>
14
        <property name="use-fallback">1</property>
15 16 17
      </object>
    </child>
  </template>
18 19
  <object class="GtkPopover" id="dock">
    <signal name="map" handler="cb_popup_mapped" swapped="no"/>
20 21 22
    <style>
      <class name="scale-popup"/>
    </style>
23
    <child>
24
      <object class="GtkBox" id="box">
25
        <property name="visible">1</property>
26 27 28
        <property name="orientation">vertical</property>
        <property name="margin">4</property>
        <property name="spacing">4</property>
29
        <child>
30
          <object class="GtkButton" id="plus_button">
31
            <property name="visible">1</property>
Matthias Clasen's avatar
Matthias Clasen committed
32 33
            <property name="can-focus">1</property>
            <property name="receives-default">1</property>
34 35 36 37 38 39
            <property name="relief">none</property>
            <property name="halign">center</property>
            <property name="valign">center</property>
            <style>
              <class name="image-button"/>
            </style>
40
            <child>
41
              <object class="GtkImage">
42
                <property name="visible">1</property>
43
                <property name="icon-name">list-add-symbolic</property>
44
                <property name="use-fallback">1</property>
45 46
              </object>
            </child>
47 48 49 50 51
            <signal name="button-press-event" handler="cb_button_press" swapped="no"/>
            <signal name="button-release-event" handler="cb_button_release" swapped="no"/>
            <signal name="clicked" handler="cb_button_clicked" swapped="no"/>
          </object>
          <packing>
52
            <property name="fill">0</property>
53 54 55 56
          </packing>
        </child>
        <child>
          <object class="GtkScale" id="scale">
Matthias Clasen's avatar
Matthias Clasen committed
57
            <property name="height-request">100</property>
58
            <property name="visible">1</property>
Matthias Clasen's avatar
Matthias Clasen committed
59
            <property name="can-focus">1</property>
60
            <property name="orientation">vertical</property>
61
            <property name="inverted">1</property>
Matthias Clasen's avatar
Matthias Clasen committed
62 63
            <property name="round-digits">1</property>
            <property name="draw-value">0</property>
64 65 66 67 68 69 70 71
            <signal name="value-changed" handler="cb_scale_value_changed" swapped="no"/>
          </object>
          <packing>
            <property name="position">1</property>
          </packing>
        </child>
        <child>
          <object class="GtkButton" id="minus_button">
72
            <property name="visible">1</property>
Matthias Clasen's avatar
Matthias Clasen committed
73 74
            <property name="can-focus">1</property>
            <property name="receives-default">1</property>
75 76 77 78 79 80
            <property name="relief">none</property>
            <property name="halign">center</property>
            <property name="valign">center</property>
            <style>
              <class name="image-button"/>
            </style>
81
            <child>
82
              <object class="GtkImage">
83
                <property name="visible">1</property>
84
                <property name="icon-name">list-remove-symbolic</property>
85
                <property name="use-fallback">1</property>
86 87
              </object>
            </child>
88 89 90
            <signal name="button-press-event" handler="cb_button_press" swapped="no"/>
            <signal name="button-release-event" handler="cb_button_release" swapped="no"/>
            <signal name="clicked" handler="cb_button_clicked" swapped="no"/>
91
          </object>
92
          <packing>
93
            <property name="fill">0</property>
94 95
            <property name="position">2</property>
          </packing>
96 97 98 99 100
        </child>
      </object>
    </child>
  </object>
</interface>