[empathy: 145/148] Format contact information when hashing



commit b2a7b3d8d9f69f611d7c4ffc1df298bf33de03ff
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Jun 1 17:17:50 2009 +0200

    Format contact information when hashing
---
 src/empathy-ft-manager.c |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/empathy-ft-manager.c b/src/empathy-ft-manager.c
index 603e0ca..bc4f2a7 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);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]