Mercurial > pidgin.yaz
comparison pidgin/gtkimhtml.c @ 28804:9827f5d3571f
Fix randomly broken tooltip for custom smileys.
Thanks to Sadrul for figuring out the solution.
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Sun, 25 Oct 2009 23:17:47 +0000 |
parents | f27425877d29 |
children | 1cf8826f901c |
comparison
equal
deleted
inserted
replaced
28803:6e703969157d | 28804:9827f5d3571f |
---|---|
5051 if (icon) { | 5051 if (icon) { |
5052 char *text = g_strdup(unescaped); /* Do not g_free 'text'. | 5052 char *text = g_strdup(unescaped); /* Do not g_free 'text'. |
5053 It will be destroyed when 'anchor' is destroyed. */ | 5053 It will be destroyed when 'anchor' is destroyed. */ |
5054 anchor = gtk_text_buffer_create_child_anchor(imhtml->text_buffer, iter); | 5054 anchor = gtk_text_buffer_create_child_anchor(imhtml->text_buffer, iter); |
5055 g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_plaintext", text, g_free); | 5055 g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_plaintext", text, g_free); |
5056 g_object_set_data(G_OBJECT(anchor), "gtkimhtml_tiptext", text); | 5056 g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_tiptext", g_strdup(text), g_free); |
5057 g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_htmltext", g_strdup(smiley), g_free); | 5057 g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_htmltext", g_strdup(smiley), g_free); |
5058 | 5058 |
5059 /* This catches the expose events generated by animated | 5059 /* This catches the expose events generated by animated |
5060 * images, and ensures that they are handled by the image | 5060 * images, and ensures that they are handled by the image |
5061 * itself, without propagating to the textview and causing | 5061 * itself, without propagating to the textview and causing |