Hi,<br><br><div><span class="gmail_quote">On 6/6/06, <b class="gmail_sendername">Gustavo Sverzut Barbieri</b> &lt;<a href="mailto:Gustavo.Barbieri@indt.org.br">Gustavo.Barbieri@indt.org.br</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tuesday 06 June 2006 02:58, ext Donars Guillaume wrote:<br>&gt; Hi,<br>&gt; I'm using a gtkSpinButton widget.<br>&gt; In maemo sdk everything work well, but in the Nokia when I want to increase<br>&gt; or decrease with buttons, the step is 2 instead of 1, my callback is called
<br>&gt; 2 times !<br>&gt; To just have 1 callback, you need to click very quickly, but it is<br>&gt; unconfortable for the final user.<br>&gt;<br>&gt; Is there any programming solution to reduce pen sensibility or other thing
<br>&gt; else to resolve this problem ?<br><br>This is a know problem, I don't know why, Nokia choose to fix this with<br>another widget<br>&quot;NumberEditor&quot; (<a href="http://maemo.org/platform/docs/api/hildon-docs/html/hildon-libs-HildonNumberEditor.html">
http://maemo.org/platform/docs/api/hildon-docs/html/hildon-libs-HildonNumberEditor.html</a>)<br><br>So, use it instead of SpinButton. Also, note that it doesn't provide a<br>&quot;value-changed&quot;, so you will have to connect to &quot;notify::value&quot; to get
<br>notified when value changes.<br><br>
</blockquote></div><br>
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.<br>
<br>
With gtkSpinButton, my connect was like:<br>
<br>
<span style="font-style: italic;">gtk_signal_connect (GTK_OBJECT (my_gtkSpinButton), &quot;changed&quot;,</span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
GTK_SIGNAL_FUNC (on_gtkSpinButton_changed),</span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
NULL);</span><br><br clear="all">But I do not know what to do with your &quot;notify::value&quot;, sorry I begin in gtk environment.<br>
<br>
Thanks for advance.<br>
&nbsp;<br>-- <br>Donars Guillaume.<br><br>My Web Blog: <a href="http://guymage.net">http://guymage.net</a>