From a197b202b800845cb57d87cb0d69356aed873df5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 21 Mar 2020 18:28:57 -0400 Subject: [PATCH] places sidebar: Fix the popovers We need to check-resize the popovers. --- gtk/gtkplacessidebar.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index f62569b5f6..cdcffab742 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -2396,7 +2396,11 @@ show_rename_popover (GtkSidebarRow *row) sidebar->rename_uri = g_strdup (uri); gtk_editable_set_text (GTK_EDITABLE (sidebar->rename_entry), name); + g_object_ref (sidebar->rename_popover); + gtk_widget_unparent (sidebar->rename_popover); gtk_widget_set_parent (sidebar->rename_popover, GTK_WIDGET (row)); + g_object_unref (sidebar->rename_popover); + setup_popover_shadowing (sidebar->rename_popover); gtk_popover_popup (GTK_POPOVER (sidebar->rename_popover)); @@ -4084,6 +4088,9 @@ gtk_places_sidebar_size_allocate (GtkWidget *widget, &(GtkAllocation) { 0, 0, width, height }, baseline); + if (sidebar->popover) + gtk_native_check_resize (GTK_NATIVE (sidebar->popover)); + if (sidebar->rename_popover) gtk_native_check_resize (GTK_NATIVE (sidebar->rename_popover)); }