[Xfce4-commits] <xfce4-notifyd:master> Be more careful when initializing libnotify.
Jérôme Guelfucci
noreply at xfce.org
Sun Aug 21 15:30:02 CEST 2011
Updating branch refs/heads/master
to d307406444a2574bc85939fc7d61293dc02760ff (commit)
from 9c0816cf600d8b4c005e8a3ddb67ce57d86df80b (commit)
commit d307406444a2574bc85939fc7d61293dc02760ff
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date: Sun Aug 21 15:24:10 2011 +0200
Be more careful when initializing libnotify.
tests/test-positioning.c | 7 ++++++-
tests/test-text.c | 7 ++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/tests/test-positioning.c b/tests/test-positioning.c
index af35692..4478a92 100644
--- a/tests/test-positioning.c
+++ b/tests/test-positioning.c
@@ -31,7 +31,12 @@ int main (int argc, char **argv)
{
gint i;
- notify_init ("Test notification positioning");
+ if (!notify_init ("Test notification positioning"))
+ {
+ g_error ("Failed to initialize libnotify.");
+
+ return EXIT_FAILURE;
+ }
g_print ("%s", "Testing notification positioning\n");
diff --git a/tests/test-text.c b/tests/test-text.c
index 5c58500..700d4f4 100644
--- a/tests/test-text.c
+++ b/tests/test-text.c
@@ -29,7 +29,12 @@ int main (int argc, char **argv)
{
NotifyNotification *notification;
- notify_init ("Notification with text test");
+ if (!notify_init ("Notification with text test"))
+ {
+ g_error ("Failed to initialize libnotify.");
+
+ return EXIT_FAILURE;
+ }
g_print ("%s", "Testing notification with text summary and body\n");
More information about the Xfce4-commits
mailing list