09.00-tree 

09.00-tree.png

Example 28. File 09.00-tree

#! /bin/bash

#
# stock_column
# icon_column
#

export MAIN_DIALOG='
<vbox>
  <tree stock="gtk-file">
    <label>Permissions|Filename</label>
    <input>./list.sh</input>
    <height>100</height><width>400</width>
    <variable>TREE1</variable>
  </tree>
  <tree stock="gtk-file">
    <label>Permissions|Filename</label>
    <input icon_column="0">./list.sh</input>
    <height>100</height><width>400</width>
    <variable>TREE1</variable>
  </tree>
  <tree>
    <label>Device                        | Directory | File</label>
    <item stock="gtk-floppy">Floppy Disk | /floppy/  | ak.tex</item>
    <item stock="gtk-floppy">Floppy Disk | /floppy/  | ak.dvi</item>
    <item stock="gtk-floppy">Floppy Disk | /floppy/  | ak.ps</item>
    <item stock="gtk-floppy">Floppy Disk | /floppy/  | ak.pdf</item>
    <item stock="gtk-cdrom">CD_ROM Drive | /cdrom/   | </item>
    <height>100</height><width>400</width>
    <variable>TREE2</variable>
  </tree>
  <hbox>
    <button cancel></button>
    <button ok></button>
  </hbox>
</vbox>
'

GTKDIALOG=gtkdialog
if [ -x "$HOME/bin/gtkdialog" ]; then
        GTKDIALOG="$HOME/bin/gtkdialog"
fi

$GTKDIALOG --program=MAIN_DIALOG