mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 01:40:10 +00:00
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.
This commit is contained in:
parent
b89920e203
commit
5f57cede3c
@ -5150,6 +5150,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);
|
||||
|
Loading…
Reference in New Issue
Block a user