Actually support our own spec and use the number of seconds until expiration instead of current time + number of seconds. That was creating all kinds of problems.

This commit is contained in:
Christian Hammond 2005-07-27 07:54:15 +00:00
parent 430eb532df
commit 56cdbb7087
8 changed files with 20 additions and 7 deletions

View File

@ -1,3 +1,16 @@
Wed Jul 27 00:51:58 PDT 2005 Christian Hammond <chipx86@chipx86.com>
* tests/test-animation.c:
* tests/test-basic.c:
* tests/test-error.c:
* tests/test-image.c:
* tests/test-markup.c:
* tests/test-xy.c:
* tests/test-xy-stress.c:
- Actually support our own spec and use the number of seconds until
expiration instead of current time + number of seconds. That was
creating all kinds of problems.
Wed Jul 27 00:31:47 PDT 2005 Christian Hammond <chipx86@chipx86.com>
* libnotify/dbus-compat.h:

View File

@ -92,7 +92,7 @@ int main()
NOTIFY_URGENCY_NORMAL,
"Summary", "Content",
icon,
TRUE, time(NULL) + 5,
TRUE, 0,
NULL, // no hints
NULL, // no user data
0); // no actions

View File

@ -31,7 +31,7 @@ int main() {
NOTIFY_URGENCY_NORMAL,
"Summary", "Content",
NULL, // no icon
TRUE, time(NULL) + 5,
TRUE, 0,
NULL, // no hints
NULL, // no user data
0); // no actions

View File

@ -33,7 +33,7 @@ int main() {
NOTIFY_URGENCY_NORMAL,
"Summary", "Content",
icon, // no icon
TRUE, time(NULL) + 5,
TRUE, 0,
NULL, // no hints
NULL, // no user data
0);

View File

@ -55,7 +55,7 @@ static void send(char *i, size_t rawlen, char *s, char *b)
NOTIFY_URGENCY_NORMAL,
s, b,
icon,
TRUE, time(NULL) + 5,
TRUE, 0,
NULL, // no hints
NULL, // no user data
0);

View File

@ -34,7 +34,7 @@ int main() {
"Some <b>bold</b>, <u>underlined</u>, <i>italic</i>, "
"<a href='http://www.google.com'>linked</a> text",
NULL, // no icon
FALSE, 0,
TRUE, 0,
NULL, // no hints
NULL, // no user data
0); // no actions

View File

@ -44,7 +44,7 @@ emit_notification(int x, int y)
"X, Y Test",
buffer,
NULL, // no icon
TRUE, time(NULL) + 5,
TRUE, 0,
hints,
NULL, // no user data
0); // no actions

View File

@ -39,7 +39,7 @@ int main() {
"X, Y Test",
"This notification should point to 150, 10.",
NULL, // no icon
TRUE, time(NULL) + 5,
TRUE, 0,
hints,
NULL, // no user data
0); // no actions