From eb736a9d813e523e6529b985bb21be443f29c9d3 Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Wed, 29 Jun 2011 19:16:47 -0500 Subject: ephy-download-widget: unescape tooltips In ae374ca97044684d6a33bb11ae8bccac06a85b9f we forgot about the tooltip. Bug #653690 --- lib/widgets/ephy-download-widget.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/widgets/ephy-download-widget.c b/lib/widgets/ephy-download-widget.c index e8353a94e..ab52e4e72 100644 --- a/lib/widgets/ephy-download-widget.c +++ b/lib/widgets/ephy-download-widget.c @@ -153,6 +153,7 @@ widget_progress_cb (GObject *object, EphyDownloadWidget *widget) { WebKitDownload *download; + char *file; char *destination; gdouble time; char *remaining; @@ -161,7 +162,8 @@ widget_progress_cb (GObject *object, char *remaining_tooltip; download = WEBKIT_DOWNLOAD (object); - destination = g_filename_display_basename (webkit_download_get_destination_uri (download)); + file = g_filename_display_basename (webkit_download_get_destination_uri (download)); + destination = g_uri_unescape_string (file, NULL); progress = webkit_download_get_progress (download) * 100; time = get_remaining_time (download); @@ -177,6 +179,7 @@ widget_progress_cb (GObject *object, gtk_label_set_text (GTK_LABEL (widget->priv->remaining), remaining_label); gtk_widget_set_tooltip_text (GTK_WIDGET (widget), remaining_tooltip); + g_free (file); g_free (destination); g_free (remaining); g_free (remaining_label); -- cgit v1.2.3