[gtk/wip/sadiq/750-gtk3] gtkpopover: Fix popover when parent widget is partially visible



commit e7eec517723afeb554eadb36543396e000fc0d1d
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Wed Jan 9 16:36:06 2019 +0530

    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 8ee72bfb4c..261b9c2d1a 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -1009,7 +1009,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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]