Re: CellRendererCombo example
- From: Bo Lorentsen <bl lue dk>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list gnome org
- Subject: Re: CellRendererCombo example
- Date: Tue, 21 Nov 2006 15:06:00 +0100
Murray Cumming wrote:
I tried that in the test example you did send to me (that otherwise
worked just nicely), but got this error :
Yes, and you can tell the CellRendererCombo what column is the string
column by setting the text_column property:
Gtk-CRITICAL **: gtk_combo_box_entry_new_with_model: assertion
`text_column < gtk_tree_model_get_n_columns (model)' failed
when setting :
pRenderer->property_text_column() = 1;
Or am i missing something ?
And the signal_edited on CellRendererCombo, still just carries a string
and not an integer.
To have multiple "columns" of data in the CellRenderCombo's drop-down
list, you have to do some extra magic in the editing_started signal
handler, so you can use pack_start() to add another CellRenderer into
the underlying ComboBox.
But I can live with that for now, I have a few more issues to worry about.
Thanks for your help.
] [Thread Prev