diff options
Diffstat (limited to 'surf/surf.c')
| -rw-r--r-- | surf/surf.c | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/surf/surf.c b/surf/surf.c index 552ea44..252a79a 100644 --- a/surf/surf.c +++ b/surf/surf.c @@ -56,7 +56,6 @@ typedef enum { CaretBrowsing, Certificate, CookiePolicies, - DarkMode, DiskCache, DefaultCharset, DNSPrefetch, @@ -262,7 +261,6 @@ char *argv0; static ParamName loadtransient[] = { Certificate, CookiePolicies, - DarkMode, DiskCache, DNSPrefetch, FileURLsCrossAccess, @@ -440,7 +438,18 @@ sighup(int unused) for (c = clients; c; c = c->next) reload(c, &a); } - +void +search(Client *c, const Arg *a) +{ + Arg arg; + char *url; + + url = g_strdup_printf(searchurl, a->v); + arg.v = url; + loaduri(c, &arg); + + g_free(url); + } char * buildfile(const char *path) { @@ -601,19 +610,6 @@ loaduri(Client *c, const Arg *a) g_free(url); } -void -search(Client *c, const Arg *a) -{ - Arg arg; - char *url; - - url = g_strdup_printf(searchurl, a->v); - arg.v = url; - loaduri(c, &arg); - - g_free(url); -} - const char * geturi(Client *c) { @@ -811,10 +807,6 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a) cookiepolicy_get()); refresh = 0; break; - case DarkMode: - g_object_set(gtk_settings_get_default(), - "gtk-application-prefer-dark-theme", a->i, NULL); - break; case DiskCache: webkit_web_context_set_cache_model( webkit_web_view_get_context(c->view), a->i ? @@ -1365,7 +1357,7 @@ processx(GdkXEvent *e, GdkEvent *event, gpointer d) find(c, NULL); return GDK_FILTER_REMOVE; - } else if (ev->atom == atoms[AtomSearch]) { + } else if (ev->atom == atoms[AtomSearch]) { a.v = getatom(c, AtomSearch); search(c, &a); } else if (ev->atom == atoms[AtomGo]) { |