summaryrefslogtreecommitdiff
path: root/thunar-volman
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2010-12-05 16:25:29 +0100
committerNick Schermer <nick@xfce.org>2010-12-05 16:25:29 +0100
commit1b1f0f2a72494ec0d045096abe8b6b6758febe79 (patch)
tree051c1b98df89b5851ba4f3a824aff5b455b606fc /thunar-volman
parentde2a54ec45a7df360901f246f7695c74d874829b (diff)
downloadthunar-volman-1b1f0f2a72494ec0d045096abe8b6b6758febe79.tar.gz
Fix previous commit.
Diffstat (limited to 'thunar-volman')
-rw-r--r--thunar-volman/tvm-notify.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/thunar-volman/tvm-notify.c b/thunar-volman/tvm-notify.c
index 51737ae..4ef167d 100644
--- a/thunar-volman/tvm-notify.c
+++ b/thunar-volman/tvm-notify.c
@@ -65,11 +65,15 @@ tvm_notify (const gchar *icon,
}
}
-#if defined(NOTIFY_CHECK_VERSION) && NOTIFY_CHECK_VERSION (0, 7, 0)
+#ifdef NOTIFY_CHECK_VERSION
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
notification = notify_notification_new (summary, message, icon);
#else
notification = notify_notification_new (summary, message, icon, NULL);
#endif
+#else
+ notification = notify_notification_new (summary, message, icon, NULL);
+#endif
notify_notification_set_urgency (notification, NOTIFY_URGENCY_NORMAL);
notify_notification_set_timeout (notification, NOTIFY_EXPIRES_DEFAULT);
notify_notification_show (notification, NULL);