[Xfce4-commits] <thunar:master> Add checks for API change in libnotify 0.7.0.
Nick Schermer
noreply at xfce.org
Sat Dec 4 22:52:01 CET 2010
Updating branch refs/heads/master
to d9f4d906f3f75c2dde271e9d27e456a2f60067ad (commit)
from 01236511efffe38645d962d2d4129dd322b21607 (commit)
commit d9f4d906f3f75c2dde271e9d27e456a2f60067ad
Author: Nick Schermer <nick at xfce.org>
Date: Sat Dec 4 22:50:13 2010 +0100
Add checks for API change in libnotify 0.7.0.
thunar/thunar-notify.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/thunar/thunar-notify.c b/thunar/thunar-notify.c
index f6643fe..c85c099 100644
--- a/thunar/thunar-notify.c
+++ b/thunar/thunar-notify.c
@@ -134,7 +134,11 @@ thunar_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);
@@ -244,7 +248,11 @@ thunar_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