[pywin32-checkins] pywin32/Pythonwin/pywin/scintilla configui.py, 1.7, 1.8
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2010-05-22 00:59:48
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv10157 Modified Files: configui.py Log Message: Fix resetting of default background for syles that don't use CLR_INVALID Index: configui.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla/configui.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** configui.py 9 Feb 2009 01:05:54 -0000 1.7 --- configui.py 22 May 2010 00:59:40 -0000 1.8 *************** *** 180,184 **** if isDef: # Being reset to the default color style = self.GetSelectedStyle() ! style.background = CLR_INVALID self.UpdateUIForStyle(style) self.scintilla.ApplyFormattingStyles(0) --- 180,184 ---- if isDef: # Being reset to the default color style = self.GetSelectedStyle() ! style.background = style.default_background self.UpdateUIForStyle(style) self.scintilla.ApplyFormattingStyles(0) *************** *** 209,214 **** self.GetDlgItem(win32ui.IDC_BUTTON3).EnableWindow(not style.IsBasedOnDefault()) ! self.butIsDefaultBackground.SetCheck(style.background == CLR_INVALID) ! self.GetDlgItem(win32ui.IDC_BUTTON4).EnableWindow(style.background != CLR_INVALID) bold = format[1] & win32con.CFE_BOLD != 0; italic = format[1] & win32con.CFE_ITALIC != 0 --- 209,214 ---- self.GetDlgItem(win32ui.IDC_BUTTON3).EnableWindow(not style.IsBasedOnDefault()) ! self.butIsDefaultBackground.SetCheck(style.background == style.default_background) ! self.GetDlgItem(win32ui.IDC_BUTTON4).EnableWindow(style.background != style.default_background) bold = format[1] & win32con.CFE_BOLD != 0; italic = format[1] & win32con.CFE_ITALIC != 0 |