Danny Backx wrote:
On Tue, 2003-11-04 at 04:28, Russell Shaw wrote:

I wanted to make an independent copy of a pixmap (GdkPixmap in gdk).
I found the whole of gtk/gdk has a fundamental flaw. All the toolkit
is based around the GObject way of making a class object. However,
there is no way to do a deep copy of objects because no one has
implemented any recursive copy functions in the classes.

Now i'm wondering whether it's easier to learn motif/lesstif, or
hack the functionality into gdk/gtk myself. I don't know yet if the
object system in motif can do deep-copies either.

What's a deep copy ?

If you want to make an independant copy of an object that contains pointers to other objects, the copy process has to do a bunch of new mallocs and copy the data over, so the new object contains the same data as the old object, but the pointers are new. C++ and python have provision for those copy-constructors.

_______________________________________________
Lesstif mailing list
[EMAIL PROTECTED]
https://terror.hungry.com/mailman/listinfo/lesstif

Reply via email to