summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@gentoo.org>2011-03-07 09:27:50 +0000
committerNirbheek Chauhan <nirbheek@gentoo.org>2011-03-07 09:27:50 +0000
commitdc1b568561b9a926ff5686e8ea732e53c3d61ec3 (patch)
tree8ecdc09a3d56465e91e510830eecde749967f820 /gnome-extra/gnome-screensaver/files
parentAdd missing app-text/docbook-xml-dtd:4.1.2 DEPEND (bug #357669 by zvasylv). (diff)
downloadgentoo-2-dc1b568561b9a926ff5686e8ea732e53c3d61ec3.tar.gz
gentoo-2-dc1b568561b9a926ff5686e8ea732e53c3d61ec3.tar.bz2
gentoo-2-dc1b568561b9a926ff5686e8ea732e53c3d61ec3.zip
Fix building with libnotify-0.7
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'gnome-extra/gnome-screensaver/files')
-rw-r--r--gnome-extra/gnome-screensaver/files/gnome-screensaver-2.30.2-libnotify-0.7.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnome-extra/gnome-screensaver/files/gnome-screensaver-2.30.2-libnotify-0.7.patch b/gnome-extra/gnome-screensaver/files/gnome-screensaver-2.30.2-libnotify-0.7.patch
new file mode 100644
index 000000000000..6ea23ff9350e
--- /dev/null
+++ b/gnome-extra/gnome-screensaver/files/gnome-screensaver-2.30.2-libnotify-0.7.patch
@@ -0,0 +1,25 @@
+--- src/gs-lock-plug.c
++++ src/gs-lock-plug.c
+@@ -47,6 +47,10 @@
+ #include <libnotify/notify.h>
+ #endif
+
++#ifndef NOTIFY_CHECK_VERSION
++#define NOTIFY_CHECK_VERSION(x,y,z) 0
++#endif
++
+ #include "gs-lock-plug.h"
+
+ #include "gs-debug.h"
+@@ -1090,7 +1094,11 @@
+ strftime (summary, 128, "%X", tmp);
+
+ notify_init ("gnome-screensaver-dialog");
++#if NOTIFY_CHECK_VERSION (0, 7, 0)
++ note = notify_notification_new (summary, escaped_text, NULL);
++#else
+ note = notify_notification_new (summary, escaped_text, NULL, NULL);
++#endif
+ notify_notification_set_timeout (note, NOTIFY_EXPIRES_NEVER);
+ notify_notification_show (note, NULL);
+ g_object_unref (note);