/usr/lib/scilab-plotlib/macros/plotlib_handler.sci is in scilab-plotlib 0.42-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | function plotlib_handler(_win,_x,_y,_ibut)
global SCI5 eventHandlers
_flag=%f;
if _ibut~=-1000 // delete event...
_h=scf(_win);
if SCI5
_h.event_handler_enable='off';
else
seteventhandler('');
end
if typeof(_h.user_data)~='figureData' // Omar m'a tuer ...
_h.event_handler_enable='off';
_h.event_handler='';
return;
end
for _handler=_h.user_data.eventHandlers
evstr(_handler+'(_win,_x,_y,_ibut,_flag)');
end
if SCI5
_h.event_handler_enable='on';
else
seteventhandler('plotlib_handler');
end
else
if ~execstr('eventHandlers(_win+1)','errcatch')
for _handler=eventHandlers(_win+1)
[_flag,_err]=evstr(_handler+'(_win,_x,_y,_ibut,_flag)');
if _err
error('Plotlib: error in handler function '+_handler+' when processing event '+string(_ibut));
end
end
end
end
endfunction
|