changeset 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 4c6ad3d9db3f
children e70908d3e0c8
files src/gtkimhtml.c src/gtkimhtml.h
diffstat 2 files changed, 12 insertions(+), 5 deletions(-) [+]
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;
 
--- a/src/gtkimhtml.h	Thu Nov 15 23:32:54 2001 +0000
+++ b/src/gtkimhtml.h	Thu Nov 15 23:43:44 2001 +0000
@@ -117,6 +117,8 @@
 					gchar            *text,
 					gchar           **xpm);
 
+void       gtk_imhtml_remove_smileys   (GtkIMHtml        *imhtml);
+
 void       gtk_imhtml_show_smileys     (GtkIMHtml        *imhtml,
 					gboolean          show);