pidgin: c7dd8bf0: Fix randomly broken tooltip for custom s...
malu at pidgin.im
malu at pidgin.im
Sun Oct 25 19:20:39 EDT 2009
-----------------------------------------------------------------
Revision: c7dd8bf042575bcdbcc1ba221de91d898da38b21
Ancestor: 8a16e13a3f946eeeab83667b81679e1230643dbc
Author: malu at pidgin.im
Date: 2009-10-25T23:17:47
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/c7dd8bf042575bcdbcc1ba221de91d898da38b21
Modified files:
pidgin/gtkimhtml.c
ChangeLog:
Fix randomly broken tooltip for custom smileys.
Thanks to Sadrul for figuring out the solution.
-------------- next part --------------
============================================================
--- pidgin/gtkimhtml.c c330c7a29eccf9fead311847c1ad32cfb762ae80
+++ pidgin/gtkimhtml.c b65e2c34b0bd6fa102951b2cd24e32eb22e0f09f
@@ -5053,7 +5053,7 @@ void gtk_imhtml_insert_smiley_at_iter(Gt
It will be destroyed when 'anchor' is destroyed. */
anchor = gtk_text_buffer_create_child_anchor(imhtml->text_buffer, iter);
g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_plaintext", text, g_free);
- g_object_set_data(G_OBJECT(anchor), "gtkimhtml_tiptext", text);
+ g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_tiptext", g_strdup(text), g_free);
g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_htmltext", g_strdup(smiley), g_free);
/* This catches the expose events generated by animated
More information about the Commits
mailing list