wrong_layout. correct deactivate

This commit is contained in:
Denis Fomin
2010-09-25 23:04:42 +04:00
parent 36cd60c5b4
commit dbed5bbce2
2 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
[info]
name: Wrong Layout
short_name: Wrong Layout
version: 0.1
version: 0.1.1
description: Press alt+r to convert chars typed in wrong layout Rus<>Eng
authors: Denis Fomin <fominde@gmail.com>
homepage: http://trac-plugins.gajim.org/wiki/WrongLayoutPlugin

View File

@@ -75,7 +75,8 @@ class Base(object):
self.chat_control.handlers[self.id_] = self.chat_control.msg_textview
def disconnect_from_chat_control(self):
self.chat_control.handlers[self.id_].disconnect(self.id_)
if self.chat_control.msg_textview.handler_is_connected(self.id_):
self.chat_control.msg_textview.disconnect(self.id_)
def mykeypress_event(self, widget, event):
if event.keyval == gtk.keysyms.r or event.keyval == 1739: