Re: [gtk-list] Re: gtk--: connected methods with args




Pointers should work.  I have passed pointers to structs through
many times.  The only thing that I don't think will
work is references.  But beyond that cbdata was intended for
passing all sorts of data.

However, there are some type restrictions on callback data.  The
type of the call back data must match the type of the last argument
of the function being connected.  The connect function are very
picky about these things.  (They were designed to be)  There has
been some discussion about creating "flexible" connections as
well as perhaps allow for derived connection and signal classes,
but this has been held off til gtk-- 1.0 is complete.

Hope this helps.

--Karl



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