forked from AuroraMiddleware/gtk
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:
parent
0c0a402433
commit
017dfc132d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user