$OpenBSD: patch-src_check_events_c,v 1.1 2011/04/21 07:06:07 ajacoutot Exp $

Fix with libnotify>=0.7
(notify_notification_new has lost its widget argument)
(notify_notification_attach_to_status_icon is gone)

--- src/check_events.c.orig	Tue Apr 19 14:36:56 2011
+++ src/check_events.c	Tue Apr 19 14:37:50 2011
@@ -454,9 +454,9 @@ gboolean sound_flag = TRUE;
 					a->date = 0;
 
 					if (textdesc != NULL)
-						a->notify = notify_notification_new (item->summary, textdesc, GTK_STOCK_DIALOG_WARNING, NULL);
+						a->notify = notify_notification_new (item->summary, textdesc, GTK_STOCK_DIALOG_WARNING);
 					else
-						a->notify = notify_notification_new (item->summary, text, GTK_STOCK_DIALOG_WARNING, NULL);
+						a->notify = notify_notification_new (item->summary, text, GTK_STOCK_DIALOG_WARNING);
 
 					g_free (textdesc);
 					g_free (text);
@@ -484,7 +484,7 @@ gboolean sound_flag = TRUE;
 
 					if (gtk_status_icon_get_visible (appGUI->osmo_trayicon)) {
 #ifdef HAVE_LIBNOTIFY
-						notify_notification_attach_to_status_icon (a->notify, appGUI->osmo_trayicon);
+//						notify_notification_attach_to_status_icon (a->notify, appGUI->osmo_trayicon);
 #endif /* HAVE_LIBNOTIFY */
 				        gtk_status_icon_set_from_stock (appGUI->osmo_trayicon, OSMO_STOCK_SYSTRAY_TASK);
 
@@ -532,9 +532,9 @@ gboolean sound_flag = TRUE;
 					a->time = -1;
 					a->date = 0;
 					if (textdesc != NULL)
-						a->notify = notify_notification_new (_("Alarm warning!"), textdesc, GTK_STOCK_DIALOG_INFO, NULL);
+						a->notify = notify_notification_new (_("Alarm warning!"), textdesc, GTK_STOCK_DIALOG_INFO);
 					else
-						a->notify = notify_notification_new (_("Alarm warning!"), text, GTK_STOCK_DIALOG_INFO, NULL);
+						a->notify = notify_notification_new (_("Alarm warning!"), text, GTK_STOCK_DIALOG_INFO);
 
 					notify_notification_set_timeout (a->notify, NOTIFY_EXPIRES_NEVER);
 					notify_notification_set_urgency (a->notify, NOTIFY_URGENCY_NORMAL);
@@ -546,7 +546,7 @@ gboolean sound_flag = TRUE;
 
 					if (gtk_status_icon_get_visible (appGUI->osmo_trayicon)) {
 #ifdef HAVE_LIBNOTIFY
-						notify_notification_attach_to_status_icon (a->notify, appGUI->osmo_trayicon);
+//						notify_notification_attach_to_status_icon (a->notify, appGUI->osmo_trayicon);
 #endif /* HAVE_LIBNOTIFY */
 				        gtk_status_icon_set_from_stock (appGUI->osmo_trayicon, OSMO_STOCK_SYSTRAY_TASK);
 
