diff options
author | Peter Hofmann <scm@uninformativ.de> | 2014-06-15 12:16:43 +0200 |
---|---|---|
committer | Peter Hofmann <scm@uninformativ.de> | 2014-06-15 12:16:43 +0200 |
commit | 610021fe16e5658d232324efdbb66a7c6233639c (patch) | |
tree | 864879ff9b008879028f21f24130dff81ed5835e /browser.c | |
parent | fe0c72e86ba5e3e27a570ef88e1379f72089ef1c (diff) | |
download | lariza-610021fe16e5658d232324efdbb66a7c6233639c.tar.gz |
Use ensure_http_prefix() in client_new()
Diffstat (limited to 'browser.c')
-rw-r--r-- | browser.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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++; } |