Update of /cvsroot/pythoncard/PythonCard/tools/oneEditor
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26331
Modified Files:
tabcodeEditor.py
Log Message:
Update the tab text when a file has been modified (like we already do the title bar).
Index: tabcodeEditor.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/tools/oneEditor/tabcodeEditor.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** tabcodeEditor.py 24 Oct 2004 23:35:40 -0000 1.11
--- tabcodeEditor.py 3 Nov 2005 00:22:52 -0000 1.12
***************
*** 245,248 ****
--- 245,249 ----
def updateTitleBar(self):
title = self.title
+ pageText = self.components.notebook.GetPageText(self.currentPageNumber)
if self.currentPage:
modified = self.currentDocument.GetModify()
***************
*** 251,257 ****
if modified and title[0] != '*':
self.title = '* ' + title + ' *'
elif not modified and title[0] == '*':
self.title = title[2:-2]
!
# these are event handlers bound above
--- 252,261 ----
if modified and title[0] != '*':
self.title = '* ' + title + ' *'
+ self.components.notebook.SetPageText(self.currentPageNumber, '* ' + pageText + ' *')
+ self.panel.Refresh()
elif not modified and title[0] == '*':
self.title = title[2:-2]
! self.components.notebook.SetPageText(self.currentPageNumber, pageText[2:-2])
! self.panel.Refresh()
# these are event handlers bound above
|