diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-09-24 03:37:11 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-09-24 03:37:11 +0800 |
commit | 9b21f6d8fb7315ee3ad449d118f65f3819274a83 (patch) | |
tree | 0d744d3691db4c49febb40f2400053b898ba02fc /composer/e-msg-composer-attachment-bar.c | |
parent | 621e8e3bfa51d81a6f24057d93328b00fb3b5cf3 (diff) | |
download | gsoc2013-evolution-9b21f6d8fb7315ee3ad449d118f65f3819274a83.tar.gz gsoc2013-evolution-9b21f6d8fb7315ee3ad449d118f65f3819274a83.tar.zst gsoc2013-evolution-9b21f6d8fb7315ee3ad449d118f65f3819274a83.zip |
Removed a #warning.
* e-icon-list.c (icon_new_from_pixbuf): Removed a #warning.
* e-msg-composer-attachment-bar.c (size_to_string): Don't use dots
here so we don't get funny wrapping from GnomeIconList. [#236]
svn path=/trunk/; revision=18176
Diffstat (limited to 'composer/e-msg-composer-attachment-bar.c')
-rw-r--r-- | composer/e-msg-composer-attachment-bar.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c index 2a8a3e8437..2e918bb5d1 100644 --- a/composer/e-msg-composer-attachment-bar.c +++ b/composer/e-msg-composer-attachment-bar.c @@ -98,26 +98,19 @@ size_to_string (gulong size) I am not sure this will be OK for all the languages. */ if (size < 1e3L) { - if (size == 1) - size_string = g_strdup (_("1 byte")); - else - size_string = g_strdup_printf (_("%u bytes"), - (guint) size); + size_string = g_strdup (_("")); } else { gdouble displayed_size; if (size < 1e6L) { displayed_size = (gdouble) size / 1.0e3; - size_string = g_strdup_printf (_("%.1fK"), - displayed_size); + size_string = g_strdup_printf (_("%.0fK"), displayed_size); } else if (size < 1e9L) { displayed_size = (gdouble) size / 1.0e6; - size_string = g_strdup_printf (_("%.1fM"), - displayed_size); + size_string = g_strdup_printf (_("%.0fM"), displayed_size); } else { displayed_size = (gdouble) size / 1.0e9; - size_string = g_strdup_printf (_("%.1fG"), - displayed_size); + size_string = g_strdup_printf (_("%.0fG"), displayed_size); } } |