Mercurial > octave
changeset 28594:6e8d14f4fb2f
Restore operation of Figure graphics callbacks (bug #58821).
* __add_default_menu__.m: Add '~' for unused inputs to graphics callback
function prototypes.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 24 Jul 2020 10:22:54 -0700 |
parents | a9f1a922367b |
children | 4deb794d85e2 |
files | scripts/plot/util/private/__add_default_menu__.m |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/private/__add_default_menu__.m Fri Jul 24 09:49:09 2020 -0700 +++ b/scripts/plot/util/private/__add_default_menu__.m Fri Jul 24 10:22:54 2020 -0700 @@ -172,7 +172,7 @@ set (htb, "visible", toolbar_state); endfunction -function open_cb () +function open_cb (~, ~) [filename, filedir] = uigetfile ({"*.ofig;*.fig", "Figure Files"}, ... "Open Figure"); if (filename != 0) @@ -239,7 +239,7 @@ endif endfunction -function close_cb () +function close_cb (~, ~) close (gcbf ()); endfunction @@ -251,7 +251,7 @@ hax = findobj (fig, "type", "axes", "-not", "tag", "legend"); endfunction -function autoscale_cb (h) +function autoscale_cb (h, ~) hax = __get_axes__ (h); arrayfun (@(h) axis (h, "auto"), hax); drawnow (); @@ -270,7 +270,7 @@ "FigureHandle", hf)); endfunction -function guimode_cb (h) +function guimode_cb (h, ~) [hax, fig] = __get_axes__ (h); id = get (h, "tag"); switch (id) @@ -378,7 +378,7 @@ endfunction -function axes_cb (h) +function axes_cb (h, ~) hax = get (gcbf (), "currentaxes"); if (! isempty (hax)) if (strcmp (get (hax, "visible"), "on")) @@ -389,7 +389,7 @@ endif endfunction -function grid_cb (h) +function grid_cb (h, ~) hax = get (gcbf (), "currentaxes"); if (! isempty (hax)) if (strcmp (get (hax, "xgrid"), "on") && strcmp (get (hax, "ygrid"), "on")) @@ -400,14 +400,14 @@ endif endfunction -function auto_cb (h) +function auto_cb (h, ~) hax = get (gcbf (), "currentaxes"); if (! isempty (hax)) axis (hax, "auto"); endif endfunction -function clipboard_cb (h) +function clipboard_cb (h, ~) hf = gcbf (); fname = tempname (); props = {"inverthardcopy", "paperposition", "paperpositionmode"};