Mercurial > pidgin
comparison src/conversation.c @ 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 |
comparison
equal
deleted
inserted
replaced
4145:b658b502b096 | 4146:06427e5560a4 |
---|---|
2681 if (!label) | 2681 if (!label) |
2682 return; | 2682 return; |
2683 | 2683 |
2684 if (!GTK_WIDGET_REALIZED(label)) | 2684 if (!GTK_WIDGET_REALIZED(label)) |
2685 return; | 2685 return; |
2686 color.red = 0x0000; | 2686 style = gtk_style_new(); |
2687 gtk_style_set_font(style, gdk_font_ref(gtk_style_get_font(label->style))); | |
2688 gtk_widget_set_style(label, style); | |
2689 gtk_style_unref(style); | |
2690 /* color.red = 0x0000; | |
2687 color.green = 0x0000; | 2691 color.green = 0x0000; |
2688 color.blue = 0x0000; | 2692 color.blue = 0x0000; |
2689 gtk_widget_modify_fg(label, GTK_STATE_NORMAL, &color); | 2693 gtk_widget_modify_fg(label, GTK_STATE_NORMAL, &color); |
2694 */ | |
2690 if (c) | 2695 if (c) |
2691 c->unseen = 0; | 2696 c->unseen = 0; |
2692 | 2697 |
2693 if (!c->is_chat) { | 2698 if (!c->is_chat) { |
2694 GtkWidget *menubar; | 2699 GtkWidget *menubar; |
2737 } else if(c->unseen == 1) { | 2742 } else if(c->unseen == 1) { |
2738 color.red = 0xcccc; | 2743 color.red = 0xcccc; |
2739 color.green = 0x0000; | 2744 color.green = 0x0000; |
2740 color.blue = 0x0000; | 2745 color.blue = 0x0000; |
2741 } else { | 2746 } else { |
2742 color.red = 0x0000; | 2747 style = gtk_style_new(); |
2743 color.green = 0x0000; | 2748 gtk_style_set_font(style, gdk_font_ref(gtk_style_get_font(label->style))); |
2744 color.blue = 0x0000; | 2749 gtk_widget_set_style(label, style); |
2750 gtk_style_unref(style); | |
2751 /* | |
2752 color.red = 0x0000; | |
2753 color.green = 0x0000; | |
2754 color.blue = 0x0000; | |
2755 */ | |
2745 } | 2756 } |
2746 gtk_widget_modify_fg(label, GTK_STATE_NORMAL, &color); | 2757 gtk_widget_modify_fg(label, GTK_STATE_NORMAL, &color); |
2747 debug_printf("setting style\n"); | 2758 debug_printf("setting style\n"); |
2748 } else { | 2759 } else { |
2749 GtkWindow *win = (GtkWindow *)c->window; | 2760 GtkWindow *win = (GtkWindow *)c->window; |