Yes, it is the mouse left-button press/release that causes this twice redrawing. ------------------------------------------------------------------- Message: 9 Date: Mon, 18 May 2009 15:27:17 +0400 From: Kalyanov Dmitry <kalyanov.dmi...@gmail.com> Subject: Re: [CRM114spam]: expose event following button press/release event To: gtk-devel-l...@gnome.org Message-ID: <200905181527.20858.kalyanov.dmi...@gmail.com> Content-Type: text/plain; charset="utf-8"
On ??????????? 18 ??? 2009 16:12:26 Dr. David Alan Gilbert wrote: > * Tony Wang (wangtao....@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. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list