Changeset e9347d2d89166c53ece29004c1a0d46f3cf9182e
- 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
| r0c9b2d2 |
re9347d2 |
|
| 54 | 54 | - (void)showUpdateWindow; |
|---|
| 55 | 55 | - (void)checkForUpdate; |
|---|
| 56 | | - (void)updateManagement: (vlc_bool_t) b_success; |
|---|
| | 56 | - (void)setUpToDate: (BOOL)uptodate; |
|---|
| 57 | 57 | - (void)performDownload:(NSString *)path; |
|---|
| 58 | 58 | |
|---|
| r0c9b2d2 |
re9347d2 |
|
| 168 | 168 | } |
|---|
| 169 | 169 | |
|---|
| 170 | | - (void)updateManagement:(vlc_bool_t)b_success |
|---|
| | 170 | - (void)setUpToDate:(BOOL)uptodate |
|---|
| 171 | 171 | { |
|---|
| 172 | 172 | NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; |
|---|
| 173 | 173 | |
|---|
| 174 | | if( !b_success || |
|---|
| 175 | | update_CompareReleaseToCurrent( p_u ) != UpdateReleaseStatusNewer ) |
|---|
| | 174 | if( uptodate ) |
|---|
| 176 | 175 | { |
|---|
| 177 | 176 | [o_fld_status setStringValue: _NS("This version of VLC is the latest available.")]; |
|---|
| … | … | |
| 197 | 196 | static void updateCallback( void * p_data, vlc_bool_t b_success ) |
|---|
| 198 | 197 | { |
|---|
| 199 | | [(id)p_data updateManagement: b_success]; |
|---|
| | 198 | [(id)p_data setUpToDate: b_success && update_CompareReleaseToCurrent( ((VLCUpdate*)p_data)->p_u ) == UpdateReleaseStatusNewer ]; |
|---|
| 200 | 199 | } |
|---|
| 201 | 200 | |
|---|