Mercurial > octave
changeset 27698:f65b1666e650
don't notify toolkit when setting beingdeleted property (bug #56952)
* graphics.in.h (base_properties::set_beingdeleted): New function.
Set notify_toolkit parameter to false in call to bool_property::set
function.
(base_properties::beingdeleted): Tag property with "s" to avoid
generating "set" function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 15 Nov 2019 18:09:57 -0500 |
parents | 5e8891dceec7 |
children | c9d9aae197c3 |
files | libinterp/corefcn/graphics.in.h |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.in.h Fri Nov 15 18:06:28 2019 -0500 +++ b/libinterp/corefcn/graphics.in.h Fri Nov 15 18:09:57 2019 -0500 @@ -2272,6 +2272,11 @@ virtual void delete_listener (const caseless_str&, const octave_value&, listener_mode = GCB_POSTSET); + void set_beingdeleted (const octave_value& val) + { + beingdeleted.set (val, true, false); + } + void set_tag (const octave_value& val) { tag = val; } void set_parent (const octave_value& val); @@ -2364,7 +2369,7 @@ BEGIN_BASE_PROPERTIES // properties common to all objects - bool_property beingdeleted , "off" + bool_property beingdeleted s , "off" radio_property busyaction , "{queue}|cancel" callback_property buttondownfcn , Matrix () children_property children gf , Matrix ()