diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-10-20 11:14:29 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-10-20 11:32:31 +0300 |
commit | 5beed91df2b45fc506fd24494e7e766bf536e4fc (patch) | |
tree | 49c0187513887efdf1cbb8527b28c51191615e85 /ui/src/components/mail/listing.rs | |
parent | dc525b9dddbefbc2cfe1da3276d01407893b3366 (diff) |
contacts: add support for externally managed contacts
Adds support for contacts (Cards) marked as `external_resource` which
prevents modifications from happening. No way to import external
contacts is added yet.
Diffstat (limited to 'ui/src/components/mail/listing.rs')
-rw-r--r-- | ui/src/components/mail/listing.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/src/components/mail/listing.rs b/ui/src/components/mail/listing.rs index 7fa837c6..a2682146 100644 --- a/ui/src/components/mail/listing.rs +++ b/ui/src/components/mail/listing.rs @@ -34,9 +34,9 @@ mod plain; pub use self::plain::*; #[derive(Debug, Default, Clone)] -pub(in crate::listing) struct DataColumns { - columns: [CellBuffer; 12], - widths: [usize; 12], // widths of columns calculated in first draw and after size changes +pub struct DataColumns { + pub columns: [CellBuffer; 12], + pub widths: [usize; 12], // widths of columns calculated in first draw and after size changes } #[derive(Debug)] @@ -52,7 +52,7 @@ pub(in crate::listing) struct CachedSearchStrings { body: String, } -trait ListingTrait { +pub trait ListingTrait { fn coordinates(&self) -> (usize, usize, Option<EnvelopeHash>); fn set_coordinates(&mut self, _: (usize, usize, Option<EnvelopeHash>)); fn draw_list(&mut self, grid: &mut CellBuffer, area: Area, context: &mut Context); |