Changeset 1057


Ignore:
Timestamp:
12/15/11 18:04:31 (17 months ago)
Author:
tal
Message:
The glyph needs to listen for changes to the image data.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/defcon/branches/ufo3/Lib/defcon/objects/glyph.py

    r1055 r1057  
    988988            return 
    989989        self._image.addObserver(observer=self, methodName="_imageChanged", notification="Image.Changed") 
     990        self._image.addObserver(observer=self, methodName="_imageDataChanged", notification="Image.ImageDataChanged") 
    990991 
    991992    def endSelfImageNotificationObservation(self): 
     
    995996            return 
    996997        self._image.removeObserver(observer=self, notification="Image.Changed") 
     998        self._image.removeObserver(observer=self, notification="Image.ImageDataChanged") 
    997999        self._image.endSelfNotificationObservation() 
    9981000 
     
    11371139        self._layerSet = None 
    11381140        self._layer = None 
     1141 
     1142    def _imageDataChanged(self, notification): 
     1143        self.postNotification(notification="Glyph.ImageChanged") 
     1144        self.postNotification(notification=self.changeNotificationName) 
    11391145 
    11401146    def _imageChanged(self, notification): 
Note: See TracChangeset for help on using the changeset viewer.