Merge lp:~om26er/ubuntu/maverick/empathy/empathy-fix-666288 into lp:ubuntu/maverick-proposed/empathy

Proposed by Omer Akram
Status: Merged
Merge reported by: Sebastien Bacher
Merged at revision: not available
Proposed branch: lp:~om26er/ubuntu/maverick/empathy/empathy-fix-666288
Merge into: lp:ubuntu/maverick-proposed/empathy
Diff against target: 154 lines (+126/-0)
4 files modified
debian/changelog (+8/-0)
debian/patches/22_dont_display_notifications_for_pending_messages.patch (+23/-0)
debian/patches/22_tell_if_the_message_is_a_pending_one_or_not.patch (+93/-0)
debian/patches/series (+2/-0)
To merge this branch: bzr merge lp:~om26er/ubuntu/maverick/empathy/empathy-fix-666288
Reviewer Review Type Date Requested Status
Ken VanDine Approve
Andy Whitcroft Approve
Review via email: mp+45740@code.launchpad.net

Description of the change

fix bug 666288 backported two upstream commits

To post a comment you must log in.
Revision history for this message
Andy Whitcroft (apw) wrote :

Patches appear consistent with what was included in Natty. They look appropriate for an SRU request.

Revision history for this message
Andy Whitcroft (apw) wrote :

As per the above this seems appropriate. Approve.

review: Approve
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Merged and uploaded to maverick-proposed

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2010-11-16 22:01:18 +0000
+++ debian/changelog 2011-01-10 19:44:33 +0000
@@ -1,3 +1,11 @@
1empathy (2.32.1-0ubuntu1.1) maverick-proposed; urgency=low
2
3 * debian/patches/22_tell_if_the_message_is_a_pending_one_or_not.patch:
4 * debian/patches/22_dont_display_notifications_for_pending_messages.patch:
5 - Don't display duplicate notifications. (LP: #666288)
6
7 -- Omer Akram <om26er@ubuntu.com> Tue, 11 Jan 2011 00:30:48 +0500
8
1empathy (2.32.1-0ubuntu1) maverick-proposed; urgency=low9empathy (2.32.1-0ubuntu1) maverick-proposed; urgency=low
210
3 * New Upstream Release11 * New Upstream Release
412
=== added file 'debian/patches/22_dont_display_notifications_for_pending_messages.patch'
--- debian/patches/22_dont_display_notifications_for_pending_messages.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/22_dont_display_notifications_for_pending_messages.patch 2011-01-10 19:44:33 +0000
@@ -0,0 +1,23 @@
1From: Omer Akram <om26er@ubuntu.com>
2Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
3Subject: Chat-window: don't display notifications for pending messages.
4Origin: http://git.gnome.org/browse/empathy/commit/?id=16b77581e53f068035343c0daf302ffb73303134
5Bug: https://bugs.gnome.org/635513
6Bug-Ubuntu: https://launchpad.net/bugs/666288
7
8--- a//src/empathy-chat-window.c 2011-01-10 20:49:55.000000000 +0500
9+++ b//src/empathy-chat-window.c 2011-01-10 20:53:18.628355689 +0500
10@@ -1503,7 +1503,12 @@
11
12 empathy_sound_play (GTK_WIDGET (priv->dialog),
13 EMPATHY_SOUND_MESSAGE_INCOMING);
14- chat_window_show_or_update_notification (window, message, chat);
15+
16+ /* Pending messages have already been displayed in the approver, so we don't
17+ * display a notification for those. */
18+ if (!pending)
19+ chat_window_show_or_update_notification (window, message, chat);
20+
21 #ifdef HAVE_LIBINDICATE
22 chat_window_add_indicator (window, message, chat);
23 #endif
024
=== added file 'debian/patches/22_tell_if_the_message_is_a_pending_one_or_not.patch'
--- debian/patches/22_tell_if_the_message_is_a_pending_one_or_not.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/22_tell_if_the_message_is_a_pending_one_or_not.patch 2011-01-10 19:44:33 +0000
@@ -0,0 +1,93 @@
1From: Omer Akram <om26er@ubuntu.com>
2Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
3Subject: EmpathyChat::new-message: tell if the message is a pending one or not.
4Origin: http://git.gnome.org/browse/empathy/commit/?id=fb049bcc5f5622b56112c947b5b571c6f0956671
5Bug: https://bugs.gnome.org/635513
6Bug-Ubuntu: https://launchpad.net/bugs/666288
7
8
9---
10diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
11index dc3bb8f..0424798 100644
12--- a/libempathy-gtk/empathy-chat.c
13+++ b/libempathy-gtk/empathy-chat.c
14@@ -42,6 +42,7 @@
15 #include <libempathy/empathy-gsettings.h>
16 #include <libempathy/empathy-utils.h>
17 #include <libempathy/empathy-dispatcher.h>
18+#include <libempathy/empathy-marshal.h>
19
20 #include "empathy-chat.h"
21 #include "empathy-spell.h"
22@@ -58,6 +59,7 @@
23 #define DEBUG_FLAG EMPATHY_DEBUG_CHAT
24 #include <libempathy/empathy-debug.h>
25
26+
27 #define CHAT_DIR_CREATE_MODE (S_IRUSR | S_IWUSR | S_IXUSR)
28 #define CHAT_FILE_CREATE_MODE (S_IRUSR | S_IWUSR)
29 #define IS_ENTER(v) (v == GDK_KEY_Return || v == GDK_KEY_ISO_Enter || v == GDK_KEY_KP_Enter)
30@@ -1111,7 +1113,9 @@ chat_state_changed_cb (EmpathyTpChat *tp_chat,
31 }
32
33 static void
34-chat_message_received (EmpathyChat *chat, EmpathyMessage *message)
35+chat_message_received (EmpathyChat *chat,
36+ EmpathyMessage *message,
37+ gboolean pending)
38 {
39 EmpathyChatPriv *priv = GET_PRIV (chat);
40 EmpathyContact *sender;
41@@ -1130,7 +1134,7 @@ chat_message_received (EmpathyChat *chat, EmpathyMessage *message)
42 chat);
43
44 priv->unread_messages++;
45- g_signal_emit (chat, signals[NEW_MESSAGE], 0, message);
46+ g_signal_emit (chat, signals[NEW_MESSAGE], 0, message, pending);
47 }
48
49 static void
50@@ -1138,7 +1142,7 @@ chat_message_received_cb (EmpathyTpChat *tp_chat,
51 EmpathyMessage *message,
52 EmpathyChat *chat)
53 {
54- chat_message_received (chat, message);
55+ chat_message_received (chat, message, FALSE);
56 }
57
58 static void
59@@ -2032,7 +2036,7 @@ show_pending_messages (EmpathyChat *chat) {
60
61 for (l = messages; l != NULL ; l = g_list_next (l)) {
62 EmpathyMessage *message = EMPATHY_MESSAGE (l->data);
63- chat_message_received (chat, message);
64+ chat_message_received (chat, message, TRUE);
65 }
66 }
67
68@@ -2832,9 +2836,9 @@ empathy_chat_class_init (EmpathyChatClass *klass)
69 G_SIGNAL_RUN_LAST,
70 0,
71 NULL, NULL,
72- g_cclosure_marshal_VOID__OBJECT,
73+ _empathy_marshal_VOID__OBJECT_BOOLEAN,
74 G_TYPE_NONE,
75- 1, EMPATHY_TYPE_MESSAGE);
76+ 2, EMPATHY_TYPE_MESSAGE, G_TYPE_BOOLEAN);
77
78 g_type_class_add_private (object_class, sizeof (EmpathyChatPriv));
79 }
80diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
81index 457be5b..1eeba27 100644
82--- a/src/empathy-chat-window.c
83+++ b/src/empathy-chat-window.c
84@@ -1383,6 +1383,7 @@ empathy_chat_window_has_focus (EmpathyChatWindow *window)
85 static void
86 chat_window_new_message_cb (EmpathyChat *chat,
87 EmpathyMessage *message,
88+ gboolean pending,
89 EmpathyChatWindow *window)
90 {
91 EmpathyChatWindowPriv *priv;
92--
93cgit v0.8.3.1
094
=== modified file 'debian/patches/series'
--- debian/patches/series 2010-10-04 12:03:51 +0000
+++ debian/patches/series 2011-01-10 19:44:33 +0000
@@ -4,6 +4,8 @@
411_empathy_accounts_category.patch411_empathy_accounts_category.patch
520_libindicate.patch520_libindicate.patch
621_login_indicators.patch621_login_indicators.patch
722_tell_if_the_message_is_a_pending_one_or_not.patch
822_dont_display_notifications_for_pending_messages.patch
731_really_raise_window.patch931_really_raise_window.patch
834_start_raised_execpt_in_session.patch1034_start_raised_execpt_in_session.patch
936_chat_window_default_size.patch1136_chat_window_default_size.patch

Subscribers

People subscribed via source and target branches

to all changes: