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