string windowId = rAction.substr( 0, leftPos );
if( windowId == "playlist_window" &&
- !config_GetInt( getIntf(), "skinned-playlist") )
+ !var_InheritBool( getIntf(), "skinned-playlist") )
{
list<CmdGeneric *> list;
list.push_back( new CmdDlgPlaylist( getIntf() ) );
int leftPos = rAction.find( ".hide()" );
string windowId = rAction.substr( 0, leftPos );
if( windowId == "playlist_window" &&
- ! config_GetInt( getIntf(), "skinned-playlist") )
+ !var_InheritBool( getIntf(), "skinned-playlist") )
{
list<CmdGeneric *> list;
list.push_back( new CmdDlgPlaylist( getIntf() ) );
}
// Load a theme
- skin_last = config_GetPsz( p_intf, "skins2-last" );
+ skin_last = var_InheritString( p_intf, "skins2-last" );
pLoader = new ThemeLoader( p_intf );
if( !skin_last || !pLoader->load( skin_last ) )
if( pIntf == NULL )
return VLC_EGENERIC;
- if( !config_GetInt( pIntf, "skinned-video") ||
+ if( !vlc_object_alive( pIntf ) ||
+ !var_InheritBool( pIntf, "skinned-video") ||
pWnd->cfg->is_standalone )
{
vlc_object_release( pIntf );
}
// Check if the skin to load is in the config file, to load its config
- char *skin_last = config_GetPsz( getIntf(), "skins2-last" );
+ char *skin_last = var_InheritString( getIntf(), "skins2-last" );
if( skin_last != NULL && fileName == (string)skin_last )
{
// Restore the theme configuration
}
// retrieve last skins stored or skins requested by user
- char* psz_current = config_GetPsz( getIntf(), "skins2-last" );
+ char* psz_current = var_InheritString( getIntf(), "skins2-last" );
string current = string( psz_current ? psz_current : "" );
// set the default skins if no skins provided
vlc_value_t val, text;
// retrieve the current skin
- char* psz_current = config_GetPsz( getIntf(), "skins2-last" );
+ char* psz_current = var_InheritString( getIntf(), "skins2-last" );
if( !psz_current )
return;
if( m_pAout )
pFilters = var_GetNonEmptyString( m_pAout, "audio-filter" );
else
- pFilters = config_GetPsz( getIntf(), "audio-filter" );
+ pFilters = var_InheritString( getIntf(), "audio-filter" );
bool b_equalizer = pFilters && strstr( pFilters, "equalizer" );
free( pFilters );
m_movingWindows.clear();
buildDependSet( m_movingWindows, &rWindow );
- if( config_GetInt( getIntf(), "skins2-transparency" ) )
+ if( var_InheritBool( getIntf(), "skins2-transparency" ) )
{
// Change the opacity of the moving windows
WinSet_t::const_iterator it;
WinSet_t::const_iterator itWin1, itWin2;
AncList_t::const_iterator itAnc1, itAnc2;
- if( config_GetInt( getIntf(), "skins2-transparency" ) )
+ if( var_InheritBool( getIntf(), "skins2-transparency" ) )
{
// Restore the opacity of the moving windows
WinSet_t::const_iterator it;
strcpy( m_trayIcon.szTip, "VLC media player" );
// Show the systray icon if needed
- if( config_GetInt( getIntf(), "skins2-systray" ) )
+ if( var_InheritBool( getIntf(), "skins2-systray" ) )
{
addInTray();
}
// Show the task in the task bar if needed
- if( config_GetInt( getIntf(), "skins2-taskbar" ) )
+ if( var_InheritBool( getIntf(), "skins2-taskbar" ) )
{
addInTaskBar();
}