Mercurial > pidgin.yaz
comparison pidgin/gtkimhtml.c @ 17148:2e2f6cf3f85e
Do not crash when trying to insert a smiley for a protocol not mentioned
in the theme, and there's no default smiley set.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 18 May 2007 12:27:31 +0000 |
parents | 9f964a4834d9 |
children | 05fa005bdc59 e15aaa2db6a4 |
comparison
equal
deleted
inserted
replaced
17147:e22968d33131 | 17148:2e2f6cf3f85e |
---|---|
4439 g_queue_push_tail(imhtml->animations, icon); | 4439 g_queue_push_tail(imhtml->animations, icon); |
4440 } | 4440 } |
4441 } | 4441 } |
4442 } | 4442 } |
4443 | 4443 |
4444 if (imhtml_smiley->flags & GTK_IMHTML_SMILEY_CUSTOM) { | 4444 if (imhtml_smiley && imhtml_smiley->flags & GTK_IMHTML_SMILEY_CUSTOM) { |
4445 ebox = gtk_event_box_new(); | 4445 ebox = gtk_event_box_new(); |
4446 gtk_event_box_set_visible_window(GTK_EVENT_BOX(ebox), FALSE); | 4446 gtk_event_box_set_visible_window(GTK_EVENT_BOX(ebox), FALSE); |
4447 gtk_widget_show(ebox); | 4447 gtk_widget_show(ebox); |
4448 } | 4448 } |
4449 | 4449 |