comparison src/gtkimhtml.c @ 8515:0b0d70464cad

[gaim-migrate @ 9253] " If "Show graphical smileys" is disabled in preferences and you use the smiley button to enter a smiley in a conversation, it shows as a graphical smiley in the entry box, but as a text smiley in the conversation itself. This patch fixes that so the preferences is used." --Stu Tomlinson committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 28 Mar 2004 17:57:32 +0000
parents 887c0259b47b
children 5b25f72c4723
comparison
equal deleted inserted replaced
8514:ed1f3a8f0ccd 8515:0b0d70464cad
2929 GdkPixbufAnimation *annipixbuf = NULL; 2929 GdkPixbufAnimation *annipixbuf = NULL;
2930 GtkWidget *icon = NULL; 2930 GtkWidget *icon = NULL;
2931 GtkTextChildAnchor *anchor; 2931 GtkTextChildAnchor *anchor;
2932 char *unescaped = gaim_unescape_html(smiley); 2932 char *unescaped = gaim_unescape_html(smiley);
2933 2933
2934 if (!imhtml->show_smileys) {
2935 gtk_text_buffer_insert_at_cursor(imhtml->text_buffer, smiley, strlen(smiley));
2936 return;
2937 }
2938
2934 gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &iter, ins); 2939 gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &iter, ins);
2935 anchor = gtk_text_buffer_create_child_anchor(imhtml->text_buffer, &iter); 2940 anchor = gtk_text_buffer_create_child_anchor(imhtml->text_buffer, &iter);
2936 g_object_set_data(G_OBJECT(anchor), "text_tag", unescaped); 2941 g_object_set_data(G_OBJECT(anchor), "text_tag", unescaped);
2937 2942
2938 annipixbuf = gtk_smiley_tree_image(imhtml, sml, unescaped); 2943 annipixbuf = gtk_smiley_tree_image(imhtml, sml, unescaped);