[Gtk2] No way to make spinbutton changes slower



Hi all,

I have a spin button from 0 to 20, in +1 step increments.

If I leave the mouse button pressed it reaches 20 in less than two seconds!

Is there a way to make this a lot slower? this is, one step (+1) every second or so?

adjustment = gtk_adjustment_new(1, 0, 20, 1, 5, 1);
spin = gtk_spin_button_new(GTK_ADJUSTMENT(adjustment), 0.1, 0);

Thanks!

--
Manuel Clos
llanero jazzfree com

* Si no puedes hacerlo bien, hazlo bonito (Bill Gates)
* If you can't do it well, do it nice (Bill Gates)




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