[vlc-commits] macosx: add support for checkboxes created through lua scripts (close #8561 )

Felix Paul Kühne git at videolan.org
Sat May 11 16:14:40 CEST 2013


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | 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];



More information about the vlc-commits mailing list