diff scripts/plot/util/hdl2struct.m @ 28298:e55ff14249c3

Mirror new base property "contextmenu" in "uicontextmenu" (bug #58336). * graphics.in.h (base_properties): Add new property "contextmenu". Hide legacy property "uicontextmenu". (base_properties::get_uicontextmenu, base_properties::set_uicontextmenu): Add functions that redirect to "contextmenu" value. (axes::properties, scatter::properties): Remove property "contextmenu". * graphics.cc (base_properties::update_contextmenu): Rename from base_properties::update_uicontextmenu. (uicontextmenu::~uicontextmenu): Remove self from "contextmenu" property. * hdl2struct.m, struct2hdl.m: Update for new base property. * doc/interpreter/genpropdoc.m: Move description of "uicontextmenu" property to "contextmenu".
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 16 May 2020 18:45:34 +0200
parents 9f9ac219896d
children de5f2f9a64ff
line wrap: on
line diff
--- a/scripts/plot/util/hdl2struct.m	Thu May 14 11:32:06 2020 +0200
+++ b/scripts/plot/util/hdl2struct.m	Sat May 16 18:45:34 2020 +0200
@@ -139,12 +139,13 @@
   persistent excluded;
 
   if (isempty (excluded))
-    excluded = cell2struct (repmat ({[]}, 1, 15),
+    excluded = cell2struct (repmat ({[]}, 1, 16),
                             {"beingdeleted", "busyaction", "buttondownfcn", ...
-                             "children", "clipping", "createfcn", ...
-                             "deletefcn", "handlevisibility", "hittest", ...
-                             "interruptible", "parent", "selected" , ...
-                             "selectionhighlight", "type", "uicontextmenu"}, 2);
+                             "children", "clipping", "contextmenu", ...
+                             "createfcn", "deletefcn", "handlevisibility", ...
+                             "hittest", "interruptible", "parent", ...
+                             "selected" , "selectionhighlight", "type", ...
+                             "uicontextmenu"}, 2);
   endif
 
   obj = get (h);