make completion listore correctly filled with text cellrenderer
This commit is contained in:
parent
499bbd9fcd
commit
00bbfc2475
1 changed files with 3 additions and 0 deletions
|
@ -113,6 +113,9 @@ def get_completion_liststore(entry):
|
||||||
completion.pack_start(render_pixbuf, False)
|
completion.pack_start(render_pixbuf, False)
|
||||||
completion.add_attribute(render_pixbuf, 'pixbuf', 0)
|
completion.add_attribute(render_pixbuf, 'pixbuf', 0)
|
||||||
|
|
||||||
|
render_text = Gtk.CellRendererText()
|
||||||
|
completion.pack_start(render_text, True)
|
||||||
|
completion.add_attribute(render_text, 'text', 1)
|
||||||
completion.set_property('text_column', 1)
|
completion.set_property('text_column', 1)
|
||||||
completion.set_model(liststore)
|
completion.set_model(liststore)
|
||||||
entry.set_completion(completion)
|
entry.set_completion(completion)
|
||||||
|
|
Loading…
Add table
Reference in a new issue