diff options
Diffstat (limited to 'app-cdr/gnomebaker/files/gnomebaker-0.6.4-libnotify-0.7.patch')
-rw-r--r-- | app-cdr/gnomebaker/files/gnomebaker-0.6.4-libnotify-0.7.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app-cdr/gnomebaker/files/gnomebaker-0.6.4-libnotify-0.7.patch b/app-cdr/gnomebaker/files/gnomebaker-0.6.4-libnotify-0.7.patch new file mode 100644 index 000000000000..772d4f5d23d9 --- /dev/null +++ b/app-cdr/gnomebaker/files/gnomebaker-0.6.4-libnotify-0.7.patch @@ -0,0 +1,18 @@ +--- a/src/gblibnotify.c ++++ b/src/gblibnotify.c +@@ -87,7 +87,15 @@ + #ifdef HAVE_LIBNOTIFY + #if (LIBNOTIFY_VERSION_MINOR >= 3) + gint x, y; ++#ifdef NOTIFY_CHECK_VERSION ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ global_notify = notify_notification_new (subject, content, ""); ++#else + global_notify = notify_notification_new (subject, content, "", NULL); ++#endif ++#else ++ global_notify = notify_notification_new (subject, content, "", NULL); ++#endif + /* not sure if we have to free the pixbuf since it could be used internally in libnotify */ + GdkPixbuf *icon_pixbuf = gbcommon_get_icon_for_name("gnomebaker-48", 48); + /* I think they changed the api between 0.3.0 and 0.3.1+ */ |