Merge lp:~ubuntu-branches/ubuntu/lucid/liferea/lucid-201003041913 into lp:ubuntu/lucid/liferea

Proposed by James Westby
Status: Merged
Merged at revision: not available
Proposed branch: lp:~ubuntu-branches/ubuntu/lucid/liferea/lucid-201003041913
Merge into: lp:ubuntu/lucid/liferea
Diff against target: 50 lines (+44/-0) (has conflicts)
1 file modified
debian/patches/notification-append (+44/-0)
Conflict adding file debian/patches/notification-append.  Moved existing file to debian/patches/notification-append.moved.
To merge this branch: bzr merge lp:~ubuntu-branches/ubuntu/lucid/liferea/lucid-201003041913

Description of the change

The package history in the archive and the history in the bzr branch differ. As the archive is authoritative the history of lp:ubuntu/lucid/liferea now reflects that and the old bzr branch has been pushed to lp:~ubuntu-branches/ubuntu/lucid/liferea/lucid-201003041913. A merge should be performed if necessary.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'debian/patches/notification-append'
--- debian/patches/notification-append 1970-01-01 00:00:00 +0000
+++ debian/patches/notification-append 2010-03-04 19:17:18 +0000
@@ -0,0 +1,44 @@
1diff -ur liferea-1.6.0-rc6/src/notification/libnotify.c liferea-ted/src/notification/libnotify.c
2--- liferea-1.6.0-rc6/src/notification/libnotify.c 2009-06-20 13:33:19.000000000 -0500
3+++ liferea-ted/src/notification/libnotify.c 2009-09-10 23:00:39.000000000 -0500
4@@ -44,6 +44,7 @@
5 #include "notification/notification.h"
6
7 static gboolean supports_actions = FALSE;
8+static gboolean supports_append = FALSE;
9
10 static void notif_libnotify_callback_open ( NotifyNotification *n, gchar *action, gpointer user_data ) {
11 g_assert(action != NULL);
12@@ -188,7 +189,11 @@
13 for (c = caps; c != NULL; c = c->next) {
14 if (g_str_equal ((char*)c->data, "actions")) {
15 supports_actions = TRUE;
16- break;
17+ continue;
18+ }
19+ if (g_str_equal ((char*)c->data, "append")) {
20+ supports_append = TRUE;
21+ continue;
22 }
23 }
24 g_list_foreach (caps, (GFunc)g_free, NULL);
25@@ -242,12 +247,16 @@
26 if (item_count == 0)
27 return;
28
29- labelSummary_p = g_strdup_printf (ngettext ("%s has %d new / updated headline\n", "%s has %d new / updated headlines\n", item_count),
30+ labelSummary_p = g_strdup_printf (ngettext ("<b>%s</b> has <b>%d</b> update", "<b>%s</b> has <b>%d</b> updates", item_count),
31 node_get_title (node), item_count);
32- n = notify_notification_new ( _("Feed Update"), labelSummary_p, NULL, NULL);
33+ n = notify_notification_new ( _("Feed Update"), labelSummary_p, "liferea", NULL);
34 g_free(labelSummary_p);
35
36- notify_notification_set_icon_from_pixbuf (n, node_get_icon (node));
37+ if (supports_append) {
38+ notify_notification_set_hint_string(n, "append", "allow");
39+ } else {
40+ notify_notification_set_icon_from_pixbuf (n, node_get_icon (node));
41+ }
42 notify_notification_set_timeout (n, NOTIFY_EXPIRES_DEFAULT);
43 if (supports_actions) {
44 notify_notification_add_action (n, "show_details", _("Show details"),
045
=== renamed file 'debian/patches/notification-append' => 'debian/patches/notification-append.moved'

Subscribers

People subscribed via source and target branches

to all changes: