[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Thu, 3 Dec 2009 21:17:24 +0000 (UTC)

changeset: 388:d6bb160996d7
tag: tip
user: Samuel Baldwin <recursive.forest_AT_gmail.com>
date: Thu Dec 03 16:16:58 2009 -0500
files: surf.suckless.org/patches/history.md surf.suckless.org/patches/surf-0.3-history.diff
description:
Added version 0.3 of history patch to surf patches.


diff -r 9a427b036998 -r d6bb160996d7 surf.suckless.org/patches/history.md
--- a/surf.suckless.org/patches/history.md Tue Dec 01 06:19:22 2009 +0000
+++ b/surf.suckless.org/patches/history.md Thu Dec 03 16:16:58 2009 -0500
_AT_@ -8,15 +8,17 @@
 
 wart_ also provides a shell script using dmenu to display and select a URI:
 
- cat ~/.surf/history | sort -r | uniq | dmenu -l 10 -b -i | xprop -id `cat ~/.surf/id` -f _SURF_URI 8s -set _SURF_URI
+ cat ~/.surf/history.txt | sort -r | uniq | dmenu -l 10 -b -i | xprop -id `cat ~/.surf/id` -f _SURF_URI 8s -set _SURF_URI
 
 Download
 --------
 
 * [surf-0.2-history.diff](surf-0.2-history.diff) (891) (20091019)
+* [surf-0.3-history.diff](surf-0.3-history.diff) (1475) (20091203)
 
 Authors
 -------
 
 * Jason Thigpen (cdarwin) <[darwin_AT_senet.us](mailto:darwin_AT_senet.us)>
 * Peter John Hartman (wart_) <[peterjohnhartman_AT_gmail.com](mailto:peterjohnhartman_AT_gmail.com)>
+* Samuel Baldwin (shardz) <[recursive.forest_AT_gmail.com](mailto:recursive.forest_AT_gmail.com)>
diff -r 9a427b036998 -r d6bb160996d7 surf.suckless.org/patches/surf-0.3-history.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/surf.suckless.org/patches/surf-0.3-history.diff Thu Dec 03 16:16:58 2009 -0500
_AT_@ -0,0 +1,43 @@
+diff -up surf-0.3/config.def.h surf-0.3-modified/config.def.h
+--- surf-0.3/config.def.h 2009-10-30 08:41:02.000000000 -0400
++++ surf-0.3-modified/config.def.h 2009-12-03 16:09:51.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 char *dldir = ".surf/dl";
+ static time_t sessiontime = 3600;
+
+diff -up surf-0.3/surf.c surf-0.3-modified/surf.c
+--- surf-0.3/surf.c 2009-10-30 08:41:02.000000000 -0400
++++ surf-0.3-modified/surf.c 2009-12-03 16:08:20.000000000 -0500
+_AT_@ -166,6 +166,7 @@ cleanup(void) {
+ while(clients)
+ destroyclient(clients);
+ g_free(cookiefile);
++ g_free(historyfile);
+ g_free(dldir);
+ g_free(scriptfile);
+ g_free(stylefile);
+_AT_@ -439,6 +440,12 @@ 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_@ -695,6 +702,7 @@ setup(void) {
+
+ /* create dirs and files */
+ cookiefile = buildpath(cookiefile);
++ historyfile = buildpath(historyfile);
+ dldir = buildpath(dldir);
+ scriptfile = buildpath(scriptfile);
+ stylefile = buildpath(stylefile);
Received on Thu Dec 03 2009 - 22:17:24 CET

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