[nautilus/wip/antoniof/experimental-gtk4-build: 31/55] general: Replace child properties with GtkStackPage




commit 49a7a2faad8d0123754efaac7b6f8fb2ebc01bc9
Author: António Fernandes <antoniof gnome org>
Date:   Sat Jan 1 16:01:49 2022 +0000

    general: Replace child properties with GtkStackPage

 src/nautilus-notebook.c          | 10 +++++-----
 src/nautilus-properties-window.c |  8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/nautilus-notebook.c b/src/nautilus-notebook.c
index e5bc14d53..494ef8ed1 100644
--- a/src/nautilus-notebook.c
+++ b/src/nautilus-notebook.c
@@ -314,11 +314,11 @@ nautilus_notebook_add_tab (GtkNotebook        *notebook,
                                          tab_label,
                                          position);
 
-    gtk_container_child_set (GTK_CONTAINER (notebook),
-                             GTK_WIDGET (slot),
-                             "tab-expand", TRUE,
-                             "detachable", FALSE,
-                             NULL);
+    g_object_set (gtk_notebook_get_page (GTK_NOTEBOOK (notebook),
+                                         GTK_WIDGET (slot)),
+                  "tab-expand", TRUE,
+                  "detachable", FALSE,
+                  NULL);
 
     nautilus_notebook_sync_tab_label (notebook, slot);
     nautilus_notebook_sync_loading (notebook, slot);
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index b6e28ea38..26eb909ef 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -4228,10 +4228,10 @@ append_extension_pages (NautilusPropertiesWindow *self)
 
             gtk_notebook_append_page (self->notebook,
                                       page_widget, label);
-            gtk_container_child_set (GTK_CONTAINER (self->notebook),
-                                     page_widget,
-                                     "tab-expand", TRUE,
-                                     NULL);
+            g_object_set (gtk_notebook_get_page (GTK_NOTEBOOK (self->notebook),
+                                                 GTK_WIDGET (page_widget)),
+                          "tab-expand", TRUE,
+                          NULL);
 
             g_object_set_data (G_OBJECT (page_widget),
                                "is-extension-page",


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