diff options
-rw-r--r-- | src/tab.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -24,7 +24,7 @@ #include <gtk/gtk.h> #include "tab.h" -#include "tab-chrome.h" +#include "navigation-toolbar.h" #include "find-toolbar.h" #include "web-view.h" @@ -424,6 +424,7 @@ static MqTab * init_non_root(const gchar *uri, MqTab *source) { MqTab *tab; + GtkWidget *navigation_toolbar; GtkWidget *find_toolbar; tab = malloc(sizeof(*tab)); @@ -446,12 +447,16 @@ init_non_root(const gchar *uri, MqTab *source) find_toolbar = mq_find_toolbar_new(MQ_WEB_VIEW(tab->web_view)); + /* FIXME: Replace tab->window->config */ + navigation_toolbar = mq_navigation_toolbar_new(tab->window->config, tab, + MQ_FIND_TOOLBAR(find_toolbar), MQ_WEB_VIEW(tab->web_view), uri); + tab->chrome = mq_tab_chrome_new(tab, MQ_FIND_TOOLBAR(find_toolbar), MQ_WEB_VIEW(tab->web_view), uri); tab->container = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start(GTK_BOX(tab->container), - mq_tab_chrome_get_container(tab->chrome), FALSE, FALSE, 0); + navigation_toolbar, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(tab->container), find_toolbar, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(tab->container), |