From 21d0ca72a27d923fbca838ea5f6d6305954a7272 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Wed, 17 Aug 2005 15:35:36 +0000 Subject: [PATCH] real_jid is changed to sender/receiver_name --- src/filetransfers_window.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/filetransfers_window.py b/src/filetransfers_window.py index 64600bcd1..257f9ac90 100644 --- a/src/filetransfers_window.py +++ b/src/filetransfers_window.py @@ -120,9 +120,9 @@ class FileTransfersWindow: helpers.convert_bytes(file_props['size']) if file_props['type'] == 'r': jid = str(file_props['sender']).split('/')[0] - real_jid = gajim.get_first_contact_instance_from_jid( + sender_name = gajim.get_first_contact_instance_from_jid( file_props['tt_account'], jid).name - sender = gtkgui_helpers.escape_for_pango_markup(real_jid) + sender = gtkgui_helpers.escape_for_pango_markup(sender_name) else: if float(gajim.version) > 0.8: sender = 'You' # FIXME _(gettext this) @@ -132,9 +132,9 @@ class FileTransfersWindow: sectext += '\n\t' +_('Recipient: ') if file_props['type'] == 's': jid = str(file_props['receiver']).split('/')[0] - real_jid = gajim.get_first_contact_instance_from_jid( + receiver_name = gajim.get_first_contact_instance_from_jid( file_props['tt_account'], jid).name - recipient = gtkgui_helpers.escape_for_pango_markup(real_jid) + recipient = gtkgui_helpers.escape_for_pango_markup(receiver_name) else: if float(gajim.version) > 0.8: recipient = 'You' # FIXME _(gettext this) @@ -146,7 +146,8 @@ class FileTransfersWindow: sectext += '\n\t' +_('Saved in: %s') % \ gtkgui_helpers.escape_for_pango_markup(path) dialog = dialogs.HigDialog(None, _('File transfer completed'), sectext, - gtk.STOCK_DIALOG_INFO, [[_('_Open Containing Folder'), gtk.RESPONSE_ACCEPT], [ gtk.STOCK_OK, gtk.RESPONSE_OK ]]) + gtk.STOCK_DIALOG_INFO, [[_('_Open Containing Folder'), gtk.RESPONSE_ACCEPT], + [ gtk.STOCK_OK, gtk.RESPONSE_OK ]]) button = dialog.get_button(1) if gtk.gtk_version >= (2, 6, 0) and gtk.pygtk_version >= (2, 6, 0): button.set_image(gtk.image_new_from_stock(