Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
456ec97f
Commit
456ec97f
authored
Sep 28, 2015
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fix resizing issue when updating lua extension dialogs (close #14457)
parent
a574bf30
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
4 deletions
+27
-4
modules/gui/macosx/ExtensionsDialogProvider.m
modules/gui/macosx/ExtensionsDialogProvider.m
+2
-2
modules/gui/macosx/VLCUIWidgets.h
modules/gui/macosx/VLCUIWidgets.h
+6
-1
modules/gui/macosx/VLCUIWidgets.m
modules/gui/macosx/VLCUIWidgets.m
+19
-1
No files found.
modules/gui/macosx/ExtensionsDialogProvider.m
View file @
456ec97f
/*****************************************************************************
* ExtensionsDialogProvider.m: Mac OS X Extensions Dialogs
*****************************************************************************
* Copyright (C) 2010-201
3
VLC authors and VideoLAN
* Copyright (C) 2010-201
5
VLC authors and VideoLAN
* $Id$
*
* Authors: Pierre d'Herbemont <pdherbemont # videolan org>
...
...
@@ -407,7 +407,7 @@ static int extensionDialogCallback(vlc_object_t *p_this, const char *psz_variabl
}
VLCDialogGridView
*
gridView
=
(
VLCDialogGridView
*
)[
dialogWindow
contentView
];
[
gridView
add
Subview
:
control
atRow
:
row
column
:
col
rowSpan
:
vsp
colSpan
:
hsp
];
[
gridView
update
Subview
:
control
atRow
:
row
column
:
col
rowSpan
:
vsp
colSpan
:
hsp
];
widget
->
b_update
=
false
;
}
...
...
modules/gui/macosx/VLCUIWidgets.h
View file @
456ec97f
/*****************************************************************************
* VLCUIWidgets.h: Widgets for VLC's extensions dialogs for Mac OS X
*****************************************************************************
* Copyright (C) 2009-201
4
the VideoLAN team and authors
* Copyright (C) 2009-201
5
the VideoLAN team and authors
* $Id$
*
* Authors: Pierre d'Herbemont <pdherbemont # videolan dot>,
...
...
@@ -54,6 +54,11 @@
-
(
void
)
addSubview
:(
NSView
*
)
view
atRow
:(
NSUInteger
)
row
column
:(
NSUInteger
)
column
rowSpan
:(
NSUInteger
)
rowSpan
colSpan
:(
NSUInteger
)
colSpan
;
-
(
NSSize
)
flexSize
:(
NSSize
)
size
;
-
(
void
)
updateSubview
:(
NSView
*
)
view
atRow
:(
NSUInteger
)
row
column
:(
NSUInteger
)
column
rowSpan
:(
NSUInteger
)
rowSpan
colSpan
:(
NSUInteger
)
colSpan
;
-
(
void
)
removeSubview
:(
NSView
*
)
view
;
@property
(
readonly
)
NSUInteger
numViews
;
...
...
modules/gui/macosx/VLCUIWidgets.m
View file @
456ec97f
/*****************************************************************************
* VLCUIWidgets.m: Widgets for VLC's extensions dialogs for Mac OS X
*****************************************************************************
* Copyright (C) 2009-201
4
the VideoLAN team and authors
* Copyright (C) 2009-201
5
the VideoLAN team and authors
* $Id$
*
* Authors: Pierre d'Herbemont <pdherbemont # videolan dot>,
...
...
@@ -329,6 +329,24 @@
[
self
performSelector
:
@selector
(
recomputeWindowSize
)
withObject
:
nil
afterDelay
:
0
.
1
];
}
-
(
void
)
updateSubview
:(
NSView
*
)
view
atRow
:(
NSUInteger
)
row
column
:(
NSUInteger
)
column
rowSpan
:(
NSUInteger
)
rowSpan
colSpan
:(
NSUInteger
)
colSpan
{
NSDictionary
*
oldDict
=
[
self
objectForView
:
view
];
if
(
!
oldDict
)
{
[
self
addSubview
:
view
atRow:
row
column:
column
rowSpan:
rowSpan
colSpan:
colSpan
];
return
;
}
[
self
relayout
];
}
-
(
void
)
removeSubview
:(
NSView
*
)
view
{
NSDictionary
*
dict
=
[
self
objectForView
:
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