[gtk/wip/baedert/transforms6: 8/31] popover: Don't recalculate position if unmapped
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/transforms6: 8/31] popover: Don't recalculate position if unmapped
- Date: Thu, 29 Nov 2018 08:09:04 +0000 (UTC)
commit f598836d6c3c4831b59c412b58634ce8e8046ad0
Author: Timm Bäder <mail baedert org>
Date: Thu Nov 29 08:43:43 2018 +0100
popover: Don't recalculate position if unmapped
gtk/gtkpopover.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index c58d6c05bf..73a9e56974 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -1175,7 +1175,7 @@ gtk_popover_update_position (GtkPopover *popover)
gint i, j;
gint best;
- if (!priv->window)
+ if (!priv->window || !gtk_widget_get_mapped (widget))
return;
gtk_widget_get_preferred_size (widget, NULL, &req);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]