From aee565cad9693bf31eadfe1287c510d71204fa96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 25 Oct 2015 09:57:16 +0100 Subject: [PATCH] Remove unused button attribute from Char widget since changeset 89af0b300c3f, this button attribute is no more used. --- tryton/gui/window/view_form/view/form_gtk/char.py | 3 --- 1 file changed, 3 deletions(-) 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 140ec6d1b0..aec6ba9706 100644 --- a/tryton/gui/window/view_form/view/form_gtk/char.py +++ b/tryton/gui/window/view_form/view/form_gtk/char.py @@ -42,7 +42,6 @@ class Char(Widget, TranslateMixin, PopdownMixin): expand, fill = False, False self.widget.pack_start(self.entry, expand=expand, fill=fill) - self.button = None if attrs.get('translate'): self.entry.set_icon_from_stock(gtk.ENTRY_ICON_SECONDARY, 'tryton-locale') @@ -139,8 +138,6 @@ class Char(Widget, TranslateMixin, PopdownMixin): self.entry.set_button_sensitivity(sensitivity[value]) else: self.entry.set_editable(not value) - if self.button: - self.button.set_sensitive(not value) if value and CONFIG['client.fast_tabbing']: self.widget.set_focus_chain([]) else: