mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
popover: Stop using gtk_widget_get_parent_surface
We can just use the surface of the parent.
This commit is contained in:
parent
fe3b5ba545
commit
52d4bcf1be
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user