Changeset 1558

Show
Ignore:
Timestamp:
07/02/07 12:45:48 (1 year ago)
Author:
wrobe..@pld-linux.org
Message:

- merged changes 1540:1549 from trunk

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphas/branches/hw/gaphas/canvas.py

    r1551 r1558  
    323323    reversible_method(request_update, reverse=request_update) 
    324324 
     325    @observed 
    325326    def request_matrix_update(self, item): 
    326327        """ 
     
    329330        self._dirty_matrix_items.add(item) 
    330331        self.update() 
     332 
     333    reversible_method(request_matrix_update, reverse=request_matrix_update) 
    331334 
    332335    def require_update(self): 
     
    467470        item._canvas_matrix_w2i.invert() 
    468471 
     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 
    469478        if recursive: 
    470479            for child in self._tree.get_children(item): 
  • gaphas/branches/hw/gaphas/solver.py

    r1510 r1558  
    345345                elif c not in self._marked_cons: 
    346346                    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) 
    347356 
    348357    @observed 
  • gaphas/branches/hw/setup.py

    r1367 r1558  
    3838setup( 
    3939    name='gaphas', 
    40     version='0.1.6', 
     40    version='0.2.0', 
    4141    description='Gaphas is a GTK+ based diagramming widget', 
    4242    long_description="""\