Copying widgets



Ok seeing as you can't change the number of columns in a Clist once it's
created I have to create a new widget and then copy that one to the old.

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.

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

Cheers

Jim

-- 
James Vanns BSc (Hons) MCP
Software Engineer (UNIX / C)
Galleon Ltd.




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