From a1fa33c7afb1fbfdfd37b3a57333cbe719380024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Mon, 2 Aug 2021 12:22:01 +0200 Subject: [PATCH] notifier: Add notification category This helps shells to adjust the kind of haptic/visual/audio feedback for the notification. --- src/calls-notifier.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calls-notifier.c b/src/calls-notifier.c index 1c71f6a..6d2086f 100644 --- a/src/calls-notifier.c +++ b/src/calls-notifier.c @@ -54,6 +54,9 @@ notify (CallsNotifier *self, CallsCall *call) const char *number; gboolean got_number; +#if GLIB_CHECK_VERSION(2,70,0) + g_notification_set_category (notification, "x-gnome.call.unanswered"); +#endif contact = calls_call_get_contact (call); // TODO: We need to update the notification when the contact name changes name = calls_best_match_get_name (contact);