aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-ft-manager.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-06-01 23:17:50 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-06-01 23:55:34 +0800
commitb2a7b3d8d9f69f611d7c4ffc1df298bf33de03ff (patch)
tree24da4c0afcebc209465e5a912dea1a935b11a280 /src/empathy-ft-manager.c
parente2fa5b38c29e8b2c1572ff477ef602b739791f57 (diff)
downloadgsoc2013-empathy-b2a7b3d8d9f69f611d7c4ffc1df298bf33de03ff.tar
gsoc2013-empathy-b2a7b3d8d9f69f611d7c4ffc1df298bf33de03ff.tar.gz
gsoc2013-empathy-b2a7b3d8d9f69f611d7c4ffc1df298bf33de03ff.tar.bz2
gsoc2013-empathy-b2a7b3d8d9f69f611d7c4ffc1df298bf33de03ff.tar.lz
gsoc2013-empathy-b2a7b3d8d9f69f611d7c4ffc1df298bf33de03ff.tar.xz
gsoc2013-empathy-b2a7b3d8d9f69f611d7c4ffc1df298bf33de03ff.tar.zst
gsoc2013-empathy-b2a7b3d8d9f69f611d7c4ffc1df298bf33de03ff.zip
Format contact information when hashing
Diffstat (limited to 'src/empathy-ft-manager.c')
-rw-r--r--src/empathy-ft-manager.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/empathy-ft-manager.c b/src/empathy-ft-manager.c
index 603e0ca58..bc4f2a7b7 100644
--- a/src/empathy-ft-manager.c
+++ b/src/empathy-ft-manager.c
@@ -662,7 +662,7 @@ static void
ft_handler_hashing_started_cb (EmpathyFTHandler *handler,
EmpathyFTManager *manager)
{
- char *message;
+ char *message, *first_line, *second_line;
GtkTreeRowReference *row_ref;
DEBUG ("Hashing started");
@@ -675,15 +675,21 @@ ft_handler_hashing_started_cb (EmpathyFTHandler *handler,
row_ref = ft_manager_get_row_from_handler (manager, handler);
g_return_if_fail (row_ref != NULL);
+ first_line = ft_manager_format_contact_info (handler);
+
if (empathy_ft_handler_is_incoming (handler))
- message = g_strdup_printf (_("Checking integrity of \"%s\""),
+ second_line = g_strdup_printf (_("Checking integrity of \"%s\""),
empathy_ft_handler_get_filename (handler));
else
- message = g_strdup_printf (_("Hashing \"%s\""),
+ second_line = g_strdup_printf (_("Hashing \"%s\""),
empathy_ft_handler_get_filename (handler));
+ message = g_strdup_printf ("%s\n%s", first_line, second_line);
+
ft_manager_update_handler_message (manager, row_ref, message);
+ g_free (first_line);
+ g_free (second_line);
g_free (message);
}