1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-30 21:55:24 +00:00

Changed notify urgency

This commit is contained in:
James Booth 2012-06-28 23:51:49 +01:00
parent 54ef09bfbd
commit 0d9cb61bcd

View File

@ -205,15 +205,15 @@ static void _win_notify(char * short_from)
NotifyNotification *incoming;
incoming = notify_notification_new("Profanity", short_from, NULL);
// set the timeout of the notification to 3 secs
notify_notification_set_timeout(incoming, 3000);
// set the timeout of the notification to 10 secs
notify_notification_set_timeout(incoming, 10000);
// set the category so as to tell what kind it is
char category[30] = "Incoming message";
notify_notification_set_category(incoming, category);
// set the urgency level of the notification
notify_notification_set_urgency (incoming, NOTIFY_URGENCY_CRITICAL);
notify_notification_set_urgency(incoming, NOTIFY_URGENCY_NORMAL);
GError *error = NULL;
notify_notification_show(incoming, &error);