From fc8d34d7538fc8c3890f9af843bf2f78a320e465 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Fri, 5 Jul 2019 08:15:32 +0200 Subject: badwolf.1: Add Alt-d to close tab --- badwolf.1 | 2 +- badwolf.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/badwolf.1 b/badwolf.1 index 3c066bf..33b86c0 100644 --- a/badwolf.1 +++ b/badwolf.1 @@ -28,7 +28,7 @@ Zooms the webpage in/out. Resets webpage zoom to 100%. .It any C-t Creates a new tab (in a new session, similar as pressing the button) -.It browser C-F4 +.It browser C-F4, browser A-d Closes the current tab .It browser C-f Focuses on the search entry diff --git a/badwolf.c b/badwolf.c index bcd7e98..641eaec 100644 --- a/badwolf.c +++ b/badwolf.c @@ -8,7 +8,7 @@ #include /* g_fprintf() */ #include #include /* LC_* */ -#include /* realpath() */ +#include /* realpath(), malloc() */ #include const gchar *homepage = "https://hacktivis.me/projects/badwolf"; @@ -658,7 +658,7 @@ SearchEntryCb_stop__search(GtkSearchEntry *search, gpointer user_data) struct Client * new_browser(struct Window *window, gchar *target_url, WebKitWebView *related_web_view) { - struct Client *browser = g_try_malloc(sizeof(struct Client)); + struct Client *browser = malloc(sizeof(struct Client)); target_url = ensure_uri_scheme(target_url, (related_web_view == NULL)); char *badwolf_l10n = NULL; -- cgit v1.3.1-23-gd82d