| 5690 g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_htmltext", g_strdup(smiley->smile), g_free); |
5691 g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_htmltext", g_strdup(smiley->smile), g_free); |
| 5691 |
5692 |
| 5692 if (smiley->imhtml) { |
5693 if (smiley->imhtml) { |
| 5693 if (wids) { |
5694 if (wids) { |
| 5694 GList *children = gtk_container_get_children(GTK_CONTAINER(wids->data)); |
5695 GList *children = gtk_container_get_children(GTK_CONTAINER(wids->data)); |
| 5695 g_list_foreach(children, (GFunc)gtk_widget_destroy, NULL); |
5696 g_list_free_full(children, (GDestroyNotify)gtk_widget_destroy); |
| 5696 g_list_free(children); |
|
| 5697 gtk_container_add(GTK_CONTAINER(wids->data), icon); |
5697 gtk_container_add(GTK_CONTAINER(wids->data), icon); |
| 5698 } else |
5698 } else |
| 5699 gtk_text_view_add_child_at_anchor(GTK_TEXT_VIEW(smiley->imhtml), icon, anchor); |
5699 gtk_text_view_add_child_at_anchor(GTK_TEXT_VIEW(smiley->imhtml), icon, anchor); |
| 5700 } |
5700 } |
| 5701 g_list_free(wids); |
5701 g_list_free(wids); |