Remove parent: problem with images
@swilmet
Submitted by Sébastien Wilmet Link to original bug (#703611)
Description
Created attachment 248386 Test case
Test case: a GtkWindow, containing a GtkGrid, containing a GtkButton. The GtkButton contains an image, which is present at a root node in the widget hierarchy. In the main area of glade, where we can see the widgets, there is only one item, the GtkWindow (with its child widgets).
Right click on the GtkGrid in the widget hierarchy, and remove its parent (the GtkWindow). Now in the main area, there are two items:
- the GtkGrid with the button, but the button doesn't contain the image anymore;
- the GtkImage.
The GtkImage should stay inside the button.
When we save the .ui file, close it and reload it, everything is OK, the GtkImage is again in the button.
Also, when we have just removed the parent, and when we cancel the operation, the GtkImage is still in another item in the main area.
I attach the test case.
Attachment 248386, "Test case":
test.ui