[Gtk-sharp-list] HScale ValueChanged

Peter Johanson latexer at gentoo.org
Thu Jan 4 12:39:26 EST 2007


On Thu, Jan 04, 2007 at 01:21:41PM +0100, xiii29 at free.fr wrote:
> 
> I was thinking abouit ButtonReleaseEvent. When you have finish changing value,
> you released the button ... so it should be good. But on the HScale, the event
> is not raised when you changing value. Only if you click around it (like around
> the number)...
> 
> Why the event is not raised at the end of changing value ?

Probably the HScale widget is catching that event, and not letting it
propogate. You probably want to use the [GLib.ConnectBefore] attribute
on the method used as a callback, so you get the event fired before
HScale gets it and squashes it. Note that you will be processing the
release before HScale gets to, so you may want to actually queue any
work using GLib.Idle.Add, so it happens after HScale does whatever it
does on button release.

-pete

-- 
Peter Johanson
<latexer at gentoo.org>


More information about the Gtk-sharp-list mailing list