From: Grant Paul Date: Thu, 3 Feb 2011 23:59:51 +0000 (-0800) Subject: Make PackageCell, SourceCell, and SectionCell have reasonable VoiceOver labels. X-Git-Tag: v1.1.0%b1~367^2~1^2 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/003fc610c40f29f5e9195a890b198e48aad14c49 Make PackageCell, SourceCell, and SectionCell have reasonable VoiceOver labels. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index ee88c00e..cc005907 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);