From 977133e84108067e9114e1c069f21d7531e08f77 Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Sat, 27 Jul 2013 17:25:39 +0800 Subject: Show error message in download panel if extraction failed --- lib/widgets/ephy-download-widget.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/widgets/ephy-download-widget.c b/lib/widgets/ephy-download-widget.c index d956c9e9a..3ce554809 100644 --- a/lib/widgets/ephy-download-widget.c +++ b/lib/widgets/ephy-download-widget.c @@ -400,6 +400,7 @@ widget_archive_error_cb (AutoarExtract *arextract, { const char *uri = webkit_download_get_destination (ephy_download_get_webkit_download (widget->priv->download)); char *dest = g_path_get_basename (uri); + char *errmsg; LOG ("widget_archive_error_cb: error: %s", error->message); LOG ("widget_archive_error_cb: text: %s => %s", gtk_label_get_text (GTK_LABEL (widget->priv->text)), dest); @@ -407,7 +408,8 @@ widget_archive_error_cb (AutoarExtract *arextract, ephy_download_get_destination_uri (widget->priv->download), uri); gtk_label_set_text (GTK_LABEL (widget->priv->text), dest); ephy_download_set_destination_uri (widget->priv->download, uri); - update_download_label_and_tooltip (widget, _("Finished (extraction failed)")); + errmsg = g_strdup_printf (_("Finished (extraction error: %s)"), error->message); + update_download_label_and_tooltip (widget, errmsg); update_download_icon (widget); g_free (dest); g_error_free (error); -- cgit v1.2.3