Commit 5a60b824 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx dialog provider: add checkbox synthesis (refs #8561)

parent bd0c4a17
...@@ -597,6 +597,17 @@ static NSView *createControlFromWidget(extension_widget_t *widget, id self) ...@@ -597,6 +597,17 @@ static NSView *createControlFromWidget(extension_widget_t *widget, id self)
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(syncTextField:) name:NSControlTextDidChangeNotification object:field]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(syncTextField:) name:NSControlTextDidChangeNotification object:field];
return 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: case EXTENSION_WIDGET_BUTTON:
{ {
VLCDialogButton *button = [[VLCDialogButton alloc] init]; VLCDialogButton *button = [[VLCDialogButton alloc] init];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment