[gtk+/rendering-cleanup-next] widget: Check the widget has an allocation in gtk_widget_draw()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup-next] widget: Check the widget has an allocation in gtk_widget_draw()
- Date: Wed, 15 Sep 2010 01:24:17 +0000 (UTC)
commit 99f0da58168e3db6cdf8c27c4239afc600bef058
Author: Benjamin Otte <otte redhat com>
Date: Wed Sep 15 03:20:59 2010 +0200
widget: Check the widget has an allocation in gtk_widget_draw()
Following the mailing list discussion, require that the widget does not
have a pending size_allocate when calling the draw function.
http://mail.gnome.org/archives/gtk-devel-list/2010-September/msg00214.html
and the associated thread explain this in more detail.
gtk/gtkwidget.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 5addd65..3275820 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -5148,6 +5148,7 @@ gtk_widget_draw (GtkWidget *widget,
GdkEventExpose *tmp_event;
g_return_if_fail (GTK_IS_WIDGET (widget));
+ g_return_if_fail (GTK_WIDGET_ALLOC_NEEDED (widget));
g_return_if_fail (cr != NULL);
cairo_save (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]