Glade deletes all widgets when adding a Scrolled Window parent, but doesn't show it.
Submitted by rk@..@..er.org
Link to original bug (#744478)
Description
Glade deletes all widgets, when adding a Scrolled Window without a Viewport. The main problem is, that Glade itself still shows all widgets, and you can freely edit them and save your project, but the saved file only contains the scrolled window, and there is no warning about this at all!
So if you add a Scrolled Window-parent, you will lose your widgets.
Steps to reproduce:
- Create a window in Glade
- Add some widgets to the window, e.g. a Grid and some labels/buttons.
- Right-click on the window -> Add Parent -> Scrolled Window
- Save the project.
Now, everything looks fine in Glade, and saving seems to work. BUT: The saved file only contains the window and the scrolled window, but none of the widgets inside of it.
Please fix the code to (a) either automatically add a viewport or (b) at least add a warning (or better: error) when trying to save.
Tested version: glade 3.18.3 (self-compiled) on Debian Linux