From 476164b7c6571077e206fb7d955de034e2dfc983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 23 Oct 2008 12:02:00 +0200 Subject: [PATCH] Set can-focus on button if readonly --- tryton/gui/window/view_form/view/form_gtk/url.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tryton/gui/window/view_form/view/form_gtk/url.py b/tryton/gui/window/view_form/view/form_gtk/url.py index 880c3565e3..897d38a468 100644 --- a/tryton/gui/window/view_form/view/form_gtk/url.py +++ b/tryton/gui/window/view_form/view/form_gtk/url.py @@ -64,6 +64,7 @@ class URL(WidgetInterface): self.entry.hide() else: self.entry.show() + self.button.set_property('can-focus', value) def button_clicked(self, widget): value = self.entry.get_text()