~glitter-team/glitter/trunk

« back to all changes in this revision

Viewing changes to glitter/button.py

(Merge) From layout engine improvements branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        
53
53
        self._hbox = HBox()
54
54
        self.add(self._hbox)
 
55
        self._update_layout()
55
56
        
56
57
        if self.icon:
57
58
            self._icon = Image(self.icon)
73
74
                self._background_image.set_source(self.background_image)
74
75
                self._background_image._update_layout()
75
76
                self._background_image.show()
 
77
                
76
78
        
77
79
    def _update_layout(self):
78
80
        """ Updates layout """
81
83
                
82
84
        self._background_image._update_layout()
83
85
        self._hbox._update_layout()
84
 
    
 
86
 
85
87
    def on_motion_event(self, widget, event):
86
88
        """ Cursor motion over widget """
87
89