From ab31b7efa166ac4ee84c8a730603619be628dd21 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Thu, 25 Nov 2010 17:46:25 +0100 Subject: fixed build against libnotify 0.7 --- src/applet/applet_gtk.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/applet/applet_gtk.c') diff --git a/src/applet/applet_gtk.c b/src/applet/applet_gtk.c index e7b18bda..d31328aa 100644 --- a/src/applet/applet_gtk.c +++ b/src/applet/applet_gtk.c @@ -170,7 +170,14 @@ static void on_notify_close(NotifyNotification *notification, gpointer user_data static NotifyNotification *new_warn_notification() { NotifyNotification *notification; + +/* the fourth argument was removed in libnotify 0.7.0 */ +#if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7) notification = notify_notification_new(_("Warning"), NULL, NULL, NULL); +#else + notification = notify_notification_new(_("Warning"), NULL, NULL); +#endif + g_signal_connect(notification, "closed", G_CALLBACK(on_notify_close), NULL); GdkPixbuf *pixbuf = gtk_icon_theme_load_icon(gtk_icon_theme_get_default(), -- cgit