packages: python-pynotify/python-pynotify-libnotify.patch (NEW) - fix build...
lisu
lisu at pld-linux.org
Wed Apr 6 18:25:53 CEST 2011
Author: lisu Date: Wed Apr 6 16:25:53 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- fix build with libnotify 0.7
---- Files affected:
packages/python-pynotify:
python-pynotify-libnotify.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python-pynotify/python-pynotify-libnotify.patch
diff -u /dev/null packages/python-pynotify/python-pynotify-libnotify.patch:1.1
--- /dev/null Wed Apr 6 18:25:53 2011
+++ packages/python-pynotify/python-pynotify-libnotify.patch Wed Apr 6 18:25:48 2011
@@ -0,0 +1,15 @@
+--- notify-python-0.1.1/src/pynotify.c~ 2006-10-08 19:59:03.000000000 +0200
++++ notify-python-0.1.1/src/pynotify.c 2011-04-06 18:22:43.547253294 +0200
+@@ -177,7 +177,11 @@
+ PyErr_SetString(PyExc_TypeError, "attach should be a GtkWidget or None");
+ return -1;
+ }
+- self->obj = (GObject *)notify_notification_new(summary, message, icon, attach);
++ self->obj = (GObject *)notify_notification_new(summary, message, icon
++#if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7)
++ , attach
++#endif
++ );
+
+ if (!self->obj) {
+ PyErr_SetString(PyExc_RuntimeError, "could not create NotifyNotification object");
================================================================
More information about the pld-cvs-commit
mailing list