Disable HTML widget buttons when readonly

issue10737
review334951002
(grafted from f7d8d964d69dc1b6a17725553e41a1924e7e0031)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2021-09-19 00:06:54 +02:00
1 parent 8c9f8ecc3f
commit 65121322c0
1 file changed
+2 -1
@@ -159,7 +159,8 @@ class HTML(Widget, TranslateMixin):
def _readonly_set(self, value):
super()._readonly_set(value)
self.button.set_sensitive(not value)
for button in self.widget.get_children():
button.set_sensitive(not value)
def translate_dialog(self, languages):
languages = {l['name']: l['code'] for l in languages}