Changeset 1558
- Timestamp:
- 07/02/07 12:45:48 (1 year ago)
- Files:
-
- gaphas/branches/hw/gaphas/canvas.py (modified) (3 diffs)
- gaphas/branches/hw/gaphas/solver.py (modified) (1 diff)
- gaphas/branches/hw/setup.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphas/branches/hw/gaphas/canvas.py
r1551 r1558 323 323 reversible_method(request_update, reverse=request_update) 324 324 325 @observed 325 326 def request_matrix_update(self, item): 326 327 """ … … 329 330 self._dirty_matrix_items.add(item) 330 331 self.update() 332 333 reversible_method(request_matrix_update, reverse=request_matrix_update) 331 334 332 335 def require_update(self): … … 467 470 item._canvas_matrix_w2i.invert() 468 471 472 # Make sure handles are marked (for constraint solving) 473 request_resolve = self._solver.request_resolve 474 for h in item.handles(): 475 request_resolve(h.x) 476 request_resolve(h.y) 477 469 478 if recursive: 470 479 for child in self._tree.get_children(item): gaphas/branches/hw/gaphas/solver.py
r1510 r1558 345 345 elif c not in self._marked_cons: 346 346 self._marked_cons.append(c) 347 348 def request_resolve(self, variable): 349 """ 350 Request resolving of the constraints for a variable. This does not 351 mark the variable itself as dirty. 352 """ 353 for c in variable._constraints: 354 if c not in self._marked_cons: 355 self._marked_cons.append(c) 347 356 348 357 @observed gaphas/branches/hw/setup.py
r1367 r1558 38 38 setup( 39 39 name='gaphas', 40 version='0. 1.6',40 version='0.2.0', 41 41 description='Gaphas is a GTK+ based diagramming widget', 42 42 long_description="""\
