Code: Select all
<entry>
<variable>FILE</variable>
<input>echo '$FILE'</input>
<action type="enable">enable:FILE_BTN</action>
</entry>
<button relief="1" tooltip-text="Play the selected file or playlist (.m3u)">
<label>Play file </label>
<input file stock="gtk-media-play"></input>
<action>play_file &</action>'
# add disabled if needed
[ ! -e "$FILE" ] && VLCGTK=${VLCGTK}'<visible>disabled</visible>'
# continue GUI
VLCGTK=${VLCGTK}'
<variable>FILE_BTN</variable>
</button>
Maybe download VLC-GTK and see what I mean... I have to test further, but the only change I've made that would affect it is the gtkdialog update!
VLC-GTK: http://murga-linux.com/puppy/viewtopic.php?t=54753