diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2008-02-26 12:16:52 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2008-02-26 12:16:52 +0000 |
commit | 99364ec4dfdb3e8c4ba2455b9549479efd2d1834 (patch) | |
tree | 6e9bd706d7ca78f58d17b84514b7115a5372c948 /Cydia.mm | |
parent | 9e98e0200604fe2c01511162ce6be0adb1de4c07 (diff) |
Cleaning up Cydia for launch.
Diffstat (limited to 'Cydia.mm')
-rw-r--r-- | Cydia.mm | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -697,7 +697,6 @@ void AddTextView(NSMutableDictionary *fields, NSMutableArray *packages, NSString @end @implementation ConfirmationView -#include "internals.h" - (void) dealloc { [transition_ release]; @@ -1393,13 +1392,13 @@ NSString *Scour(const char *field, const char *begin, const char *end) { } - (void) tableRowSelected:(NSNotification *)notification { - switch ([table_ selectedRow]) { - case 8: - [delegate_ openURL:[NSURL URLWithString:[NSString stringWithFormat:@"mailto:%@?subject=%@", - [[package_ maintainer] email], - [[NSString stringWithFormat:@"regarding apt package \"%@\"", [package_ name]] stringByAddingPercentEscapes] - ]]]; - break; + int row = [table_ selectedRow]; + + if (row == ([package_ website] == nil ? 8 : 9)) { + [delegate_ openURL:[NSURL URLWithString:[NSString stringWithFormat:@"mailto:%@?subject=%@", + [[package_ maintainer] email], + [[NSString stringWithFormat:@"regarding apt package \"%@\"", [package_ name]] stringByAddingPercentEscapes] + ]]]; } } @@ -3155,7 +3154,6 @@ NSString *Scour(const char *field, const char *begin, const char *end) { @end @implementation Cydia -#include "internals.h" - (void) loadNews { NSMutableURLRequest *request = [NSMutableURLRequest @@ -3667,8 +3665,8 @@ int main(int argc, char *argv[]) { IOObjectRelease(service); } - AddPreferences(@"/Applications/Preferences.app/Settings-iPhone.plist"); - AddPreferences(@"/Applications/Preferences.app/Settings-iPod.plist"); + /*AddPreferences(@"/Applications/Preferences.app/Settings-iPhone.plist"); + AddPreferences(@"/Applications/Preferences.app/Settings-iPod.plist");*/ if ((Metadata_ = [[NSMutableDictionary alloc] initWithContentsOfFile:@"/var/lib/cydia/metadata.plist"]) == NULL) Metadata_ = [[NSMutableDictionary alloc] initWithCapacity:2]; |