After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 143710 - combo entry completion keeps adding cell renderers when you set model
combo entry completion keeps adding cell renderers when you set model
Status: VERIFIED NOTABUG
Product: gtk+
Classification: Platform
Component: Widget: GtkComboBox
2.4.x
Other All
: Normal major
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-06-04 13:48 UTC by Martyn Russell
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case to show this bug. (1.52 KB, application/x-tar)
2004-06-04 13:51 UTC, Martyn Russell
Details

Description Martyn Russell 2004-06-04 13:48:24 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   |
 	| .                          |
 	| .                          |
 	+----------------------------+
Comment 1 Martyn Russell 2004-06-04 13:51:02 UTC
Created attachment 28341 [details]
Test case to show this bug.
Comment 2 Matthias Clasen 2004-06-04 13:57:51 UTC
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...
Comment 3 Martyn Russell 2004-06-04 14:03:01 UTC
Ah great, that works perfectly now.
I thought it might be a misuse issue :)