Hi, me again...

On 6/7/06, Markku Vire <[EMAIL PROTECTED]> wrote:
Hi,

"notify::value" is just a signal like "changed". The difference is just
that it sends you an additional parameter, so you need to change your
callback signature a bit:

g_signal_connect(spin_button, "notify::value",
   G_CALLBACK(on_value_changed), NULL);

...

void on_value_changed(GtkWidget *widget, GParamSpec *param, gpointer data)
{
    ...
}

So it is still does not work, but I think the probleme is with the detailed_signal declaration: "notify::value", my function is not called.
I tried another signal name, "expose_event", obviously it doesn't react like I want, but my function has been called.

My code:

bfignr = hildon_number_editor_new(0,10);


g_signal_connect (bfignr, "expose_event",
                       G_CALLBACK(on_bfignr_changed),
                      NULL);


void on_bfignr_changed     (GtkWidget *widget, GParamSpec *param, gpointer data)
{
   ...
}

Thank you for your interest.
--
Donars Guillaume.

My Web Blog: http://guymage.net
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to