Changeset 1458

Show
Ignore:
Timestamp:
07/05/08 09:43:09 (8 weeks ago)
Author:
rob
Message:

Fixed #485: font zoom is now saved as a local parameter

Location:
trunk/peppy
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/peppy/fundamental.py

    r1454 r1458  
    366366        self.setViewEOL() 
    367367        self.setWhitespace() 
     368        self.SetZoom(self.locals.font_zoom) 
    368369         
    369370        # Added call to colourise because some parameter might have changed 
  • trunk/peppy/fundamental_menu.py

    r1457 r1458  
    173173        Callback function used to set the stc to the correct line. 
    174174        """ 
     175        self.mode.locals.font_zoom = zoom 
    175176        mode.SetZoom(zoom) 
    176177 
     
    182183 
    183184    def action(self, index=-1, multiplier=1): 
    184         self.mode.SetZoom(self.mode.GetZoom() + 1) 
     185        self.mode.locals.font_zoom += 1 
     186        self.mode.SetZoom(self.mode.locals.font_zoom) 
    185187 
    186188class FontZoomDecrease(SelectAction): 
     
    191193 
    192194    def action(self, index=-1, multiplier=1): 
    193         self.mode.SetZoom(self.mode.GetZoom() - 1) 
     195        self.mode.locals.font_zoom -= 1 
     196        self.mode.SetZoom(self.mode.locals.font_zoom) 
    194197 
    195198