summaryrefslogtreecommitdiff
path: root/browser.c
diff options
context:
space:
mode:
authorPeter Hofmann <scm@uninformativ.de>2014-11-09 12:10:19 +0100
committerPeter Hofmann <scm@uninformativ.de>2014-11-09 12:10:19 +0100
commit9cbe7f49106c6822aa2a01f6e37458626d0b696b (patch)
treec7426094618b24a3ab1d257de49cde9881d208cc /browser.c
parent79d0c56da86ab63f0aa52f48a56a2f73c08738f5 (diff)
downloadlariza-9cbe7f49106c6822aa2a01f6e37458626d0b696b.tar.gz
"-r" is useless without the adblock hook
Diffstat (limited to 'browser.c')
-rw-r--r--browser.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/browser.c b/browser.c
index 3ed7b7b..2965e6f 100644
--- a/browser.c
+++ b/browser.c
@@ -78,7 +78,6 @@ static gchar *home_uri = "about:blank";
static GHashTable *keywords = NULL;
static gboolean language_is_set = FALSE;
static gchar *search_text = NULL;
-static gboolean show_all_requests = FALSE;
static gboolean tabbed_automagic = TRUE;
static gchar *user_agent = NULL;
@@ -235,8 +234,6 @@ client_new(const gchar *uri)
if (uri != NULL)
{
f = ensure_uri_scheme(uri);
- if (show_all_requests)
- fprintf(stderr, "====> %s\n", uri);
webkit_web_view_load_uri(WEBKIT_WEB_VIEW(c->web_view), f);
g_free(f);
}
@@ -629,8 +626,6 @@ key_location(GtkWidget *widget, GdkEvent *event, gpointer data)
else if (!keywords_try_search(WEBKIT_WEB_VIEW(c->web_view), t))
{
f = ensure_uri_scheme(t);
- if (show_all_requests)
- fprintf(stderr, "====> %s\n", f);
webkit_web_view_load_uri(WEBKIT_WEB_VIEW(c->web_view), f);
g_free(f);
}
@@ -666,15 +661,11 @@ key_web_view(GtkWidget *widget, GdkEvent *event, gpointer data)
return TRUE;
case GDK_KEY_w: /* home (left hand) */
f = ensure_uri_scheme(home_uri);
- if (show_all_requests)
- fprintf(stderr, "====> %s\n", f);
webkit_web_view_load_uri(WEBKIT_WEB_VIEW(c->web_view), f);
g_free(f);
return TRUE;
case GDK_KEY_e: /* new tab (left hand) */
f = ensure_uri_scheme(home_uri);
- if (show_all_requests)
- fprintf(stderr, "====> %s\n", f);
client_new(f);
g_free(f);
return TRUE;
@@ -811,8 +802,6 @@ keywords_try_search(WebKitWebView *web_view, const gchar *t)
if (val != NULL)
{
uri = g_strdup_printf((gchar *)val, tokens[1]);
- if (show_all_requests)
- fprintf(stderr, "====> %s\n", uri);
webkit_web_view_load_uri(web_view, uri);
g_free(uri);
ret = TRUE;
@@ -922,7 +911,7 @@ main(int argc, char **argv)
grab_environment_configuration();
- while ((opt = getopt(argc, argv, "e:rCT")) != -1)
+ while ((opt = getopt(argc, argv, "e:CT")) != -1)
{
switch (opt)
{
@@ -930,9 +919,6 @@ main(int argc, char **argv)
embed = atol(optarg);
tabbed_automagic = FALSE;
break;
- case 'r':
- show_all_requests = TRUE;
- break;
case 'C':
cooperative_instances = FALSE;
break;