diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c index 661f3d10d6..b9208a9d7c 100644 --- a/gtk/gtkoverlay.c +++ b/gtk/gtkoverlay.c @@ -868,12 +868,13 @@ void gtk_overlay_add_overlay (GtkOverlay *overlay, GtkWidget *widget) { - GtkOverlayPrivate *priv = overlay->priv; + GtkOverlayPrivate *priv; GtkOverlayChild *child; g_return_if_fail (GTK_IS_OVERLAY (overlay)); g_return_if_fail (GTK_IS_WIDGET (widget)); + priv = overlay->priv; child = g_slice_new0 (GtkOverlayChild); child->widget = widget;