[gnome-control-center/sound-use-click-signal-for-alert-buttons] sound: Connect to "clicked" signal for the sound alert buttons
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/sound-use-click-signal-for-alert-buttons] sound: Connect to "clicked" signal for the sound alert buttons
- Date: Wed, 23 Feb 2022 10:19:47 +0000 (UTC)
commit 28edca0f161279446a590d495bd3a30116757c22
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Feb 23 11:17:50 2022 +0100
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
panels/sound/cc-alert-chooser.ui | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/panels/sound/cc-alert-chooser.ui b/panels/sound/cc-alert-chooser.ui
index cd97c25eb..d6933f951 100644
--- a/panels/sound/cc-alert-chooser.ui
+++ b/panels/sound/cc-alert-chooser.ui
@@ -10,7 +10,7 @@
<object class="GtkToggleButton" id="bark_button">
<property name="visible">True</property>
<property name="label" translatable="yes">Bark</property>
- <signal name="toggled" handler="clicked_cb" object="CcAlertChooser" swapped="yes"/>
+ <signal name="clicked" handler="clicked_cb" object="CcAlertChooser" swapped="yes"/>
</object>
</child>
<child>
@@ -18,7 +18,7 @@
<property name="visible">True</property>
<property name="group">bark_button</property>
<property name="label" translatable="yes">Drip</property>
- <signal name="toggled" handler="clicked_cb" object="CcAlertChooser" swapped="yes"/>
+ <signal name="clicked" handler="clicked_cb" object="CcAlertChooser" swapped="yes"/>
</object>
</child>
<child>
@@ -26,7 +26,7 @@
<property name="visible">True</property>
<property name="group">bark_button</property>
<property name="label" translatable="yes">Glass</property>
- <signal name="toggled" handler="clicked_cb" object="CcAlertChooser" swapped="yes"/>
+ <signal name="clicked" handler="clicked_cb" object="CcAlertChooser" swapped="yes"/>
</object>
</child>
<child>
@@ -34,7 +34,7 @@
<property name="visible">True</property>
<property name="group">bark_button</property>
<property name="label" translatable="yes">Sonar</property>
- <signal name="toggled" handler="clicked_cb" object="CcAlertChooser" swapped="yes"/>
+ <signal name="clicked" handler="clicked_cb" object="CcAlertChooser" swapped="yes"/>
</object>
</child>
</template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]