~glitter-team/glitter/trunk

« back to all changes in this revision

Viewing changes to glitter/button.py

  • Committer: Jan Jokela
  • Date: 2009-07-23 13:34:50 UTC
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: jan@jan-laptop-20090723133450-3on1o4vjgdpfdfk6
(glitter/button.py) Fixed critical issue where event transmissions in the button widget were not blocked

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
    def on_press_event(self, widget, event):
158
158
        
159
159
        self.state = STATE_SELECTED
 
160
        return True
160
161
        
161
162
    def on_release_event(self, widget, event):
162
163
        
163
164
        self.state = STATE_HIGHLIGHT
164
165
        self.emit("clicked", self)
 
166
        return True
165
167
        
166
168