comparison 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
comparison
equal deleted inserted replaced
2727:4c6ad3d9db3f 2728:16df889d81e2
141 gint len = 0; 141 gint len = 0;
142 142
143 while (*x) { 143 while (*x) {
144 gchar *pos; 144 gchar *pos;
145 145
146 if (t->image) {
147 t->image = NULL;
148 return;
149 }
150
151 if (!t->values) 146 if (!t->values)
152 return; 147 return;
153 148
154 pos = strchr (t->values->str, *x); 149 pos = strchr (t->values->str, *x);
155 if (pos) 150 if (pos)
236 g_string_free (t->values, TRUE); 231 g_string_free (t->values, TRUE);
237 g_free (t->children); 232 g_free (t->children);
238 } 233 }
239 g_free (t); 234 g_free (t);
240 } 235 }
236 }
237
238 void
239 gtk_imhtml_remove_smileys (GtkIMHtml *imhtml)
240 {
241 g_return_if_fail (imhtml != NULL);
242 g_return_if_fail (GTK_IS_IMHTML (imhtml));
243
244 gtk_smiley_tree_destroy (imhtml->smiley_data);
245 imhtml->smiley_data = gtk_smiley_tree_new ();
241 } 246 }
242 247
243 struct _GtkIMHtmlBit { 248 struct _GtkIMHtmlBit {
244 gint type; 249 gint type;
245 250