summaryrefslogtreecommitdiff
path: root/browser.c
diff options
context:
space:
mode:
authorPeter Hofmann <scm@uninformativ.de>2014-06-15 12:16:43 +0200
committerPeter Hofmann <scm@uninformativ.de>2014-06-15 12:16:43 +0200
commit610021fe16e5658d232324efdbb66a7c6233639c (patch)
tree864879ff9b008879028f21f24130dff81ed5835e /browser.c
parentfe0c72e86ba5e3e27a570ef88e1379f72089ef1c (diff)
downloadlariza-610021fe16e5658d232324efdbb66a7c6233639c.tar.gz
Use ensure_http_prefix() in client_new()
Diffstat (limited to 'browser.c')
-rw-r--r--browser.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/browser.c b/browser.c
index 2eacb55..1845345 100644
--- a/browser.c
+++ b/browser.c
@@ -161,7 +161,7 @@ void
client_new(const gchar *uri)
{
struct Client *c;
- gchar *capitalized_name = NULL;
+ gchar *capitalized_name = NULL, *f;
if (cooperative_instances && !cooperative_alone)
{
@@ -263,7 +263,9 @@ client_new(const gchar *uri)
gtk_widget_grab_focus(c->web_view);
gtk_widget_show_all(c->win);
- webkit_web_view_load_uri(WEBKIT_WEB_VIEW(c->web_view), uri);
+ f = ensure_http_prefix(uri);
+ webkit_web_view_load_uri(WEBKIT_WEB_VIEW(c->web_view), f);
+ g_free(f);
clients++;
}