diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 867e2a662d..ed0a34cb4a 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -5381,7 +5381,7 @@ gtk_widget_size_allocate_with_baseline (GtkWidget *widget, GtkAllocation *allocation, gint baseline) { - GtkWidgetPrivate *priv; + GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget); GdkRectangle real_allocation; GdkRectangle old_allocation, old_clip; GdkRectangle adjusted_allocation; @@ -5395,8 +5395,6 @@ gtk_widget_size_allocate_with_baseline (GtkWidget *widget, GtkCssStyle *style; GtkBorder margin, border, padding; - priv = widget->priv; - g_return_if_fail (GTK_IS_WIDGET (widget)); if (!priv->visible && !_gtk_widget_is_toplevel (widget))