summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2021-02-20 19:45:27 +0100
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2021-02-21 15:30:40 +0000
commita87dee79118ac015f22b95bc63673e34622af83d (patch)
treec7b74ac3451cdeb5087377857a870f6ce90481a3
parent4b8ff9f6f3a7cc775376a39a89f526f4d4772fd0 (diff)
downloadgnome-control-center-a87dee79118ac015f22b95bc63673e34622af83d.tar.gz
sound: Update mute button icon when volume changes
The icon on the mute button needs to be updated whenever the volume is changed (externally). Add the appropriate call too notify_volume_cb. Fixes: #1268
-rw-r--r--panels/sound/cc-volume-slider.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/panels/sound/cc-volume-slider.c b/panels/sound/cc-volume-slider.c
index 5329e4a82..96ef47e32 100644
--- a/panels/sound/cc-volume-slider.c
+++ b/panels/sound/cc-volume-slider.c
@@ -92,6 +92,8 @@ notify_volume_cb (CcVolumeSlider *self)
else
gtk_adjustment_set_value (self->volume_adjustment, gvc_mixer_stream_get_volume (self->stream));
+ update_volume_icon (self);
+
g_signal_handlers_unblock_by_func (self->volume_adjustment, volume_changed_cb, self);
}
@@ -242,7 +244,6 @@ cc_volume_slider_set_stream (CcVolumeSlider *self,
self, G_CONNECT_SWAPPED);
notify_volume_cb (self);
notify_is_muted_cb (self);
- update_volume_icon (self);
}
}