Apply widget style to editable entry
The Char widget with autocomplete should apply the style on the entry widget instead of the ComboBoxEntry. issue6620 review41431002
This commit is contained in:
1 parent
28ff257d25
commit
57500675c3
1 file changed
+4
-3
@@ -142,11 +142,12 @@ class Char(Widget, TranslateMixin, PopdownMixin):
|
||||
sensitivity = {True: gtk.SENSITIVITY_OFF, False: gtk.SENSITIVITY_AUTO}
|
||||
super(Char, self)._readonly_set(value)
|
||||
if self.autocomplete:
|
||||
self.entry.get_child().set_editable(not value)
|
||||
entry_editable = self.entry.get_child()
|
||||
self.entry.set_button_sensitivity(sensitivity[value])
|
||||
else:
|
||||
self.entry.set_editable(not value)
|
||||
set_widget_style(self.entry, not value)
|
||||
entry_editable = self.entry
|
||||
entry_editable.set_editable(not value)
|
||||
set_widget_style(entry_editable, not value)
|
||||
if value and CONFIG['client.fast_tabbing']:
|
||||
self.widget.set_focus_chain([])
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user