[empathy: 3/5] EmpathyContactListFlags: add _MESSAGE_ADD flag
- From: Jonny Lamb <jonnylamb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 3/5] EmpathyContactListFlags: add _MESSAGE_ADD flag
- Date: Mon, 22 Aug 2011 08:02:28 +0000 (UTC)
commit 82600285342927b40d8a7b72f0b559b4b14d01a3
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Wed Jun 8 09:54:30 2011 +0100
EmpathyContactListFlags: add _MESSAGE_ADD flag
https://bugzilla.gnome.org/show_bug.cgi?id=656934
libempathy/empathy-contact-list.h | 1 +
libempathy/empathy-tp-contact-list.c | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-contact-list.h b/libempathy/empathy-contact-list.h
index cf523bf..b36817a 100644
--- a/libempathy/empathy-contact-list.h
+++ b/libempathy/empathy-contact-list.h
@@ -41,6 +41,7 @@ typedef enum {
EMPATHY_CONTACT_LIST_CAN_GROUP = 1 << 3,
EMPATHY_CONTACT_LIST_CAN_BLOCK = 1 << 4,
EMPATHY_CONTACT_LIST_CAN_REPORT_ABUSIVE = 1 << 5,
+ EMPATHY_CONTACT_LIST_MESSAGE_ADD = 1 << 6,
} EmpathyContactListFlags;
typedef struct _EmpathyContactListIface EmpathyContactListIface;
diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c
index 11990a9..d9fb181 100644
--- a/libempathy/empathy-tp-contact-list.c
+++ b/libempathy/empathy-tp-contact-list.c
@@ -1358,6 +1358,10 @@ tp_contact_list_get_flags (EmpathyContactList *list)
if (group_flags & TP_CHANNEL_GROUP_FLAG_CAN_REMOVE) {
flags |= EMPATHY_CONTACT_LIST_CAN_REMOVE;
}
+
+ if (group_flags & TP_CHANNEL_GROUP_FLAG_MESSAGE_ADD) {
+ flags |= EMPATHY_CONTACT_LIST_MESSAGE_ADD;
+ }
}
if (priv->deny != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]