From 5492baa5517d864a00a55767ca913bc90dc4a65c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Fernandes?= Date: Sat, 1 Jan 2022 16:01:49 +0000 Subject: 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 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", -- cgit v1.2.1