widget: Assert unrealizing

Instead of just setting the flag, assert that it was set.
This commit is contained in:
Benjamin Otte 2018-04-11 02:33:23 +02:00
parent 2862ee7682
commit 0af5316f00

View File

@ -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);