GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Apr 25, 2014 5:08 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: g_signal_connect
PostPosted: Sun May 06, 2007 2:00 pm 
Offline
Familiar Face

Joined: Sun May 06, 2007 12:12 pm
Posts: 14
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 06, 2007 2:50 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
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.

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group