[gnome-media] Use gtk_scale_set_digits on the different bars



commit cf9e600c8040425e4b4716e1b16b9f6635cd7ceb
Author: Bastien Nocera <hadess hadess net>
Date:   Thu May 21 10:37:41 2009 +0100

    Use gtk_scale_set_digits on the different bars
    
    Make GtkScale round the values itself, rather than
    having us do that.
---
 gnome-volume-control/src/gvc-balance-bar.c |    1 +
 gnome-volume-control/src/gvc-channel-bar.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gnome-volume-control/src/gvc-balance-bar.c b/gnome-volume-control/src/gvc-balance-bar.c
index 7ea0fea..acdf0aa 100644
--- a/gnome-volume-control/src/gvc-balance-bar.c
+++ b/gnome-volume-control/src/gvc-balance-bar.c
@@ -275,6 +275,7 @@ gvc_balance_bar_set_balance_type (GvcBalanceBar *bar,
                                                                             ADJUSTMENT_MAX_NORMAL/100.0,
                                                                             ADJUSTMENT_MAX_NORMAL/10.0,
                                                                             0.0));
+                gtk_scale_set_digits (GTK_SCALE (bar->priv->scale), 0);
         }
 
         g_object_ref_sink (bar->priv->adjustment);
diff --git a/gnome-volume-control/src/gvc-channel-bar.c b/gnome-volume-control/src/gvc-channel-bar.c
index 0a04534..9b3c131 100644
--- a/gnome-volume-control/src/gvc-channel-bar.c
+++ b/gnome-volume-control/src/gvc-channel-bar.c
@@ -157,6 +157,7 @@ _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]