Fix gtk_widget_queue_draw

The draw-border removal did not get it right for !no-window widgets.
Bug 627445.
This commit is contained in:
Matthias Clasen 2010-08-20 08:48:07 -04:00
parent 7ef9cc3a1c
commit a64bd5d1f0

View File

@ -3711,9 +3711,12 @@ gtk_widget_queue_draw (GtkWidget *widget)
gtk_widget_get_allocation (widget, &rect);
gtk_widget_queue_draw_area (widget,
rect.x, rect.y,
rect.width, rect.height);
if (GTK_WIDGET_NO_WINDOW (widget))
gtk_widget_queue_draw_area (widget,
rect.x, rect.y, rect.width, rect.height);
else
gtk_widget_queue_draw_area (widget,
0, 0, rect.width, rect.height);
}
/**