From c1909f3c881ae35e1e1a4f40fe28d628088c22ec Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 30 Jun 2011 14:14:35 +0200 Subject: Use our own notification categories if there is no official one --- src/empathy-notifications-approver.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/empathy-notifications-approver.c b/src/empathy-notifications-approver.c index 6087a6620..4d7951087 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; -- cgit v1.2.3