don't check the internal volume since this makes it impossible to unmute a
2007-08-18 Jens Granseuer <jensgr@gmx.net> * actions/acme-volume-gstreamer.c: (update_state): don't check the internal volume since this makes it impossible to unmute a low volume (that translates to an internal GStreamer volume of 0) * gnome-settings-multimedia-keys.c: (do_sound_action): if we're muted and silent, don't just unmute on VOL+ but also raise the volume svn path=/trunk/; revision=8017
This commit is contained in:
parent
70a23111a8
commit
8323405071
3 changed files with 29 additions and 18 deletions
|
@ -1,3 +1,13 @@
|
|||
2007-08-18 Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* actions/acme-volume-gstreamer.c: (update_state): don't check the
|
||||
internal volume since this makes it impossible to unmute a low volume
|
||||
(that translates to an internal GStreamer volume of 0)
|
||||
|
||||
* gnome-settings-multimedia-keys.c: (do_sound_action): if we're
|
||||
muted and silent, don't just unmute on VOL+ but also raise the
|
||||
volume
|
||||
|
||||
2007-08-17 Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* gnome-settings-daemon.c: (initialize_modules), (start_modules),
|
||||
|
|
|
@ -146,8 +146,7 @@ update_state (AcmeVolumeGStreamer * self)
|
|||
vol = 100 * vol / (track->max_volume - track->min_volume);
|
||||
|
||||
/* update mute flag, and volume if not muted */
|
||||
if (GST_MIXER_TRACK_HAS_FLAG (track, GST_MIXER_TRACK_MUTE) ||
|
||||
(vol == 0 && self->_priv->volume != 0))
|
||||
if (GST_MIXER_TRACK_HAS_FLAG (track, GST_MIXER_TRACK_MUTE))
|
||||
self->_priv->mute = TRUE;
|
||||
else
|
||||
self->_priv->volume = vol;
|
||||
|
|
|
@ -646,6 +646,8 @@ do_sound_action (Acme *acme, int type)
|
|||
break;
|
||||
case VOLUME_UP_KEY:
|
||||
if (muted) {
|
||||
if (vol == 0)
|
||||
acme_volume_set_volume (acme->volobj, vol + vol_step);
|
||||
acme_volume_mute_toggle (acme->volobj);
|
||||
} else {
|
||||
acme_volume_set_volume (acme->volobj, vol + vol_step);
|
||||
|
|
Loading…
Add table
Reference in a new issue