diff options
-rw-r--r-- | src/notebook.c | 3 | ||||
-rw-r--r-- | src/tab-label.c | 2 | ||||
-rw-r--r-- | src/toolbars/navigation/main-menu.c | 4 |
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:", |