I'm trying to pass multiple arguments to a gtk call back function I have the following code so far:
void add_new_set(GtkDialog *dialog, gint response_id, gpointer callback_params) { g_print (gtk_entry_get_text (((struct data *) callback_params)->entry)); } struct data callback_params; callback_params.entry = gtk_entry_new(); gtk_container_add(GTK_CONTAINER(content_area), callback_params.entry); g_signal_connect(dialog,"response",G_CALLBACK (add_new_set),&callback_params); nothing get g_print ed I get teh following error instead: (tat:5918): Gtk-CRITICAL **: IA__gtk_entry_get_text: assertion 'GTK_IS_ENTRY (entry)' failed
(tat:5918): GLib-CRITICAL **: g_print: assertion 'format != NULL' failed
I'm open to using techniques other than passing a struct pointer
thanks