Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
pidgin-libnotify
0006-fix-build-with-libnotify-0-7.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0006-fix-build-with-libnotify-0-7.diff of Package pidgin-libnotify
diff --git a/configure.ac b/configure.ac index 8bf8d78..f4eb862 100644 --- a/configure.ac +++ b/configure.ac @@ -68,7 +68,8 @@ AC_SUBST(CFLAGS) # Check for libnotify # -PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= 0.3.2) +PKG_CHECK_MODULES([LIBNOTIFY], libnotify >= 0.3.2) +PKG_CHECK_MODULES([LIBNOTIFY07], libnotify >= 0.7, [AC_DEFINE([LIBNOTIFY_07], 1, [libnotify 0.7 or newer is detected])], [ libnotify=old ]) AC_SUBST(LIBNOTIFY_CFLAGS) AC_SUBST(LIBNOTIFY_LIBS) diff --git a/src/pidgin-libnotify.c b/src/pidgin-libnotify.c index 832e919..d5fd8a3 100644 --- a/src/pidgin-libnotify.c +++ b/src/pidgin-libnotify.c @@ -304,7 +304,11 @@ notify (const gchar *title, g_free (tr_body); return; } +#ifdef LIBNOTIFY_07 + notification = notify_notification_new (title, tr_body, NULL); +#else notification = notify_notification_new (title, tr_body, NULL, NULL); +#endif purple_debug_info (PLUGIN_ID, "notify(), new: " "title: '%s', body: '%s', buddy: '%s'\n", title, tr_body, best_name (buddy));
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