[wiki] [sites] surf homepage: remove 0.3 and 0.6 patch || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Fri, 09 Aug 2019 16:32:55 +0200

commit f1518cb363fbf2b348946b7c324be691c61022e5
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri Aug 9 16:30:55 2019 +0200

    surf homepage: remove 0.3 and 0.6 patch
    
    - 0.3 was old.
    - 0.6 is broken.

diff --git a/surf.suckless.org/patches/homepage/index.md b/surf.suckless.org/patches/homepage/index.md
index cd6cd2bf..3298760f 100644
--- a/surf.suckless.org/patches/homepage/index.md
+++ b/surf.suckless.org/patches/homepage/index.md
_AT_@ -9,9 +9,7 @@ This patch allows you to set a homepage to be loaded when you have not set a uri
 Download
 --------
 
-* [surf-2.0-homepage.diff](surf-2.0-homepage.diff) (.6k) (20180104)
-* [surf-0.6-homepage.diff](surf-0.6-homepage.diff) (.7k) (20140816)
-* [surf-0.3-homepage.diff](surf-0.3-homepage.diff) (.3k) (20100705)
+* [surf-2.0-homepage.diff](surf-2.0-homepage.diff) (0.6k) (20180104)
 
 Author
 ------
diff --git a/surf.suckless.org/patches/homepage/surf-0.3-homepage.diff b/surf.suckless.org/patches/homepage/surf-0.3-homepage.diff
deleted file mode 100644
index b134510e..00000000
--- a/surf.suckless.org/patches/homepage/surf-0.3-homepage.diff
+++ /dev/null
_AT_@ -1,13 +0,0 @@
-diff -r dbb565b8d61c surf.c
---- a/surf.c Fri Jun 25 09:42:58 2010 +0200
-+++ b/surf.c Mon Jul 05 21:56:52 2010 +0100
-_AT_@ -833,6 +833,9 @@
- usage();
- }
- }
-+#ifdef HOMEPAGE
-+ arg.v = HOMEPAGE;
-+#endif
- if(i < argc)
- arg.v = argv[i];
- setup();
diff --git a/surf.suckless.org/patches/homepage/surf-0.6-homepage.diff b/surf.suckless.org/patches/homepage/surf-0.6-homepage.diff
deleted file mode 100644
index 7f890bf1..00000000
--- a/surf.suckless.org/patches/homepage/surf-0.6-homepage.diff
+++ /dev/null
_AT_@ -1,26 +0,0 @@
-diff --git a/config.def.h b/config.def.h
-index 93a3d49..41bb067 100644
---- a/config.def.h
-+++ b/config.def.h
-_AT_@ -35,6 +35,7 @@ static Bool loadimages = TRUE;
- static Bool hidebackground = FALSE;
- static Bool allowgeolocation = TRUE;
-
-+#define HOMEPAGE "https://www.duckduckgo.com/"
- #define SETPROP(p, q) { \
- .v = (char *[]){ "/bin/sh", "-c", \
- "prop=\"`xprop -id $2 $0 " \
-diff --git a/surf.c b/surf.c
-index fdfaab1..7a71bf2 100644
---- a/surf.c
-+++ b/surf.c
-_AT_@ -1759,6 +1759,9 @@ main(int argc, char *argv[])
- default:
- usage();
- } ARGEND;
-+ #ifdef HOMEPAGE
-+ arg.v = HOMEPAGE;
-+ #endif
- if (argc > 0)
- arg.v = argv[0];
-
Received on Fri Aug 09 2019 - 16:32:55 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 09 2019 - 16:36:31 CEST