Hi, On Sun, Apr 18, 2010 at 11:16:41AM +0200, pancake wrote: > Thanks! > > This fixes my visual problem too :) > > I thougth that black came from the gtk theme...but no idea where it comes > from... > > We can add this option in config.h?
I've attached a patch to add such a config option. Perhaps someone would like to add it to the surf website or something. I've tried changing my GTK theme but it doesn't seem to change colour. S PS Sorry for the spam pancake - kept sending it from my e-mail address that isn't subscribed to the list. -- Sean Whitton / <s...@silentflame.com> OpenPGP KeyID: 0x3B6D411B http://seanwhitton.com/
diff -up surf/config.def.h modsurf/config.def.h --- surf/config.def.h 2010-04-24 20:40:29.000000000 +0100 +++ modsurf/config.def.h 2010-04-24 20:38:46.000000000 +0100 @@ -7,6 +7,7 @@ static char *scriptfile = ".surf/scr static char *cookiefile = ".surf/cookies.txt"; static char *dldir = ".surf/dl/"; static time_t sessiontime = 3600; +static gboolean blackbg = TRUE; #define SETPROP(p) { .v = (char *[]){ "/bin/sh", "-c", \ "prop=\"`xprop -id $1 $0 | cut -d '\"' -f 2 | dmenu`\" &&" \ diff -up surf/surf.c modsurf/surf.c --- surf/surf.c 2010-04-24 20:40:29.000000000 +0100 +++ modsurf/surf.c 2010-04-24 20:39:55.000000000 +0100 @@ -531,6 +531,8 @@ newclient(void) { g_signal_connect(G_OBJECT(c->view), "notify::load-status", G_CALLBACK(loadstatuschange), c); g_signal_connect(G_OBJECT(c->view), "notify::progress", G_CALLBACK(progresschange), c); + webkit_web_view_set_transparent(c->view, blackbg); + /* Indicator */ c->indicator = gtk_drawing_area_new(); gtk_widget_set_size_request(c->indicator, 0, 2);