Re: [CRM114spam]: expose event following button press/release
- From: Tony Wang <wangtao adi gmail com>
- To: kalyanov dmitry gmail com
- Cc: gtk-devel-list <gtk-devel-list gnome org>, gtk-app-devel-list gnome org, gtk-list gnome org
- Subject: Re: [CRM114spam]: expose event following button press/release
- Date: Tue, 19 May 2009 09:48:18 +0800
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 dmitry gmail com>
Subject: Re: [CRM114spam]: expose event following button press/release
event
To: gtk-devel-list gnome org
Message-ID: <200905181527 20858 Kalyanov Dmitry gmail com>
Content-Type: text/plain; charset="utf-8"
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]