[vlc-commits] macosx: fix search field size on Lion (fixes #5566)
Felix Paul Kühne
git at videolan.org
Thu Dec 22 19:50:38 CET 2011
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Dec 22 19:49:22 2011 +0100| [f7aedf89f00ff9f67c74673d302dbf115440b1ea] | committer: Felix Paul Kühne
macosx: fix search field size on Lion (fixes #5566)
needs testing on Snow Leopard and Leopard
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f7aedf89f00ff9f67c74673d302dbf115440b1ea
---
modules/gui/macosx/MainWindow.m | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index d264e30..fed5949 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -271,6 +271,15 @@ static VLCMainWindow *_o_sharedInstance = nil;
[o_fullscreen_btn removeFromSuperviewWithoutNeedingDisplay];
}
+ if (OSX_LION)
+ {
+ /* the default small size of the search field is slightly different on Lion, let's work-around that */
+ NSRect frame;
+ frame = [o_search_fld frame];
+ frame.origin.y = frame.origin.y + 2.0;
+ frame.size.height = frame.size.height - 1.0;
+ [o_search_fld setFrame: frame];
+ }
/* create the sidebar */
o_sidebaritems = [[NSMutableArray alloc] init];
More information about the vlc-commits
mailing list