diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tab.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; |