popover: Stop using gtk_widget_get_parent_surface

We can just use the surface of the parent.
This commit is contained in:
Matthias Clasen 2019-04-24 20:54:25 -04:00
parent fe3b5ba545
commit 52d4bcf1be

View File

@ -564,7 +564,7 @@ gtk_popover_realize (GtkWidget *widget)
gtk_widget_get_surface_allocation (widget, &allocation);
surface = gdk_surface_new_child (gtk_widget_get_parent_surface (widget), &allocation);
surface = gdk_surface_new_child (gtk_widget_get_surface (gtk_widget_get_parent (widget)), &allocation);
gtk_widget_set_surface (widget, surface);
gtk_widget_register_surface (widget, surface);