Commit a96776fc authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: cosmetics

decode URL for the Info panel, fixed potential redraw issue in the open panel
parent 9d841bf2
...@@ -467,7 +467,7 @@ ...@@ -467,7 +467,7 @@
s_rc.origin.x = 481; s_rc.origin.x = 481;
s_rc.origin.y = 64; s_rc.origin.y = 64;
s_rc.size.width = 55; s_rc.size.width = 55;
addTextfield( VLCTimefield, o_streamPosition_txt, NSRightTextAlignment, systemFontOfSize, whiteColor, 0 ); addTextfield( VLCTimeField, o_streamPosition_txt, NSRightTextAlignment, systemFontOfSize, whiteColor, 0 );
return view; return view;
} }
......
/***************************************************************************** /*****************************************************************************
* open.m: Open dialogues for VLC's MacOS X port * open.m: Open dialogues for VLC's MacOS X port
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2009 the VideoLAN team * Copyright (C) 2002-2011 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...@@ -479,23 +479,24 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -479,23 +479,24 @@ static VLCOpen *_o_sharedMainInstance = nil;
o_win_rect.origin.y = ( o_win_rect.origin.y + o_view_rect.size.height ) - o_view_rect.size.height; o_win_rect.origin.y = ( o_win_rect.origin.y + o_view_rect.size.height ) - o_view_rect.size.height;
/* remove the MRL view */ /* remove the MRL view */
[o_mrl_view removeFromSuperviewWithoutNeedingDisplay]; [o_mrl_view removeFromSuperview];
} else { } else {
/* we need to expand */ /* we need to expand */
[o_mrl_view setFrame: NSMakeRect( 0, [o_mrl_view setFrame: NSMakeRect( 0,
[o_mrl_btn frame].origin.y, [o_mrl_btn frame].origin.y,
o_view_rect.size.width, o_view_rect.size.width,
o_view_rect.size.height )]; o_view_rect.size.height )];
[o_mrl_view setNeedsDisplay: YES]; [o_mrl_view setNeedsDisplay: NO];
[o_mrl_view setAutoresizesSubviews: YES]; [o_mrl_view setAutoresizesSubviews: YES];
/* add the MRL view */ /* enlarge panel size for MRL view */
[[o_panel contentView] addSubview: o_mrl_view];
o_win_rect.size.height = o_win_rect.size.height + o_view_rect.size.height; o_win_rect.size.height = o_win_rect.size.height + o_view_rect.size.height;
} }
[o_panel setFrame: o_win_rect display:YES animate: YES]; [o_panel setFrame: o_win_rect display:YES animate: YES];
[o_panel displayIfNeeded]; [o_panel displayIfNeeded];
if( [o_mrl_btn state] == NSOnState )
[[o_panel contentView] addSubview: o_mrl_view];
} }
- (IBAction)inputSlaveAction:(id)sender - (IBAction)inputSlaveAction:(id)sender
......
...@@ -256,8 +256,8 @@ static VLCInfo *_o_sharedInstance = nil; ...@@ -256,8 +256,8 @@ static VLCInfo *_o_sharedInstance = nil;
} }
/* fill uri info */ /* fill uri info */
char * psz_url = input_item_GetURI( p_item ); char * psz_url = decode_URI( input_item_GetURI( p_item ) );
[o_uri_txt setStringValue: [NSString stringWithUTF8String: psz_url ? psz_url : "" ]]; [o_uri_txt setStringValue: [NSString stringWithUTF8String: psz_url ? psz_url : ""]];
free( psz_url ); free( psz_url );
/* fill title info */ /* fill title info */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment