[Glade-users] Re: Destroy and rebuild a treeview widget

Le lundi 05 juin 2006 ? 19:36 -0400, Tristan Van Berkom a ?crit :

You must call gtk_widget_show() on widgets that you want to be visible
(or set the visible property to true in glade)... or call 
on some parent in the heirarchy (that may be the problem).

        I tried gtk_widget show all on every parent widget in the hierarchy,
all in glade is set to "visible", but still no treeview... I've just a
white scrolledwindow where nothing happens...


PS: Thanks for the explanation on the memory leak ;)

 liststore=gtk_list_store_newv (cols, types);

 g_free (types);


Hmmm seems that you are leaking the liststore every time, unreffing
it here should pass ownership of the model to the treeview... so that
next time you set the model the last model will be finalized.


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