- (void)awakeFromNib
{
[o_info_window setExcludedFromWindowsMenu: YES];
- [o_info_window setFloatingPanel: NO];
if (!OSX_SNOW_LEOPARD)
[o_info_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[o_lost_abuffers_lbl setStringValue: _NS("Lost buffers")];
[o_info_window setInitialFirstResponder: o_uri_txt];
- [o_info_window setDelegate: self];
b_awakeFromNib = YES;
- (void)initPanel
{
- b_stats = config_GetInt(VLCIntf, "stats");
+ b_stats = var_InheritBool(VLCIntf, "stats");
if (!b_stats) {
if ([o_tab_view numberOfTabViewItems] > 2)
[o_tab_view removeTabViewItem: [o_tab_view tabViewItemAtIndex: 2]];
else
[self initMediaPanelStats];
- NSInteger i_level = [[[VLCMain sharedInstance] voutController] currentWindowLevel];
+ NSInteger i_level = [[[VLCMain sharedInstance] voutController] currentStatusWindowLevel];
[o_info_window setLevel: i_level];
- [o_info_window makeKeyAndOrderFront: self];
+ [o_info_window makeKeyAndOrderFront:nil];
}
- (void)initMediaPanelStats
[o_image_well setImage: [NSImage imageNamed: @"noart.png"]];
} else {
if (!input_item_IsPreparsed(p_item))
- playlist_PreparseEnqueue(pl_Get(VLCIntf), p_item);
+ libvlc_MetaRequest(VLCIntf->p_libvlc, p_item, META_REQUEST_OPTION_NONE);
/* fill uri info */
char * psz_url = decode_URI(input_item_GetURI(p_item));
/* reload the advanced table */
[rootItem refresh];
[o_outline_view reloadData];
+ [o_outline_view expandItem:nil expandChildren:YES];
/* update the stats once to display p_item change faster */
[self updateStatistics];
error:
NSRunAlertPanel(_NS("Error while saving meta"),
- _NS("VLC was unable to save the meta data."),
+ @"%@",_NS("VLC was unable to save the meta data."),
_NS("OK"), nil, nil);
}
- (IBAction)downloadCoverArt:(id)sender
{
playlist_t * p_playlist = pl_Get(VLCIntf);
- if (p_item) libvlc_ArtRequest(VLCIntf->p_libvlc, p_item);
+ if (p_item) libvlc_ArtRequest(VLCIntf->p_libvlc, p_item, META_REQUEST_OPTION_NONE);
}
- (input_item_t *)item