[maemo-developers] [maemo-developers] Too much sensibilities in my application

From: Markku Vire markku.vire at movial.fi
Date: Wed Jun 7 10:22:02 EEST 2006
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)
{
    ...
}

-Markku-

Donars Guillaume wrote:
> 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.

More information about the maemo-developers mailing list