about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorEdd Barrett <vext01@gmail.com>2011-03-02 21:24:15 +0000
committerEdd Barrett <vext01@gmail.com>2011-03-02 21:24:15 +0000
commit6a2ac920d3a994d0bad680ba6bf16b37f67d742d (patch)
tree29d896b4a30130bd0c5d89e45b06224bd45b112a
parentaae1685a440fb94d634c950033c9dcbbaae81f76 (diff)
downloadxombrero-6a2ac920d3a994d0bad680ba6bf16b37f67d742d.tar.gz
Fix a bug in the download manager - now all filenames on the disk will match the
filenames in the download manager. Also pop up a message when a download starts.

OK marco@
-rw-r--r--xxxterm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 4c8d18d..f6be793 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -3952,7 +3952,7 @@ xtp_page_dl_row(struct tab *t, char *html, struct download *dl)
 	new_html = g_strdup_printf(
 	    "%s\n<tr><td>%s</td><td>%s</td>"
 	    "<td style='text-align:center'>%s</td></tr>\n",
-	    html, basename(webkit_download_get_uri(dl->download)),
+	    html, basename(webkit_download_get_destination_uri(dl->download)),
 	    status_html, cmd_html);
 	g_free(html);
 
@@ -6112,6 +6112,8 @@ webview_download_cb(WebKitWebView *wv, WebKitDownload *wk_download,
 		/* get from history */
 		g_object_ref(wk_download);
 		gtk_label_set_text(GTK_LABEL(t->label), "Downloading");
+		show_oops(t, "Download of '%s' started...",
+		    basename(webkit_download_get_destination_uri(wk_download)));
 	}
 
 	if (uri)