1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-24 12:49:30 +00:00

notifier: Add notification category

This helps shells to adjust the kind of haptic/visual/audio
feedback for the notification.
This commit is contained in:
Guido Günther 2021-08-02 12:22:01 +02:00 committed by Evangelos Ribeiro Tzaras
parent 36ec623098
commit a1fa33c7af

View file

@ -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);