gtk+3: fix dependencies for new gnome/accessibility/at-spi2-core
[oi-userland.git] / components / desktop / ospm / patches / 02-libnotify-0.7.patch
blob084b360e157cc0c48f4c4f99dfd03bfdaf62eb1a
1 --- ospm-1.4.11/applet/ospm-status-dialog.c-orig ::
2 +++ ospm-1.4.11/applet/ospm-status-dialog.c ::
3 @@ -139,7 +139,15 @@
4 if (!notify_init (PACKAGE))
5 exit (1);
7 - notify = notify_notification_new_with_status_icon ("ospm-applet", NULL, NULL, icon);
8 +#ifdef NOTIFY_CHECK_VERSION
9 +#if NOTIFY_CHECK_VERSION (0, 7, 0)
10 + notify = notify_notification_new ("ospm-applet", NULL, NULL);
11 +#else
12 + notify = notify_notification_new ("ospm-applet", NULL, NULL, NULL);
13 +#endif
14 +#else
15 + notify = notify_notification_new ("ospm-applet", NULL, NULL, NULL);
16 +#endif
18 notify_notification_add_action (notify, "default", "default action", notify_action_cb, icon, NULL);