#!/bin/sh
export chooser="
<window title=\"Pburn - $TITLE\" icon-name=\"gtk-cdrom\">
 <vbox>
  <chooser>
   <height>500</height><width>600</width>
   <variable>CHOOSER</variable>
  </chooser>
  <hbox>
   <button>
    <input file icon=\"gtk-cancel\"></input>
    <label>$LOC_CANCEL</label>
    <action>EXIT:cancel</action>
   </button>
   <button can-default=\"true\" has-default=\"true\" use-stock=\"true\">
    <input file icon=\"gtk-apply\"></input>
    <label>$LOC_OK</label>
    <action>EXIT:OK</action>
   </button>
  </hbox>
 </vbox>
</window>"
I=$IFS; IFS=""
for STATEMENTS in  $($GTKDIALOG -p chooser --center); do
	eval $STATEMENTS
done
IFS=$I
if [ $EXIT = "OK" ]; then
	#check if hit is directory
	if [ "$GET_OUTDIR" = "true" ]; then
		if [ ! -d "$CHOOSER" ]; then 
			TXT1="$LOC317"
			. $APPDIR/box -ok
			exit
		fi
		echo "$CHOOSER" > $WORKDIR/OUTDIR
	fi
	if [ "$SLIDESHOW" = "true" ]; then
		echo "$CHOOSER" > $WORKDIR/BACKGROUND_MUSIC
	fi
fi
	