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
This commit is contained in:
parent
4b8ff9f6f3
commit
a87dee7911
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue