Mercurial > pidgin.yaz
changeset 4146:06427e5560a4
[gaim-migrate @ 4364]
assuming people have gtk themes where black text makes sense is bad as well.
someone fix this to make better assumptions.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Thu, 26 Dec 2002 16:16:59 +0000 |
parents | b658b502b096 |
children | 78eeef03b419 |
files | src/conversation.c |
diffstat | 1 files changed, 15 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/conversation.c Thu Dec 26 15:40:23 2002 +0000 +++ b/src/conversation.c Thu Dec 26 16:16:59 2002 +0000 @@ -2683,10 +2683,15 @@ if (!GTK_WIDGET_REALIZED(label)) return; - color.red = 0x0000; + style = gtk_style_new(); + gtk_style_set_font(style, gdk_font_ref(gtk_style_get_font(label->style))); + gtk_widget_set_style(label, style); + gtk_style_unref(style); +/* color.red = 0x0000; color.green = 0x0000; color.blue = 0x0000; gtk_widget_modify_fg(label, GTK_STATE_NORMAL, &color); +*/ if (c) c->unseen = 0; @@ -2739,9 +2744,15 @@ color.green = 0x0000; color.blue = 0x0000; } else { - color.red = 0x0000; - color.green = 0x0000; - color.blue = 0x0000; + style = gtk_style_new(); + gtk_style_set_font(style, gdk_font_ref(gtk_style_get_font(label->style))); + gtk_widget_set_style(label, style); + gtk_style_unref(style); + /* + color.red = 0x0000; + color.green = 0x0000; + color.blue = 0x0000; + */ } gtk_widget_modify_fg(label, GTK_STATE_NORMAL, &color); debug_printf("setting style\n");