| 5073 GtkWidget *img = gtk_image_new_from_stock(GTK_STOCK_MISSING_IMAGE, GTK_ICON_SIZE_MENU); |
5073 GtkWidget *img = gtk_image_new_from_stock(GTK_STOCK_MISSING_IMAGE, GTK_ICON_SIZE_MENU); |
| 5074 char *text = g_strdup(unescaped); |
5074 char *text = g_strdup(unescaped); |
| 5075 gtk_container_add(GTK_CONTAINER(ebox), img); |
5075 gtk_container_add(GTK_CONTAINER(ebox), img); |
| 5076 gtk_widget_show(img); |
5076 gtk_widget_show(img); |
| 5077 g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_plaintext", text, g_free); |
5077 g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_plaintext", text, g_free); |
| 5078 g_object_set_data(G_OBJECT(anchor), "gtkimhtml_tiptext", text); |
5078 g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_tiptext", |
| |
5079 g_strdup(text), g_free); |
| 5079 g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_htmltext", g_strdup(smiley), g_free); |
5080 g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_htmltext", g_strdup(smiley), g_free); |
| 5080 gtk_text_view_add_child_at_anchor(GTK_TEXT_VIEW(imhtml), ebox, anchor); |
5081 gtk_text_view_add_child_at_anchor(GTK_TEXT_VIEW(imhtml), ebox, anchor); |
| 5081 } |
5082 } |
| 5082 } else { |
5083 } else { |
| 5083 gtk_text_buffer_insert(imhtml->text_buffer, iter, smiley, -1); |
5084 gtk_text_buffer_insert(imhtml->text_buffer, iter, smiley, -1); |