Below is a very minor addition to surf.c. In my bmarks-history script,
I store uris into a history file, but I wanted to only store sucessful
or real uris there, and not typos. There was no way to determine this
before. Now, I can check _SURF_URI for the word "Error" if the uri
fails.
This requires webkit-gtk-1.1.19 or greater (tested on 1.2.1).
Best,
Peter
diff -r 1b2d2396f5d6 surf.c
--- a/surf.c Sun May 30 22:05:37 2010 +0200
+++ b/surf.c Wed Jun 02 08:57:27 2010 -0400
@@ -371,6 +371,9 @@
case WEBKIT_LOAD_COMMITTED:
setatom(c, AtomUri, geturi(c));
break;
+ case WEBKIT_LOAD_FAILED:
+ setatom(c, AtomUri, "Error");
+ break;
case WEBKIT_LOAD_FINISHED:
c->progress = 0;
update(c);
-- sic dicit magister P. http://individual.utoronto.ca/peterjh/Received on Wed Jun 02 2010 - 12:58:50 UTC
This archive was generated by hypermail 2.2.0 : Wed Jun 02 2010 - 13:00:05 UTC