[Xfc-dev] A little help
Benedikt Meurer
benedikt.meurer at unix-ag.uni-siegen.de
Wed May 3 01:33:05 CEST 2006
Ricardo M wrote:
> Thank you Benedikt
>
> I've made it, and works!
>
> But what i'm trying to make is a dinamically treeview
> to show the content of a different tables, that's why
> i wanted to use the tutorial approach.
You'll need different Gtk::ListStores for each table then (and a
different Gtk::TreeViewColumns setup). To dynamically allocate the
columns, just use:
Gtk::ListStore* create_store (int n_columns)
{
GType types[n_columns];
for (int n = 0; n < n_columns; ++n)
types[n] = G_TYPE_STRING;
return new Gtk::ListStore (n_columns, types);
}
> Thanks!
Benedikt
More information about the Xfc-dev
mailing list