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.
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to