Hmm. I'm starting to think that this doesn't really have as much to do
with the TreeModel as it doesn the ComboBox. I just tried making a test
ComboBox with the sample custom TreeModel included with the gtkmm
tarball. The following code results in the same problem as I am having
with my custom TreeModel. The rows all show, but they are blank. Does
this ring anyones bells?
#include "exampletreemodel.h"
int main(int argc, char *argv[])
{
Gtk::Main kit(argc, argv);
Gtk::Window window;
Glib::RefPtr<Gtk::TreeModel> tree(ExampleTreeModel::create());
Gtk::ComboBox comboBox(tree);
comboBox.pack_start(Gtk::TreeModelColumn<Glib::ustring>());
window.add(comboBox);
window.show_all();
Gtk::Main::run(window);
return 0;
}
--
Eddie Carle
This message has been signed with an RFC4880 signature. It is
guaranteed to have originated from Eddie Carle and its contents
can be validated against its signature.
Attachment:
signature.asc
Description: This is a digitally signed message part