mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 22:06:22 +00:00
Changed notify urgency
This commit is contained in:
@@ -205,15 +205,15 @@ static void _win_notify(char * short_from)
|
|||||||
NotifyNotification *incoming;
|
NotifyNotification *incoming;
|
||||||
incoming = notify_notification_new("Profanity", short_from, NULL);
|
incoming = notify_notification_new("Profanity", short_from, NULL);
|
||||||
|
|
||||||
// set the timeout of the notification to 3 secs
|
// set the timeout of the notification to 10 secs
|
||||||
notify_notification_set_timeout(incoming, 3000);
|
notify_notification_set_timeout(incoming, 10000);
|
||||||
|
|
||||||
// set the category so as to tell what kind it is
|
// set the category so as to tell what kind it is
|
||||||
char category[30] = "Incoming message";
|
char category[30] = "Incoming message";
|
||||||
notify_notification_set_category(incoming, category);
|
notify_notification_set_category(incoming, category);
|
||||||
|
|
||||||
// set the urgency level of the notification
|
// 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;
|
GError *error = NULL;
|
||||||
notify_notification_show(incoming, &error);
|
notify_notification_show(incoming, &error);
|
||||||
|
|||||||
Reference in New Issue
Block a user