Re: [gtk-list] Re: Gtk and the scripting languages of the world



On 24 Aug 1997, Marius Vollmer wrote:

> Data set with gtk_object_set_typed_data cannot be retrieved with
> gtk_object_get_data, because the type information will be lost.

This can probably be dealt with by supporting an "other" type, with one or
two free slots in the ArgType union for the type creator to add its own
data (like a Perl SV*). The problem of multiple pieces of code reusing the
"other" slot could be solved by having a Gtk function to allocate a new
"other" type code (just return an incremented static int).

The only remaining problem is, again, deallocation of these objects. There
must be some deallocation callback invoked when the object is destroy and
thus the data is erased.

-- 
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)




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