[Glade-users] Re: Destroy and rebuild a treeview widget
Ruch Guillaume
guillaume at ruch.infini.fr
Tue Jun 6 15:54:13 EDT 2006
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
> gtk_widget_show_all()
> 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...
G.Ruch
>
PS: Thanks for the explanation on the memory leak ;)
> > liststore=gtk_list_store_newv (cols, types);
> >
> > g_free (types);
> >
> > gtk_tree_view_set_model(GTK_TREE_VIEW(treeview),
> > GTK_TREE_MODEL(liststore));
> >
> >
> 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.
>
> Cheers,
> -Tristan
>
More information about the Glade-users
mailing list