forked from AuroraMiddleware/gtk
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:
parent
5837c1c710
commit
cc511268a0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user