[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Tue, 4 Jan 2011 01:14:30 +0000 (UTC)

changeset: 670:35c64965a7ba
tag: tip
user: samuel <recursive.forest_AT_gmail.com>
date: Mon Jan 03 20:14:32 2011 -0500
files: surf.suckless.org/patches/history.md surf.suckless.org/patches/surf-0.4.1-history.diff
description:
Add 0.4.1 history patch.


diff -r 1dcfd1d41d0a -r 35c64965a7ba surf.suckless.org/patches/history.md
--- a/surf.suckless.org/patches/history.md Mon Jan 03 09:27:47 2011 +0000
+++ b/surf.suckless.org/patches/history.md Mon Jan 03 20:14:32 2011 -0500
_AT_@ -48,6 +48,7 @@
 * [surf-0.2-history.diff](surf-0.2-history.diff) (891) (20091019)
 * [surf-0.3-history.diff](surf-0.3-history.diff) (1475) (20091203)
 * [surf-tip-history.diff](surf-tip-history.diff) (2952) (20091215)
+* [surf-0.4.1-history.diff](surf-0.4.1-history.diff) (1346) (20101225)
 
 Authors
 -------
diff -r 1dcfd1d41d0a -r 35c64965a7ba surf.suckless.org/patches/surf-0.4.1-history.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/surf.suckless.org/patches/surf-0.4.1-history.diff Mon Jan 03 20:14:32 2011 -0500
_AT_@ -0,0 +1,41 @@
+diff -up surf-0.4.1/config.def.h surf-0.4.1-history/config.def.h
+--- surf-0.4.1/config.def.h 2010-06-08 03:06:41.000000000 -0400
++++ surf-0.4.1-history/config.def.h 2010-12-25 20:00:08.000000000 -0500
+_AT_@ -5,6 +5,7 @@ static char *progress_trust = "#00FF00";
+ static char *stylefile = ".surf/style.css";
+ static char *scriptfile = ".surf/script.js";
+ static char *cookiefile = ".surf/cookies.txt";
++static char *historyfile = ".surf/history.txt";
+ static time_t sessiontime = 3600;
+ #define NOBACKGROUND 0
+
+diff -up surf-0.4.1/surf.c surf-0.4.1-history/surf.c
+--- surf-0.4.1/surf.c 2010-06-08 03:06:42.000000000 -0400
++++ surf-0.4.1-history/surf.c 2010-12-25 19:50:51.000000000 -0500
+_AT_@ -140,6 +140,7 @@ cleanup(void) {
+ while(clients)
+ destroyclient(clients);
+ g_free(cookiefile);
++ g_free(historyfile);
+ g_free(scriptfile);
+ g_free(stylefile);
+ }
+_AT_@ -396,6 +397,10 @@ loaduri(Client *c, const Arg *arg) {
+ }
+ else {
+ webkit_web_view_load_uri(c->view, u);
++ FILE *f;
++ f = fopen(historyfile, "a+");
++ fprintf(f, u);
++ fclose(f);
+ c->progress = 0;
+ c->title = copystr(&c->title, u);
+ g_free(u);
+_AT_@ -689,6 +694,7 @@ setup(void) {
+
+ /* dirs and files */
+ cookiefile = buildpath(cookiefile);
++ historyfile = buildpath(historyfile);
+ scriptfile = buildpath(scriptfile);
+ stylefile = buildpath(stylefile);
+
Received on Tue Jan 04 2011 - 02:14:30 CET

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:31:35 CEST