From 6c57c348add4326818115d282ea000ccf0857e6a Mon Sep 17 00:00:00 2001
From: "Enno Boland (tox)" <tox@s01.de>
Date: Wed, 9 Sep 2009 14:00:31 +0200
Subject: preparing sourcecode feature coming with webkit-1.1.14.

---
 surf.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

(limited to 'surf.c')

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);
@@ -547,6 +548,16 @@ showsearch(Client *c, const Arg *arg) {
 	gtk_widget_grab_focus(c->searchbar);
 }
 
+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;
-- 
cgit v1.2.3