You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-sound/lxmusic/files/lxmusic-0.4.4-libnotify-0.7...

33 lines
909 B

--- 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);