Update of /cvsroot/mahogany/M/src/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27017/src/modules
Modified Files:
BareBonesEditor.cpp
Log Message:
set colours for the composer properly (bug 892)
Index: BareBonesEditor.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/BareBonesEditor.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -b -u -2 -r1.27 -r1.28
--- BareBonesEditor.cpp 6 Nov 2003 01:34:00 -0000 1.27
+++ BareBonesEditor.cpp 5 May 2004 21:44:28 -0000 1.28
@@ -951,11 +951,4 @@
m_attachments = m_notebook->GetList();
- if ( !GetOptions().m_font.empty() )
- {
- wxFont font(GetOptions().GetFont());
- if ( font.Ok() )
- m_textControl->SetFont(font);
- }
-
Enable(true);
Clear();
@@ -1033,4 +1026,17 @@
void BareBonesEditor::Clear()
{
+ const ComposerOptions& options = GetOptions();
+ if ( !options.m_font.empty() )
+ {
+ wxFont font(GetOptions().GetFont());
+ if ( font.Ok() )
+ m_textControl->SetFont(font);
+ }
+
+ if ( options.m_fg.Ok() )
+ m_textControl->SetForegroundColour(options.m_fg);
+ if ( options.m_bg.Ok() )
+ m_textControl->SetBackgroundColour(options.m_bg);
+
m_textControl->Clear();
}
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates