[Xfce4-commits] <xfce4-settings:master> Add checks for API change in libnotify 0.7.0.

Nick Schermer noreply at xfce.org
Sat Dec 4 22:50:01 CET 2010


Updating branch refs/heads/master
         to 34b6d96921eca46f6b083259301b2bb93a5454dc (commit)
       from 134fc3c1b1e5772dceb0ec6bb3db679e7bab8a4b (commit)

commit 34b6d96921eca46f6b083259301b2bb93a5454dc
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Dec 4 22:48:38 2010 +0100

    Add checks for API change in libnotify 0.7.0.

 xfce4-settings-helper/accessibility.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/xfce4-settings-helper/accessibility.c b/xfce4-settings-helper/accessibility.c
index 0f2f48d..9209371 100644
--- a/xfce4-settings-helper/accessibility.c
+++ b/xfce4-settings-helper/accessibility.c
@@ -411,7 +411,11 @@ xfce_accessibility_helper_notification_show (XfceAccessibilityHelper *helper,
     if (helper->notification == NULL)
     {
         /* create a new notification */
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+        helper->notification = notify_notification_new (summary, body, "keyboard");
+#else
         helper->notification = notify_notification_new (summary, body, "keyboard", NULL);
+#endif
 
         /* close signal */
         g_signal_connect (G_OBJECT (helper->notification), "closed", G_CALLBACK (xfce_accessibility_helper_notification_closed), helper);



More information about the Xfce4-commits mailing list