On Sun, 2007-04-29 at 02:16 -0500, Paul Davis wrote:
> Luis,
> 
> I haven't played extensively with this part of the API, but I did find
> this example:
> http://cvs.gnome.org/viewcvs/gtkmm/examples/book/treeview/combo_renderer/
> 
> HTH,
> Paul Davis

Thanks Paul,

I'm not quite doing as the example does, but I think it's mostly
equivalent. The problem is that the example does not say how to
initialize the combo box to show a particular element. I read up data
from file and depending on what I get I have to show a different item on
the combo box. The user can change it later, but I have to show on
initialization what I've got. What I think I need is a way to get the
underlying ComboBox out of the TreeView or the ListStore. I tried:
Glib::RefPtr<Gtk::ComboBox>((*iter)[m_Columns.m_readwrite])->set_active(i);
with Gtk::TreeModel::iterator iter;
but that produces a Sementation fault, probably because the cast is
actually invalid, but I can't find how to do it. I can't assign a string
to (*iter)[m_Columns.m_readwrite]) either. So if any one has an idea how
to just set the initial combo box, please let me know. I'm sure there is
an easy way to do it, I just can't figure it out.

Thanks

_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to