Gentoo Archives: gentoo-commits

From: "Jean-Noel Rivasseau (elvanor)" <elvanor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-voip/sflphone/files: sflphone-0.9.12-libnotify-0.7.patch
Date: Tue, 22 Feb 2011 14:12:26
Message-Id: 20110222141211.4CF5820057@flycatcher.gentoo.org
1 elvanor 11/02/22 14:12:11
2
3 Added: sflphone-0.9.12-libnotify-0.7.patch
4 Log:
5 Bug #343043.
6
7 (Portage version: 2.1.9.25/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 net-voip/sflphone/files/sflphone-0.9.12-libnotify-0.7.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-voip/sflphone/files/sflphone-0.9.12-libnotify-0.7.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-voip/sflphone/files/sflphone-0.9.12-libnotify-0.7.patch?rev=1.1&content-type=text/plain
14
15 Index: sflphone-0.9.12-libnotify-0.7.patch
16 ===================================================================
17 --- sflphone-client-gnome/src/sflnotify.c
18 +++ sflphone-client-gnome/src/sflnotify.c
19 @@ -31,6 +31,10 @@
20 #include "sflnotify.h"
21 #include <eel-gconf-extensions.h>
22
23 +#ifndef NOTIFY_CHECK_VERSION
24 +#define NOTIFY_CHECK_VERSION(x,y,z) 0
25 +#endif
26 +
27 GnomeNotification *_gnome_notification;
28
29 void create_new_gnome_notification (gchar *title, gchar *body, NotifyUrgency urgency, gint timeout, GnomeNotification **notif)
30 @@ -44,12 +48,20 @@
31 notify_init ("SFLphone");
32
33 // Set struct fields
34 +#if NOTIFY_CHECK_VERSION (0, 7, 0)
35 + _notif->notification = notify_notification_new (title, body, NULL);
36 +#else
37 _notif->notification = notify_notification_new (title, body, NULL, NULL);
38 +#endif
39 //_notif->icon = gdk_pixbuf_new_from_file_at_size (LOGO, 120, 120, NULL);
40 _notif->icon = gdk_pixbuf_new_from_file (LOGO_SMALL, NULL);
41 #if GTK_CHECK_VERSION(2,10,0)
42 +#if NOTIFY_CHECK_VERSION (0, 7, 0)
43 + // notify_notification_attach_to_status_icon function was removed
44 +#else
45 notify_notification_attach_to_status_icon (_notif->notification , get_status_icon());
46 #endif
47 +#endif
48
49 notify_notification_set_urgency (_notif->notification, urgency);