summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Noël Rivasseau <elvanor@gentoo.org>2011-02-22 14:12:11 +0000
committerJean-Noël Rivasseau <elvanor@gentoo.org>2011-02-22 14:12:11 +0000
commitc92ff863b809e464f255f9c12ead180f3bc3c559 (patch)
treef88087ecb7eeb9bc2495cf10d85acdd46a73f27d /net-voip/sflphone/files
parentfixed compilation with cmake-2.8.4, bug #356009 (diff)
downloadhistorical-c92ff863b809e464f255f9c12ead180f3bc3c559.tar.gz
historical-c92ff863b809e464f255f9c12ead180f3bc3c559.tar.bz2
historical-c92ff863b809e464f255f9c12ead180f3bc3c559.zip
Bug #343043.
Package-Manager: portage-2.1.9.25/cvs/Linux i686
Diffstat (limited to 'net-voip/sflphone/files')
-rw-r--r--net-voip/sflphone/files/sflphone-0.9.12-libnotify-0.7.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/net-voip/sflphone/files/sflphone-0.9.12-libnotify-0.7.patch b/net-voip/sflphone/files/sflphone-0.9.12-libnotify-0.7.patch
new file mode 100644
index 000000000000..20fa9c97da15
--- /dev/null
+++ b/net-voip/sflphone/files/sflphone-0.9.12-libnotify-0.7.patch
@@ -0,0 +1,34 @@
+--- sflphone-client-gnome/src/sflnotify.c
++++ sflphone-client-gnome/src/sflnotify.c
+@@ -31,6 +31,10 @@
+ #include "sflnotify.h"
+ #include <eel-gconf-extensions.h>
+
++#ifndef NOTIFY_CHECK_VERSION
++#define NOTIFY_CHECK_VERSION(x,y,z) 0
++#endif
++
+ GnomeNotification *_gnome_notification;
+
+ void create_new_gnome_notification (gchar *title, gchar *body, NotifyUrgency urgency, gint timeout, GnomeNotification **notif)
+@@ -44,12 +48,20 @@
+ notify_init ("SFLphone");
+
+ // Set struct fields
++#if NOTIFY_CHECK_VERSION (0, 7, 0)
++ _notif->notification = notify_notification_new (title, body, NULL);
++#else
+ _notif->notification = notify_notification_new (title, body, NULL, NULL);
++#endif
+ //_notif->icon = gdk_pixbuf_new_from_file_at_size (LOGO, 120, 120, NULL);
+ _notif->icon = gdk_pixbuf_new_from_file (LOGO_SMALL, NULL);
+ #if GTK_CHECK_VERSION(2,10,0)
++#if NOTIFY_CHECK_VERSION (0, 7, 0)
++ // notify_notification_attach_to_status_icon function was removed
++#else
+ notify_notification_attach_to_status_icon (_notif->notification , get_status_icon());
+ #endif
++#endif
+
+ notify_notification_set_urgency (_notif->notification, urgency);
+