Name method more appropriate
This commit is contained in:
parent
3335482345
commit
020e4e0308
|
@ -422,10 +422,10 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
|
||||||
"%s-encryptiongroup" % self.contact.jid,
|
"%s-encryptiongroup" % self.contact.jid,
|
||||||
GLib.VariantType.new("s"),
|
GLib.VariantType.new("s"),
|
||||||
GLib.Variant("s", self.encryption or 'disabled'))
|
GLib.Variant("s", self.encryption or 'disabled'))
|
||||||
action.connect("change-state", self.activate_encryption)
|
action.connect("change-state", self.change_encryption)
|
||||||
self.parent_win.window.add_action(action)
|
self.parent_win.window.add_action(action)
|
||||||
|
|
||||||
def activate_encryption(self, action, param):
|
def change_encryption(self, action, param):
|
||||||
encryption = param.get_string()
|
encryption = param.get_string()
|
||||||
if encryption == 'disabled':
|
if encryption == 'disabled':
|
||||||
encryption = None
|
encryption = None
|
||||||
|
|
Loading…
Reference in New Issue