summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorEnno Boland (tox) <tox@s01.de>2009-09-09 14:00:31 +0200
committerEnno Boland (tox) <tox@s01.de>2009-09-09 14:00:31 +0200
commit6c57c348add4326818115d282ea000ccf0857e6a (patch)
tree1372bfe19e4f04a78371358ba5fb377a154eabf5 /surf.c
parent9708b64eed9c51ebbec702d92bc97645ccbb0be6 (diff)
downloadsurf-6c57c348add4326818115d282ea000ccf0857e6a.tar.gz
surf-6c57c348add4326818115d282ea000ccf0857e6a.tar.bz2
surf-6c57c348add4326818115d282ea000ccf0857e6a.zip
preparing sourcecode feature coming with webkit-1.1.14.
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/surf.c b/surf.c
index deb916f..c0debf0 100644
--- a/surf.c
+++ b/surf.c
@@ -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,