[nautilus/wip/antoniof/switch-to-gtk4: 28/40] general: Replace child properties with GtkStackPage
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/switch-to-gtk4: 28/40] general: Replace child properties with GtkStackPage
- Date: Sun, 9 Jan 2022 00:43:49 +0000 (UTC)
commit 23d09fe346c9daf74d2f1ef90e7566f034daa504
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 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",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]