[gnome-media] Remove gtk_scale_set_digits() calls



commit a5c9efef7e09ee4fcf29b5c3ca98e48c63519228
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Aug 17 18:26:36 2009 +0100

    Remove gtk_scale_set_digits() calls
    
    As we don't want to receive 2 events when the adjustment's value
    doesn't end on a boundary.

 gnome-volume-control/src/gvc-balance-bar.c |    2 --
 gnome-volume-control/src/gvc-channel-bar.c |    1 -
 2 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gnome-volume-control/src/gvc-balance-bar.c b/gnome-volume-control/src/gvc-balance-bar.c
index c40015e..3677d77 100644
--- a/gnome-volume-control/src/gvc-balance-bar.c
+++ b/gnome-volume-control/src/gvc-balance-bar.c
@@ -131,8 +131,6 @@ _scale_box_new (GvcBalanceBar *bar)
                 gtk_scale_add_mark (GTK_SCALE (priv->scale),
                                     (adjustment->upper - adjustment->lower)/2 + adjustment->lower,
                                     GTK_POS_BOTTOM, NULL);
-        } else {
-                gtk_scale_set_digits (GTK_SCALE (bar->priv->scale), 0);
         }
 
         bar->priv->end_box = ebox = gtk_hbox_new (FALSE, 6);
diff --git a/gnome-volume-control/src/gvc-channel-bar.c b/gnome-volume-control/src/gvc-channel-bar.c
index d820703..a9794d3 100644
--- a/gnome-volume-control/src/gvc-channel-bar.c
+++ b/gnome-volume-control/src/gvc-channel-bar.c
@@ -157,7 +157,6 @@ _scale_box_new (GvcChannelBar *bar)
         }
 
         gtk_range_set_update_policy (GTK_RANGE (priv->scale), GTK_UPDATE_CONTINUOUS);
-        gtk_scale_set_digits (GTK_SCALE (priv->scale), 0);
         ca_gtk_widget_disable_sounds (bar->priv->scale, FALSE);
         gtk_widget_add_events (bar->priv->scale, GDK_SCROLL_MASK);
 



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