[gnome-control-center] sound: Make the level bar draw correctly again



commit d08cfeae5c48055e6ad14d36b187c0b09096ec66
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Nov 18 16:09:26 2010 +0000

    sound: Make the level bar draw correctly again
    
    The patch in
    http://git.gnome.org/browse/gnome-media/commit/?id=5b71e80a54faf7bc8172bddccd74e2688435e571
    was broken, as it didn't remove the translation that used to be
    necessary when using ->expose_event, but not with ->draw.

 panels/sound/gvc-level-bar.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/panels/sound/gvc-level-bar.c b/panels/sound/gvc-level-bar.c
index e14335d..8ffb43a 100644
--- a/panels/sound/gvc-level-bar.c
+++ b/panels/sound/gvc-level-bar.c
@@ -568,19 +568,11 @@ gvc_level_bar_draw (GtkWidget *widget,
                     cairo_t   *cr)
 {
         GvcLevelBar     *bar;
-        GtkAllocation   allocation;
 
         g_return_val_if_fail (GVC_IS_LEVEL_BAR (widget), FALSE);
 
-        g_message ("gvc_level_bar_draw");
-
         bar = GVC_LEVEL_BAR (widget);
 
-        gtk_widget_get_allocation (widget, &allocation);
-        cairo_translate (cr,
-                         allocation.x,
-                         allocation.y);
-
         if (bar->priv->orientation == GTK_ORIENTATION_VERTICAL) {
                 int i;
                 int by;



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