From d11bc68b276220d103789ba7450be5ab94204168 Mon Sep 17 00:00:00 2001 From: Mohammed Sadiq Date: Wed, 9 Jan 2019 16:36:06 +0530 Subject: [PATCH] gtkpopover: Fix popover when parent widget is partially visible fixes https://gitlab.gnome.org/GNOME/gtk/issues/750 --- gtk/gtkpopover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c index 73a9e56974..69336460b9 100644 --- a/gtk/gtkpopover.c +++ b/gtk/gtkpopover.c @@ -1134,7 +1134,7 @@ _gtk_popover_update_child_visible (GtkPopover *popover) } parent = gtk_widget_get_parent (GTK_WIDGET (priv->parent_scrollable)); - rect = priv->pointing_to; + gtk_popover_get_pointing_to (popover, &rect); gtk_widget_translate_coordinates (priv->widget, parent, rect.x, rect.y, &rect.x, &rect.y);