Re: [gnome-db] GdaDataModel to GtkTreeModel ?



On Sun, 2004-01-11 at 18:13 +0100, Stephane Wirtel wrote:
> Hi all, 
> 
> I want to create a GtkTreeModel from a GdaDataModel.
> 
> Is is possible ? if yes, how can i do it ?
> 
yes, it's possible, gnome-db-model does that, although it gets a data
model and returns a tree view. You probably can split the GtkTreeModel
creation code out to another function.

> 
> Because, i test the
> 
> GtkTreeView *gnome_db_model_to_tree_view (GdaDataModel *model);
> 
> and i want to do an update of my GtkTreeView, but i don't know how to do
> it.
> 
you want to update the GtkTreeView? What do you mean? The tree view
returned by gnome_db_model_to_tree_view should already listen to any
change made to the GdaDataModel.

cheers




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