popover: Stop using gtk_widget_get_surface_allocation
authorMatthias Clasen <mclasen@redhat.com>
Sat, 25 Mar 2023 13:45:31 +0000 (09:45 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 25 Mar 2023 14:14:35 +0000 (10:14 -0400)
commit1a9c7a4b1fb7f7268c58fcb68b398ee4ea00e704
treef88d8791ba221fa6420d830201c55bdd6ea7fb39
parentb23ac5c8da31f0312a10ffb88117a46780979c1b
popover: Stop using gtk_widget_get_surface_allocation

The function is going away, and the computation
here was wrong anyway. Instead, add a helper that
properly computes the pointing-to rect in surface
coordinates and use it everywhere.
gtk/gtkpopover.c