[vlc-devel] commit: Expand the window downwards, as you would expect this on OS X. Additionally, centre it on open. ( Felix Paul Kühne )

git version control git at videolan.org
Wed Mar 26 16:29:39 CET 2008


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Mar 26 16:30:08 2008 +0100| [343184eadc45de2fb259393a37b2019fb2653059]

Expand the window downwards, as you would expect this on OS X. Additionally, centre it on open.

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

 modules/gui/macosx/simple_prefs.m |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index c9d5fa7..e8185ea 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -578,6 +578,7 @@ static VLCSimplePrefs *_o_sharedInstance = nil;
     
     [self resetControls];
 
+    [o_sprefs_win center];
     [o_sprefs_win makeKeyAndOrderFront: self];
 }
 
@@ -920,6 +921,7 @@ static VLCSimplePrefs *_o_sharedInstance = nil;
         /* restore our window's height, if we've shown another category previously */
         o_old_view_rect = [o_currentlyShownCategoryView frame];
         o_win_rect.size.height = o_win_rect.size.height - o_old_view_rect.size.height;
+        o_win_rect.origin.y = ( o_win_rect.origin.y + o_old_view_rect.size.height ) - o_view_rect.size.height;
 
         /* remove our previous category view */
         [o_currentlyShownCategoryView removeFromSuperviewWithoutNeedingDisplay];




More information about the vlc-devel mailing list