]> git.saurik.com Git - cydia.git/commitdiff
Remove SourceCell::description_ and hard-code height.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 2 Jan 2011 01:18:29 +0000 (17:18 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 10 Jan 2011 20:40:31 +0000 (12:40 -0800)
MobileCydia.mm

index b8a174bfa266f1fffa7f4f0879790f81b0c6421d..6cbb164740018c76ee7432124180f497d489b122 100644 (file)
@@ -5913,7 +5913,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 > {
     UIImage *icon_;
     NSString *origin_;
 > {
     UIImage *icon_;
     NSString *origin_;
-    NSString *description_;
     NSString *label_;
 }
 
     NSString *label_;
 }
 
@@ -5926,12 +5925,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 - (void) clearSource {
     [icon_ release];
     [origin_ release];
 - (void) clearSource {
     [icon_ release];
     [origin_ release];
-    [description_ release];
     [label_ release];
 
     icon_ = nil;
     origin_ = nil;
     [label_ release];
 
     icon_ = nil;
     origin_ = nil;
-    description_ = nil;
     label_ = nil;
 }
 
     label_ = nil;
 }
 
@@ -5946,7 +5943,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 
     origin_ = [[source name] retain];
     label_ = [[source uri] retain];
 
     origin_ = [[source name] retain];
     label_ = [[source uri] retain];
-    description_ = [[source description] retain];
 
     [content_ setNeedsDisplay];
 }
 
     [content_ setNeedsDisplay];
 }
@@ -5988,10 +5984,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
     if (!highlighted)
         UISetColor(Blue_);
     [label_ drawAtPoint:CGPointMake(58, 29) forWidth:(width - 95) withFont:Font12_ lineBreakMode:UILineBreakModeTailTruncation];
     if (!highlighted)
         UISetColor(Blue_);
     [label_ drawAtPoint:CGPointMake(58, 29) forWidth:(width - 95) withFont:Font12_ lineBreakMode:UILineBreakModeTailTruncation];
-
-    if (!highlighted)
-        UISetColor(Gray_);
-    [description_ drawAtPoint:CGPointMake(12, 46) forWidth:(width - 40) withFont:Font14_ lineBreakMode:UILineBreakModeTailTruncation];
 }
 
 @end
 }
 
 @end
@@ -6093,11 +6085,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
     return [sources_ objectAtIndex:idx];
 }
 
     return [sources_ objectAtIndex:idx];
 }
 
-- (CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
-    Source *source = [self sourceAtIndexPath:indexPath];
-    return [source description] == nil ? 56 : 73;
-}
-
 - (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
     static NSString *cellIdentifier = @"SourceCell";
 
 - (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
     static NSString *cellIdentifier = @"SourceCell";
 
@@ -6354,6 +6341,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 
         list_ = [[UITableView alloc] initWithFrame:[[self view] bounds] style:UITableViewStylePlain];
         [list_ setAutoresizingMask:UIViewAutoresizingFlexibleBoth];
 
         list_ = [[UITableView alloc] initWithFrame:[[self view] bounds] style:UITableViewStylePlain];
         [list_ setAutoresizingMask:UIViewAutoresizingFlexibleBoth];
+        [list_ setRowHeight:56];
         [[self view] addSubview:list_];
 
         [list_ setDataSource:self];
         [[self view] addSubview:list_];
 
         [list_ setDataSource:self];