summaryrefslogtreecommitdiffstats
path: root/panels/sound/cc-volume-slider.ui
blob: a3de4631374364a223ab92b46eae6781ccd183ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <!-- interface-requires gtk+ 3.0 -->
  <template class="CcVolumeSlider" parent="GtkBox">
    <property name="spacing">6</property>
    <child>
      <object class="GtkScale" id="volume_scale">
        <property name="visible">True</property>
        <property name="adjustment">volume_adjustment</property>
        <property name="draw_value">False</property>
        <property name="hexpand">True</property>
        <accessibility>
          <property name="label" translatable="yes">Volume</property>
        </accessibility>
      </object>
    </child>
    <child>
      <object class="GtkToggleButton" id="mute_button">
        <property name="visible">True</property>
        <property name="icon_name">audio-volume-muted-symbolic</property>
        <accessibility>
          <property name="label" translatable="yes">Mute</property>
        </accessibility>
        <signal name="toggled" handler="mute_button_toggled_cb" object="CcVolumeSlider" swapped="yes"/>
        <style>
          <class name="flat" />
        </style>
      </object>
    </child>
  </template>
  <object class="GtkAdjustment" id="volume_adjustment">
    <signal name="value_changed" handler="volume_changed_cb" object="CcVolumeSlider" swapped="yes"/>
  </object>
</interface>