Guest User

Untitled

a guest
Oct 3rd, 2011
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.82 KB | None | 0 0
  1. --- notification/src/notification.cpp.orig  2010-10-24 22:30:28.000000000 +0600
  2. +++ notification/src/notification.cpp   2011-08-02 01:04:57.000000000 +0600
  3. @@ -26,6 +26,13 @@
  4.  
  5.  COMPIZ_PLUGIN_20090315 (notification, NotificationPluginVTable);
  6.  
  7. +/* libnotify 0.7 introduced proper NOTIFY_CHECK_VERSION macro */
  8. +#ifdef NOTIFY_CHECK_VERSION
  9. +#if NOTIFY_CHECK_VERSION(0,6,1)
  10. +#define HAVE_LIBNOTIFY_0_6_1
  11. +#endif
  12. +#endif
  13. +
  14.  void
  15.  NotificationScreen::logMessage (const char   *component,
  16.                 CompLogLevel level,
  17. @@ -55,7 +62,11 @@
  18.      logLevel = (char *) logLevelToString (level);
  19.  
  20.      n = notify_notification_new (logLevel, message,
  21. -                iconUri.c_str (), NULL);
  22. +                iconUri.c_str ()
  23. +#ifndef HAVE_LIBNOTIFY_0_6_1
  24. +                , NULL
  25. +#endif              
  26. +                );
  27.  
  28.      timeout = optionGetTimeout ();
  29.      if (timeout > 0)
  30.  
Advertisement
Add Comment
Please, Sign In to add comment