gnome/extensions/remove-dropdown-arrows@mpdeimos.com/extension.js
/**
 * Try hide a single dropdown actor.
 *
 * Return true on success.
 */
Try hide a single dropdown actor.
Return true on success.
Try hide a single dropdown actor . Return true on success .
function _apply(actor)
{
    if (!actor.has_style_class_name || !actor.has_style_class_name('popup-menu-arrow'))
    {
        return false;
    }
    actor.hide();
    if (dropdowns.indexOf(actor) < 0)
    {
        let connection = {
            object: actor,
            id: actor.connect('destroy', function()
            {
                let index;
                index = signalConnections.indexOf(connection);
                if (index >= 0)
                {
                    signalConnections.splice(index, 1);
                }
                index = dropdowns.indexOf(actor);
                if (index >= 0)
                {
                    dropdowns.splice(index, 1);
                }
            })
        };
        signalConnections.push(connection);
        dropdowns.push(actor);
    }
    return true;
}
function _apply ( actor ) { if ( ! actor . has_style_class_name || ! actor . has_style_class_name ( 'popup-menu-arrow' ) ) { return false ; } actor . hide ( ) ; if ( dropdowns . indexOf ( actor ) < 0 ) { let connection = { object : actor , id : actor . connect ( 'destroy' , function ( ) { let index ; index = signalConnections . indexOf ( connection ) ; if ( index >= 0 ) { signalConnections . splice ( index , 1 ) ; } index = dropdowns . indexOf ( actor ) ; if ( index >= 0 ) { dropdowns . splice ( index , 1 ) ; } } ) } ; signalConnections . push ( connection ) ; dropdowns . push ( actor ) ; } return true ; }
Try hide a single dropdown actor.
Try hide a single dropdown actor .