diff src/gtkimhtml.c @ 2728:16df889d81e2

[gaim-migrate @ 2741] eh. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 15 Nov 2001 23:43:44 +0000
parents 8074f7ae5d3a
children 9fc65bb80596
line wrap: on
line diff
--- a/src/gtkimhtml.c	Thu Nov 15 23:32:54 2001 +0000
+++ b/src/gtkimhtml.c	Thu Nov 15 23:43:44 2001 +0000
@@ -143,11 +143,6 @@
 	while (*x) {
 		gchar *pos;
 
-		if (t->image) {
-			t->image = NULL;
-			return;
-		}
-
 		if (!t->values)
 			return;
 
@@ -240,6 +235,16 @@
 	}
 }
 
+void
+gtk_imhtml_remove_smileys (GtkIMHtml *imhtml)
+{
+	g_return_if_fail (imhtml != NULL);
+	g_return_if_fail (GTK_IS_IMHTML (imhtml));
+
+	gtk_smiley_tree_destroy (imhtml->smiley_data);
+	imhtml->smiley_data = gtk_smiley_tree_new ();
+}
+
 struct _GtkIMHtmlBit {
 	gint type;