Mercurial > pidgin.yaz
changeset 29316:dac2aa640c4f
merge of '47bd1e8215f2e068f00151ed40c211745f596aba'
and '768a62d29a0b004bea9c9265d4fc810558c0242a'
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 01 Feb 2010 21:15:19 +0000 |
parents | 4931a24576bd (diff) 6e207cd68b25 (current diff) |
children | 61e2537722e0 |
files | |
diffstat | 5 files changed, 63 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/COPYRIGHT Mon Feb 01 21:15:16 2010 +0000 +++ b/COPYRIGHT Mon Feb 01 21:15:19 2010 +0000 @@ -147,6 +147,7 @@ Marc Etcheverry David Everly Larry Ewing +Fartash Faghri Gábor Farkas Jesse Farmer Gavan Fantom (gavan) @@ -378,6 +379,7 @@ R. Ramkumar Mart Raudsepp Etan Reisner +Luoh Ren-Shan Kristian Rietveld Pekka Riikonen Tim Ringenbach @@ -389,6 +391,7 @@ Luciano Miguel Ferreira Rocha Andrew Rodland Miguel Rodríguez (migrax) +Adi Roiban Martin Rosinski Bob Rossi Jason Roth
--- a/ChangeLog Mon Feb 01 21:15:16 2010 +0000 +++ b/ChangeLog Mon Feb 01 21:15:19 2010 +0000 @@ -32,11 +32,15 @@ * Wrap XHTML messages in <p>, as described in XEP-0071, for compatibility with some clients. + Yahoo: + * Don't send <span> and </span> tags. (Fartash Faghri) + Pidgin: * Correctly size conversation and status box entries when the interior-focus style property is diabled. (Gabriel Schulhof) * Correctly handle a multiline text field being required in a request form. (Thanks to Florian Zeitz for finding this problem) + * Search friends by email-addresses in the buddy list. (Luoh Ren-Shan) version 2.6.5 (01/08/2010): libpurple:
--- a/libpurple/protocols/yahoo/util.c Mon Feb 01 21:15:16 2010 +0000 +++ b/libpurple/protocols/yahoo/util.c Mon Feb 01 21:15:19 2010 +0000 @@ -884,6 +884,8 @@ } g_free(etag); } + } else if (g_str_equal(tag_name, "span") || g_str_equal(tag_name, "/span")) { + /* Do nothing */ } else { /* We don't know what the tag is. Send it unmodified. */ g_string_append(dest, tag);
--- a/pidgin/gtkblist.c Mon Feb 01 21:15:16 2010 +0000 +++ b/pidgin/gtkblist.c Mon Feb 01 21:15:19 2010 +0000 @@ -470,6 +470,9 @@ case PURPLE_BLIST_GROUP_NODE: text = purple_group_get_name(PURPLE_GROUP(node)); break; + case PURPLE_BLIST_CHAT_NODE: + text = purple_chat_get_name(PURPLE_CHAT(node)); + break; default: g_return_if_reached(); } @@ -5613,6 +5616,51 @@ } +static gboolean +pidgin_blist_search_equal_func(GtkTreeModel *model, gint column, + const gchar *key, GtkTreeIter *iter, gpointer data) +{ + PurpleBlistNode *node = NULL; + gboolean res = TRUE; + const char *compare = NULL; + + if (!pidgin_tree_view_search_equal_func(model, column, key, iter, data)) + return FALSE; + + /* If the search string does not match the displayed label, then look + * at the alternate labels for the nodes and search in them. Currently, + * alternate labels that make sense are usernames/email addresses for + * buddies (but only for the ones who don't have a local alias). + */ + + gtk_tree_model_get(model, iter, NODE_COLUMN, &node, -1); + if (!node) + return TRUE; + + compare = NULL; + if (PURPLE_BLIST_NODE_IS_CONTACT(node)) { + PurpleBuddy *b = purple_contact_get_priority_buddy(PURPLE_CONTACT(node)); + if (!purple_buddy_get_local_buddy_alias(b)) + compare = purple_buddy_get_name(b); + } else if (PURPLE_BLIST_NODE_IS_BUDDY(node)) { + if (!purple_buddy_get_local_buddy_alias(PURPLE_BUDDY(node))) + compare = purple_buddy_get_name(PURPLE_BUDDY(node)); + } + + if (compare) { + char *tmp, *enteredstring; + tmp = g_utf8_normalize(key, -1, G_NORMALIZE_DEFAULT); + enteredstring = g_utf8_casefold(tmp, -1); + g_free(tmp); + + if (purple_str_has_prefix(compare, enteredstring)) + res = FALSE; + g_free(enteredstring); + } + + return res; +} + static void pidgin_blist_show(PurpleBuddyList *list) { PidginBuddyListPrivate *priv; @@ -5849,7 +5897,8 @@ /* Enable CTRL+F searching */ gtk_tree_view_set_search_column(GTK_TREE_VIEW(gtkblist->treeview), NAME_COLUMN); - gtk_tree_view_set_search_equal_func(GTK_TREE_VIEW(gtkblist->treeview), pidgin_tree_view_search_equal_func, NULL, NULL); + gtk_tree_view_set_search_equal_func(GTK_TREE_VIEW(gtkblist->treeview), + pidgin_blist_search_equal_func, NULL, NULL); gtk_box_pack_start(GTK_BOX(gtkblist->vbox), sw, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(sw), gtkblist->treeview);
--- a/pidgin/gtkutils.c Mon Feb 01 21:15:16 2010 +0000 +++ b/pidgin/gtkutils.c Mon Feb 01 21:15:19 2010 +0000 @@ -1586,8 +1586,8 @@ _("You have dragged an image"), _("You can send this image as a file transfer, " "embed it into this message, or use it as the buddy icon for this user."), - DND_FILE_TRANSFER, "OK", (GCallback)dnd_image_ok_callback, - "Cancel", (GCallback)dnd_image_cancel_callback, + DND_FILE_TRANSFER, _("OK"), (GCallback)dnd_image_ok_callback, + _("Cancel"), (GCallback)dnd_image_cancel_callback, account, who, NULL, data, _("Set as buddy icon"), DND_BUDDY_ICON, @@ -1606,8 +1606,8 @@ (ft ? _("You can send this image as a file transfer, or use it as the buddy icon for this user.") : _("You can insert this image into this message, or use it as the buddy icon for this user")), (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE), - "OK", (GCallback)dnd_image_ok_callback, - "Cancel", (GCallback)dnd_image_cancel_callback, + _("OK"), (GCallback)dnd_image_ok_callback, + _("Cancel"), (GCallback)dnd_image_cancel_callback, account, who, NULL, data, _("Set as buddy icon"), DND_BUDDY_ICON,