[gnome-control-center/fix-sound-alert-selection] sound: Fix sound alert selection
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/fix-sound-alert-selection] sound: Fix sound alert selection
- Date: Thu, 25 Aug 2022 14:09:49 +0000 (UTC)
commit ff904208cb60a11494f671d93458cdef7bfcf501
Author: Felipe Borges <felipeborges gnome org>
Date: Thu Aug 25 16:08:24 2022 +0200
sound: Fix sound alert selection
The mapping between sounds and the UI elements was wrong.
Fixes #2026
panels/sound/cc-alert-chooser.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/panels/sound/cc-alert-chooser.c b/panels/sound/cc-alert-chooser.c
index 2ccadcecc..686d8c6b0 100644
--- a/panels/sound/cc-alert-chooser.c
+++ b/panels/sound/cc-alert-chooser.c
@@ -283,9 +283,9 @@ cc_alert_chooser_init (CcAlertChooser *self)
alert_name = get_alert_name ();
/* If user has selected an old sound alert, migrate them to click. */
- if (g_strcmp0 (alert_name, "click") != 0 ||
- g_strcmp0 (alert_name, "hum") != 0 ||
- g_strcmp0 (alert_name, "string") != 0 ||
+ if (g_strcmp0 (alert_name, "click") != 0 &&
+ g_strcmp0 (alert_name, "hum") != 0 &&
+ g_strcmp0 (alert_name, "string") != 0 &&
g_strcmp0 (alert_name, "swing") != 0)
{
set_custom_theme (self, "click");
@@ -296,9 +296,9 @@ cc_alert_chooser_init (CcAlertChooser *self)
if (g_strcmp0 (alert_name, "click") == 0)
set_button (self, self->click_button, TRUE);
else if (g_strcmp0 (alert_name, "hum") == 0)
- set_button (self, self->string_button, TRUE);
+ set_button (self, self->hum_button, TRUE);
else if (g_strcmp0 (alert_name, "string") == 0)
- set_button (self, self->swing_button, TRUE);
+ set_button (self, self->string_button, TRUE);
else if (g_strcmp0 (alert_name, "swing") == 0)
set_button (self, self->swing_button, TRUE);
else if (alert_name != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]