sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 885ecbed5a8b49906c2397f313af90a6b1eed793
parent 5669616cdf945b5f8cc3cc0f48004e4ccedb06f7
Author: Matthew Bauer <mjbauer95@gmail.com>
Date:   Mon,  5 Jul 2010 15:24:12 -0500

Added page and patch for adding a homepage for surf.
Diffstat:
Asurf.suckless.org/patches/homepage.md | 21+++++++++++++++++++++
Asurf.suckless.org/patches/surf-0.3-homepage.diff | 15+++++++++++++++
2 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/surf.suckless.org/patches/homepage.md b/surf.suckless.org/patches/homepage.md @@ -0,0 +1,21 @@ +HOMEPAGE +======== + +Description +----------- + +This patch allows you to set a homepage to be loaded when you have not set a uri. + +Add the homepage to your config.h: + + #define HOMEPAGE "http://www.google.com/" + +Download +-------- + +* [surf-0.3-homepage.diff](surf-0.3-homepage.diff) (.3k) (20100705) + +Author +------ + +* Matthew Bauer <[mjbauer95@gmail.com](mailto:mjbauer95@gmail.com)> diff --git a/surf.suckless.org/patches/surf-0.3-homepage.diff b/surf.suckless.org/patches/surf-0.3-homepage.diff @@ -0,0 +1,15 @@ +diff -r dbb565b8d61c surf.c +--- a/surf.c Fri Jun 25 09:42:58 2010 +0200 ++++ b/surf.c Mon Jul 05 14:55:45 2010 -0500 +@@ -839,6 +839,11 @@ + newclient(); + if(arg.v) + loaduri(clients, &arg); ++ #ifdef HOMEPAGE ++ else ++ arg.v = HOMEPAGE; ++ loaduri(clients, &arg); ++ #endif + gtk_main(); + cleanup(); + return EXIT_SUCCESS;