From 7bfc88fdfe12e7d67a5174b086b87e32a3b0898c Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 12 Oct 2017 15:56:37 -0400 Subject: MqTabChrome: Get Web view in mq_tab_chrome_new() Also remove mq_tab_chrome_set_web_view() and reorganize static functions. And update calls in MqTab. --- (limited to 'src/tab.c') diff --git a/src/tab.c b/src/tab.c index d1104ab..4d09cab 100644 --- a/src/tab.c +++ b/src/tab.c @@ -442,8 +442,7 @@ init_non_root(const gchar *uri, MqTab *source) g_signal_connect(tab->web_view, "notify::title", G_CALLBACK(title_cb), tab); - tab->chrome = mq_tab_chrome_new(tab, uri); - mq_tab_chrome_set_web_view(tab->chrome, 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), -- cgit v0.9.1