On 6/6/06, Gustavo Sverzut Barbieri <[EMAIL PROTECTED]> wrote:
On Tuesday 06 June 2006 02:58, ext Donars Guillaume wrote:
> Hi,
> I'm using a gtkSpinButton widget.
> In maemo sdk everything work well, but in the Nokia when I want to increase
> or decrease with buttons, the step is 2 instead of 1, my callback is called
> 2 times !
> To just have 1 callback, you need to click very quickly, but it is
> unconfortable for the final user.
>
> Is there any programming solution to reduce pen sensibility or other thing
> else to resolve this problem ?
This is a know problem, I don't know why, Nokia choose to fix this with
another widget
"NumberEditor" ( http://maemo.org/platform/docs/api/hildon-docs/html/hildon-libs-HildonNumberEditor.html)
So, use it instead of SpinButton. Also, note that it doesn't provide a
"value-changed", so you will have to connect to "notify::value" to get
notified when value changes.
First, thank you for your answer, now it graphicaly works. But as you precise, it's a different method to get notified when value changes and I do not succeed to do it.
With gtkSpinButton, my connect was like:
gtk_signal_connect (GTK_OBJECT (my_gtkSpinButton), "changed",
GTK_SIGNAL_FUNC (on_gtkSpinButton_changed),
NULL);
But I do not know what to do with your "notify::value", sorry I begin in gtk environment.
Thanks for advance.
--
Donars Guillaume.
My Web Blog: http://guymage.net
_______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers