[Xfce4-commits] <xfdesktop:master> Add checks for API change in libnotify 0.7.0 (bug #6915).

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


Updating branch refs/heads/master
         to ccfa0d3ca9daa9191442c0d285d46b4502d6bdb5 (commit)
       from 6b4711a7c749d0ae5eaaac5b613e29c908635af0 (commit)

commit ccfa0d3ca9daa9191442c0d285d46b4502d6bdb5
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Dec 4 22:45:42 2010 +0100

    Add checks for API change in libnotify 0.7.0 (bug #6915).

 src/xfdesktop-notify.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/xfdesktop-notify.c b/src/xfdesktop-notify.c
index c91103b..4e0cb05 100644
--- a/src/xfdesktop-notify.c
+++ b/src/xfdesktop-notify.c
@@ -144,7 +144,11 @@ xfdesktop_notify_unmount (GMount *mount)
                                    name);
     }
 
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+  notification = notify_notification_new (summary, message, icon_name);
+#else
   notification = notify_notification_new (summary, message, icon_name, NULL);
+#endif
   notify_notification_set_urgency (notification, NOTIFY_URGENCY_CRITICAL);
   notify_notification_set_timeout (notification, NOTIFY_EXPIRES_NEVER);
   notify_notification_show (notification, NULL);
@@ -260,7 +264,11 @@ xfdesktop_notify_eject (GVolume *volume)
                                    name);
     }
 
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+  notification = notify_notification_new (summary, message, icon_name);
+#else
   notification = notify_notification_new (summary, message, icon_name, NULL);
+#endif
   notify_notification_set_urgency (notification, NOTIFY_URGENCY_CRITICAL);
   notify_notification_set_timeout (notification, NOTIFY_EXPIRES_NEVER);
   notify_notification_show (notification, NULL);



More information about the Xfce4-commits mailing list