[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Sun, 18 Oct 2009 23:32:40 +0000 (UTC)

changeset: 308:a6db1030e000
tag: tip
user: Jason Thigpen (cdarwin) <darwin_AT_senet.us>
date: Mon Oct 19 15:33:28 2009 -0400
files: surf.suckless.org/patches/history-0.1.diff surf.suckless.org/patches/history.md
description:
added history patch to surf


diff -r f8252cdd9855 -r a6db1030e000 surf.suckless.org/patches/history-0.1.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/surf.suckless.org/patches/history-0.1.diff Mon Oct 19 15:33:28 2009 -0400
_AT_@ -0,0 +1,29 @@
+--- surf.c 2009-10-17 03:00:22.000000000 -0400
++++ surf.c 2009-10-19 15:03:16.000000000 -0400
+_AT_@ -160,6 +160,7 @@ cleanup(void) {
+ while(clients)
+ destroyclient(clients);
+ g_free(cookiefile);
++ g_free(historyfile);
+ g_free(dldir);
+ g_free(scriptfile);
+ g_free(stylefile);
+_AT_@ -420,6 +421,10 @@ loaduri(Client *c, const Arg *arg) {
+ u = g_strrstr(uri, "://") ? g_strdup(uri)
+ : g_strdup_printf("http://%s", uri);
+ webkit_web_view_load_uri(c->view, u);
++ FILE *f;
++ f = fopen(historyfile, "a+");
++ fprintf(f, "%s\n", u);
++ fclose(f);
+ c->progress = 0;
+ c->title = copystr(&c->title, u);
+ g_free(u);
+_AT_@ -674,6 +679,7 @@ setup(void) {
+
+ /* create dirs and files */
+ cookiefile = buildpath(cookiefile);
++ historyfile = buildpath(historyfile);
+ dldir = buildpath(dldir);
+ scriptfile = buildpath(scriptfile);
+ stylefile = buildpath(stylefile);
diff -r f8252cdd9855 -r a6db1030e000 surf.suckless.org/patches/history.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/surf.suckless.org/patches/history.md Mon Oct 19 15:33:28 2009 -0400
_AT_@ -0,0 +1,18 @@
+HISTORY
+=======
+
+Description
+-----------
+
+This little patch writes the the loaded uri to a file.
+
+Download
+--------
+
+* [history-0.1.diff](history-0.1.diff) (891) (20091019)
+
+Authors
+-------
+
+* Jason Thigpen (cdarwin) <[darwin_AT_senet.us](mailto:darwin_AT_senet.us)>
+* wart_
Received on Mon Oct 19 2009 - 01:32:40 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:30:55 CEST