summaryrefslogtreecommitdiff
path: root/src/nautilus-notebook.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nautilus-notebook.c')
-rw-r--r--src/nautilus-notebook.c10
1 files changed, 5 insertions, 5 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);