use focus-out-event and not changed
This commit is contained in:
parent
506e6752ea
commit
04d6b58dc3
1 changed files with 3 additions and 2 deletions
|
@ -111,7 +111,8 @@ class VcardWindow:
|
||||||
# if we are editing our own vcard publish button should publish
|
# if we are editing our own vcard publish button should publish
|
||||||
# vcard data we have typed including nickname, it's why we connect only
|
# vcard data we have typed including nickname, it's why we connect only
|
||||||
# here (when we see someone else's vcard)
|
# here (when we see someone else's vcard)
|
||||||
self.nickname_entry.connect('changed', self.on_nickname_entry_changed)
|
self.nickname_entry.connect('focus-out-event',
|
||||||
|
self.on_nickname_entry_focus_out_event)
|
||||||
|
|
||||||
self.xml.signal_autoconnect(self)
|
self.xml.signal_autoconnect(self)
|
||||||
self.window.show_all()
|
self.window.show_all()
|
||||||
|
@ -139,7 +140,7 @@ class VcardWindow:
|
||||||
gajim.config.set_per('accounts', self.account, 'no_log_for',
|
gajim.config.set_per('accounts', self.account, 'no_log_for',
|
||||||
' '.join(no_log_for))
|
' '.join(no_log_for))
|
||||||
|
|
||||||
def on_nickname_entry_changed(self, widget):
|
def on_nickname_entry_focus_out_event(self, widget, event):
|
||||||
'''Save contact information and update
|
'''Save contact information and update
|
||||||
the roster item on the Jabber server'''
|
the roster item on the Jabber server'''
|
||||||
new_name = self.nickname_entry.get_text().decode('utf-8')
|
new_name = self.nickname_entry.get_text().decode('utf-8')
|
||||||
|
|
Loading…
Add table
Reference in a new issue