I have having a mysterious problem with launching a child gtkdialog window using an "About" button. Here's the simple button code:
Code: Select all
<button><label>About snap2</label><action type="launch">ABOUT_DIALOG</action></button>
My overall code structure, simplified, looks like this:
(initialize variables, including ABOUT_DIALOG)
while true
do
(build up main window gtkdialog XML in MAIN_DIALOG)
I=$IFS; IFS=""
for STATEMENTS in $(gtkdialog --program=MAIN_DIALOG); do
eval $STATEMENTS
done
IFS=$I
(do different things according to buttons pressed and options checked. In some cases new gtkdialogs are built to give messages or get user input. The 'About' dialog works fine in these windows!)
done
The endless loop which puts up MAIN_DIALOG is exited with a break command.
Note that I am not using a menu.
I can't see any reason why the 'About' button should fail to open a new window, while exactly the same button code opens the About window fine in any gtkdialog window except the main one.
Any help would be greatly appreciated. I can email the full program code (which is contained in a single file), but at 31.8K it is probably too much to post here.