On Понедельник 18 мая 2009 16:12:26 Dr. David Alan Gilbert wrote: > * Tony Wang (wangtao adi gmail com) wrote: > > Hi Guys, > > Why there is always one expose-event after > > the button-press-event(and button-release-event)? that means my app > > redraw itself twice for one button event, which made the app UI flickers, > > any clues for settling the problem? > > Because the button is highlighted when you press it and returned to normal > when you release. Is it just the button that's getting the redraw > or something else? Button-*-event signal is raised not when pressing and releasing GtkButton (the widget on the screen), but when pressing and releasing button of a mouse. So, e.g., mouse clicks on form => form redrawn twice.
Attachment:
signature.asc
Description: This is a digitally signed message part.