Re: expose event following button press/release event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 18, 2009 at 5:33 AM, 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?

handle the button press & release events yourself, and return true
from your handlers, thus preventing the default handler from running.
it sounds as if you don't want a GtkButton anyway, but something more
like a GtkEventBox that simply receives button events without
redrawing itself to indicate state to the user.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux