summaryrefslogtreecommitdiffstats
path: root/src/notebook.c
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-24 04:48:38 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-24 04:48:38 (EDT)
commit90f6250f94a94272d6c7380fa017d701732058e6 (patch)
treea46bf6a3acf618fe2002a39b63182a1e532f22df /src/notebook.c
parentd1ce1afc2240cfdeda48a23dd616a398ec336a72 (diff)
downloadmarquee-90f6250f94a94272d6c7380fa017d701732058e6.zip
marquee-90f6250f94a94272d6c7380fa017d701732058e6.tar.gz
marquee-90f6250f94a94272d6c7380fa017d701732058e6.tar.bz2
MqNotebook, MqTabLabel, MqMainMenu: Open new tabs as siblings, not children
This reverts commit c8eb35b and makes further changes.
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