Update the configuration when text entries change, not when they're activated

This commit is contained in:
Chris Jones 2010-04-13 12:52:16 +01:00
parent 909d424911
commit f05986fe72
2 changed files with 6 additions and 6 deletions

View File

@ -903,7 +903,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">&#x2022;</property>
<signal name="activate" handler="on_word_chars_entry_activate"/>
<signal name="changed" handler="on_word_chars_entry_changed"/>
</object>
<packing>
<property name="position">1</property>
@ -1274,7 +1274,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">&#x2022;</property>
<signal name="activate" handler="on_custom_command_entry_activate"/>
<signal name="changed" handler="on_custom_command_entry_changed"/>
</object>
<packing>
<property name="position">1</property>
@ -2719,7 +2719,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">&#x2022;</property>
<signal name="activate" handler="on_layout_profile_command_activate"/>
<signal name="changed" handler="on_layout_profile_command_changed"/>
</object>
<packing>
<property name="left_attach">1</property>

View File

@ -690,7 +690,7 @@ class PrefsEditor:
self.config['exit_action'] = value
self.config.save()
def on_custom_command_entry_activate(self, widget):
def on_custom_command_entry_changed(self, widget):
"""Custom command value changed"""
self.config['custom_command'] = widget.get_text()
self.config.save()
@ -712,7 +712,7 @@ class PrefsEditor:
self.config['cursor_shape'] = value
self.config.save()
def on_word_chars_entry_activate(self, widget):
def on_word_chars_entry_changed(self, widget):
"""Word characters changed"""
self.config['word_chars'] = widget.get_text()
self.config.save()
@ -1001,7 +1001,7 @@ class PrefsEditor:
"""A different profile has been selected for this item"""
self.layouteditor.on_layout_profile_chooser_changed(widget)
def on_layout_profile_command_activate(self, widget):
def on_layout_profile_command_changed(self, widget):
"""A different command has been entered for this item"""
self.layouteditor.on_layout_profile_command_activate(widget)