changeset: 40:7786b245532f
tag: tip
user: Thomas Menari <spaceinvader_AT_chaotika.org>
date: Fri Jun 12 13:41:09 2009 +0100
files: surf.c
description:
fix downloading, tidyup
diff -r 80ea8c8b2a4e -r 7786b245532f surf.c
--- a/surf.c Tue Jun 09 22:40:14 2009 +0200
+++ b/surf.c Fri Jun 12 13:41:09 2009 +0100
@@ -108,9 +108,6 @@
status = webkit_download_get_status(c->download);
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 @@
void
loadstart(WebKitWebView *view, WebKitWebFrame *f, Client *c) {
- if(c->download)
- stop(c);
c->progress = 0;
updatetitle(c, NULL);
}
@@ -409,8 +404,8 @@
void
pasteurl(GtkClipboard *clipboard, const gchar *text, gpointer d) {
- if(text!=NULL)
- loaduri((Client *)d, text);
+ if(text != NULL)
+ loaduri((Client *) d, text);
}
GdkFilterReturn
Received on Fri Jun 12 2009 - 11:44:28 UTC
This archive was generated by hypermail 2.2.0 : Fri Jun 12 2009 - 11:48:05 UTC