#! /bin/bash

export MAIN_DIALOG='
<vbox>
  <menubar>
    <menu>
      <menuitem>
        <label>gtk-open</label>
      </menuitem>
      <menuitem>
        <label>gtk-save</label>
        <action type="save">TREE</action>
      </menuitem>
      <menuitem>
        <label>gtk-quit</label>
	<action>pwd</action>
	<action type="exit">=quit</action>
      </menuitem>
      <label>File</label>
    </menu>
    <menu>
      <menuitem>
        <label>gtk-add</label>
	<action type="insert">ENTRY, TREE</action>
      </menuitem>
      <menuitem>
        <label>gtk-remove</label>
	<action type="removeselected">TREE</action>
      </menuitem>
      <menuitem>
        <label>gtk-clear</label>
	<action type="clear">TREE</action>
      </menuitem>
      <label>Edit</label>
    </menu>
    <menu>
      <menuitem>
        <label>gtk-yes</label>
	<action type="enable">TREE</action>
      </menuitem>
      <menuitem>
        <label>gtk-no</label>
	<action type="disable">TREE</action>
      </menuitem>
      <label>Enabled</label>
    </menu>
  </menubar>
  <entry>
    <variable>ENTRY</variable>
  </entry>
  <tree>
    <input file>tmp.text</input>
    <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>200</height>
    <width>300</width>
    <variable>TREE</variable>
  </tree>
</vbox>
'

gtkdialog --program=MAIN_DIALOG
