Mercurial > hg > octave-avbm
changeset 7859:fdd465b00ec0
Rename add_listener to addlistener.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Wed, 12 Mar 2008 22:20:01 +0100 |
parents | dfae35ac4fb0 |
children | 67edbcb19665 |
files | src/ChangeLog src/graphics.cc |
diffstat | 2 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -37,6 +37,8 @@ 2008-06-04 Michael Goffioul <michael.goffioul@gmail.com> + * graphics.cc (Faddlistener): Rename from Fadd_listener. + * graphics.h.in (axes::properties::pixel2coord): Center Z coordinate on x_zlim instead of 0. (axes::properties::zoom, axes::properties::unzoom,
--- a/src/graphics.cc +++ b/src/graphics.cc @@ -3781,9 +3781,9 @@ return retval; } -DEFUN (add_listener, args, , +DEFUN (addlistener, args, , "-*- texinfo -*-\n\ -@deftypefn {Built-in Function} {} add_listener (@var{h}, @var{prop}, @var{fcn})\n\ +@deftypefn {Built-in Function} {} addlistener (@var{h}, @var{prop}, @var{fcn})\n\ Register @var{fcn} as listener for the property @var{prop} of the graphics\n\ object @var{h}. Property listeners are executed (in order of registration)\n\ when the property is set. The new value is already available when the\n\ @@ -3805,7 +3805,7 @@ fprintf (\"my_listener called with p1=%s\\n\", p1);\n\ endfunction\n\ \n\ -add_listener (gcf, \"position\", @{@@my_listener, \"my string\"@})\n\ +addlistener (gcf, \"position\", @{@@my_listener, \"my string\"@})\n\ @end example\n\ \n\ @end deftypefn") @@ -3831,14 +3831,14 @@ go.add_property_listener (pname, args(2), POSTSET); } else - error ("add_listener: invalid graphics object (= %g)", + error ("addlistener: invalid graphics object (= %g)", h); } else - error ("add_listener: invalid property name, expected a string value"); + error ("addlistener: invalid property name, expected a string value"); } else - error ("add_listener: invalid handle"); + error ("addlistener: invalid handle"); } else print_usage ();