summaryrefslogtreecommitdiff
blob: 62868c909856915b52dfa5b8530e61f2faf4349d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- src/lxmusic-notify.c
+++ src/lxmusic-notify.c
@@ -56,12 +56,26 @@
 	g_return_if_fail (message != NULL);
 
 	lxmusic_clear_notify (n);
-
-	notify = notify_notification_new (summary, message,
-	                                  "lxmusic", NULL);
+#ifdef NOTIFY_CHECK_VERSION
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+	notify = notify_notification_new (summary, message, "lxmusic");
+#else
+	notify = notify_notification_new (summary, message, "lxmusic", NULL);
+#endif
+#else
+	notify = notify_notification_new (summary, message, "lxmusic", NULL);
+#endif
 	n->notification = notify;
 
+#ifdef NOTIFY_CHECK_VERSION
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+/* lazy */
+#else
+/* lazy */
+#endif
+#else
 	notify_notification_attach_to_status_icon (notify, n->status_icon);
+#endif
 	notify_notification_set_urgency (notify, NOTIFY_URGENCY_NORMAL);
 	notify_notification_set_timeout (notify, NOTIFY_EXPIRES_DEFAULT);