[Xfce4-commits] <thunar-volman:master> Add checks for API change in libnotify 0.7.0.
Nick Schermer
noreply at xfce.org
Sat Dec 4 22:52:02 CET 2010
Updating branch refs/heads/master
to 7d00b0e0776200a61b7923cd3b7ed480048acf1c (commit)
from b156b72c9cb25b4777cdd36cf1e31770acd28a65 (commit)
commit 7d00b0e0776200a61b7923cd3b7ed480048acf1c
Author: Nick Schermer <nick at xfce.org>
Date: Sat Dec 4 22:51:15 2010 +0100
Add checks for API change in libnotify 0.7.0.
thunar-volman/tvm-notify.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/thunar-volman/tvm-notify.c b/thunar-volman/tvm-notify.c
index 8947b87..71bb956 100644
--- a/thunar-volman/tvm-notify.c
+++ b/thunar-volman/tvm-notify.c
@@ -65,7 +65,11 @@ tvm_notify (const gchar *icon,
}
}
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+ notification = notify_notification_new (summary, message, icon);
+#else
notification = notify_notification_new (summary, message, icon, NULL);
+#endif
notify_notification_set_urgency (notification, NOTIFY_URGENCY_NORMAL);
notify_notification_set_timeout (notification, NOTIFY_EXPIRES_DEFAULT);
notify_notification_show (notification, NULL);
More information about the Xfce4-commits
mailing list