Re: clone object



Jens Luedicke said:
hi ...

I want to clone a Gtk2::ListStore object, because
I need an exact independent copy with all its values.

how can I do this?

so far as i know, there's no built-in way to do that.  however, it looks like
GtkTreeModel provides a get for every set, so you should be able to determine
the number and types of columns and then iterate over the rows, copying all
the values as you go.  you'll have to be careful to take real copies and
shallow copies as appropriate, yadda yadda yadda.


-- 
muppet <scott at asofyet dot org>



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