handle the click on toggle_gpg_encryption menuitem
This commit is contained in:
parent
601e7558e4
commit
e852c9a2b0
|
@ -451,6 +451,11 @@ class TabbedChatWindow(chat.Chat):
|
||||||
# send the message
|
# send the message
|
||||||
self.send_message(message)
|
self.send_message(message)
|
||||||
|
|
||||||
|
def on_toggle_gpg_menuitem_activate(self, widget):
|
||||||
|
jid = self.get_active_jid()
|
||||||
|
tb = self.xmls[jid].get_widget('gpg_togglebutton')
|
||||||
|
tb.set_active(not tb.get_active())
|
||||||
|
|
||||||
def remove_tab(self, jid):
|
def remove_tab(self, jid):
|
||||||
if time.time() - gajim.last_message_time[self.account][jid] < 2:
|
if time.time() - gajim.last_message_time[self.account][jid] < 2:
|
||||||
dialog = dialogs.ConfirmationDialog(
|
dialog = dialogs.ConfirmationDialog(
|
||||||
|
|
Loading…
Reference in New Issue