GNOME Bugzilla – Bug 143710
combo entry completion keeps adding cell renderers when you set model
Last modified: 2009-08-15 18:40:50 UTC
The first time I set the model for the combo box and the entry completion, it works as expected. Every time after that, the combo shows the drop down list correctly, and the completion text drop down appears to show concatenated columns. The entry completion looks like this after on the 2nd or more setting of the model: +----------------------------+ | 1 | +----------------------------+ | 123456789 123456789 | | 111111111 111111111 | | . | | . | +----------------------------+
Created attachment 28341 [details] Test case to show this bug.
Martyn, this is not a bug, but the consequence of an unfortunate choice in the entry completion api. gtk_entry_completion_set_text_column() adds a cell renderer, so you can't use it repeatedly. Just move the set_text_column() call in the branch of the if where the completion is created, and all should be well. In 2.6 we'll add a "text_column" property which you can set without adding a cell renderer...
Ah great, that works perfectly now. I thought it might be a misuse issue :)