commit: ab49503d9ff05e5894dc6c4f1d136c1dde2f6c50
parent 508cf3ec91948a76c81010a0657c047205ba2dc6
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 4 Jun 2024 14:57:47 +0200
badwolf.c: reformat
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/badwolf.c b/badwolf.c
@@ -366,11 +366,14 @@ WebViewCb_decide_policy(WebKitWebView *UNUSED(web_view),
WebKitURIRequest *uri = webkit_navigation_action_get_request(navigation_action);
const gchar *target_url = webkit_uri_request_get_uri(uri);
struct Client *browser = new_browser(target_url, old_browser);
- int ret = badwolf_new_tab(GTK_NOTEBOOK(window->notebook), browser, FALSE);
+ int ret = badwolf_new_tab(GTK_NOTEBOOK(window->notebook), browser, FALSE);
if(ret < 0)
{
- fprintf(stderr, "badwolf: Error while opening <%s> in a new tab (badwolf_new_tab returned %d)\n", target_url, ret);
+ fprintf(stderr,
+ "badwolf: Error while opening <%s> in a new tab (badwolf_new_tab returned %d)\n",
+ target_url,
+ ret);
return FALSE;
}
webkit_web_view_load_uri(browser->webView, target_url);