Changeset 2176

Show
Ignore:
Timestamp:
01/07/08 04:16:28 (1 year ago)
Author:
wrobe..@pld-linux.org
Message:

- artifact icon was not displayed after gaphor's Item.{pre,post}_update

changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor/trunk/gaphor/diagram/artifact.py

    r1467 r2176  
    2525        self._line = [] 
    2626         
    27     def update_compartment_icon(self, context): 
    28         super(ArtifactItem, self).update_compartment_icon(context) 
     27    def pre_update_compartment_icon(self, context): 
     28        super(ArtifactItem, self).pre_update_compartment_icon(context) 
    2929        w = self.ICON_WIDTH 
    3030        h = self.ICON_HEIGHT 
     
    4444        cr = context.cairo 
    4545        cr.save() 
     46        self.draw_compartment(context) 
     47        cr.restore() 
    4648 
    4749        # draw icon 
     
    5658        cr.stroke() 
    5759 
    58         cr.restore() 
    59         self.draw_compartment(context) 
     60 
    6061 
    6162# vim:sw=4:et