window: call gtk_widget_unmap() on popover widgets unconditionally

is_visible() wasn't the right check to perform here before unmapping,
and gtk_widget_unmap() already avoids being doubly called by checking
gtk_widget_get_mapped() anyway.
This commit is contained in:
Carlos Garnacho 2015-02-02 15:34:17 +01:00
parent 5837c1c710
commit cc511268a0

View File

@ -5895,8 +5895,7 @@ popover_unmap (GtkWidget *widget,
{
if (popover->window)
{
if (gtk_widget_is_visible (popover->widget))
gtk_widget_unmap (popover->widget);
gtk_widget_unmap (popover->widget);
gdk_window_hide (popover->window);
}