SpinButton too sensitive



Hi

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?

/Pelle




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