summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-13 03:57:36 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-13 03:57:36 (EDT)
commit2750ebbb25d96442513152d7f01811aa593564d8 (patch)
tree567e03e35ed448f7b3225359b559aa2398573e62 /src
parentd1dce1a55df4d1e772a09e734435cced16679c9f (diff)
downloadmarquee-2750ebbb25d96442513152d7f01811aa593564d8.zip
marquee-2750ebbb25d96442513152d7f01811aa593564d8.tar.gz
marquee-2750ebbb25d96442513152d7f01811aa593564d8.tar.bz2
MqTab: Use MqNavigationToolbar instead of MqTabChrome
Diffstat (limited to 'src')
-rw-r--r--src/tab.c9
1 files changed, 7 insertions, 2 deletions
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 <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),