X-Git-Url: https://git.danieliu.xyz/?p=surf.git;a=blobdiff_plain;f=surf.c;h=724fcf316f1e34b0b48a66947dab57c789b1f827;hp=da5eb0914859848202241f97d9b1ff194ea497ee;hb=4415c475f7063ac5df0a0cca6b6696f0987f1404;hpb=b7cc1ae9644097899f881eb321c445ffca0bb3f2 diff --git a/surf.c b/surf.c index da5eb09..724fcf3 100644 --- a/surf.c +++ b/surf.c @@ -197,7 +197,6 @@ static void scroll(GtkAdjustment *a, const Arg *arg); static void setatom(Client *c, int a, const char *v); static void setup(void); static void sigchld(int unused); -static void source(Client *c, const Arg *arg); static void spawn(Client *c, const Arg *arg); static void stop(Client *c, const Arg *arg); static void titlechange(WebKitWebView *view, GParamSpec *pspec, Client *c); @@ -1372,17 +1371,6 @@ sigchld(int unused) while (0 < waitpid(-1, NULL, WNOHANG)); } -void -source(Client *c, const Arg *arg) -{ - Arg a = { .b = FALSE }; - gboolean s; - - s = webkit_web_view_get_view_source_mode(c->view); - webkit_web_view_set_view_source_mode(c->view, !s); - reload(c, &a); -} - void spawn(Client *c, const Arg *arg) {