[818] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

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

daemon@ATHENA.MIT.EDU (Kenneth Albanowski)
Sun Aug 24 15:03:19 1997

Date: Sun, 24 Aug 1997 15:03:04 -0400 (EDT)
From: Kenneth Albanowski <kjahds@kjahds.com>
To: gtk-list@redhat.com
In-Reply-To: <87u3ggapsu.fsf@zagadka.ping.de>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

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)


--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post