Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
5b459832
Commit
5b459832
authored
Feb 19, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: delay the 'rebuilding fontcache' dialog (close #6040)
parent
fc9d9cca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
modules/gui/macosx/coredialogs.h
modules/gui/macosx/coredialogs.h
+1
-0
modules/gui/macosx/coredialogs.m
modules/gui/macosx/coredialogs.m
+9
-1
No files found.
modules/gui/macosx/coredialogs.h
View file @
5b459832
...
...
@@ -87,6 +87,7 @@
-
(
void
)
showLoginDialog
:
(
NSValue
*
)
o_value
;
-
(
IBAction
)
loginDialogAction
:(
id
)
sender
;
-
(
void
)
showProgressDialogOnMainThread
:
(
NSValue
*
)
o_value
;
-
(
void
)
showProgressDialog
:
(
NSValue
*
)
o_value
;
-
(
IBAction
)
progDialogAction
:(
id
)
sender
;
-
(
BOOL
)
progressCancelled
;
...
...
modules/gui/macosx/coredialogs.m
View file @
5b459832
...
...
@@ -79,7 +79,7 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil;
else
if
(
[
o_type
isEqualToString
:
@"dialog-login"
]
)
[
self
performSelectorOnMainThread
:
@selector
(
showLoginDialog
:)
withObject
:
o_value
waitUntilDone
:
YES
];
else
if
(
[
o_type
isEqualToString
:
@"dialog-progress-bar"
]
)
[
self
performSelector
OnMainThread
:
@selector
(
showProgressDialog
:)
withObject
:
o_value
waitUntilDone
:
YES
];
[
self
performSelector
:
@selector
(
showProgressDialogOnMainThread
:)
withObject
:
o_value
afterDelay
:
3
.
00
];
else
msg_Err
(
VLCIntf
,
"unhandled dialog type: '%s'"
,
type
);
}
...
...
@@ -161,6 +161,14 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil;
[
NSApp
stopModalWithCode
:
0
];
}
-
(
void
)
showProgressDialogOnMainThread
:
(
NSValue
*
)
o_value
{
/* we work-around a Cocoa limitation here, since you cannot delay an execution
* on the main thread within a single call */
if
(
VLCIntf
)
[
self
performSelectorOnMainThread
:
@selector
(
showProgressDialog
:)
withObject
:
o_value
waitUntilDone
:
YES
];
}
-
(
void
)
showProgressDialog
:
(
NSValue
*
)
o_value
{
dialog_progress_bar_t
*
p_dialog
=
[
o_value
pointerValue
];
...
...
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