spinner widget



I've been working on a spinner widget that is basically just the spinner portion of a spinbutton.

Although the spinbutton handles numbers fairly cleanly, it doesn't seem to work well when trying to use it for other purposes. Although you can use the signals to have it display text (like the days of the week example), it does not handle user typing in a value well. Also, since there is no way to change how it looks, it always appears as an entry that the user can type in.

My solution to this is a stand-alone spinner widget. The spinner will just appear as a pair of arrows and hold a double value and the developer could use that value to control a plain label, image, or anything else.

The spinner as I have written it derives from GtkRange and has "wrap" and "snap_to_ticks" properties (the same as the spinbutton).

Thoughts?



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