[vlc-devel] commit: macosx dialog provider: use default system font for the scripted dialogs ( Felix Paul Kühne )

git version control git at videolan.org
Sun Jan 31 14:44:44 CET 2010


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Jan 31 14:44:27 2010 +0100| [afce80d78bf6b8205fceff44c5ddf69e32964d38] | committer: Felix Paul Kühne 

macosx dialog provider: use default system font for the scripted dialogs

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=afce80d78bf6b8205fceff44c5ddf69e32964d38
---

 .../gui/macosx_dialog_provider/dialogProvider.m    |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx_dialog_provider/dialogProvider.m b/modules/gui/macosx_dialog_provider/dialogProvider.m
index c2591ba..0cee15a 100644
--- a/modules/gui/macosx_dialog_provider/dialogProvider.m
+++ b/modules/gui/macosx_dialog_provider/dialogProvider.m
@@ -964,6 +964,7 @@ static NSView *createControlFromWidget(extension_widget_t *widget, id self)
             [field setEditable:NO];
             [field setBordered:NO];
             [field setDrawsBackground:NO];
+            [field setFont:[NSFont systemFontOfSize:0]];
             [[field cell] setControlSize:NSRegularControlSize];
             [field setAutoresizingMask:NSViewNotSizable];
             return field;
@@ -973,6 +974,7 @@ static NSView *createControlFromWidget(extension_widget_t *widget, id self)
             VLCDialogTextField *field = [[VLCDialogTextField alloc] init];
             [field setWidget:widget];
             [field setAutoresizingMask:NSViewWidthSizable];
+            [field setFont:[NSFont systemFontOfSize:0]];
             [[field cell] setControlSize:NSRegularControlSize];
             [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(syncTextField:)  name:NSControlTextDidChangeNotification object:field];
             return field;




More information about the vlc-devel mailing list