[Glade-devel] Passing user data to signal handler

David M. Cook dave@davidcook.org
Tue, 3 Feb 2004 13:45:25 -0800


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