diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 41088292f1..b1fbcdfb29 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -3834,7 +3834,7 @@ gtk_widget_unrealize (GtkWidget *widget) g_signal_emit (widget, widget_signals[UNREALIZE], 0); g_assert (!widget->priv->mapped); - gtk_widget_set_realized (widget, FALSE); + g_assert (!widget->priv->realized); } gtk_widget_pop_verify_invariants (widget);