[gnome-control-center] sound: Stop non-interactive profile changes from triggering changed events
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] sound: Stop non-interactive profile changes from triggering changed events
- Date: Wed, 17 Jun 2020 19:43:33 +0000 (UTC)
commit d9ea45354ef684542877643b96f4fd012863d1a6
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Jun 17 11:15:33 2020 +1200
sound: Stop non-interactive profile changes from triggering changed events
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1033
panels/sound/cc-profile-combo-box.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/panels/sound/cc-profile-combo-box.c b/panels/sound/cc-profile-combo-box.c
index da7b9b048..a328b98c0 100644
--- a/panels/sound/cc-profile-combo-box.c
+++ b/panels/sound/cc-profile-combo-box.c
@@ -119,7 +119,11 @@ cc_profile_combo_box_set_device (CcProfileComboBox *self,
-1);
if (g_strcmp0 (gvc_mixer_ui_device_get_active_profile (device), profile->profile) == 0)
- gtk_combo_box_set_active_iter (GTK_COMBO_BOX (self), &iter);
+ {
+ g_signal_handlers_block_by_func(self, profile_changed_cb, self);
+ gtk_combo_box_set_active_iter (GTK_COMBO_BOX (self), &iter);
+ g_signal_handlers_unblock_by_func(self, profile_changed_cb, self);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]