diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2011-02-05 13:09:57 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2011-02-05 13:09:57 +0000 |
commit | cf68527f00c44b6d02cafa0d7e25a4d9e164e080 (patch) | |
tree | 39d6e931f19c9d78b4e82b7ffc74e723f6bd6c9b /media-plugins/gmpc-libnotify/files | |
parent | amd64 stable, bug #353652 (diff) | |
download | historical-cf68527f00c44b6d02cafa0d7e25a4d9e164e080.tar.gz historical-cf68527f00c44b6d02cafa0d7e25a4d9e164e080.tar.bz2 historical-cf68527f00c44b6d02cafa0d7e25a4d9e164e080.zip |
Fix building with x11-libs/libnotify >= 0.7.
Package-Manager: portage-2.2.0_alpha19/cvs/Linux x86_64
Diffstat (limited to 'media-plugins/gmpc-libnotify/files')
-rw-r--r-- | media-plugins/gmpc-libnotify/files/gmpc-libnotify-0.20.0-libnotify-0.7.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/media-plugins/gmpc-libnotify/files/gmpc-libnotify-0.20.0-libnotify-0.7.patch b/media-plugins/gmpc-libnotify/files/gmpc-libnotify-0.20.0-libnotify-0.7.patch new file mode 100644 index 000000000000..601b6f27c646 --- /dev/null +++ b/media-plugins/gmpc-libnotify/files/gmpc-libnotify-0.20.0-libnotify-0.7.patch @@ -0,0 +1,37 @@ +--- src/plugin.c ++++ src/plugin.c +@@ -28,6 +28,10 @@ + #include <gmpc/misc.h> + #include <config.h> + ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif ++ + #define LOG_DOMAIN "LibNotifyPlugin" + + extern GtkStatusIcon *tray_icon2_gsi; +@@ -149,15 +153,23 @@ + if(not == NULL) + { + // notify_notification_close(not, NULL); ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ not = notify_notification_new(summary, buffer,NULL); ++#else + not = notify_notification_new(summary, buffer,NULL, NULL); ++#endif + } + else{ + notify_notification_update(not, summary, buffer, NULL); + } + notify_notification_set_urgency(not, NOTIFY_URGENCY_LOW); + ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ /* notify_notification_attach_to_status_icon was removed */ ++#else + if(cfg_get_single_value_as_int_with_default(config, "libnotify-plugin", "attach-to-tray", TRUE)) + notify_notification_attach_to_status_icon(not, tray_icon2_gsi); ++#endif + + g_free(summary); + /* Add the song to the widget */ |