* [gentoo-commits] gentoo-x86 commit in net-voip/ekiga/files: ekiga-3.2.7-libnotify-0.7.patch
@ 2011-02-28 17:15 Samuli Suominen (ssuominen)
0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2011-02-28 17:15 UTC (permalink / raw
To: gentoo-commits
ssuominen 11/02/28 17:15:37
Added: ekiga-3.2.7-libnotify-0.7.patch
Log:
Fix building with x11-libs/libnotify >= 0.7 wrt #355929 by "Kobboi".
(Portage version: 2.2.0_alpha25/cvs/Linux x86_64)
Revision Changes Path
1.1 net-voip/ekiga/files/ekiga-3.2.7-libnotify-0.7.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-voip/ekiga/files/ekiga-3.2.7-libnotify-0.7.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-voip/ekiga/files/ekiga-3.2.7-libnotify-0.7.patch?rev=1.1&content-type=text/plain
Index: ekiga-3.2.7-libnotify-0.7.patch
===================================================================
--- lib/engine/components/libnotify/libnotify-main.cpp
+++ lib/engine/components/libnotify/libnotify-main.cpp
@@ -40,6 +40,10 @@
#include <libnotify/notify.h>
+#ifndef NOTIFY_CHECK_VERSION
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
+#endif
+
#include "services.h"
#include "notification-core.h"
@@ -158,7 +162,12 @@
notif = notify_notification_new (notification->get_title ().c_str (),
notification->get_body ().c_str (),
- urgency, NULL);
+ urgency
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+ );
+#else
+ , NULL);
+#endif
g_signal_connect (notif, "closed",
G_CALLBACK (on_notif_closed), notification.get ());
--- src/gui/main.cpp
+++ src/gui/main.cpp
@@ -84,6 +84,9 @@
#ifdef HAVE_NOTIFY
#include <libnotify/notify.h>
+#ifndef NOTIFY_CHECK_VERSION
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
+#endif
#endif
#if defined(P_FREEBSD) || defined (P_MACOSX)
@@ -2820,12 +2823,21 @@
body = g_strdup_printf ("%s\n%s\n%s", uri, app, account);
- notify = notify_notification_new (title, body, GM_ICON_LOGO, NULL);
+ notify = notify_notification_new (title, body, GM_ICON_LOGO
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+ );
+#else
+ , NULL);
+#endif
notify_notification_add_action (notify, "accept", _("Accept"), notify_action_cb, mw, NULL);
notify_notification_add_action (notify, "reject", _("Reject"), notify_action_cb, mw, NULL);
notify_notification_set_timeout (notify, NOTIFY_EXPIRES_NEVER);
notify_notification_set_urgency (notify, NOTIFY_URGENCY_CRITICAL);
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+ // notify_notification_attach_to_status_icon was removed
+#else
notify_notification_attach_to_status_icon (notify, statusicon);
+#endif
if (!notify_notification_show (notify, NULL)) {
ekiga_main_window_incoming_call_dialog_show (mw, call);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-28 17:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-28 17:15 [gentoo-commits] gentoo-x86 commit in net-voip/ekiga/files: ekiga-3.2.7-libnotify-0.7.patch Samuli Suominen (ssuominen)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox