Hi all, I am facing a problem while using gtk_signal_connect() interface. Please see the attached code. ====================================== ...... ...... ...... gtk_signal_connect(GTK_OBJECT (gadget_), "clicked", GTK_SIGNAL_FUNC (clicked_signal),(gpointer)1); ...... ...... ...... /**********************************************/ gint clicked_signal(GtkWidget *widget, GdkEvent *event, gpointer data ) { printf(" %d \n",(int)data); } ============================================ But the output of print is some junk value. It is not "1" that I was expecting. I used g_print function, but no use. Can anybody tell me what could be the problem. Thank you in advance Regards Deekshit M
Attachment:
Wipro_Disclaimer.txt
Description: Text document