[evolution-rss] reduce size of error dialogs
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-rss] reduce size of error dialogs
- Date: Sun, 24 Oct 2010 06:59:16 +0000 (UTC)
commit 27a26b73e88ba541f5e8162399ec9a505a40e183
Author: Lucian Langa <lucilanga gnome org>
Date: Sat Oct 23 17:09:59 2010 +0300
reduce size of error dialogs
src/org-gnome-evolution-rss.error.xml | 4 ++--
src/rss.c | 11 ++++++-----
2 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/src/org-gnome-evolution-rss.error.xml b/src/org-gnome-evolution-rss.error.xml
index a303398..37ad336 100644
--- a/src/org-gnome-evolution-rss.error.xml
+++ b/src/org-gnome-evolution-rss.error.xml
@@ -19,8 +19,8 @@
</error>
<error id="feederr" type="error">
- <primary>{0}</primary>
- <secondary>{1}</secondary>
+ <primary>{0}</primary>
+ <secondary>{1}</secondary>
<button stock="gtk-ok" response="GTK_RESPONSE_OK"/>
</error>
diff --git a/src/rss.c b/src/rss.c
index 4f617b8..365b172 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -3509,15 +3509,16 @@ generic_finish_feed(rfMessage *msg, gpointer user_data)
xmlSubstituteEntitiesDefaultValue = 1;
r->cache = xml_parse_sux (response->str, response->len);
if (rsserror) {
+ gchar *title = g_strdup_printf(
+ _("Error while parsing feed %s"),
+ (gchar *)user_data);
xmlError *err = xmlGetLastError();
- gchar *tmsg = g_strdup_printf("\n%s\nInvalid feed: %s",
- (gchar *)user_data,
+ gchar *tmsg = g_strdup(
err ? err->message : _("illegal content type!"));
rss_error(user_data,
- NULL,
- _("Error while parsing feed."),
- tmsg);
+ NULL, title, tmsg);
g_free(tmsg);
+ g_free(title);
goto cleanup;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]