From f433da66be851e32f805774872e9400531c392c3 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 30 Oct 2017 16:09:29 -0400 Subject: MqWebView: Call mq_web_view_load_uri() in constructed() Instead of directly setting web_view->uri and calling mq_web_view_scheme_set_methods(). --- diff --git a/src/web-view.c b/src/web-view.c index f023833..5388644 100644 --- a/src/web-view.c +++ b/src/web-view.c @@ -217,8 +217,8 @@ constructed(GObject *object) new_tab_page = mq_config_get_string(web_view->config, "tabs.new"); if (g_strcmp0(new_tab_page, "home") == 0) { - web_view->uri = mq_config_get_string(web_view->config, - "tabs.home"); + mq_web_view_load_uri(web_view, mq_config_get_string( + web_view->config, "tabs.home")); } else if (g_strcmp0(new_tab_page, "blank") == 0) { /* Don't load any URI. */ } else { @@ -226,9 +226,6 @@ constructed(GObject *object) } } - mq_web_view_scheme_set_methods(&web_view->scheme_methods, - &web_view->scheme, web_view->uri); - mq_web_view_zoom_reset(web_view); gtk_widget_set_vexpand(GTK_WIDGET(web_view), TRUE); -- cgit v0.9.1