diff options
badwolf.1: Add Alt-d to close tab
@@ -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 @@ -8,7 +8,7 @@ #include <glib/gprintf.h> /* g_fprintf() */ #include <gtk/gtk.h> #include <locale.h> /* LC_* */ -#include <stdlib.h> /* realpath() */ +#include <stdlib.h> /* realpath(), malloc() */ #include <webkit2/webkit2.h> 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; |