From: Dirk-Jan C. Binnema Date: Wed, 4 Jul 2007 17:59:51 +0000 (+0000) Subject: * show the size unit correctly for the local Total size X-Git-Tag: git_migration_finished~2959 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=c673cbc2216b0c069e173646d3c1a3a3dd6af90d * show the size unit correctly for the local Total size Fixes: NB#62594 (the bug is about MCC folders, but this issues applies to all local folders) pmo-trunk-r2579 --- diff --git a/src/maemo/modest-main-window.c b/src/maemo/modest-main-window.c index 3c19dd0..288b88c 100644 --- a/src/maemo/modest-main-window.c +++ b/src/maemo/modest-main-window.c @@ -61,6 +61,7 @@ #include "modest-text-utils.h" #include "modest-ui-dimming-manager.h" #include "maemo/modest-osso-state-saving.h" +#include "modest-text-utils.h" #ifdef MODEST_HAVE_HILDON0_WIDGETS #include @@ -1526,10 +1527,15 @@ create_details_widget (GtkWidget *styled_widget, TnyAccount *account) /* Size / Date */ if (modest_tny_account_is_virtual_local_folders (account) || modest_tny_account_is_memory_card_account (account)) { - /* FIXME: format size */ - label = g_markup_printf_escaped ("%s: %d", - gray_color_markup, _("mcen_fi_rootfolder_size"), - modest_tny_folder_store_get_local_size (folder_store)); + + gchar *size = modest_text_utils_get_display_size ( + modest_tny_folder_store_get_local_size (folder_store)); + + label = g_markup_printf_escaped ("%s: %s", + gray_color_markup, _("mcen_fi_rootfolder_size"), + size); + g_free (size); + label_w = gtk_label_new (NULL); gtk_label_set_markup (GTK_LABEL (label_w), label); gtk_box_pack_start (GTK_BOX (vbox), label_w, FALSE, FALSE, 0);