diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-06-30 20:14:35 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-06-30 20:14:35 +0800 |
commit | c1909f3c881ae35e1e1a4f40fe28d628088c22ec (patch) | |
tree | 4c29d91161bf484003af8ea8541998c6cf998b8a /src | |
parent | e1db5549ea2349d0d17509171ffe7f977676acb7 (diff) | |
download | gsoc2013-empathy-c1909f3c881ae35e1e1a4f40fe28d628088c22ec.tar gsoc2013-empathy-c1909f3c881ae35e1e1a4f40fe28d628088c22ec.tar.gz gsoc2013-empathy-c1909f3c881ae35e1e1a4f40fe28d628088c22ec.tar.bz2 gsoc2013-empathy-c1909f3c881ae35e1e1a4f40fe28d628088c22ec.tar.lz gsoc2013-empathy-c1909f3c881ae35e1e1a4f40fe28d628088c22ec.tar.xz gsoc2013-empathy-c1909f3c881ae35e1e1a4f40fe28d628088c22ec.tar.zst gsoc2013-empathy-c1909f3c881ae35e1e1a4f40fe28d628088c22ec.zip |
Use our own notification categories if there is no official one
Diffstat (limited to 'src')
-rw-r--r-- | 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 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; |