ui: bug #14299: use stricter 6.0 syntax for menu scripts 31/17631/1
Francois Granade [Wed, 6 Jan 2016 08:55:58 +0000 (09:55 +0100)]
Change-Id: I0b3ee52fcb42b59d783460898af5ac0dd39718b0

scilab/modules/gui/etc/main_toolbar.xml
scilab/modules/preferences/src/xslt/XCommon-toolbars.xsl

index 630a827..e616ae2 100644 (file)
@@ -6,7 +6,7 @@
     </button>
     <!-- Open File -->
     <button icon="document-open" tooltiptext="Open a file">
-        <callback instruction="           %fileToOpen = uigetfile(&quot;*.sc*&quot;, pwd(), gettext(&quot;Select a file to open with SciNotes&quot;),%t);           if %fileToOpen ~= &quot;&quot; then             editor(%fileToOpen);           end           clear(&quot;%fileToOpen&quot;);" type="0"/>
+        <callback instruction="           %fileToOpen = uigetfile(&quot;*.sc*&quot;, pwd(), gettext(&quot;Select a file to open with SciNotes&quot;),%t);           if %fileToOpen ~= &quot;&quot; then             editor(%fileToOpen);           end;           clear(&quot;%fileToOpen&quot;);" type="0"/>
     </button>
     <separator/>
     <!-- Copy -->
index c1bb046..f6ff02c 100644 (file)
                          %fileToOpen = uigetfile("*.sc*", pwd(), gettext("Select a file to open with SciNotes"));
                          if ~(%fileToOpen == "") then
                            editor(%fileToOpen);
-                         end
+                         end;
                          clear("%fileToOpen");'/>
                        <item title="Change folder"          icon="folder.png"                   script='
                          %newDir = uigetdir(pwd(), gettext("Select a directory"));
                          if ~(%newDir == "") then 
                            cd(%newDir);
-                         end
+                         end;
                          clear("%newDir");'/>
                        <item title="Module manager - ATOMS" icon="package-x-generic.png"        script='
                          if with_module("atoms") then