Set can-focus on button if readonly

This commit is contained in:
Cédric Krier committed 2008-10-23 12:02:00 +02:00
1 parent cdcfe1d52c
commit 476164b7c6
1 file changed
+1
@@ -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()