From a487d973a7a765d05066260baad668b227aa95cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 15 Apr 2011 14:42:19 +0200 Subject: [PATCH] Fix color widget for Char with autocomplete --- tryton/gui/window/view_form/view/form_gtk/char.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tryton/gui/window/view_form/view/form_gtk/char.py b/tryton/gui/window/view_form/view/form_gtk/char.py index bc5d7da32d..1fca396a46 100644 --- a/tryton/gui/window/view_form/view/form_gtk/char.py +++ b/tryton/gui/window/view_form/view/form_gtk/char.py @@ -41,6 +41,8 @@ class Char(WidgetInterface): self.widget.pack_start(self.entry) def _color_widget(self): + if self.autocomplete: + return self.entry.get_child() return self.entry def grab_focus(self):