-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi again...
I have compiled this example: http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch08s07.html#id2500544 And I have added in examplewindow.cc, at the end of the constructor this line: for(guint i = 0; i < 2; i++) { Gtk::TreeView::Column* pColumn = m_TreeView.get_column(i); + std::cout << "pColumn.Width: " << pColumn->get_width() << std::endl; pColumn->set_reorderable(); } The output is, again, "0". I'm using: ii libgtkmm-2.4-1c2 2.6.2-1.1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtkmm-2.4-dev 2.6.2-1.1 C++ wrappers for GTK+ 2.4 (development files Just in case this help... Have I to set any extra parameter, or I'm missing something? I can't understand why it doesn't work. Any tip or help? > 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. _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDB4EfR/FJErz2vpwRAtJFAJ9B7gUUDiWEp2VaRvrmw+4ZCuJ3PACfRq6j k4NZIiFwtSCeJIJxjEZEG9U= =ncD5 -----END PGP SIGNATURE----- _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
