Commit dbed5bbc authored by Dicson's avatar Dicson

wrong_layout. correct deactivate

parent 36cd60c5
[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
......
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment