diff options
author | Grant Paul <chpwn@chpwn.com> | 2011-02-03 15:59:51 -0800 |
---|---|---|
committer | Grant Paul <chpwn@chpwn.com> | 2011-02-03 15:59:51 -0800 |
commit | 003fc610c40f29f5e9195a890b198e48aad14c49 (patch) | |
tree | 7bb4fd2d9fd4732aa217a382719198dc0117d990 | |
parent | 79b42fd1b46eab09474ab4530e6959a52676b079 (diff) |
Make PackageCell, SourceCell, and SectionCell have reasonable VoiceOver labels.
-rw-r--r-- | MobileCydia.mm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index ee88c00..cc00590 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4993,6 +4993,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { [self setNeedsDisplay]; } +- (NSString *) accessibilityLabel { + return [NSString stringWithFormat:UCLocalize("COLON_DELIMITED"), name_, description_]; +} + - (void) setPackage:(Package *)package { [self clearPackage]; [package parse]; @@ -5221,6 +5225,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { [switch_ setFrame:CGRectMake(frame.size.width - 102, 9, rect.size.width, rect.size.height)]; } +- (NSString *) accessibilityLabel { + return name_; +} + - (void) drawContentRect:(CGRect)rect { bool highlighted(highlighted_ && !editing_); @@ -7447,6 +7455,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } return self; } +- (NSString *) accessibilityLabel { + return label_; +} + - (void) drawContentRect:(CGRect)rect { bool highlighted(highlighted_); float width(rect.size.width); |