Re: Simple boxing



On Wed, Nov 03, 2004 at 01:20:54AM +0100, Gabriel de Perthuis wrote:
> I'm using a GtkTreeModel and I'd like to add some columns (that I won't
> display) with some private data. I need a SOME_TYPE macro, so I need a
> gobject class for this.
> Writing it is annoying, even if I use gob.
> Is there a wrapper class that allows me to simply use a gpointer? Are
> there memory management problems I should be aware of if I write one, or
> is a g_free enough?

You can use a pointer -- with G_TYPE_POINTER column type.
In fact I often use G_TYPE_POINTER even for objects because
I don't like unreferencing them every time I fetch them from
model.

Yeti


--
Dynamic IP address is not a crime.



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