[vlc-commits] macosx: fix search field size on Lion (fixes #5566)

Felix Paul Kühne git at videolan.org
Fri Dec 23 02:04:12 CET 2011


vlc/vlc-1.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Dec 22 19:49:22 2011 +0100| [7aae74e295818a2effa375981fc250ded4a890d4] | committer: Jean-Baptiste Kempf

macosx: fix search field size on Lion (fixes #5566)

needs testing on Snow Leopard and Leopard
(cherry picked from commit f7aedf89f00ff9f67c74673d302dbf115440b1ea)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 822ea93..c8ec264 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