[gnome-control-center/benzea/fix-volume-icon: 3/3] sound: Update mute button icon when volume changes




commit a87dee79118ac015f22b95bc63673e34622af83d
Author: Benjamin Berg <bberg redhat com>
Date:   Sat Feb 20 19:45:27 2021 +0100

    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

 panels/sound/cc-volume-slider.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
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);
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]