[gmpc] - rebuilt for new libnotify - added patches for new libnotify
Adrian Reber
adrian at fedoraproject.org
Sun Nov 7 13:17:54 UTC 2010
commit 544af3060d8b5e604823bfda5f6bc851d26cad6b
Author: Adrian Reber <adrian at lisas.de>
Date: Sun Nov 7 14:17:47 2010 +0100
- rebuilt for new libnotify
- added patches for new libnotify
gmpc-libnotify.patch | 20 ++++++++++++++++++++
gmpc.spec | 4 +++-
2 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/gmpc-libnotify.patch b/gmpc-libnotify.patch
new file mode 100644
index 0000000..68cf9c5
--- /dev/null
+++ b/gmpc-libnotify.patch
@@ -0,0 +1,20 @@
+--- src/plugin.c.org 2010-11-07 14:10:44.370947164 +0100
++++ src/plugin.c 2010-11-07 14:14:58.740995606 +0100
+@@ -153,16 +153,13 @@
+ if(not == NULL)
+ {
+ // notify_notification_close(not, NULL);
+- not = notify_notification_new(summary, buffer,NULL, NULL);
++ not = notify_notification_new(summary, buffer,NULL);
+ }
+ else{
+ notify_notification_update(not, summary, buffer, NULL);
+ }
+ notify_notification_set_urgency(not, NOTIFY_URGENCY_LOW);
+
+- if(cfg_get_single_value_as_int_with_default(config, "libnotify-plugin", "attach-to-tray", TRUE))
+- notify_notification_attach_to_status_icon(not, tray_icon2_gsi);
+-
+ g_free(summary);
+ /* Add the song to the widget */
+ g_object_set_data_full(G_OBJECT(not), "mpd-song", mpd_songDup(song), (GDestroyNotify)mpd_freeSong);
diff --git a/gmpc.spec b/gmpc.spec
index db87ca5..6b212e5 100644
--- a/gmpc.spec
+++ b/gmpc.spec
@@ -32,6 +32,7 @@ Source21: http://download.sarine.nl/Programs/gmpc/0.20.0/gmpc-wikipedia-0.
Patch0: gmpc-dso.patch
Patch1: gmpc-libnotify.git-083ded0f35d4404cd378a975e3b6f2af520b4c54.patch
+Patch2: gmpc-libnotify.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -72,6 +73,7 @@ This package includes header files necessary for developing gmpc plugins.
sed -i -e 's,${prefix}/lib/,%{_libdir}/,g' gmpc-awn-0.20.0/src/Makefile.in
cd gmpc-libnotify-0.20.0
%patch1 -p1
+%patch2 -p0
cd ..
%build
@@ -197,7 +199,7 @@ touch --no-create %{_datadir}/icons/hicolor || :
%changelog
* Sun Nov 07 2010 Adrian Reber <adrian at lisas.de> - 0.20.0-2
- rebuilt for new libnotify
-- added patch for new libnotify
+- added patches for new libnotify
* Sat Jul 31 2010 Adrian Reber <adrian at lisas.de> - 0.20.0-1
- updated to 0.20.0
More information about the scm-commits
mailing list