gtk2/gtk/ui/gtkvolumebutton.ui
Matthias Clasen 822c2aba36 scalebutton: Don't derive from GtkButton
Make GtkScaleButton a widget that has a toggle button
as a child, just like all the other button widgets now.
The immediate benefit of this arrangement is to avoid
the "double focus" problem when we pop up the popup.

Update accessible, demos and tests to match.
2020-04-09 20:43:45 -04:00

45 lines
2.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface domain="gtk40">
<template class="GtkVolumeButton" parent="GtkScaleButton">
<property name="adjustment">
<object class="GtkAdjustment">
<property name="upper">1</property>
<property name="step-increment">0.02</property>
<property name="page-increment">0.2</property>
</object>
</property>
<property name="icons">audio-volume-muted
audio-volume-high
audio-volume-low
audio-volume-medium</property>
<child internal-child="accessible">
<object class="AtkObject" id="GtkVolumeButton-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Volume</property>
<property name="AtkObject::accessible-description" translatable="yes">Turns volume up or down</property>
</object>
</child>
<signal name="query-tooltip" handler="cb_query_tooltip" swapped="no"/>
<signal name="value-changed" handler="cb_value_changed" swapped="no"/>
<child internal-child="plus_button">
<object class="GtkButton" id="scalebutton-plus_button1">
<child internal-child="accessible">
<object class="AtkObject" id="scalebutton-plus_button1-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Volume Up</property>
<property name="AtkObject::accessible-description" translatable="yes">Increases the volume</property>
</object>
</child>
</object>
</child>
<child internal-child="minus_button">
<object class="GtkButton" id="scalebutton-minus_button1">
<child internal-child="accessible">
<object class="AtkObject" id="scalebutton-minus_button1-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Volume Down</property>
<property name="AtkObject::accessible-description" translatable="yes">Decreases the volume</property>
</object>
</child>
</object>
</child>
</template>
</interface>