From d08cfeae5c48055e6ad14d36b187c0b09096ec66 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 18 Nov 2010 16:09:26 +0000 Subject: [PATCH] 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 file changed, 8 deletions(-) diff --git a/panels/sound/gvc-level-bar.c b/panels/sound/gvc-level-bar.c index e14335d45..8ffb43a4a 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;