Index: composer/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/composer/ChangeLog,v
retrieving revision 1.754
diff -u -p -r1.754 ChangeLog
--- composer/ChangeLog	18 Sep 2006 17:21:36 -0000	1.754
+++ composer/ChangeLog	27 Sep 2006 11:09:12 -0000
@@ -1,3 +1,11 @@
+2006-09-27  Ushveen kaur <kushveen@novell.com>
+
+	** Fixes bug #341474
+
+	* e-msg-composer-attachment-bar.c: (size_to_string) : 
+	gnome_vfs_format_file_size_for_display used instead of manually
+	converting the size to string.
+	
 2006-09-18  Matthew Barnes  <mbarnes@redhat.com>
 
 	Fixes #351332
Index: composer/e-msg-composer-attachment-bar.c
===================================================================
RCS file: /cvs/gnome/evolution/composer/e-msg-composer-attachment-bar.c,v
retrieving revision 1.100
diff -u -p -r1.100 e-msg-composer-attachment-bar.c
--- composer/e-msg-composer-attachment-bar.c	25 May 2006 18:05:31 -0000	1.100
+++ composer/e-msg-composer-attachment-bar.c	27 Sep 2006 11:09:12 -0000
@@ -95,22 +95,7 @@ size_to_string (gulong size)
            we might have to do the same thing in other places as well.  Also,
 	   I am not sure this will be OK for all the languages.  */
 	
-	if (size < 1e3L) {
-		size_string = NULL;
-	} else {
-		gdouble displayed_size;
-		
-		if (size < 1e6L) {
-			displayed_size = (gdouble) size / 1.0e3;
-			size_string = g_strdup_printf (_("%.0fK"), displayed_size);
-		} else if (size < 1e9L) {
-			displayed_size = (gdouble) size / 1.0e6;
-			size_string = g_strdup_printf (_("%.0fM"), displayed_size);
-		} else {
-			displayed_size = (gdouble) size / 1.0e9;
-			size_string = g_strdup_printf (_("%.0fG"), displayed_size);
-		}
-	}
+	size_string = gnome_vfs_format_file_size_for_display (size);
 	
 	return size_string;
 }
Index: widgets/misc/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/ChangeLog,v
retrieving revision 1.446
diff -u -p -r1.446 ChangeLog
--- widgets/misc/ChangeLog	12 Sep 2006 11:31:32 -0000	1.446
+++ widgets/misc/ChangeLog	27 Sep 2006 11:09:13 -0000
@@ -1,3 +1,11 @@
+2006-09-27  Ushveen kaur <kushveen@novell.com>
+
+	** Fixes bug #341474
+
+	* e-msg-composer-attachment-bar.c: (size_to_string) : 
+	gnome_vfs_format_file_size_for_display used instead of manually
+	converting the size to string.
+	
 2006-09-12  Ushveen Kaur  <kushveen@novell.com>
 
 	** Fix for bug #325614
Index: widgets/misc/e-attachment-bar.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/e-attachment-bar.c,v
retrieving revision 1.23
diff -u -p -r1.23 e-attachment-bar.c
--- widgets/misc/e-attachment-bar.c	23 Aug 2006 07:58:59 -0000	1.23
+++ widgets/misc/e-attachment-bar.c	27 Sep 2006 11:09:13 -0000
@@ -89,31 +89,16 @@ static void update (EAttachmentBar *bar)
 
 
 static char *
-size_to_string (size_t size)
+size_to_string (gulong size)
 {
 	char *size_string;
 	
 	/* FIXME: The following should probably go into a separate module, as
            we might have to do the same thing in other places as well.  Also,
 	   I am not sure this will be OK for all the languages.  */
-	
-	if (size < 1e3L) {
-		size_string = NULL;
-	} else {
-		gdouble displayed_size;
-		
-		if (size < 1e6L) {
-			displayed_size = (gdouble) size / 1.0e3;
-			size_string = g_strdup_printf (_("%.0fK"), displayed_size);
-		} else if (size < 1e9L) {
-			displayed_size = (gdouble) size / 1.0e6;
-			size_string = g_strdup_printf (_("%.0fM"), displayed_size);
-		} else {
-			displayed_size = (gdouble) size / 1.0e9;
-			size_string = g_strdup_printf (_("%.0fG"), displayed_size);
-		}
-	}
-	
+
+	size_string = gnome_vfs_format_file_size_for_display (size);
+
 	return size_string;
 }
 
