I made this little change because the way to write the data field were
different in shell than in octave. Now, a line in the data cell array is
a line in the list window. (It seems to me more logical).

Before, call was :

zenity_list('Title',{'Name of checkbox column','Name of choices
column'},{'FALSE','FALSE';'green','orange'}, 'checklist')

Now it is :

zenity_list('Title',{'Name of checkbox column','Name of choices
column'},{'FALSE','green';'FALSE','orange'}, 'checklist')

I just transposed the data array.
---
 zenity_list.m |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/zenity_list.m b/zenity_list.m
index 03e6c96..b8bbfa2 100644
--- a/zenity_list.m
+++ b/zenity_list.m
@@ -77,6 +77,7 @@ function s = zenity_list(title, columns, data, varargin)
   endfor
 
   columns = sprintf('--column="%s" ', columns{:});
+  data = data';
   data = sprintf("%s ", data{:});
 
   cmd = sprintf('zenity --list --title="%s" %s %s %s --print-column="%s" 
--separator=":" %s %s', ...
-- 
1.7.5


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to