vlc | branch: master | Felix Paul Kühne <[email protected]> | Sat May 11 16:16:36 2013 +0200| [5a60b8240f3a6a8612c9df435ced007cd42aef24] | committer: Felix Paul Kühne
macosx dialog provider: add checkbox synthesis (refs #8561) > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5a60b8240f3a6a8612c9df435ced007cd42aef24 --- modules/gui/macosx_dialog_provider/dialogProvider.m | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/gui/macosx_dialog_provider/dialogProvider.m b/modules/gui/macosx_dialog_provider/dialogProvider.m index 3a71775..dc284d4 100644 --- a/modules/gui/macosx_dialog_provider/dialogProvider.m +++ b/modules/gui/macosx_dialog_provider/dialogProvider.m @@ -597,6 +597,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
