[evolution-data-server] add get_name
- From: Chenthill Palanisamy <pchen src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-data-server] add get_name
- Date: Mon, 1 Feb 2010 16:48:22 +0000 (UTC)
commit c5ae605567e3575989c809af16e16428ecba2e04
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Mon Feb 1 22:05:34 2010 +0530
add get_name
camel/providers/imapx/camel-imapx-store.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-store.c b/camel/providers/imapx/camel-imapx-store.c
index 6ce1368..bdaa86b 100644
--- a/camel/providers/imapx/camel-imapx-store.c
+++ b/camel/providers/imapx/camel-imapx-store.c
@@ -178,6 +178,16 @@ store_get_login(struct _CamelIMAPXDriver *driver, gchar **login, gchar **pass, C
}
#endif
+static gchar *
+imapx_get_name (CamelService *service, gboolean brief)
+{
+ if (brief)
+ return g_strdup_printf (_("IMAP server %s"), service->url->host);
+ else
+ return g_strdup_printf (_("IMAP service for %s on %s"),
+ service->url->user, service->url->host);
+}
+
static gboolean
imap_connect (CamelService *service, CamelException *ex)
{
@@ -1097,6 +1107,7 @@ camel_imapx_store_class_init(CamelIMAPXStoreClass *klass)
camel_service_class->construct = imap_construct;
camel_service_class->query_auth_types = imap_query_auth_types;
+ camel_service_class->get_name = imapx_get_name;
camel_service_class->connect = imap_connect;
camel_service_class->disconnect = imap_disconnect;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]