How to send user_data with gtk signals in loop
问题 I have signals "make" and "send" registered in core class in main thread. I call call_make() from user class in same thread. call_make() will do some work and fetch some data from worker thread and after return it will emit signal "make". This is code of user class struct my_struct{ int cur_make_id; int cur_send_id; //there may be many id's if multiple signals } void on_send_cb(core, gpointer data){ my_struct *user_data = (my_struct *) data; printf("cure_make_id %d", user_data->cur_make_id);