Changeset 179

Show
Ignore:
Timestamp:
05/18/08 17:17:31 (8 months ago)
Author:
poillubo
Message:

* more stuff in the pager:

+ removed an useless import
+ removed an useless variable
+ do nothing in Pager.set_ratio if the old and new ratios are the same

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/pycawm/plugins/pager.py

    r178 r179  
    2626 
    2727from pycawm.hookmanager import add_post_hook, remove_post_hook 
    28 from pycawm.plugins import Plugin, PycaPluginError 
     28from pycawm.plugins import Plugin 
    2929from pycawm.wrappers import DisplayWrapper 
    3030from pycawm import Client, Desktop 
     
    8787 
    8888    def set_ratio(self, ratio): 
     89        if self.ratio == ratio: 
     90            return 
     91 
    8992        root_geo = self.root.get_geometry() 
    9093        self.ratio = ratio 
     
    115118    def draw_pager(self, *args): 
    116119        wm_screen = self.wm.screen 
    117         window_geometry = self.window.get_geometry() 
    118120 
    119121        for nb, desktop in enumerate(self.wm.desktops):