pidgin-libnotify-0.14-libnotify-0.7.patch 555 B

12345678910111213141516171819
  1. --- src/pidgin-libnotify.c
  2. +++ src/pidgin-libnotify.c
  3. @@ -286,7 +286,15 @@
  4. g_free (tr_body);
  5. return;
  6. }
  7. +#ifdef NOTIFY_CHECK_VERSION
  8. +#if NOTIFY_CHECK_VERSION (0, 7, 0)
  9. + notification = notify_notification_new (title, tr_body, NULL);
  10. +#else
  11. notification = notify_notification_new (title, tr_body, NULL, NULL);
  12. +#endif
  13. +#else
  14. + notification = notify_notification_new (title, tr_body, NULL, NULL);
  15. +#endif
  16. purple_debug_info (PLUGIN_ID, "notify(), new: "
  17. "title: '%s', body: '%s', buddy: '%s'\n",
  18. title, tr_body, best_name (buddy));