summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2022-01-01 16:01:49 +0000
committerAntónio Fernandes <antoniof@gnome.org>2022-01-05 12:56:32 +0000
commit5492baa5517d864a00a55767ca913bc90dc4a65c (patch)
treef5ad0b8796189147469c7a1a2e82aae8dde0f75f
parent6a2fd2d0ede3cb7b9ba3f7ec94e0fa9611227eb0 (diff)
downloadnautilus-5492baa5517d864a00a55767ca913bc90dc4a65c.tar.gz
general: Replace child properties with GtkStackPage
-rw-r--r--src/nautilus-notebook.c10
-rw-r--r--src/nautilus-properties-window.c8
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 e6a2a4e24..f7274bbfb 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",