diff options
author | Thomas Menari <spaceinvader@chaotika.org> | 2009-06-12 13:41:09 +0100 |
---|---|---|
committer | Thomas Menari <spaceinvader@chaotika.org> | 2009-06-12 13:41:09 +0100 |
commit | 96edaa8412b4818d6fd34c395b52719ffc749469 (patch) | |
tree | 89dda4d3a0408d3d82132f3fc6776c96ca5cdfc0 | |
parent | 64edf0371e1d2eaf504c946ffffd75bb5808fa8c (diff) | |
download | surf-96edaa8412b4818d6fd34c395b52719ffc749469.tar.gz surf-96edaa8412b4818d6fd34c395b52719ffc749469.tar.bz2 surf-96edaa8412b4818d6fd34c395b52719ffc749469.zip |
fix downloading, tidyup
-rw-r--r-- | surf.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -109,9 +109,6 @@ download(WebKitDownload *o, GParamSpec *pspec, Client *c) { if(status == WEBKIT_DOWNLOAD_STATUS_STARTED || status == WEBKIT_DOWNLOAD_STATUS_CREATED) { c->progress = (int)(webkit_download_get_progress(c->download)*100); } - else { - stop(c); - } updatetitle(c, NULL); } @@ -277,8 +274,6 @@ loadcommit(WebKitWebView *view, WebKitWebFrame *f, Client *c) { void loadstart(WebKitWebView *view, WebKitWebFrame *f, Client *c) { - if(c->download) - stop(c); c->progress = 0; updatetitle(c, NULL); } @@ -409,8 +404,8 @@ newwindow(WebKitWebView *v, WebKitWebFrame *f, Client *c) { void pasteurl(GtkClipboard *clipboard, const gchar *text, gpointer d) { - if(text!=NULL) - loaduri((Client *)d, text); + if(text != NULL) + loaduri((Client *) d, text); } GdkFilterReturn |