diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-page.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/tab-page.c b/src/tab-page.c index 3ffdfe7..34a5d77 100644 --- a/src/tab-page.c +++ b/src/tab-page.c @@ -182,9 +182,6 @@ init_non_root(MqTabPage *tab_page) find_toolbar, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(tab_page), GTK_WIDGET(tab_page->web_view), TRUE, TRUE, 0); - - mq_window_insert_tab(tab_page->window, - GTK_WIDGET(tab_page), tab_page->label, tab_page->position); } static void @@ -203,12 +200,18 @@ constructed(GObject *object) init_root(tab_page); break; case CREATE_SIBLING: - append_sibling(tab_page); init_non_root(tab_page); + append_sibling(tab_page); + mq_window_insert_tab(tab_page->window, + GTK_WIDGET(tab_page), tab_page->label, + tab_page->position); break; case CREATE_CHILD: - append_child(tab_page); init_non_root(tab_page); + append_child(tab_page); + mq_window_insert_tab(tab_page->window, + GTK_WIDGET(tab_page), tab_page->label, + tab_page->position); break; case CREATE_NONE: case N_CREATE_TYPES: |