GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

g_signal_connect

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
aliov
Familiar Face


Joined: 06 May 2007
Posts: 7

PostPosted: Sun May 06, 2007 2:00 pm    Post subject: g_signal_connect Reply with quote

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: 372
Location: State College, Pennsylvania

PostPosted: Sun May 06, 2007 2:50 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP