Changeset 2160

Show
Ignore:
Timestamp:
10/07/07 23:38:29 (1 year ago)
Author:
arj..@yirdis.nl
Message:

Use gaphas' Handle.connection_data property. Fix #77.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor/trunk/gaphor/adapters/connectors.py

    r2126 r2160  
    112112                                             CanvasProjection(h2.pos, element)), 
    113113                                       point=CanvasProjection(handle.pos, line)) 
    114         handle._connect_constraint = lc 
     114        handle.connection_data = lc 
    115115        element.canvas.solver.add_constraint(lc) 
    116116 
     
    124124        """ 
    125125        try: 
    126             if handle._connect_constraint
    127                 self.line.canvas.solver.remove_constraint(handle._connect_constraint
     126            if handle.connection_data
     127                self.line.canvas.solver.remove_constraint(handle.connection_data
    128128        except AttributeError: 
    129             pass # No _connect_constraint property yet 
    130         handle._connect_constraint = None 
     129            pass # No connection_data property yet 
     130        handle.connection_data = None 
    131131 
    132132