mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
widget: Assert unrealizing
Instead of just setting the flag, assert that it was set.
This commit is contained in:
parent
2862ee7682
commit
0af5316f00
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user