Re: Copying widgets



>This does not work either :-(
>oldclist = newclist; /* doesn't work */
>g_memmove does not work.
>gtk_widget_destory (oldlist); oldclist = newclist;
>gtk_widget_show(oldlist); /* does not work */
>
>If I have created a new Clist how am I meant to get the old list to
>point to that one? OOP (and GTK+ is object oriented, yet C based is it
>not!?) _theory_ says you can set one object to the value/address of
>another.

it does, but it doesn't say that you can use the `=' operator to do it.

>Please, no long discussions on OO theory - just an answer to the GTK+
>question. Any help on the GTK+ theory appreciated however.

there are generally no deep copy constructors for GTK+ objects.



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