Hi,

I just noticed that surf resets the progress to 0% after it finished loading 
the website.
I think, that was made to hide the load-indicator after finishing. But than the 
surf-window
stays with a title like "[0%] ...".

I patched this to not reset the progress, but checks it for the indicator 
instead.

Kind Regards,
Michael Stummvoll
--- surf.c.orig	2010-06-08 09:06:42.000000000 +0200
+++ surf.c	2012-01-24 17:08:00.178631782 +0100
@@ -248,7 +248,7 @@
 
 	uri = geturi(c);
 	w = c->indicator;
-	width = c->progress * w->allocation.width / 100;
+	width = c->progress == 100 ? 0 : c->progress * w->allocation.width / 100;
 	gc = gdk_gc_new(w->window);
 	gdk_color_parse(strstr(uri, "https://";) == uri ?
 			progress_trust : progress, &fg);
@@ -372,7 +372,7 @@
 		setatom(c, AtomUri, geturi(c));
 		break;
 	case WEBKIT_LOAD_FINISHED:
-		c->progress = 0;
+		c->progress = 100;
 		update(c);
 		break;
 	default:

Reply via email to