packages: liferea/liferea-libnotify-0.7.patch (NEW) - fixes build with libn...

Michał Lisowski lisu87 at gmail.com
Thu Apr 7 15:33:12 CEST 2011


W dniu 07.04.2011 14:57, megabajt pisze:
> Author: megabajt                     Date: Thu Apr  7 12:57:26 2011 GMT
> Module: packages                      Tag: HEAD
> ---- Log message:
> - fixes build with libnotify 0.7
>
> ---- Files affected:
> packages/liferea:
>     liferea-libnotify-0.7.patch (NONE ->  1.1)  (NEW)
>
> ---- Diffs:
>
> ================================================================
> Index: packages/liferea/liferea-libnotify-0.7.patch
> diff -u /dev/null packages/liferea/liferea-libnotify-0.7.patch:1.1
> --- /dev/null	Thu Apr  7 14:57:26 2011
> +++ packages/liferea/liferea-libnotify-0.7.patch	Thu Apr  7 14:57:21 2011
> @@ -0,0 +1,21 @@
> +diff -up liferea-1.6.5/src/notification/libnotify.c.bak liferea-1.6.5/src/notification/libnotify.c
> +--- liferea-1.6.5/src/notification/libnotify.c.bak	2009-06-20 20:33:19.000000000 +0200
> ++++ liferea-1.6.5/src/notification/libnotify.c	2010-11-16 15:53:17.000000000 +0100
> +@@ -150,7 +150,7 @@ static void notif_libnotify_callback_sho
> + //		notify_notification_update ( n, node_get_title(node_p), labelText_now_p, NULL);
> + //		notify_notification_clear_actions(n);
> +
> +-		n = notify_notification_new (node_get_title(node_p), labelText_now_p, NULL, NULL);
> ++		n = notify_notification_new (node_get_title(node_p), labelText_now_p, NULL);
> +
> + 		notify_notification_set_icon_from_pixbuf (n,node_get_icon(node_p));
> +
> +@@ -244,7 +244,7 @@ notif_libnotify_node_has_new_items (node
> +
> + 	labelSummary_p = g_strdup_printf (ngettext ("%s has %d new / updated headline\n", "%s has %d new / updated headlines\n", item_count),
> + 	                                  node_get_title (node), item_count);
> +-	n = notify_notification_new ( _("Feed Update"), labelSummary_p, NULL, NULL);
> ++	n = notify_notification_new ( _("Feed Update"), labelSummary_p, NULL);
> + 	g_free(labelSummary_p);
> +
> + 	notify_notification_set_icon_from_pixbuf (n, node_get_icon (node));


Nie lepiej dodać:

#if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && 
NOTIFY_VERSION_MINOR < 7)

#endif

??


More information about the pld-devel-pl mailing list