summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-05-11 21:49:37 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-07-19 21:27:12 -0400
commit017dfc132d10eaff5b32ae2839ff1dc8eed99dcf (patch)
tree5cec26587ac22d0a46f3773b802a6841f206e370 /gtk
parent0c0a4024334693dc7eeda41742760bc29b52604d (diff)
downloadgtk+-017dfc132d10eaff5b32ae2839ff1dc8eed99dcf.tar.gz
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.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkgizmo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkgizmo.c b/gtk/gtkgizmo.c
index 5c065e5fd9..38cd3d56b1 100644
--- a/gtk/gtkgizmo.c
+++ b/gtk/gtkgizmo.c
@@ -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