 |
GTK+ Forums Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
|
|
|
| Author |
Message |
|
|
aliov Familiar Face
Joined: 06 May 2007 Posts: 11
|
Posted: Sun May 06, 2007 2:00 pm Post subject: g_signal_connect |
|
|
I want to a to use the g_signal_connect to call a function with tree arguments
g_signal_connect(G_OBJECT(query_button),"clicked",G_CALLBACK(clermont_show_values),(&clermont_text,drawer_label));
but with this i can't get the third argument drawer_label and use it inside the function!
The function is :
void clermont_show_values(GtkButton*bt,GtkEntry**entry,GtkEntry*drawer_label)
So how i can call a function with many arguments ?.
Cheers. |
|
| Back to top |
|
 |
openldev Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 386 Location: Fairfax, Virginia
|
Posted: Sun May 06, 2007 2:50 pm Post subject: |
|
|
| You can only pass a single pointer in the last parameter of g_signal_connect(). To pass more than one pointer of data, you should create a structure that holds all of the data. |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group CodeBB 1.0 Beta 2
|