Re: Update a GtkTreeView
- From: murrayc t-online de (Murray Cumming)
- To: Emmanuel Di Pretoro <edipreto skynet be>
- Cc: gtk-app-devel-list gnome org, gtk-list <gtk-list gnome org>
- Subject: Re: Update a GtkTreeView
- Date: 27 Jan 2003 13:26:40 +0100
On Sun, 2003-01-26 at 13:24, Emmanuel Di Pretoro wrote:
> > My list is sorted by name of authors, so, must I clear my
> > GtkListStore, and recreate it ?
>
> OK, hereby the found solution :
>
> When I've updated my database, I call 'gtk_tree_view_set_model' with as
> args my GtkTreeView and a function creating a new model.
>
> It works, but I don't know if it's really 'clean'. How can I free the
> old model ?
Tree models are reference counted.
--
Murray Cumming
murray usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]