sites

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

commit dd9843d60a85707f100f02eec3d3376e65077d4d
parent 885ecbed5a8b49906c2397f313af90a6b1eed793
Author: Rob Pilling <robpilling@gmail.com>
Date:   Mon,  5 Jul 2010 22:04:58 +0100

Simplified homepage patch + minor bug fix

loaduri() would be called twice if an argument was passed via the argv
Diffstat:
Msurf.suckless.org/patches/surf-0.3-homepage.diff | 24+++++++++++-------------
1 file changed, 11 insertions(+), 13 deletions(-)

diff --git a/surf.suckless.org/patches/surf-0.3-homepage.diff b/surf.suckless.org/patches/surf-0.3-homepage.diff @@ -1,15 +1,13 @@ 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; ++++ b/surf.c Mon Jul 05 21:56:52 2010 +0100 +@@ -833,6 +833,9 @@ + usage(); + } + } ++#ifdef HOMEPAGE ++ arg.v = HOMEPAGE; ++#endif + if(i < argc) + arg.v = argv[i]; + setup();