Changeset 931
- Timestamp:
- 06/08/06 02:14:39 (2 years ago)
- Files:
-
- gaphas/trunk/view.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphas/trunk/view.py
r895 r931 141 141 (gobject.TYPE_PYOBJECT,)), 142 142 'selection-changed': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, 143 (gobject.TYPE_PYOBJECT,)) 143 (gobject.TYPE_PYOBJECT,)), 144 'tool-changed': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, 145 ()), 146 'painter-changed': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, 147 ()) 144 148 } 145 149 def __init__(self, canvas=None): … … 263 267 """ 264 268 self._tool = tool 269 self.emit('tool-changed') 265 270 266 271 tool = property(lambda s: s._tool, _set_tool) 272 273 def _set_painter(self, painter): 274 """Set the painter to use. Painters should implement painter.Painter. 275 """ 276 self._painter = painter 277 self.emit('painter-changed') 278 279 painter = property(lambda s: s._painter, _set_painter) 267 280 268 281 def _set_hadjustment(self, adj):
