diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-12 16:03:18 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-12 16:03:18 (EDT) |
commit | a0565464d7acf2ab2ca15697b7dbb797e65dc2c6 (patch) | |
tree | bd7b69f2857e300da484c15670a9c10ade11f4d0 | |
parent | 7bfc88fdfe12e7d67a5174b086b87e32a3b0898c (diff) | |
download | marquee-a0565464d7acf2ab2ca15697b7dbb797e65dc2c6.zip marquee-a0565464d7acf2ab2ca15697b7dbb797e65dc2c6.tar.gz marquee-a0565464d7acf2ab2ca15697b7dbb797e65dc2c6.tar.bz2 |
MqTab: Instantiate an MqFindToolbar
-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; |