[nautilus] src/nautilus-trash-bar.c: remove generic container



commit b7b475298cad315da3c0ad159e497abc0bfe1993
Author: Suhaas <suhaas joshi outlook com>
Date:   Fri Dec 3 07:12:41 2021 +0530

    src/nautilus-trash-bar.c: remove generic container
    
    This is to prepare for the migration to GTK4.
    
    https://gitlab.gnome.org/GNOME/nautilus/-/issues/1947

 src/nautilus-trash-bar.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-trash-bar.c b/src/nautilus-trash-bar.c
index 7fca03e67..b2e753d52 100644
--- a/src/nautilus-trash-bar.c
+++ b/src/nautilus-trash-bar.c
@@ -241,10 +241,9 @@ nautilus_trash_bar_init (NautilusTrashBar *bar)
                      G_SETTINGS_BIND_GET);
 
     gtk_widget_show (label);
-    gtk_container_add (GTK_CONTAINER (content_area), label);
-
-    gtk_container_add (GTK_CONTAINER (content_area), subtitle);
+    gtk_box_pack_start (GTK_BOX (content_area), label, FALSE, FALSE, 0);
 
+    gtk_box_pack_start (GTK_BOX (content_area), subtitle, FALSE, FALSE, 0);
     w = gtk_info_bar_add_button (GTK_INFO_BAR (bar),
                                  _("_Settings"),
                                  TRASH_BAR_RESPONSE_AUTODELETE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]