[empathy] Use our own notification categories if there is no official one
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Use our own notification categories if there is no official one
- Date: Thu, 30 Jun 2011 12:22:10 +0000 (UTC)
commit c1909f3c881ae35e1e1a4f40fe28d628088c22ec
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Jun 30 14:14:35 2011 +0200
Use our own notification categories if there is no official one
src/empathy-notifications-approver.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-notifications-approver.c b/src/empathy-notifications-approver.c
index 6087a66..4d79510 100644
--- a/src/empathy-notifications-approver.c
+++ b/src/empathy-notifications-approver.c
@@ -290,6 +290,8 @@ notification_is_urgent (EmpathyNotificationsApprover *self,
return FALSE;
}
+/* Use x-empathy as prefix for unofficial categories
+ * http://www.galago-project.org/specs/notification/0.9/x211.html */
static const gchar *
get_category_for_event_type (EmpathyEventType type)
{
@@ -302,11 +304,15 @@ get_category_for_event_type (EmpathyEventType type)
return "presence.offline";
case EMPATHY_EVENT_TYPE_VOIP:
case EMPATHY_EVENT_TYPE_CALL:
+ return "x-empathy.call.incoming";
case EMPATHY_EVENT_TYPE_TRANSFER:
+ return "x-empathy.transfer.incoming";
case EMPATHY_EVENT_TYPE_INVITATION:
+ return "x-empathy.im.room-invitation";
case EMPATHY_EVENT_TYPE_AUTH:
+ return "x-empathy.network.auth-request";
case EMPATHY_EVENT_TYPE_SUBSCRIPTION:
- return NULL;
+ return "x-empathy.im.subscription-request";
}
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]