comparison src/gtkimhtml.c @ 4141:ccec4fde84f4

[gaim-migrate @ 4359] The last in Ari's never-ending memory leak fixes. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 25 Dec 2002 05:30:08 +0000
parents 990eb517e38a
children 511c2b63caa4
comparison
equal deleted inserted replaced
4140:990eb517e38a 4141:ccec4fde84f4
219 /* The call back for an event on a link tag. */ 219 /* The call back for an event on a link tag. */
220 void tag_event(GtkTextTag *tag, GObject *arg1, GdkEvent *event, GtkTextIter *arg2, char *url) { 220 void tag_event(GtkTextTag *tag, GObject *arg1, GdkEvent *event, GtkTextIter *arg2, char *url) {
221 if (event->type == GDK_BUTTON_RELEASE) { 221 if (event->type == GDK_BUTTON_RELEASE) {
222 /* A link was clicked--we emit the "url_clicked" signal with the URL as the argument */ 222 /* A link was clicked--we emit the "url_clicked" signal with the URL as the argument */
223 // if ((GdkEventButton)(event)->button == 1) 223 // if ((GdkEventButton)(event)->button == 1)
224 gtk_signal_emit (G_OBJECT(arg1), signals[URL_CLICKED], url); 224 gtk_signal_emit (GTK_OBJECT(arg1), signals[URL_CLICKED], url);
225 } else if (event->type == GDK_ENTER_NOTIFY) { 225 } else if (event->type == GDK_ENTER_NOTIFY) {
226 /* make a hand cursor and a tooltip timeout -- if GTK worked as it should */ 226 /* make a hand cursor and a tooltip timeout -- if GTK worked as it should */
227 } else if (event->type == GDK_LEAVE_NOTIFY) { 227 } else if (event->type == GDK_LEAVE_NOTIFY) {
228 /* clear timeout and make an arrow cursor again --if GTK worked as it should */ 228 /* clear timeout and make an arrow cursor again --if GTK worked as it should */
229 } 229 }
250 return; 250 return;
251 251
252 x++; len++; 252 x++; len++;
253 } 253 }
254 254
255 if (t->image) 255 if (t->image) {
256 g_free(t->image);
256 t->image = NULL; 257 t->image = NULL;
258 }
257 } 259 }
258 260
259 static gint 261 static gint
260 gtk_smiley_tree_lookup (GtkSmileyTree *tree, 262 gtk_smiley_tree_lookup (GtkSmileyTree *tree,
261 const gchar *text) 263 const gchar *text)