gnome-control-center/panels/sound/cc-alert-chooser.ui
Felipe Borges 28edca0f16 sound: Connect to "clicked" signal for the sound alert buttons
The sound alert buttons are grouped GtkToggleButtons, and for some
reason they won't get activated in the right order when tapping to
the "toggled" event. Connecting to "clicked" makes the signal order
emission correctly.

Fixes #1655
2022-02-23 11:17:50 +01:00

41 lines
1.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<template class="CcAlertChooser" parent="GtkBox">
<property name="homogeneous">True</property>
<style>
<class name="linked"/>
</style>
<child>
<object class="GtkToggleButton" id="bark_button">
<property name="visible">True</property>
<property name="label" translatable="yes">Bark</property>
<signal name="clicked" handler="clicked_cb" object="CcAlertChooser" swapped="yes"/>
</object>
</child>
<child>
<object class="GtkToggleButton" id="drip_button">
<property name="visible">True</property>
<property name="group">bark_button</property>
<property name="label" translatable="yes">Drip</property>
<signal name="clicked" handler="clicked_cb" object="CcAlertChooser" swapped="yes"/>
</object>
</child>
<child>
<object class="GtkToggleButton" id="glass_button">
<property name="visible">True</property>
<property name="group">bark_button</property>
<property name="label" translatable="yes">Glass</property>
<signal name="clicked" handler="clicked_cb" object="CcAlertChooser" swapped="yes"/>
</object>
</child>
<child>
<object class="GtkToggleButton" id="sonar_button">
<property name="visible">True</property>
<property name="group">bark_button</property>
<property name="label" translatable="yes">Sonar</property>
<signal name="clicked" handler="clicked_cb" object="CcAlertChooser" swapped="yes"/>
</object>
</child>
</template>
</interface>