Re: GtkCellRendererCombo example?



Matthias wrote:
> What problem are you seeing ?

I have it working now,
http://cvs.gnome.org/viewcvs/gtkmm/examples/book/treeview/combo_renderer/

and I really like it's simplicity compared to the hacky thing that I've
been using so far.

However, I did notice:

1. It doesn't work at all unless you set the text_column property of the
renderer. I think that it should probably use the first text column that
it finds in the model, and it should warn if it doesn't find one.

2. I can't bind a GtkTreeModel* model column to the cell renderer's
"model" property, maybe because the base type is reported as
G_TYPE_INTERFACE instead of G_TYPE_OBJECT, in
_gtk_tree_data_list_value_to_node(). Maybe we could assuming that all
interfaces are gobjects?

3. There's no way to have a Combo cell renderer that has multiple columns,
such as the choice and a description of the choice. But I guess this would
require access to the whole GtkComboBox API.


Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com



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