It's a good thing to actually set the urgency levels in the urgency test.
This commit is contained in:
parent
8705b75a63
commit
931065204c
|
@ -1,3 +1,9 @@
|
|||
Sat Feb 04 02:04:13 PST 2006 Christian Hammond <chipx86@chipx86.com>
|
||||
|
||||
* tests/test-urgency.c:
|
||||
- It's a good thing to actually set the urgency levels in the
|
||||
urgency test.
|
||||
|
||||
Sat Feb 04 01:47:00 PST 2006 Christian Hammond <chipx86@chipx86.com>
|
||||
|
||||
A tests/test-urgency.c:
|
||||
|
|
|
@ -31,6 +31,7 @@ main(int argc, char *argv[])
|
|||
|
||||
n = notify_notification_new("Low Urgency", "Joe signed online.",
|
||||
NULL, NULL);
|
||||
notify_notification_set_urgency(n, NOTIFY_URGENCY_LOW);
|
||||
if (!notify_notification_show(n, NULL))
|
||||
{
|
||||
fprintf(stderr, "failed to send notification\n");
|
||||
|
@ -43,6 +44,7 @@ main(int argc, char *argv[])
|
|||
n = notify_notification_new("Normal Urgency",
|
||||
"You have a meeting in 10 minutes.",
|
||||
NULL, NULL);
|
||||
notify_notification_set_urgency(n, NOTIFY_URGENCY_NORMAL);
|
||||
if (!notify_notification_show(n, NULL))
|
||||
{
|
||||
fprintf(stderr, "failed to send notification\n");
|
||||
|
@ -56,6 +58,7 @@ main(int argc, char *argv[])
|
|||
"This message will self-destruct in 10 "
|
||||
"seconds.",
|
||||
NULL, NULL);
|
||||
notify_notification_set_urgency(n, NOTIFY_URGENCY_CRITICAL);
|
||||
notify_notification_set_timeout(n, 10000); // 10 seconds
|
||||
|
||||
if (!notify_notification_show(n, NULL))
|
||||
|
|
Loading…
Reference in New Issue