summaryrefslogtreecommitdiffstats
path: root/src/notebook.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/notebook.c')
-rw-r--r--src/notebook.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/notebook.c b/src/notebook.c
index ffda497..2a85601 100644
--- a/src/notebook.c
+++ b/src/notebook.c
@@ -129,7 +129,8 @@ switch_page_cb(MqNotebook *notebook, MqTabPage *page,
static void
new_tab_clicked_cb(GtkWidget G_GNUC_UNUSED *button, MqNotebook *notebook)
{
- mq_notebook_insert_child(notebook, NULL, notebook->current_page, TRUE);
+ mq_notebook_insert_sibling(notebook, NULL, notebook->current_page,
+ TRUE);
}
static void