]> git.0d.be Git - empathy.git/commitdiff
Format contact information when hashing
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 1 Jun 2009 15:17:50 +0000 (17:17 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 1 Jun 2009 15:55:34 +0000 (17:55 +0200)
src/empathy-ft-manager.c

index 603e0ca5818400ef82a7a4793392b0be028bacb8..bc4f2a7b70bf16e42964e1b93bd8e172845d00b1 100644 (file)
@@ -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);
 }