Normally Dialogs inherit the icon from the parent window. I have a frame and a Dialog and Frame is the parent of the dialog. I have set the frame's icon to 'image1'. I am making the frame visible. On clicking a button, the frame, I am opening the dialog. Dialog also shows the same icon.
Now on clicking a button on the dialog, I am changing the icon of the parent frame. But it is not reflected on the dialog on SolSparc10-JDS whereas it is reflected properly on Win32. I reproduced it with Mustang-b80. This is reproducible on Motif as well.
On XToolkit, I need to dispose the current dialog and create a new one in order to get the new icon (even hiding and showing the dialog also doesn't help).
I have attached a sample test. Execute the sample test. Click on the button in the frame. A dialog comes up. Check whether dialog uses the same icon as the frame. Click the button on the dialog. Check whether Frame's icon changes to a new one. Check whether the dialog's icon changes. If it does not, the bug is reproduced.