Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1
collectd
collectd-libnotify_070.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File collectd-libnotify_070.patch of Package collectd
diff --git a/src/notify_desktop.c b/src/notify_desktop.c index 839bc61..31c2411 100644 --- a/src/notify_desktop.c +++ b/src/notify_desktop.c @@ -95,7 +95,13 @@ static int c_notify (const notification_t *n, : (NOTIF_WARNING == n->severity) ? "WARNING" : (NOTIF_OKAY == n->severity) ? "OKAY" : "UNKNOWN"); +#if (defined NOTIFY_CHECK_VERSION) +#if NOTIFY_CHECK_VERSION(0, 7, 0) + notification = notify_notification_new (summary, n->message, NULL); +#endif +#else notification = notify_notification_new (summary, n->message, NULL, NULL); +#endif if (NULL == notification) { log_err ("Failed to create a new notification."); return -1;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor