From 2750ebbb25d96442513152d7f01811aa593564d8 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 13 Oct 2017 03:57:36 -0400 Subject: MqTab: Use MqNavigationToolbar instead of MqTabChrome --- (limited to 'src') diff --git a/src/tab.c b/src/tab.c index f99ca91..c100785 100644 --- a/src/tab.c +++ b/src/tab.c @@ -24,7 +24,7 @@ #include #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), -- cgit v0.9.1