Re: Passing Struct to g_signal_connect

2008-10-19 Thread beginner.c
dgets.nextButton), "clicked", >> G_CALLBACK (on_button2_clicked), &baseStruct); >> } >> >> Any idea's? If I pass this struct to any other function I have no problem >> performing functions like in the callback. For some reason, I can't in >> the >> callback. &g

Re: Passing Struct to g_signal_connect

2008-10-19 Thread Till Harbaum / Lists
Hi, you have to make sure that the parameters of your callback function exactly match what's been described for this particular event. In your case your have to check the "clicked" event for a GtkButton which gives us: void user_function(GtkButton *button, gpointer user_data) So this is how

Passing Struct to g_signal_connect

2008-10-19 Thread beginner.c
in the callback. For some reason, I can't in the callback. -- View this message in context: http://www.nabble.com/Passing-Struct-to-g_signal_connect-tp20055372p20055372.html Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com. __