diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c index 4c181f3c63..4761e8bb1b 100644 --- a/gtk/gtkpopover.c +++ b/gtk/gtkpopover.c @@ -605,12 +605,9 @@ gtk_popover_realize (GtkWidget *widget) { GtkPopover *popover = GTK_POPOVER (widget); GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover); - GdkRectangle parent_rect; GdkDisplay *display; GdkSurface *parent; - gtk_widget_get_surface_allocation (priv->relative_to, &parent_rect); - display = gtk_widget_get_display (priv->relative_to); parent = gtk_native_get_surface (gtk_widget_get_native (priv->relative_to)); @@ -706,10 +703,8 @@ gtk_popover_map (GtkWidget *widget) GtkPopover *popover = GTK_POPOVER (widget); GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover); GtkWidget *child; - GdkRectangle parent_rect; gdk_surface_show (priv->surface); - gtk_widget_get_surface_allocation (priv->relative_to, &parent_rect); move_to_rect (popover); priv->surface_transform_changed_cb =