On Mon, 08 Jul 2002 12:30:35 -0500 (CDT) javiercmx correo unam mx wrote:
I have the following source: button = gtk_radio_button_new_with_label (NULL, "USER"); gtk_signal_connect(GTK_OBJECT(button), "toggled", GTK_SIGNAL_FUNC(op_user), NULL); ........ button = gtk_button_new_with_label("OK"); when I press the button ok, call the function "op_user"
since the second button is a new , regular, button, you need the "clicked" signal g_signal_connect(G_OBJECT(button), "clicked",G_CALLBACK(op_user), NULL); (that's for gtk2, for gtk-1.2 use gtk_signal_connect()) regards, Olivier
Attachment:
pgpYeeFgdDTRE.pgp
Description: PGP signature