[gnome-control-center] sound: Scrolling on balance only works for right



commit ca0f4b204bc84119f93ff84b329fe32ed23b20e5
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jan 23 21:12:19 2012 +0000

    sound: Scrolling on balance only works for right
    
    We used to use 0.0 as the lower bound value but the lower bound
    value is -1.0, which means "all the way to the left" for right-left
    balance.
    
    Spotted by Jo-Erlend Schinstad
    
    https://bugzilla.gnome.org/show_bug.cgi?id=668315

 panels/sound/gvc-balance-bar.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/sound/gvc-balance-bar.c b/panels/sound/gvc-balance-bar.c
index 405bd0c..5cca014 100644
--- a/panels/sound/gvc-balance-bar.c
+++ b/panels/sound/gvc-balance-bar.c
@@ -447,8 +447,8 @@ on_scale_scroll_event (GtkWidget      *widget,
                         else
                                 value = value + 0.01;
                 } else if (event->direction == GDK_SCROLL_DOWN) {
-                        if (value - 0.01 < 0)
-                                value = 0.0;
+                        if (value - 0.01 < -1.0)
+                                value = -1.0;
                         else
                                 value = value - 0.01;
                 }



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