Hi, me again...<br><br><div><span class="gmail_quote">On 6/7/06, <b class="gmail_sendername">Markku Vire</b> &lt;<a href="mailto:markku.vire@movial.fi">markku.vire@movial.fi</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;">
Hi,<br><br>&quot;notify::value&quot; is just a signal like &quot;changed&quot;. The difference is just<br>that it sends you an additional parameter, so you need to change your<br>callback signature a bit:<br><br>g_signal_connect(spin_button, &quot;notify::value&quot;,
<br>&nbsp;&nbsp; G_CALLBACK(on_value_changed), NULL);<br><br>...<br><br>void on_value_changed(GtkWidget *widget, GParamSpec *param, gpointer data)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;...<br>}<br></blockquote></div><br>So
it is still does not work, but I think the probleme is with the
detailed_signal declaration: &quot;notify::value&quot;, my function is not called.<br>
I tried another signal name, &quot;expose_event&quot;, obviously it doesn't react like I want, but my function has been called.<br>
<br>
My code:<br>
<br>
bfignr = hildon_number_editor_new(0,10);<br>
<br>
<br>
g_signal_connect (bfignr, &quot;expose_event&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
G_CALLBACK(on_bfignr_changed),<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
NULL);<br>
<br>
<br>
void on_bfignr_changed &nbsp;&nbsp;&nbsp; (GtkWidget *widget, GParamSpec *param, gpointer data)<br>
{<br>
&nbsp;&nbsp; ...<br>
}<br>
<br>
Thank you for your interest.<br>-- <br>Donars Guillaume.<br><br>My Web Blog: <a href="http://guymage.net">http://guymage.net</a>