changeset: 192:7497a6945a20
tag: tip
user: Enno Boland (tox) <tox_AT_s01.de>
date: Sun May 02 10:59:28 2010 +0200
files: config.mk surf.c
description:
Adding small fix by Alex Puterbaugh. Thanks.
diff -r 756f8fa6f317 -r 7497a6945a20 config.mk
--- a/config.mk Thu Apr 08 20:28:32 2010 +0200
+++ b/config.mk Sun May 02 10:59:28 2010 +0200
@@ -17,7 +17,7 @@
# flags
CPPFLAGS = -DVERSION=\"${VERSION}\"
-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
+CFLAGS = -std=c99 -pedantic -Wall -O0 -g ${INCS} ${CPPFLAGS}
LDFLAGS = -g ${LIBS}
# Solaris
diff -r 756f8fa6f317 -r 7497a6945a20 surf.c
--- a/surf.c Thu Apr 08 20:28:32 2010 +0200
+++ b/surf.c Sun May 02 10:59:28 2010 +0200
@@ -254,7 +254,7 @@
download(Client *c, const Arg *arg) {
char *uri;
WebKitNetworkRequest *r;
- WebKitDownload *dl;
+ WebKitDownload *dl;
if(arg->v)
uri = (char *)arg->v;
@@ -420,18 +420,17 @@
void
loadstatuschange(WebKitWebView *view, GParamSpec *pspec, Client *c) {
+ switch(webkit_web_view_get_load_status (c->view)) {
+ case WEBKIT_LOAD_COMMITTED:
if(c->download)
stop(c, NULL);
- switch(webkit_web_view_get_load_status (c->view)) {
- case WEBKIT_LOAD_COMMITTED:
- setatom(c, uriprop, geturi(c));
+ setatom(c, uriprop, geturi(c));
break;
case WEBKIT_LOAD_FINISHED:
c->progress = 0;
update(c);
break;
- case WEBKIT_LOAD_PROVISIONAL:
- case WEBKIT_LOAD_FIRST_VISUALLY_NON_EMPTY_LAYOUT:
+ default:
break;
}
}
Received on Sun May 02 2010 - 08:59:18 UTC
This archive was generated by hypermail 2.2.0 : Sun May 02 2010 - 09:00:07 UTC