Ignore:
Timestamp:
08/06/09 08:32:18 (3 years ago)
Author:
marc
Message:

First try at backport

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release/0.2/uigtk.py

    r321 r324  
    660660            self.configuration['screenshot']['format'] = 'jpeg' 
    661661 
     662        # Delete stale old screenshot 
     663        if (self.current_configuration['screenshot']['format'] != self.configuration['screenshot']['format']): 
     664            if os.path.exists(os.path.join(self.current_configuration['screenshot']['path'], 'itakashot.%s' % (self.current_configuration['screenshot']['format']))):  
     665                os.remove(os.path.join(self.current_configuration['screenshot']['path'], 'itakashot.%s' % (self.current_configuration['screenshot']['format']))) 
     666                if self.itaka_globals.console_verbosity['debug']: print_m(_("Deleting stale screenshot file '%s'" % ((os.path.join(self.current_configuration['screenshot']['path'], 'itakashot.%s' % (self.current_configuration['screenshot']['format'])))))) 
     667 
    662668        if self.itakaglobals.notifyavailable: 
    663669            notifyvalue = self.preferencesChecknotifications.get_active() 
Note: See TracChangeset for help on using the changeset viewer.