column's width



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all

I had a TreeView with several columns, and I got the columns width
inside a loop to create a document for print it.

I'm using this TreeModel:
file:///usr/share/doc/libgtkmm-2.4-doc/tutorial/html/ch08s07.html#id2516088

To get the columns and the columns width I use (probably is there a
better way to do it, so if you can provide it I would thank you):

Gtk::TreeView::Column* cols[14];
for (x=0;x < 13;x++){
       cols[x] = treeview->get_column (x);
       if (cols[x]) {
               cout << "col[" << x << "]: " << cols[x]->get_width() <<
endl;
       }
}

This piece of code has been working some months ago, but right now I get
0 pixels.

I don't know which is exactly the problem, since it has been working before.

If someone can help me, thank you.
cheers.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDBfc0R/FJErz2vpwRAvQZAJ0SA3t/1gC9PtVPqXaG2zosDStSOQCeOMbL
qUxae1sMAZqdYIJXVjHOWeM=
=phnq
-----END PGP SIGNATURE-----



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