Save rearranges the XML structure breaking diff & version control
Working with glade over a long period of time, reveals a strange problem. A simple/minor change, like the attribute relative_to from a GtkPopoverMenu, causes the saved XML file to appear with 100+ lines of changes, instead of just one.
Looking at the saved file, it appears as if the XML tree structure changes considerably, the entire GtkPopoverMenu XML tree went from line 133 to line 431, causing two issues:
-
impossible to diff the change, since diff gets confused by the move of 100+ lines, they all appear changed.
-
version control marks all 100 lines as changed, when instead of 1 changed line. Which messes up dev statistics and other automated tools.
Here is a visual example of what I see:
Manually doing the same change, correctly shows the line line that changed:
While glade functionality is not impaired and the saved XML file is schematically correct, this issue causes a lot of headache to the developer (me!)