Commit bcfa0c77 authored by Andrew Munkres's avatar Andrew Munkres Committed by Paolo Bacchilega
Browse files

libnotify 0.7 API support

The function "notify_notification_new_with_status_icon" has been
removed from libnotify, so goobox won't build against libnotify 0.7
parent 3e604ace
......@@ -37,6 +37,9 @@
#ifdef ENABLE_NOTIFICATION
#include <libnotify/notify.h>
#ifndef NOTIFY_CHECK_VERSION
#define NOTIFY_CHECK_VERSION(x,y,z) 0
#endif
static NotifyNotification *notification = NULL;
#endif /* ENABLE_NOTIFICATION */
......@@ -591,7 +594,11 @@ system_notify (GooWindow *window,
g_list_free (caps);
}
#if NOTIFY_CHECK_VERSION (0, 7, 0)
notification = notify_notification_new (title, msg, "goobox");
#else
notification = notify_notification_new_with_status_icon (title, msg, "goobox", status_icon);
#endif
notify_notification_set_urgency (notification, NOTIFY_URGENCY_LOW);
if (supports_actions) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment