gnome/extensions/remove-dropdown-arrows@mpdeimos.com/extension.js
/**
 * Similar function to _recursiveApply(), but intended for containers.
 */
Similar function to _recursiveApply(), but intended for containers.
Similar function to _recursiveApply () but intended for containers .
function _recursiveApplyInternal(actor, depth)
{
    if (typeof actor.get_children === 'undefined')
    {
        return false;
    }
    let children = actor.get_children();
    if (children.length == 0)
    {
        _scheduleApply(actor);
        return false;
    }
    if (children.map(child => _apply(child)).indexOf(true) >= 0)
    {
        return true;
    }
    if (depth < MAX_RECURSE_DEPTH)
    {
        if (children.map(child => _recursiveApplyInternal(child, depth +1)).indexOf(true) >= 0)
        {
            return true;
        }
    }
    return false;
}
function _recursiveApplyInternal ( actor , depth ) { if ( typeof actor . get_children === 'undefined' ) { return false ; } let children = actor . get_children ( ) ; if ( children . length == 0 ) { _scheduleApply ( actor ) ; return false ; } if ( children . map ( child => _apply ( child ) ) . indexOf ( true ) >= 0 ) { return true ; } if ( depth < MAX_RECURSE_DEPTH ) { if ( children . map ( child => _recursiveApplyInternal ( child , depth + 1 ) ) . indexOf ( true ) >= 0 ) { return true ; } } return false ; }
Similar function to _recursiveApply(), but intended for containers.
Similar function to _recursiveApply () but intended for containers .
// If there are no children then it's possible that actor hasn't been fully initialized yet. // Shedule to check later. // Check actor immediate children before using recursion // Check children recursively