[evolution] sync_store_desc: Display the store's display name.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] sync_store_desc: Display the store's display name.
- Date: Sat, 30 Nov 2013 14:48:53 +0000 (UTC)
commit 99bdfc8c24951660b423147a2c9682c868748eab
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Nov 30 09:49:15 2013 -0500
sync_store_desc: Display the store's display name.
That's what it's for.
libemail-engine/mail-ops.c | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/libemail-engine/mail-ops.c b/libemail-engine/mail-ops.c
index 406d3d6..cb77df5 100644
--- a/libemail-engine/mail-ops.c
+++ b/libemail-engine/mail-ops.c
@@ -1330,21 +1330,22 @@ struct _sync_store_msg {
static gchar *
sync_store_desc (struct _sync_store_msg *m)
{
- CamelURL *url;
- gchar *uri, *res;
+ CamelService *service;
+ gchar *display_name;
+ gchar *description;
- url = camel_service_new_camel_url (CAMEL_SERVICE (m->store));
- uri = camel_url_to_string (url, CAMEL_URL_HIDE_ALL);
- camel_url_free (url);
+ service = CAMEL_SERVICE (m->store);
+ display_name = camel_service_dup_display_name (service);
- res = g_strdup_printf (
+ description = g_strdup_printf (
m->expunge ?
_("Expunging and storing account '%s'") :
_("Storing account '%s'"),
- uri);
- g_free (uri);
+ display_name);
+
+ g_free (display_name);
- return res;
+ return description;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]