From: Murray Cumming Date: Tue, 5 Jun 2007 14:45:33 +0000 (+0000) Subject: 2007-06-05 Murray Cumming X-Git-Tag: git_migration_finished~3419 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=55708b6454e3fe93a7cc9f7ee5c0b06e95998506 2007-06-05 Murray Cumming * src/maemo/modest-main-window.c: (create_details_widget): Show the total size for memory card accounts too, instead of showing the name again. Fixes bug projects.maemo.org bug NB#59307. pmo-trunk-r2070 --- diff --git a/ChangeLog2 b/ChangeLog2 index 3d425c3..5bc678b 100644 --- a/ChangeLog2 +++ b/ChangeLog2 @@ -1,5 +1,11 @@ 2007-06-05 Murray Cumming + * src/maemo/modest-main-window.c: (create_details_widget): + Show the total size for memory card accounts too, instead of showing + the name again. Fixes bug projects.maemo.org bug NB#59307. + +2007-06-05 Murray Cumming + * src/Makefile.am: * src/modest-tny-simple-folder-store.c: * src/modest-tny-simple-folder-store.h: Removed. diff --git a/src/maemo/modest-main-window.c b/src/maemo/modest-main-window.c index a717865..1ce91ca 100644 --- a/src/maemo/modest-main-window.c +++ b/src/maemo/modest-main-window.c @@ -1317,28 +1317,22 @@ create_details_widget (TnyAccount *account) } else if (TNY_IS_ACCOUNT(folder_store)) { TnyAccount *account = TNY_ACCOUNT(folder_store); - if (!strcmp (tny_account_get_id (account), MODEST_MMC_ACCOUNT_ID)) { - gtk_box_pack_start (GTK_BOX (vbox), - gtk_label_new (tny_account_get_name (account)), - FALSE, FALSE, 0); - } else { - time_t last_updated; - gchar *last_updated_string; - /* Get last updated from configuration */ - last_updated = modest_account_mgr_get_int (modest_runtime_get_account_mgr (), - tny_account_get_id (account), - MODEST_ACCOUNT_LAST_UPDATED, - TRUE); - if (last_updated > 0) - last_updated_string = modest_text_utils_get_display_date(last_updated); - else - last_updated_string = g_strdup (_("FIXME: Never")); - - label = g_strdup_printf ("%s: %s", _("mcen_ti_lastupdated"), last_updated_string); - gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new (label), FALSE, FALSE, 0); - g_free (last_updated_string); - g_free (label); - } + time_t last_updated; + gchar *last_updated_string; + /* Get last updated from configuration */ + last_updated = modest_account_mgr_get_int (modest_runtime_get_account_mgr (), + tny_account_get_id (account), + MODEST_ACCOUNT_LAST_UPDATED, + TRUE); + if (last_updated > 0) + last_updated_string = modest_text_utils_get_display_date(last_updated); + else + last_updated_string = g_strdup (_("FIXME: Never")); + + label = g_strdup_printf ("%s: %s", _("mcen_ti_lastupdated"), last_updated_string); + gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new (label), FALSE, FALSE, 0); + g_free (last_updated_string); + g_free (label); } /* Set alignment */