[Idle-dev] CVS: idle IOBinding.py,1.9,1.10

Chui Tey teyc@users.sourceforge.net
Sun, 03 Nov 2002 19:11:12 -0800


Update of /cvsroot/idlefork/idle
In directory usw-pr-cvs1:/tmp/cvs-serv31774

Modified Files:
	IOBinding.py 
Log Message:
619127: Recent File Menu Not Updating

Index: IOBinding.py
===================================================================
RCS file: /cvsroot/idlefork/idle/IOBinding.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** IOBinding.py	23 Sep 2002 01:01:20 -0000	1.9
--- IOBinding.py	4 Nov 2002 03:11:10 -0000	1.10
***************
*** 219,222 ****
--- 219,224 ----
          self.text.mark_set("insert", "1.0")
          self.text.see("insert")
+ 
+         self.updaterecentfileslist(filename)
          return True
  
***************
*** 295,298 ****
--- 297,301 ----
                  self.set_saved(1)
          self.text.focus_set()
+ 
          return "break"
  
***************
*** 304,307 ****
--- 307,312 ----
                  self.set_saved(1)
          self.text.focus_set()
+ 
+         self.updaterecentfileslist(filename)
          return "break"
  
***************
*** 311,314 ****
--- 316,321 ----
              self.writefile(filename)
          self.text.focus_set()
+ 
+         self.updaterecentfileslist(filename)
          return "break"
  
***************
*** 463,466 ****
--- 470,479 ----
          return self.savedialog.show(initialdir=dir, initialfile=base)
  
+ 
+     def updaterecentfileslist(self,filename):
+         #
+         # Updates recent file list on all editor windows
+         #
+         self.editwin.UpdateRecentFilesList(filename)
  
  def test():