From 113cd51c11301d110c050b71d8c8b92a78af8f01 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 28 Feb 2018 21:26:08 +0100 Subject: [PATCH] Set label of link context menu according to kind mail OR jid --- gajim/conversation_textview.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gajim/conversation_textview.py b/gajim/conversation_textview.py index 11075612c..e3e8f4976 100644 --- a/gajim/conversation_textview.py +++ b/gajim/conversation_textview.py @@ -703,7 +703,7 @@ class ConversationTextview(GObject.GObject): id_ = childs[1].connect('activate', self.on_open_link_activate, kind, text) self.handlers[id_] = childs[1] - childs[2].hide() # copy mail address + childs[2].hide() # copy mail/jid address childs[3].hide() # open mail composer childs[4].hide() # jid section separator childs[5].hide() # start chat @@ -740,10 +740,12 @@ class ConversationTextview(GObject.GObject): id_ = childs[0].connect('activate', self.on_copy_link_activate, 'xmpp:' + text) self.handlers[id_] = childs[0] - childs[2].hide() # copy mail address + childs[0].set_label(_('Copy JID')) + childs[2].hide() # copy mail/jid address childs[3].hide() # open mail composer childs[4].hide() # jid section separator elif kind == 'mail': + childs[2].set_label(_('Copy Email Address')) childs[4].hide() # jid section separator childs[5].hide() # start chat childs[6].hide() # join group chat