[gtk/wip/sadiq/750-gtk3] gtkpopover: Fix popover when parent widget is partially visible
- From: Mohammed Sadiq <pksadiq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/sadiq/750-gtk3] gtkpopover: Fix popover when parent widget is partially visible
- Date: Wed, 9 Jan 2019 11:39:31 +0000 (UTC)
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]