logo

badwolf

minimalist and privacy-oriented web browser based on WebKitGTK git clone https://hacktivis.me/git/badwolf.git
commit: bdcf4d1bda0c8c3efacfeaf8a8b75f64acd4a26a
parent bfc4e50960f19156cb644015b185d14efdd9d55c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 18 May 2019 17:15:13 +0200

badwolf.c: Fix usage of ensure_uri_scheme try_file argument

Diffstat:

Mbadwolf.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/badwolf.c b/badwolf.c @@ -456,7 +456,7 @@ locationCb_activate(GtkEntry *location, gpointer user_data) char *target_url; struct Client *browser = (struct Client *)user_data; - target_url = ensure_uri_scheme((char *)gtk_entry_get_text(location), FALSE); + target_url = ensure_uri_scheme((char *)gtk_entry_get_text(location), TRUE); if(target_url != NULL) webkit_web_view_load_uri(browser->webView, target_url); @@ -530,7 +530,7 @@ struct Client * new_browser(struct Window *window, gchar *target_url, WebKitWebView *related_web_view) { struct Client *browser = g_malloc(sizeof(struct Client)); - target_url = ensure_uri_scheme(target_url, (related_web_view != NULL)); + target_url = ensure_uri_scheme(target_url, (related_web_view == NULL)); browser->window = window; browser->box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);