Fix crash when capslock pressed while editing a tab title

Ensure the 'focus out' event is caught by gtkentry.

Fixes: lp #1313761
This commit is contained in:
bryce 2015-06-01 18:15:30 -07:00
parent 30af9a3ed0
commit 0cf2b98a0f
1 changed files with 3 additions and 1 deletions

View File

@ -108,7 +108,9 @@ class EditableLabel(gtk.EventBox):
self._entry = None self._entry = None
self.show_all () self.show_all ()
self.emit('edit-done') self.emit('edit-done')
return(True) # Returning False will ensure that focus out event will be sent to
# GtkEntry so it will disconnect 'state-changed' handler
return(False)
return(False) return(False)
def _on_entry_activated (self, widget): def _on_entry_activated (self, widget):