Updating branch refs/heads/master
         to 13f01e6f2477f0308416e694c31880db977568db (commit)
       from 490a087d4dcad922abd3ef5055de0fcf352a135e (commit)

commit 13f01e6f2477f0308416e694c31880db977568db
Author: Ali Abdallah <[email protected]>
Date:   Tue Feb 15 10:32:10 2011 +0100

    Fix compatibility with libnotify 0.7

 src/xfpm-notify.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/xfpm-notify.c b/src/xfpm-notify.c
index 4928649..088f432 100644
--- a/src/xfpm-notify.c
+++ b/src/xfpm-notify.c
@@ -215,13 +215,20 @@ xfpm_notify_new_notification_internal (const gchar 
*title, const gchar *message,
 {
     NotifyNotification *n;
     
-    n = notify_notification_new (title, message, NULL, NULL);
+    n = notify_notification_new (title, message, NULL
+#ifdef HAVE_LIBNOTIFY_07
+    );
+#else
+    , NULL);
+#endif
     
     if ( icon_name )
        xfpm_notify_set_notification_icon (n, icon_name);
-       
+
+#ifndef HAVE_LIBNOTIFY_07
     if ( icon )
        notify_notification_attach_to_status_icon (n, icon);
+#endif
        
     notify_notification_set_urgency (n, (NotifyUrgency)urgency);
     
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to