Re: GtkTreeModelMapping



Alexander Larsson <alla lysator liu se> writes:
> I was gonna put some abstract types in a GtkTreeView to view them, only
> i didn't want to copy strings from it and place in a GtkListStore, so I
> wrote a TreeModel that takes another model and generates a new one where
> the columns can be specified as transformations of the data in the
> original model.
> 
> For each column in the model a (src_column, col_type, map_func, user_data)
> tupel is used to map the value, where the map_func is of the type:
> 
> typedef void (* GValueMapFunc) (const GValue *a,
> 				GValue *b,
> 				gpointer user_data);
> 
> 
> I think this is of general interest. Comments?
> 

Put it in Bugzilla for 2.0 API freeze, I'd be tempted to say it
shouldn't go in for 2.0 though. (The tree is still pretty unfinished,
and adding more stuff to it seems like a bad idea. I'd like to lose
TreeModelSimple also.)

Havoc




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