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.
This commit is contained in:
Bastien Nocera 2010-11-18 16:09:26 +00:00
parent 799b499082
commit d08cfeae5c

View file

@ -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;