mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
drawingarea: checks parent's draw() before call it
commit 6786c9d7
introduced a bug when a drawing area is used for
rendering videos, since GtkWidgetClass doesn't set a draw()
method by itself.
https://bugzilla.gnome.org/show_bug.cgi?id=751877
This commit is contained in:
parent
28e1ed4f2a
commit
b3166b745f
@ -219,7 +219,10 @@ gtk_drawing_area_draw (GtkWidget *widget,
|
||||
gtk_widget_get_allocated_width (widget),
|
||||
gtk_widget_get_allocated_height (widget));
|
||||
|
||||
return GTK_WIDGET_CLASS (gtk_drawing_area_parent_class)->draw (widget, cr);
|
||||
if (GTK_WIDGET_CLASS (gtk_drawing_area_parent_class)->draw)
|
||||
return GTK_WIDGET_CLASS (gtk_drawing_area_parent_class)->draw (widget, cr);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user