Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
41aa370b
Commit
41aa370b
authored
May 11, 2013
by
Felix Paul Kühne
Browse files
macosx: add support for checkboxes created through lua scripts (close #8561)
parent
fb56090c
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/gui/macosx/ExtensionsDialogProvider.m
View file @
41aa370b
...
...
@@ -73,6 +73,17 @@ static NSView *createControlFromWidget(extension_widget_t *widget, id self)
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
syncTextField
:
)
name
:
NSControlTextDidChangeNotification
object
:
field
];
return
field
;
}
case
EXTENSION_WIDGET_CHECK_BOX
:
{
VLCDialogButton
*
button
=
[[
VLCDialogButton
alloc
]
init
];
[
button
setButtonType
:
NSSwitchButton
];
[
button
setWidget
:
widget
];
[
button
setAction
:
@selector
(
triggerClick
:)];
[
button
setTarget
:
self
];
[[
button
cell
]
setControlSize
:
NSRegularControlSize
];
[
button
setAutoresizingMask
:
NSViewWidthSizable
];
return
button
;
}
case
EXTENSION_WIDGET_BUTTON
:
{
VLCDialogButton
*
button
=
[[
VLCDialogButton
alloc
]
init
];
...
...
Write
Preview
Supports
Markdown
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