It's a good thing to actually set the urgency levels in the urgency test.

This commit is contained in:
Christian Hammond 2006-02-04 10:04:27 +00:00
parent 8705b75a63
commit 931065204c
2 changed files with 9 additions and 0 deletions

View File

@ -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:

View File

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