Changeset 104

Show
Ignore:
Timestamp:
11/28/07 07:41:39 (1 year ago)
Author:
tal
Message:
- Some tiny bug fixes.
- Option is no longer required to initiate drag.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • packages/defconAppKit/trunk/Lib/defconAppKit/views/glyphCellView.py

    r97 r104  
    6262        self._glyphs = glyphs 
    6363        self._subscribeToGlyphs() 
     64        maxIndex = len(glyphs) - 1 
     65        toRemove = set() 
     66        for index in self._selection: 
     67            if index > maxIndex: 
     68                toRemove.add(index) 
     69        self._selection = self._selection - toRemove 
    6470        self.recalculateFrame() 
    6571 
     
    330336 
    331337        # dragging 
    332         if self._allowDrag and mouseDown and optionDown and found in self._selection: 
     338        if self._allowDrag and mouseDown and found in self._selection: 
    333339            if found is None: 
    334340                return 
     
    659665        return False 
    660666 
     667    def getGlyphCellView(self): 
     668        return self._glyphCellView 
     669 
    661670    def __getitem__(self, index): 
    662671        return self._glyphs[index]