summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2011-01-18 13:16:39 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2011-01-18 13:16:39 +0100
commitc3bd6550eb9df8651899f41efec141445ca9c788 (patch)
tree534644980aca420a33bd0454c383cc24982c3559
parent23ba18ca65646da2c4d7d219c76cb9659f5a88bd (diff)
downloadabrt-c3bd6550eb9df8651899f41efec141445ca9c788.tar.gz
abrt-c3bd6550eb9df8651899f41efec141445ca9c788.tar.xz
abrt-c3bd6550eb9df8651899f41efec141445ca9c788.zip
fixed build with libnotify => 0.7
-rw-r--r--src/Applet/CCApplet.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Applet/CCApplet.cpp b/src/Applet/CCApplet.cpp
index 5349c7a5..1861f723 100644
--- a/src/Applet/CCApplet.cpp
+++ b/src/Applet/CCApplet.cpp
@@ -36,7 +36,13 @@ static void on_notify_close(NotifyNotification *notification, gpointer user_data
static NotifyNotification *new_warn_notification()
{
NotifyNotification *notification;
- notification = notify_notification_new(_("Warning"), NULL, NULL, NULL);
+ /* 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(),