Changeset e9347d2d89166c53ece29004c1a0d46f3cf9182e

Show
Ignore:
Timestamp:
25/02/08 01:49:30 (8 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1203900570 +0000
git-parent:

[ebd31a1fbfcdaaaaafb46ee7d01f6ccc8ff4b621]

git-author:
Rafaël Carré <funman@videolan.org> 1203900570 +0000
Message:

cosmetics + evil (?) -> hack (objective C definitely looks strange...)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/macosx/update.h

    r0c9b2d2 re9347d2  
    5454- (void)showUpdateWindow; 
    5555- (void)checkForUpdate; 
    56 - (void)updateManagement: (vlc_bool_t) b_success
     56- (void)setUpToDate: (BOOL)uptodate
    5757- (void)performDownload:(NSString *)path; 
    5858 
  • modules/gui/macosx/update.m

    r0c9b2d2 re9347d2  
    168168} 
    169169 
    170 - (void)updateManagement:(vlc_bool_t)b_success 
     170- (void)setUpToDate:(BOOL)uptodate 
    171171{ 
    172172    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 
    173173 
    174     if( !b_success || 
    175         update_CompareReleaseToCurrent( p_u ) != UpdateReleaseStatusNewer ) 
     174    if( uptodate ) 
    176175    { 
    177176        [o_fld_status setStringValue: _NS("This version of VLC is the latest available.")]; 
     
    197196static void updateCallback( void * p_data, vlc_bool_t b_success ) 
    198197{ 
    199     [(id)p_data updateManagement: b_success]; 
     198    [(id)p_data setUpToDate: b_success && update_CompareReleaseToCurrent( ((VLCUpdate*)p_data)->p_u ) == UpdateReleaseStatusNewer ]; 
    200199} 
    201200