From a0565464d7acf2ab2ca15697b7dbb797e65dc2c6 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 12 Oct 2017 16:03:18 -0400 Subject: MqTab: Instantiate an MqFindToolbar --- (limited to 'src/tab.c') diff --git a/src/tab.c b/src/tab.c index 4d09cab..c3eb7c5 100644 --- a/src/tab.c +++ b/src/tab.c @@ -25,6 +25,7 @@ #include "tab.h" #include "tab-chrome.h" +#include "find-toolbar.h" #include "web-view.h" static void @@ -422,7 +423,8 @@ title_cb(WebKitWebView G_GNUC_UNUSED *web_view, static MqTab * init_non_root(const gchar *uri, MqTab *source) { - MqTab *tab; + MqTab *tab; + GtkWidget *find_toolbar; tab = malloc(sizeof(*tab)); tab->parent = NULL; @@ -442,12 +444,16 @@ init_non_root(const gchar *uri, MqTab *source) g_signal_connect(tab->web_view, "notify::title", G_CALLBACK(title_cb), tab); + find_toolbar = mq_find_toolbar_new(MQ_WEB_VIEW(tab->web_view)); + tab->chrome = mq_tab_chrome_new(tab, 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); gtk_box_pack_start(GTK_BOX(tab->container), + find_toolbar, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(tab->container), GTK_WIDGET(tab->web_view), TRUE, TRUE, 0); return tab; -- cgit v0.9.1