Mercurial > pidgin.yaz
comparison src/gtkimhtml.c @ 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 | 2a5fe8e67195 |
children | d1f7821c09f4 |
comparison
equal
deleted
inserted
replaced
10833:a60704081c3e | 10834:76d85ccf7d90 |
---|---|
451 } | 451 } |
452 } else { | 452 } else { |
453 GTK_IMHTML(imhtml)->prelit_tag = NULL; | 453 GTK_IMHTML(imhtml)->prelit_tag = NULL; |
454 } | 454 } |
455 | 455 |
456 if (GTK_IMHTML(imhtml)->prelit_tag != oldprelit_tag) { | 456 if ((oldprelit_tag != NULL) && (GTK_IMHTML(imhtml)->prelit_tag != oldprelit_tag)) { |
457 gtk_widget_style_get(GTK_WIDGET(imhtml), "hyperlink-color", &norm, NULL); | 457 gtk_widget_style_get(GTK_WIDGET(imhtml), "hyperlink-color", &norm, NULL); |
458 if (norm) | 458 if (norm) |
459 g_object_set(G_OBJECT(oldprelit_tag), "foreground-gdk", norm, NULL); | 459 g_object_set(G_OBJECT(oldprelit_tag), "foreground-gdk", norm, NULL); |
460 else | 460 else |
461 g_object_set(G_OBJECT(oldprelit_tag), "foreground", "blue", NULL); | 461 g_object_set(G_OBJECT(oldprelit_tag), "foreground", "blue", NULL); |