summaryrefslogtreecommitdiffstats
path: root/src/applet/applet_gtk.c
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2010-11-25 17:46:25 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2010-11-25 17:46:25 +0100
commitab31b7efa166ac4ee84c8a730603619be628dd21 (patch)
tree1d410df551ceeed15231be8670fcfbf797c6f1e1 /src/applet/applet_gtk.c
parentfbfc0388531050aea764e68640e07ca776448aa1 (diff)
downloadabrt-ab31b7efa166ac4ee84c8a730603619be628dd21.tar.gz
abrt-ab31b7efa166ac4ee84c8a730603619be628dd21.tar.xz
abrt-ab31b7efa166ac4ee84c8a730603619be628dd21.zip
fixed build against libnotify 0.7
Diffstat (limited to 'src/applet/applet_gtk.c')
-rw-r--r--src/applet/applet_gtk.c7
1 files changed, 7 insertions, 0 deletions
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(),