Mercurial > hg > octave-lojdl
changeset 8139:6b3a965b6c7d
genprops.awk: emit set_mode calls before updaters
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 24 Sep 2008 10:11:14 -0400 |
parents | 877faa7aa9b2 |
children | cdd05e46f6c9 |
files | src/ChangeLog src/genprops.awk |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-09-24 John W. Eaton <jwe@octave.org> + + * genprops.awk (emit_declarations): Emit call to set_mode before + updaters. + 2008-09-23 John W. Eaton <jwe@octave.org> * pt-arg-list.cc (F__end__): Dispatch to user-defined end
--- a/src/genprops.awk +++ b/src/genprops.awk @@ -334,12 +334,12 @@ printf ("\n {\n if (! error_state)\n {\n if (%s.set (val, %s))\n {\n", name[i], (has_builtin_listeners ? "false" : "true")); + if (mode[i]) + printf (" set_%smode (\"manual\");\n", name[i]); if (updater[i]) printf (" update_%s ();\n", name[i]); if (limits[i]) printf (" update_axis_limits (\"%s\");\n", name[i]); - if (mode[i]) - printf (" set_%smode (\"manual\");\n", name[i]); if (has_builtin_listeners) printf (" %s.run_listeners (POSTSET);\n", name[i]); printf (" mark_modified ();\n");