Jeff Shipman <[EMAIL PROTECTED]> writes:
> I have a set of three spinbuttons that I use
> for a date. I've set it up so it takes special
> care for february and leap years, but I would
> also like to know whether the up or down arrow
> has been pressed. This way I know how to modify
> the value in the spinbutton. How can I do
> this?

Presumably you can just see whether the new value is larger or smaller
than the old value?

For dates, you definitely want to use the "input" and "output"
signals, look at testgtk.c in the GTK source distribution for a nice
example that lets you choose months January-December. For a long time
I didn't know about these two signals, they are a very useful feature.

Anyhow, in the "input" signal handler you have a chance to see the old
and new values together I think.

Havoc

_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to