callback_type property is setted to 10 in demo_viewCode macro if not the code is... 97/19697/2
Adeline CARNIS [Mon, 22 Jan 2018 10:22:03 +0000 (11:22 +0100)]
To test: Demo > Graphics > Animation > Riemann surface

Change-Id: Ie0f313461041845d50379a32388da5e87fb1397f

scilab/modules/demo_tools/macros/demo_viewCode.sci

index 6152fa8..cd23d0b 100644 (file)
@@ -35,12 +35,14 @@ function demo_viewCode(this_script)
         my_submenu = uimenu("parent", my_menu , ..
         "label"       , gettext("Open in Editor"), ..
         "Foregroundcolor" , [ 0/255 81/255 6/255 ]     , ..
-        "callback"    , "editor("""+path+""", ""readonly"")" );
+        "callback"    , "editor("""+path+""", ""readonly"")", ...
+               "callback_type", 10);
     else
         my_menu = uimenu( "parent"      , my_fig             , ..
         "label"       , gettext(" -- View Code -- ") , ..
         "Foregroundcolor" , [ 0/255 81/255 6/255 ]     , ..
-        "callback"    , "editor("""+path+""", ""readonly"")" );
+        "callback"    , "editor("""+path+""", ""readonly"")", ...
+               "callback_type", 10);
     end
 endfunction