vlc | branch: master | Felix Paul Kühne <[email protected]> | Sat May 11 16:10:21 2013 +0200| [41aa370bf0da16cb3db7cf44db4f7a571fa69154] | committer: Felix Paul Kühne
macosx: add support for checkboxes created through lua scripts (close #8561) > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=41aa370bf0da16cb3db7cf44db4f7a571fa69154 --- modules/gui/macosx/ExtensionsDialogProvider.m | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/gui/macosx/ExtensionsDialogProvider.m b/modules/gui/macosx/ExtensionsDialogProvider.m index 41cc388..9153e14 100644 --- a/modules/gui/macosx/ExtensionsDialogProvider.m +++ b/modules/gui/macosx/ExtensionsDialogProvider.m @@ -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]; _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
