[gtk/wip/sadiq/750-gtk4] 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-gtk4] gtkpopover: Fix popover when parent widget is partially visible
- Date: Wed, 9 Jan 2019 11:10:25 +0000 (UTC)
commit d2c9fc61cf210cc062109c4a508fb6984cf8cc8b
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 73a9e56974..b4746b1abe 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 (widget, &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]