Changeset 324


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

First try at backport

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/release/0.2/README

    r321 r324  
    68686. HACKING 
    6969 
    70 If you intend to change Itaka source coude, please read the HACKING file. 
     70If you intend to change Itaka source code, please read the HACKING file. 
    7171 
    7272Any questions should be emailed to me directly. 
  • branches/release/0.2/screenshot.py

    r295 r324  
    5151        self.currentwindowfailed = False 
    5252 
    53         #: Final absolute path to the screenshot file 
    54         self.shotFile = os.path.join(self.configuration['screenshot']['path'], 'itakashot.%s' % (self.configuration['screenshot']['format'])) 
    55          
    5653        self.rootscreen = gtk.gdk.screen_get_default() 
    5754        self.rootwindow = gtk.gdk.get_default_root_window() 
     
    10198         
    10299        self.configuration = self.gui.configuration 
     100 
     101        #: Final absolute path to the screenshot file 
     102        self.shot_file = os.path.join(self.configuration['screenshot']['path'], 'itakashot.%s' % (self.configuration['screenshot']['format'])) 
    103103 
    104104        if self.configuration['screenshot']['currentwindow'] and not self.itakaglobals.system == 'nt': 
  • 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() 
  • trunk/uigtk.py

    r321 r324  
    771771                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'])))))) 
    772772 
    773  
    774773        if self.itaka_globals.notify_available: 
    775774            self.notify_value = self.check_preferences_notifications.get_active() 
Note: See TracChangeset for help on using the changeset viewer.