diff options
Diffstat (limited to 'tools/test-replace.c')
-rw-r--r-- | tools/test-replace.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tools/test-replace.c b/tools/test-replace.c deleted file mode 100644 index feb624e..0000000 --- a/tools/test-replace.c +++ /dev/null @@ -1,28 +0,0 @@ -#include <libnotify/notify.h> -#include <stdio.h> -#include <unistd.h> - -int main() { - notify_init("Replace Test"); - - NotifyHandle *n = notify_send_notification(NULL, // replaces nothing - NOTIFY_URGENCY_NORMAL, - "Summary", "Content", - NULL, // no icon - FALSE, 0, // does not expire - NULL, // no user data - 0); // no actions - - if (!n) { - fprintf(stderr, "failed to send notification\n"); - return 1; - } - - - sleep(3); - - notify_send_notification(n, NOTIFY_URGENCY_NORMAL, "Second Summary", "Second Content", - NULL, TRUE, time(NULL) + 5, NULL, 0); - - return 0; -} |