Re: Adding Columns to Gtk::TreeView



Hi,
I'm into trouble again.

Gtk::ListStore has to be initialized with Gtk::TreeModelColumnRecord. (hence the number of columns should be specified at compile time itself), using Gtk::ListStore::create() function

how can i initialize gtk::liststore with out any column information. (the default constructor is protected).

consider 2 cases.

1. I've to add n number of columns but every column is of type string only, in that case, i can initialize some m columns all of type string (m is a huge number), But if i accidentally add m+1 th column, then i'm in soup.

2. If the n columns are of different types, then i cannot initialize the list store with some m columns.


Am i missing something here?

Surya


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