Re: CellRendererCombo example
- From: Murray Cumming <murrayc murrayc com>
- To: Bo Lorentsen <bl lue dk>
- Cc: gtkmm-list gnome org
- Subject: Re: CellRendererCombo example
- Date: Tue, 21 Nov 2006 15:14:29 +0100
On Tue, 2006-11-21 at 15:06 +0100, Bo Lorentsen wrote:
> Murray Cumming wrote:
>
> > Yes, and you can tell the CellRendererCombo what column is the string
> > column by setting the text_column property:
> I tried that in the test example you did send to me (that otherwise
> worked just nicely), but got this error :
>
> 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 ?
It works for me. I just changed
#ifdef GLIBMM_PROPERTIES_ENABLED
pRenderer->property_text_column() = 0;
#else
pRenderer->set_property("text_column", 0);
#endif
to
#ifdef GLIBMM_PROPERTIES_ENABLED
pRenderer->property_text_column() = 1;
#else
pRenderer->set_property("text_column", 1);
#endif
Of course, there is no text in the second column. The second column
shouldn't really be in the example anyway, but I guess I plan to use it
to show that difficult editing_started technique.
--
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]