Merge branch 'wip/sadiq/750-gtk4' into 'master'

gtkpopover: Fix popover when parent widget is partially visible

Closes #750

See merge request GNOME/gtk!496
This commit is contained in:
Timm Bäder 2019-01-09 11:53:45 +00:00
commit ba1644cba1

View File

@ -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);