Reviewers: ,


Please review this at http://codereview.tryton.org/169003/

Affected files:
  M tryton/gui/window/view_form/view/list_gtk/parser.py


Index: tryton/gui/window/view_form/view/list_gtk/parser.py
===================================================================
--- a/tryton/gui/window/view_form/view/list_gtk/parser.py
+++ b/tryton/gui/window/view_form/view/list_gtk/parser.py
@@ -744,17 +744,18 @@ class Selection(Char):
         return self._selection.get(text, False), text

     def editing_started(self, cell, editable, path):
         store = self.treeview.get_model()
         record = store.get_value(store.get_iter(path), 0)
         self.update_selection(record)
         model = self.get_model(self.selection)
         editable.set_model(model)
-        editable.set_text_column(0)
+        if 'set_text_column' in editable:
+            editable.set_text_column(0)
         completion = gtk.EntryCompletion()
         #Only available in PyGTK 2.6 and above.
         if hasattr(completion, 'set_inline_selection'):
             completion.set_inline_selection(True)
         completion.set_model(model)
         editable.get_child().set_completion(completion)
         completion.set_text_column(0)
         return False


--
[email protected] mailing list

Reply via email to