After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 80470 - message-window forground/background color settings
message-window forground/background color settings
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
0.11.3
Other All
: Normal normal
: 0.12.0
Assigned To: Charles Kerr
Charles Kerr
Depends on:
Blocks:
 
 
Reported: 2002-05-01 14:10 UTC by kingleo
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description kingleo 2002-05-01 14:11:02 UTC
The body of the message window _should_ use the same colours as the article
window does.
Anything else does not make sense.

--- message-window.c    Mon Mar 25 02:08:38 2002
+++ message-window-fixed.c      Wed May  1 15:47:42 2002
@@ -1870,9 +1870,20 @@
 
        /* set the text widget's properties */
        pan_widget_set_font (GTK_WIDGET(mw->body), message_body_font_fixed);
-       style = gtk_widget_get_style(mw->body);
-       style->text[0] = text_fg_color;
-       style->base[0] = text_bg_color;
+
+       if( !use_system_fg || !use_system_bg )
+         {
+           style = gtk_widget_get_style(mw->body);
+           
+           if( !use_system_fg )
+             style->text[0] = text_fg_color;
+           
+           if( !use_system_bg )
+             style->base[0] = text_bg_color;
+
+           gtk_widget_set_style( GTK_WIDGET( mw->body ), style );
+         }
+
        gtk_text_set_word_wrap (GTK_TEXT (mw->body), FALSE);
        gtk_text_set_line_wrap (GTK_TEXT (mw->body), FALSE);
        gtk_text_set_editable (GTK_TEXT (mw->body), TRUE);