Changeset 1865

Show
Ignore:
Timestamp:
08/07/07 12:26:26 (1 year ago)
Author:
arj..@yirdis.nl
Message:

why not remove get_canvas_size() at all. use bounding_box instead.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphas/trunk/gaphas/view.py

    r1864 r1865  
    271271        """ 
    272272        return self._qtree.get_bounds(item) 
    273  
    274  
    275     def get_canvas_size(self): 
    276         """ 
    277         The canvas size (width, height) in view coordinates, determined 
    278         from the origin (0, 0). 
    279         """ 
    280         x, y, w, h = self._qtree.soft_bounds 
    281         return w, h 
    282273 
    283274 
     
    505496        if not allocation: 
    506497            allocation = self.allocation 
    507         w, h = self.get_canvas_size() 
     498        x, y, w, h = self.bounding_box 
    508499        self._update_adjustment(self._hadjustment, 
    509500                                value = self._hadjustment.value,