Re: SpinButton too sensitive


I have a SpinButton in my app with a function connected to the
value_changed signal that takes some time (about 1 second) to execute.
This has the unwanted effect that when I press the increment-button in
the SpinButton, it increments twice. Somehow it seems that Gtk thinks
that the mouse button is pressed for longer than it is because the
callback function takes a long time to execute. How can I prevent this?

What happens if you replace your callback routine with simple
g_print() statement? Also, are you programmatically changing value
inside spin button in your callback routine?


Tadej BorovÅak
tadeboro gmail com
tadej borovsak gmail com

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