File: _del_event_handler.sci

package info (click to toggle)
scilab-plotlib 0.41-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,196 kB
  • sloc: xml: 3,308; makefile: 15
file content (18 lines) | stat: -rw-r--r-- 310 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function _del_event_handler(win,_function_name)

global eventHandlers

if type(win)==1
  h=scf(win);
else
  h=win;
  win=h.figure_id;
end

_ind=find(h.user_data.eventHandlers==_function_name);
if _ind~=[]
  h.user_data.eventHandlers(_ind)=[];
  eventHandlers(win+1)=h.user_data.eventHandlers;
end

endfunction