[vlc-commits] macosx: Set correct font for NSButton in extensions
Marvin Scholz
git at videolan.org
Fri Feb 16 19:43:16 CET 2018
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri Feb 16 19:43:04 2018 +0100| [f7c023b5cdb795f858428951ea686b748e516dfc] | committer: Marvin Scholz
macosx: Set correct font for NSButton in extensions
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f7c023b5cdb795f858428951ea686b748e516dfc
---
modules/gui/macosx/VLCExtensionsDialogProvider.m | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/gui/macosx/VLCExtensionsDialogProvider.m b/modules/gui/macosx/VLCExtensionsDialogProvider.m
index f85cf139f0..ebcf989f29 100644
--- a/modules/gui/macosx/VLCExtensionsDialogProvider.m
+++ b/modules/gui/macosx/VLCExtensionsDialogProvider.m
@@ -81,6 +81,7 @@ static NSView *createControlFromWidget(extension_widget_t *widget, id self)
[button setWidget:widget];
[button setAction:@selector(triggerClick:)];
[button setTarget:self];
+ [button setFont:[NSFont systemFontOfSize:0.0]];
[[button cell] setControlSize:NSRegularControlSize];
[button setAutoresizingMask:NSViewWidthSizable];
return button;
@@ -92,6 +93,7 @@ static NSView *createControlFromWidget(extension_widget_t *widget, id self)
[button setWidget:widget];
[button setAction:@selector(triggerClick:)];
[button setTarget:self];
+ [button setFont:[NSFont systemFontOfSize:0.0]];
[[button cell] setControlSize:NSRegularControlSize];
[button setAutoresizingMask:NSViewNotSizable];
return button;
More information about the vlc-commits
mailing list