summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-30 16:09:29 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-30 16:09:29 (EDT)
commitf433da66be851e32f805774872e9400531c392c3 (patch)
tree3d3da072ba4beb578e1aaa181cc523efaef895d2
parent048eab44b59454b0a2171d5d5e56914298021663 (diff)
downloadmarquee-f433da66be851e32f805774872e9400531c392c3.zip
marquee-f433da66be851e32f805774872e9400531c392c3.tar.gz
marquee-f433da66be851e32f805774872e9400531c392c3.tar.bz2
MqWebView: Call mq_web_view_load_uri() in constructed()
Instead of directly setting web_view->uri and calling mq_web_view_scheme_set_methods().
-rw-r--r--src/web-view.c7
1 files changed, 2 insertions, 5 deletions
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);