diff options
Diffstat (limited to 'surf.c')
-rw-r--r-- | surf.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -104,6 +104,7 @@ static void setup(); static void titlechange(WebKitWebView* view, WebKitWebFrame* frame, const gchar* title, Client *c); static void searchtext(Client *c, const Arg *arg); +static void source(Client *c, const Arg *arg); static void showsearch(Client *c, const Arg *arg); static void showurl(Client *c, const Arg *arg); static void stop(Client *c, const Arg *arg); @@ -548,6 +549,16 @@ showsearch(Client *c, const Arg *arg) { } 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, c->source);*/ + reload(c, &a); +} + +void searchtext(Client *c, const Arg *arg) { gboolean forward = *(gboolean *)arg; webkit_web_view_search_text(c->view, |