Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
e9347d2d
Commit
e9347d2d
authored
Feb 25, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics + evil (?) -> hack (objective C definitely looks strange...)
parent
ebd31a1f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
modules/gui/macosx/update.h
modules/gui/macosx/update.h
+1
-1
modules/gui/macosx/update.m
modules/gui/macosx/update.m
+3
-4
No files found.
modules/gui/macosx/update.h
View file @
e9347d2d
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
-
(
void
)
showUpdateWindow
;
-
(
void
)
showUpdateWindow
;
-
(
void
)
checkForUpdate
;
-
(
void
)
checkForUpdate
;
-
(
void
)
updateManagement
:
(
vlc_bool_t
)
b_success
;
-
(
void
)
setUpToDate
:
(
BOOL
)
uptodate
;
-
(
void
)
performDownload
:(
NSString
*
)
path
;
-
(
void
)
performDownload
:(
NSString
*
)
path
;
+
(
VLCUpdate
*
)
sharedInstance
;
+
(
VLCUpdate
*
)
sharedInstance
;
...
...
modules/gui/macosx/update.m
View file @
e9347d2d
...
@@ -167,12 +167,11 @@ static VLCUpdate *_o_sharedInstance = nil;
...
@@ -167,12 +167,11 @@ static VLCUpdate *_o_sharedInstance = nil;
[
self
setShouldCheckUpdate
:
[
sender
state
]];
[
self
setShouldCheckUpdate
:
[
sender
state
]];
}
}
-
(
void
)
updateManagement
:(
vlc_bool_t
)
b_success
-
(
void
)
setUpToDate
:(
BOOL
)
uptodate
{
{
NSAutoreleasePool
*
pool
=
[[
NSAutoreleasePool
alloc
]
init
];
NSAutoreleasePool
*
pool
=
[[
NSAutoreleasePool
alloc
]
init
];
if
(
!
b_success
||
if
(
uptodate
)
update_CompareReleaseToCurrent
(
p_u
)
!=
UpdateReleaseStatusNewer
)
{
{
[
o_fld_status
setStringValue
:
_NS
(
"This version of VLC is the latest available."
)];
[
o_fld_status
setStringValue
:
_NS
(
"This version of VLC is the latest available."
)];
[
o_btn_DownloadNow
setEnabled
:
NO
];
[
o_btn_DownloadNow
setEnabled
:
NO
];
...
@@ -196,7 +195,7 @@ static VLCUpdate *_o_sharedInstance = nil;
...
@@ -196,7 +195,7 @@ static VLCUpdate *_o_sharedInstance = nil;
static
void
updateCallback
(
void
*
p_data
,
vlc_bool_t
b_success
)
static
void
updateCallback
(
void
*
p_data
,
vlc_bool_t
b_success
)
{
{
[(
id
)
p_data
updateManagement
:
b_success
];
[(
id
)
p_data
setUpToDate
:
b_success
&&
update_CompareReleaseToCurrent
(
((
VLCUpdate
*
)
p_data
)
->
p_u
)
==
UpdateReleaseStatusNewer
];
}
}
-
(
void
)
checkForUpdate
-
(
void
)
checkForUpdate
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment