[Glade-devel] Passing user data to signal handler



David,

If signal_connect_object is called then is the following function
definition correct?

g_signal_connect_object (gpointer instance,
                         const gchar *detailed_signal,
                         GCallback c_handler,
                         gpointer gobject,
                         GConnectFlags connect_flags);

It was my understanding that the 'instance' was the 'glade name' used in
to reference to the specific widget in my Glade application and gobject 
was any data I wished to pass to the handler. So if I populate the 'Object' 
field this would not reference to the 'glade name' but to a string representation
of an object?

Joe


On Tue, 2004-02-03 at 16:45, David M. Cook wrote:
On Tue, Jan 27, 2004 at 10:39:27PM -0500, Billy O'Connor wrote:

Joe Scaduto <scooch noggle biz> writes:
'Handler' 'Object' and 'After' fields.  Is there a way to pass data to a
signal handler using Glade 2? 

Isn't the Object the data?

No, this does a signal_connect_object.  You reference an object by it's
"glade name" in the dialog, so it needs to be something that exists in your
layout.  It's not data (e.g. a string or number).  Being able to pass in a
string or number would be very useful.

Dave Cook
_______________________________________________
Glade-devel maillist  -  Glade-devel lists ximian com
http://lists.ximian.com/mailman/listinfo/glade-devel





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]