[gaim-migrate @ 12505]

Sun, 17 Apr 2005 15:33:37 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Sun, 17 Apr 2005 15:33:37 +0000
changeset 10834
5fd1dfd395e8
parent 10833
62d8c516b51b
child 10835
9bd71d67d4a6

[gaim-migrate @ 12505]
Avoid an annoying glib warning

src/gtkimhtml.c file | annotate | diff | comparison | revisions
--- 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);

mercurial