Hopefully resurrecting this thread works out OK ........
I have just begun to look at GtkDialog with a view to using it for simple Bash scripts. I am trying to wade through the documents I can find but am having a difficult time ..... possibly because I cannot programme in any language

In any case, starting with the simplest thing that occurred to me, which I of course failed to achieve, here is an example which allows me to select a file.
#! /bin/bash
export MAIN_DIALOG='
<window title="'$" My Programme "'"icon-name="'$"gtk-file"'">
<vbox spacing="20">
<pixmap>
<input file>"'/usr/share/icons/dobie-32x32-Bl.png'"</input>
</pixmap>
<frame Select your file>
<hbox>
<entry editable="'$"false"'" accept="'$"filename"'">
<variable>FILE1</variable>
</entry>
<button>
<input file stock="'$"gtk-file"'"></input>
<variable>FILE_BROWSE_FILENAME</variable>
<visible>enabled</visible>
<action type="'$"fileselect"'">FILE1</action>
</button>
</hbox>
</frame>
</vbox>
</window>
'
gtkdialog MAIN_DIALOGThis immediately raises some very simplistic (I am sure) questions .....
How does one determine the width of the window so that the window name is fully exposed?
Why do very strange things happen when I try to select a file of 0 bytes?
How can I limit the displayed files to maybe ".txt" files?
Lastly, a more general question ...... is there a listing somewhere to show me what are valid commands (?) ... not sure what they are called TBH ...... but a list of things like
<label>
<pixmap>
<button>
<variable>
<visible>
and so on. There must be somewhere I can access these so that I am aware of what might be available to be used.
Just the first steps .....