gizmo: Chain up in snapshot if no snapshot func given

I.e. when gizmo users just want to draw child widgets anyway and don't
do any custom drawing, they can simply pass NULL.
This commit is contained in:
Timm Bäder 2017-05-11 21:49:37 +02:00 committed by Matthias Clasen
parent 0c0a402433
commit 017dfc132d

View File

@ -46,6 +46,8 @@ gtk_gizmo_snapshot (GtkWidget *widget,
if (self->snapshot_func)
self->snapshot_func (self, snapshot);
else
GTK_WIDGET_CLASS (gtk_gizmo_parent_class)->snapshot (widget, snapshot);
}
static void