summaryrefslogtreecommitdiffstats
path: root/src/toolbars
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/toolbars
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/toolbars')
-rw-r--r--src/toolbars/navigation/main-menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/toolbars/navigation/main-menu.c b/src/toolbars/navigation/main-menu.c
index 2515033..58b4bf2 100644
--- a/src/toolbars/navigation/main-menu.c
+++ b/src/toolbars/navigation/main-menu.c
@@ -98,7 +98,7 @@ static void
preferences_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqMainMenu *main_menu)
{
gtk_widget_hide(main_menu->popover);
- mq_notebook_insert_child(
+ mq_notebook_insert_sibling(
MQ_NOTEBOOK(gtk_widget_get_parent(
GTK_WIDGET(main_menu->tab_page))),
"about:preferences",
@@ -110,7 +110,7 @@ static void
about_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqMainMenu *main_menu)
{
gtk_widget_hide(main_menu->popover);
- mq_notebook_insert_child(
+ mq_notebook_insert_sibling(
MQ_NOTEBOOK(gtk_widget_get_parent(
GTK_WIDGET(main_menu->tab_page))),
"about:",