Commit 6a92d295 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 2fd9d799
......@@ -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;
/* remove the MRL view */
[o_mrl_view removeFromSuperviewWithoutNeedingDisplay];
[o_mrl_view removeFromSuperview];
} else {
/* we need to expand */
[o_mrl_view setFrame: NSMakeRect( 0,
[o_mrl_btn frame].origin.y,
o_view_rect.size.width,
o_view_rect.size.height )];
[o_mrl_view setNeedsDisplay: YES];
[o_mrl_view setNeedsDisplay: NO];
[o_mrl_view setAutoresizesSubviews: YES];
/* add the MRL view */
[[o_panel contentView] addSubview: o_mrl_view];
/* enlarge panel size for MRL view */
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 displayIfNeeded];
if( [o_mrl_btn state] == NSOnState )
[[o_panel contentView] addSubview: o_mrl_view];
}
- (IBAction)inputSlaveAction:(id)sender
......
......@@ -256,8 +256,8 @@ static VLCInfo *_o_sharedInstance = nil;
}
/* fill uri info */
char * psz_url = input_item_GetURI( p_item );
[o_uri_txt setStringValue: [NSString stringWithUTF8String: psz_url ? psz_url : "" ]];
char * psz_url = decode_URI( input_item_GetURI( p_item ) );
[o_uri_txt setStringValue:[NSString stringWithUTF8String: psz_url ? psz_url : ""]];
free( psz_url );
/* 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