GtkWindow: Check for popover realized-ness before unrealizing

https://bugzilla.gnome.org/show_bug.cgi?id=755473
This commit is contained in:
Timm Bäder 2015-09-23 18:29:50 +02:00 committed by Matthias Clasen
parent 5167f525a3
commit 02306867c3

View File

@ -11886,7 +11886,7 @@ _gtk_window_remove_popover (GtkWindow *window,
popover_unmap (popover, data);
if (_gtk_widget_get_realized (GTK_WIDGET (window)))
if (_gtk_widget_get_realized (GTK_WIDGET (popover)))
popover_unrealize (popover, data, window);
priv->popovers = g_list_remove (priv->popovers, data);