Re: Adding GtkTreeStore columns after instantiation.



murrayc t-online de (Murray Cumming) writes: 
> I was about to start ranting about this, wheeling about my standard
> example of the grid widget that shows the results of lots of various SQL
> queries. But then I realised that, if the nature of the data changes,
> with different numbers and types of columns, then the Model itself
> should probably change.

Should also realize that the tree view isn't a grid widget, and we'll
be adding a grid widget later. ;-)

> So is it possible to change the model used by a GtkTreeView after
> instantiation? Will the TreeView respond automatically, suddenly showing
> the new columns and rows properly?

Yep. 

Havoc



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