summaryrefslogtreecommitdiffstats
path: root/ui/src/components/mail/listing.rs
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2019-04-10 22:01:02 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-06-10 19:40:44 +0300
commit106744c7ca4e5444d993a04c23bc04d93e2bfa6a (patch)
tree5aea51551eb5621a339d7066a6db103cb41a1c3f /ui/src/components/mail/listing.rs
parentb993375fa0737dcfbd1aca5e765210969a143282 (diff)
ui: remove Entity
Diffstat (limited to 'ui/src/components/mail/listing.rs')
-rw-r--r--ui/src/components/mail/listing.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/ui/src/components/mail/listing.rs b/ui/src/components/mail/listing.rs
index 9e2371d7..f108d9f8 100644
--- a/ui/src/components/mail/listing.rs
+++ b/ui/src/components/mail/listing.rs
@@ -163,6 +163,21 @@ impl Component for Listing {
Listing::Threaded(l) => l.get_shortcuts(context),
}
}
+
+ fn id(&self) -> ComponentId {
+ match self {
+ Listing::Compact(l) => l.id(),
+ Listing::Plain(l) => l.id(),
+ Listing::Threaded(l) => l.id(),
+ }
+ }
+ fn set_id(&mut self, id: ComponentId) {
+ match self {
+ Listing::Compact(l) => l.set_id(id),
+ Listing::Plain(l) => l.set_id(id),
+ Listing::Threaded(l) => l.set_id(id),
+ }
+ }
}
impl From<IndexStyle> for Listing {