summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--src/notebook.c3
-rw-r--r--src/tab-label.c2
-rw-r--r--src/toolbars/navigation/main-menu.c4
3 files changed, 5 insertions, 4 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
diff --git a/src/tab-label.c b/src/tab-label.c
index e4f6bce..a308244 100644
--- a/src/tab-label.c
+++ b/src/tab-label.c
@@ -66,7 +66,7 @@ reload_tab_clicked_cb(GtkWidget G_GNUC_UNUSED *button, MqTabLabel *tab_label)
static void
new_tab_clicked_cb(GtkWidget G_GNUC_UNUSED *button, MqTabLabel *tab_label)
{
- mq_notebook_insert_child(
+ mq_notebook_insert_sibling(
MQ_NOTEBOOK(gtk_widget_get_parent(GTK_WIDGET(tab_label))),
NULL,
tab_label->tab_page,
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:",