On Mon, May 18, 2009 at 5:33 AM, 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?
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-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list