summaryrefslogtreecommitdiffstats
path: root/audio/lxmusic/lxmusic-0.4.5-libnotify-0.7.patch
diff options
context:
space:
mode:
author ponce2012-07-24 08:36:13 +0200
committer Robby Workman2012-08-21 15:55:36 +0200
commit844e905dbc2164894ae473f0ee4999be504cdcd2 (patch)
tree090a7b70546ca19883aacaad2979b86b3f71edfe /audio/lxmusic/lxmusic-0.4.5-libnotify-0.7.patch
parentf6e0879180578081926ec957da493143d20d8a96 (diff)
downloadslackbuilds-844e905dbc2164894ae473f0ee4999be504cdcd2.tar.gz
audio/lxmusic: Updated for version 0.4.5.
Also added a patch for libnotify-0.7.x. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'audio/lxmusic/lxmusic-0.4.5-libnotify-0.7.patch')
-rw-r--r--audio/lxmusic/lxmusic-0.4.5-libnotify-0.7.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/audio/lxmusic/lxmusic-0.4.5-libnotify-0.7.patch b/audio/lxmusic/lxmusic-0.4.5-libnotify-0.7.patch
new file mode 100644
index 0000000000..01f513de4c
--- /dev/null
+++ b/audio/lxmusic/lxmusic-0.4.5-libnotify-0.7.patch
@@ -0,0 +1,27 @@
+Upstream:
+https://sourceforge.net/tracker/?func=detail&aid=3529198&group_id=180858&atid=894869
+Index: lxmusic-0.4.5/src/lxmusic-notify.c
+===================================================================
+--- lxmusic-0.4.5.orig/src/lxmusic-notify.c
++++ lxmusic-0.4.5/src/lxmusic-notify.c
+@@ -84,9 +84,20 @@ LXMusicNotification lxmusic_do_notify_pr
+ else
+ g_string_append( message, title );
+ struct _LXMusicNotification *lxn = g_new ( struct _LXMusicNotification, 1);
++#ifdef NOTIFY_CHECK_VERSION
++#if NOTIFY_CHECK_VERSION (0, 7, 0)
++ lxn->notify = notify_notification_new (summary, message->str, NULL);
++#else
+ lxn->notify = notify_notification_new (summary, message->str, NULL, NULL);
++#endif
++#else
++ lxn->notify = notify_notification_new (summary, message->str, NULL, NULL);
++#endif
+ notify_notification_set_urgency (lxn->notify, NOTIFY_URGENCY_NORMAL);
++#if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7)
++ notify_notification_attach_to_status_icon(notify, priv->statusIcon);
+ notify_notification_attach_to_status_icon( lxn->notify, status_icon );
++#endif
+ notify_notification_set_timeout (lxn->notify, NOTIFY_EXPIRES_DEFAULT);
+ g_string_free( message, TRUE );
+ return lxn;