[Xfce4-commits] [apps/xfce4-volumed-pulse] 24/62: Allow compatibility with Libnotify 0.7 (thanks to Samuli Suominen for the patch)
noreply at xfce.org
noreply at xfce.org
Thu Sep 8 10:32:46 CEST 2016
This is an automated email from the git hooks/post-receive script.
ochosi pushed a commit to branch master
in repository apps/xfce4-volumed-pulse.
commit 4dd3a0c7f28c56997410f9da3fa9dba3ae0dc750
Author: Steve Dodier <sidnioulz at gmail.com>
Date: Thu Mar 3 11:36:03 2011 +0100
Allow compatibility with Libnotify 0.7 (thanks to Samuli Suominen for the patch)
---
ChangeLog | 3 +++
src/xvd_notify.c | 14 +++++++++-----
2 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 551defa..e1690ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
2011-03-03 Steve Dodier <sidnioulz at gmail.com>
+ * Allow compatibility with Libnotify 0.7 (thanks to Samuli Suominen for the patch)
+
+2011-03-03 Steve Dodier <sidnioulz at gmail.com>
* Partially applying a patch from Yves-Alexis Perez to allow custom CFLAGS when building in release mode
2011-03-02 Steve Dodier <sidnioulz at gmail.com>
diff --git a/src/xvd_notify.c b/src/xvd_notify.c
index 47a88be..bf9e377 100644
--- a/src/xvd_notify.c
+++ b/src/xvd_notify.c
@@ -117,11 +117,15 @@ xvd_notify_init(XvdInstance *Inst,
g_list_free (caps_list);
}
- Inst->notification = notify_notification_new (
- "Xfce4-Volumed",
- NULL,
- NULL,
- NULL);
+#ifdef NOTIFY_CHECK_VERSION
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+ Inst->notification = notify_notification_new ("Xfce4-Volumed", NULL, NULL);
+#else
+ Inst->notification = notify_notification_new ("Xfce4-Volumed", NULL, NULL, NULL);
+#endif
+#else
+ Inst->notification = notify_notification_new ("Xfce4-Volumed", NULL, NULL, NULL);
+#endif
}
void
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list