[gnome-settings-daemon] media-keys: Fix compilation



commit 10208483858cdc7ed5a784032da7c0b0559c3aac
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Mar 14 16:47:55 2011 +0000

    media-keys: Fix compilation

 plugins/media-keys/gsd-media-keys-manager.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index 7bd61e7..cc0f81f 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -670,7 +670,6 @@ do_sound_action (GsdMediaKeysManager *manager,
         switch (type) {
         case MUTE_KEY:
                 new_muted = !old_muted;
-                gvc_mixer_stream_change_is_muted (manager->priv->stream, muted);
                 break;
         case VOLUME_DOWN_KEY:
                 if (old_vol <= norm_vol_step) {
@@ -684,7 +683,7 @@ do_sound_action (GsdMediaKeysManager *manager,
                 new_muted = FALSE;
                 /* When coming out of mute only increase the volume if it was 0 */
                 if (!old_muted || old_vol == 0)
-                        new_vol = MIN (old_vol + norm_vol_step, MAX_VOLUME);
+                        new_vol = MIN (old_vol + norm_vol_step, max_vol);
                 break;
         }
 
@@ -700,7 +699,7 @@ do_sound_action (GsdMediaKeysManager *manager,
                 }
         }
 
-        update_dialog (manager, vol, max_vol, muted, sound_changed);
+        update_dialog (manager, new_vol, max_vol, new_muted, sound_changed);
 }
 
 static void



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