Re: Can not get sizeof GtkTreePath

On Monday 19 January 2004 01:41, Dimitar Haralanov wrote:

 Everytime when I try to do sizeof (GtkTreePath), I get

      sizeof applied to an incomplete type

Is GtkTreePath somehow hidden from the compiler so it doesn't know what
the structure is?

The structure is opaque from what I can see, ie. only the functions in 
gtktreemodel.c know about its fields and its size. I suppose that is because 
you'd need to make a 'deep' copy of the structure anyway, as it allocates 
memory internally.

You can copy an existing tree path with gtk_tree_path_copy() though.

What do you need the size for?


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