Switch to use libnotify07. Bump PKGREVISION.diff -r1.25 -r1.26 pkgsrc/time/xfce4-orage/Makefile
(obache)
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | # $NetBSD: Makefile,v 1.25 2013/06/06 12:55:08 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.26 2013/08/16 08:14:31 obache Exp $ | |
2 | 2 | |||
3 | .include "../../meta-pkgs/xfce4/Makefile.common" | 3 | .include "../../meta-pkgs/xfce4/Makefile.common" | |
4 | 4 | |||
5 | DISTNAME= orage-${XFCE4_VERSION} | 5 | DISTNAME= orage-${XFCE4_VERSION} | |
6 | PKGNAME= xfce4-orage-${XFCE4_VERSION} | 6 | PKGNAME= xfce4-orage-${XFCE4_VERSION} | |
7 | PKGREVISION= 18 | 7 | PKGREVISION= 19 | |
8 | CATEGORIES= time | 8 | CATEGORIES= time | |
9 | COMMENT= Xfce time managing application | 9 | COMMENT= Xfce time managing application | |
10 | 10 | |||
11 | CONFIGURE_ARGS+= --disable-libxfce4mcs | 11 | CONFIGURE_ARGS+= --disable-libxfce4mcs | |
12 | 12 | |||
13 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | 13 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | |
14 | .include "../../sysutils/dbus-glib/buildlink3.mk" | 14 | .include "../../sysutils/dbus-glib/buildlink3.mk" | |
15 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | 15 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | |
16 | .include "../../sysutils/libnotify/buildlink3.mk" | 16 | .include "../../sysutils/libnotify07/buildlink3.mk" | |
17 | .include "../../x11/libxfce4gui/buildlink3.mk" | 17 | .include "../../x11/libxfce4gui/buildlink3.mk" | |
18 | .include "../../x11/xfce4-panel/buildlink3.mk" | 18 | .include "../../x11/xfce4-panel/buildlink3.mk" | |
19 | .include "../../mk/pthread.buildlink3.mk" | 19 | .include "../../mk/pthread.buildlink3.mk" | |
20 | .include "../../mk/bsd.pkg.mk" | 20 | .include "../../mk/bsd.pkg.mk" |
@@ -1,6 +1,7 @@ | @@ -1,6 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.5 2010/10/01 19:44:02 drochner Exp $ | 1 | $NetBSD: distinfo,v 1.6 2013/08/16 08:14:31 obache Exp $ | |
2 | 2 | |||
3 | SHA1 (orage-4.6.1.tar.bz2) = 2db15404197ef9aa6f588c0eebac9fc4f68426df | 3 | SHA1 (orage-4.6.1.tar.bz2) = 2db15404197ef9aa6f588c0eebac9fc4f68426df | |
4 | RMD160 (orage-4.6.1.tar.bz2) = 7724992e2e177487c71597a15d7faf7f865bb56b | 4 | RMD160 (orage-4.6.1.tar.bz2) = 7724992e2e177487c71597a15d7faf7f865bb56b | |
5 | Size (orage-4.6.1.tar.bz2) = 1937593 bytes | 5 | Size (orage-4.6.1.tar.bz2) = 1937593 bytes | |
6 | SHA1 (patch-aa) = 443913928b351028d34bdd07cb6cf60006f60e25 | 6 | SHA1 (patch-aa) = 443913928b351028d34bdd07cb6cf60006f60e25 | |
7 | SHA1 (patch-src_reminder.c) = 33267e51deb1ee1ec8e01155f9422f093c073175 |
$NetBSD: patch-src_reminder.c,v 1.1 2013/08/16 08:14:31 obache Exp $
* for libnotify-0.7 API change
http://git.xfce.org/apps/orage/commit/src/reminder.c?id=bfa601ba135f84163eded2bb2e060e21d9ca08ce
--- src/reminder.c.orig 2009-04-14 22:58:27.000000000 +0000
+++ src/reminder.c
@@ -61,6 +61,12 @@
#define ORAGE_DEBUG 1
*/
+/* Compatibility macro for < libnotify-0.7 */
+/* NOTIFY_CHECK_VERSION was created in 0.5.2 */
+#ifndef NOTIFY_CHECK_VERSION
+#deifne NOTIFY_CHECK_VERSION(x,y,z) 0
+#endif
+
static void create_notify_reminder(alarm_struct *alarm);
static void create_reminders(alarm_struct *alarm);
static void reset_orage_alarm_clock();
@@ -425,8 +431,13 @@ static void create_notify_reminder(alarm
strncpy(heading, _("Reminder "), 199);
if (alarm->title)
g_strlcat(heading, alarm->title, 50);
+ /* since version 0.7.0, libnotify does not have the widget parameter in
+ notify_notification_new and it does not have function
+ notify_notification_attach_to_status_icon at all */
+#if NOTIFY_CHECK_VERSION(0, 7, 0)
+ n = notify_notification_new(heading, alarm->description, NULL);
+#else
n = notify_notification_new(heading, alarm->description, NULL, NULL);
- alarm->active_alarm->active_notify = n;
#if GTK_CHECK_VERSION(2,10,0)
if (g_par.trayIcon
&& gtk_status_icon_is_embedded((GtkStatusIcon *)g_par.trayIcon))
@@ -438,6 +449,8 @@ static void create_notify_reminder(alarm
notify_notification_attach_to_widget(n
, ((XfceTrayIcon *)g_par.trayIcon)->image);
#endif
+#endif
+ alarm->active_alarm->active_notify = n;
if (alarm->notify_timeout == -1)
notify_notification_set_timeout(n, NOTIFY_EXPIRES_NEVER);