# HG changeset patch # User Sadrul Habib Chowdhury # Date 1190238002 0 # Node ID 9d812753d26aebaebdb9c3c49b9d504ecf95ada4 # Parent c7b2c6ae3beaa9132f605b83f9c78ce3b9c59960# Parent fecae28132f5eb519fa788238c3430302033f440 merge of 'a4f32100c6845e724cd5f43849ccc46daa0fd4c5' and 'd2df131a139849c82bd7c2356c76b75646355c40' diff -r c7b2c6ae3bea -r 9d812753d26a ChangeLog --- a/ChangeLog Wed Sep 19 21:37:12 2007 +0000 +++ b/ChangeLog Wed Sep 19 21:40:02 2007 +0000 @@ -9,6 +9,7 @@ it in an ambiguous state. (It will be disabled.) * Fixed an erroneous size display for MSN file transfers. (galt) * Real usernames are now shown in the system log. + * Gmail notifications are better tracked Pidgin: * If you alias a buddy to an alias that is already present within diff -r c7b2c6ae3bea -r 9d812753d26a libpurple/protocols/jabber/google.c --- a/libpurple/protocols/jabber/google.c Wed Sep 19 21:37:12 2007 +0000 +++ b/libpurple/protocols/jabber/google.c Wed Sep 19 21:40:02 2007 +0000 @@ -39,6 +39,8 @@ char *subject; const char *in_str; char *to_name; + char *default_tos[1]; + int i, count = 1, returned_count; const char **tos, **froms, **urls; @@ -55,15 +57,25 @@ if (in_str && *in_str) count = atoi(in_str); - if (count == 0) + /* If Gmail doesn't tell us who the mail is to, let's use our JID */ + to = xmlnode_get_attrib(packet, "to"); + default_tos[0] = jabber_get_bare_jid(to); + + if (count == 0) { + purple_notify_emails(js->gc, count, FALSE, NULL, NULL, default_tos, NULL, NULL, NULL); + g_free(default_tos[0]); return; + } message = xmlnode_get_child(child, "mail-thread-info"); + if (!message) { + purple_notify_emails(js->gc, count, FALSE, NULL, NULL, default_tos, NULL, NULL, NULL); + g_free(default_tos[0]); + return; + } /* Loop once to see how many messages were returned so we can allocate arrays * accordingly */ - if (!message) - return; for (returned_count = 0; message; returned_count++, message=xmlnode_get_next_twin(message)); froms = g_new0(const char* , returned_count); @@ -115,9 +127,13 @@ if (i>0) purple_notify_emails(js->gc, count, count == i, (const char**) subjects, froms, tos, urls, NULL, NULL); + else + purple_notify_emails(js->gc, count, FALSE, NULL, NULL, default_tos, NULL, NULL, NULL); + g_free(to_name); g_free(tos); + g_free(default_tos[0]); g_free(froms); for (; i > 0; i--) g_free(subjects[i - 1]); diff -r c7b2c6ae3bea -r 9d812753d26a libpurple/protocols/myspace/myspace.c --- a/libpurple/protocols/myspace/myspace.c Wed Sep 19 21:37:12 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.c Wed Sep 19 21:40:02 2007 +0000 @@ -291,9 +291,10 @@ /* Notify an error message also, because this is important! */ purple_notify_error(acct, g_strdup(_("MySpaceIM Error")), str, NULL); + gc->wants_to_die = TRUE; purple_connection_error(gc, str); - g_free(str); + return; } #endif diff -r c7b2c6ae3bea -r 9d812753d26a pidgin/pixmaps/emotes/default/24/default.theme.in --- a/pidgin/pixmaps/emotes/default/24/default.theme.in Wed Sep 19 21:37:12 2007 +0000 +++ b/pidgin/pixmaps/emotes/default/24/default.theme.in Wed Sep 19 21:40:02 2007 +0000 @@ -249,7 +249,7 @@ sick.png :-! kissed.png *KISSED* stop.png *STOP* -kiss.png :-* +kiss.png :-{} :-* kissing.png *KISSING* embarrassed.png :-[ devil.png ]:->