Mercurial > octave
diff scripts/plot/util/private/__add_default_menu__.m @ 28945:6e460773bdda
maint: Use newlines after "function" and before "endfunction" for clarity.
* quad2d.m, rng.m, __ok_cancel_dlg__.m, __unimplemented__.m,
get_first_help_sentence.m, imformats.m, vectorize.m, ordeig.m, inputParser.m,
tar_is_bsd.m, publish.m, axis.m, legend.m, polar.m, __plt__.m, print.m,
__add_default_menu__.m, __gnuplot_draw_axes__.m, struct2hdl.m, movfun.m,
gmres.m, pcg.m, __alltohandles__.m, tfqmr.m, betaincinv.m, gammainc.m,
gammaincinv.m, mean.m, weboptions.m:
Use newlines after "function" and before "endfunction" for clarity.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 16 Oct 2020 09:27:56 -0700 |
parents | 601b6c7728ed |
children | 7854d5752dd2 |
line wrap: on
line diff
--- a/scripts/plot/util/private/__add_default_menu__.m Thu Oct 15 21:24:06 2020 -0700 +++ b/scripts/plot/util/private/__add_default_menu__.m Fri Oct 16 09:27:56 2020 -0700 @@ -242,6 +242,7 @@ set (hf, "filename", fname); saveas (hf, fname, fmt); endif + endfunction function close_cb (~, ~) @@ -276,6 +277,7 @@ endfunction function guimode_cb (h, ~) + [hax, fig] = __get_axes__ (h); id = get (h, "tag"); switch (id) @@ -295,6 +297,7 @@ case "zoom_off" arrayfun (@(h) set (h, "mousewheelzoom", 0.0), hax); endswitch + endfunction function mouse_tools_cb (h, ~, htools, typ = "") @@ -413,6 +416,7 @@ endfunction function clipboard_cb (h, ~) + hf = gcbf (); fname = tempname (); props = {"inverthardcopy", "paperposition", "paperpositionmode"}; @@ -424,4 +428,5 @@ unwind_protect_cleanup set (hf, props, values); end_unwind_protect + endfunction