Changeset 923 for branches/perian-1.1/CPFPerianPrefPaneController.m
- Timestamp:
- 08/02/08 16:24:20 (4 months ago)
- Files:
-
- branches/perian-1.1 (modified) (1 prop)
- branches/perian-1.1/CPFPerianPrefPaneController.m (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/perian-1.1
- Property svn:externals changed from
ffmpeg -r 13239 svn://svn.mplayerhq.hu/ffmpeg/trunk
libebml -r 1306 https://services.corecodec.com/svn/matroska/trunk/libebml
libmatroska -r 1306 https://services.corecodec.com/svn/matroska/trunk/libmatroska
a52codec -r 64 http://svn.cod3r.com/a52codec/trunk
to
ffmpeg -r 14508 svn://svn.mplayerhq.hu/ffmpeg/trunk
libebml -r 1306 https://services.corecodec.com/svn/matroska/trunk/libebml
libmatroska -r 1306 https://services.corecodec.com/svn/matroska/trunk/libmatroska
a52codec -r 64 http://svn.cod3r.com/a52codec/trunk
- Property svn:externals changed from
branches/perian-1.1/CPFPerianPrefPaneController.m
r904 r923 403 403 404 404 - (void) dealloc { 405 [[NSDistributedNotificationCenter defaultCenter] removeObserver:self name:UPDATE_STATUS_NOTIFICATION object:nil]; 405 406 [perianForumURL release]; 406 407 [perianDonateURL release]; … … 657 658 auth = nil; 658 659 659 int tag = 0;660 660 componentPath = [[self quickTimeComponentDir:userInstalled] stringByAppendingPathComponent:@"Perian.component"]; 661 661 if(auth != nil && !userInstalled) … … 688 688 - (IBAction)installUninstall:(id)sender 689 689 { 690 [progress_install startAnimation:sender];691 690 if(installStatus == InstallStatusInstalled) 692 691 [NSThread detachNewThreadSelector:@selector(uninstall:) toTarget:self withObject:nil]; … … 697 696 - (void)installComplete:(id)sender 698 697 { 699 [progress_install stopAnimation:sender];700 698 [self checkForInstallation]; 701 699 } … … 779 777 780 778 #pragma mark Check Updates 779 - (void)updateCheckStatusChanged:(NSNotification*)notification 780 { 781 NSString *status = [notification object]; 782 783 //FIXME localize these 784 if ([status isEqualToString:@"Starting"]) { 785 [textField_updateStatus setStringValue:@"Checking..."]; 786 } else if ([status isEqualToString:@"Error"]) { 787 [textField_updateStatus setStringValue:@"Couldn't reach the update server."]; 788 } else if ([status isEqualToString:@"NoUpdates"]) { 789 [textField_updateStatus setStringValue:@"There are no updates."]; 790 } else if ([status isEqualToString:@"NoUpdates"]) { 791 [textField_updateStatus setStringValue:@"Updates found!"]; 792 } 793 } 794 781 795 - (IBAction)updateCheck:(id)sender 782 796 { 783 797 FSRef updateCheckRef; 784 798 799 [[NSDistributedNotificationCenter defaultCenter] removeObserver:self name:UPDATE_STATUS_NOTIFICATION object:nil]; 800 [[NSDistributedNotificationCenter defaultCenter] addObserver:self selector:@selector(updateCheckStatusChanged:) name:UPDATE_STATUS_NOTIFICATION object:nil]; 785 801 CFPreferencesSetAppValue((CFStringRef)NEXT_RUN_KEY, NULL, perianAppID); 786 802 CFPreferencesSetAppValue((CFStringRef)MANUAL_RUN_KEY, [NSNumber numberWithBool:YES], perianAppID); … … 800 816 else 801 817 CFPreferencesSetAppValue(key, [NSDate distantFuture], perianAppID); 818 819 CFPreferencesAppSynchronize(perianAppID); 802 820 } 803 821 … … 901 919 { 902 920 [self setKey:ExternalSubtitlesKey forAppID:perianAppID fromBool:(BOOL)[sender state]]; 921 CFPreferencesAppSynchronize(perianAppID); 903 922 } 904 923
