Mercurial > pidgin
changeset 10834:76d85ccf7d90
[gaim-migrate @ 12505]
Avoid an annoying glib warning
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sun, 17 Apr 2005 15:33:37 +0000 |
parents | a60704081c3e |
children | c5f8b6e66455 |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Sat Apr 16 18:44:40 2005 +0000 +++ b/src/gtkimhtml.c Sun Apr 17 15:33:37 2005 +0000 @@ -453,7 +453,7 @@ GTK_IMHTML(imhtml)->prelit_tag = NULL; } - if (GTK_IMHTML(imhtml)->prelit_tag != oldprelit_tag) { + if ((oldprelit_tag != NULL) && (GTK_IMHTML(imhtml)->prelit_tag != oldprelit_tag)) { gtk_widget_style_get(GTK_WIDGET(imhtml), "hyperlink-color", &norm, NULL); if (norm) g_object_set(G_OBJECT(oldprelit_tag), "foreground-gdk", norm, NULL);