summaryrefslogtreecommitdiff
path: root/gtk/gtkplacessidebar.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-01 22:22:20 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-04 22:53:07 -0400
commit8e261056b9c3fd5027bfb0a980c06b78624475a8 (patch)
treef2f182ca38d5ea7ab7f6c4443c9de471196333aa /gtk/gtkplacessidebar.c
parentee284a560ae14621dd55fb9cdd1b412acb101014 (diff)
downloadgtk+-8e261056b9c3fd5027bfb0a980c06b78624475a8.tar.gz
Use gtk_popover_set_child throughout
Replace all uses of gtk_container_add on popovers by gtk_popover_set_child.
Diffstat (limited to 'gtk/gtkplacessidebar.c')
-rw-r--r--gtk/gtkplacessidebar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index dabe9470ef..6ba5cd3a5c 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -2296,7 +2296,7 @@ create_rename_popover (GtkPlacesSidebar *sidebar)
g_signal_connect (popover, "destroy", G_CALLBACK (on_rename_popover_destroy), sidebar);
gtk_popover_set_position (GTK_POPOVER (popover), GTK_POS_RIGHT);
grid = gtk_grid_new ();
- gtk_container_add (GTK_CONTAINER (popover), grid);
+ gtk_popover_set_child (GTK_POPOVER (popover), grid);
g_object_set (grid,
"margin-start", 10,
"margin-end", 10,