GTK passing structure to callback function in C
问题 Still new in GTK, now trying to work on event-driven programming and stuck in weird situation: there is no problem to send scalar items to callback function, but then it comes to sending struct to it, still receiving the error with no idea what's wrong. Sample "stub" code is: #include <gtk/gtk.h> #include <stdlib.h> void messageup(); void exiting(); struct data{ char *message; GtkWidget *window; }; int main (int argc, char *argv[]) { GtkBuilder *builder; GtkWidget *window; GtkWidget