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
b98058c9
Commit
b98058c9
authored
Jan 29, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx_dialog_provider: relayout the window less often.
parent
d7413881
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
modules/gui/macosx_dialog_provider/dialogProvider.m
modules/gui/macosx_dialog_provider/dialogProvider.m
+6
-2
No files found.
modules/gui/macosx_dialog_provider/dialogProvider.m
View file @
b98058c9
...
...
@@ -175,6 +175,8 @@ static void destroyProgressPanel (void *);
-
(
void
)
recomputeWindowSize
{
[
NSObject
cancelPreviousPerformRequestsWithTarget
:
self
selector
:
@selector
(
recomputeWindowSize
)
object
:
nil
];
NSWindow
*
window
=
[
self
window
];
NSRect
frame
=
[
window
frame
];
NSRect
contentRect
=
[
window
contentRectForFrameRect
:
frame
];
...
...
@@ -183,7 +185,6 @@ static void destroyProgressPanel (void *);
newFrame
.
origin
.
y
-=
newFrame
.
size
.
height
-
frame
.
size
.
height
;
newFrame
.
origin
.
x
-=
(
newFrame
.
size
.
width
-
frame
.
size
.
width
)
/
2
;
[
window
setFrame
:
newFrame
display
:
YES
animate
:
YES
];
}
-
(
NSSize
)
objectSizeToFit
:(
NSView
*
)
view
...
...
@@ -401,8 +402,11 @@ static void destroyProgressPanel (void *);
[
self
addSubview
:
view
];
[
self
recomputeWindowSize
];
[
self
relayout
];
// Recompute the size of the window after making sure we won't see anymore update
[
NSObject
cancelPreviousPerformRequestsWithTarget
:
self
selector
:
@selector
(
recomputeWindowSize
)
object
:
nil
];
[
self
performSelector
:
@selector
(
recomputeWindowSize
)
withObject
:
nil
afterDelay
:
0
.
1
];
}
-
(
void
)
removeSubview
:(
NSView
*
)
view
...
...
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