generated xml does not fulfill the dtd
Submitted by LI Daobing
Please describe the problem: the generated xml does not fulfill the dtd, when a menu item has both the accelerator and signal.
Steps to reproduce:
- open 1.glade with glade-3
- save as it to 2.glade
- verify 2.glade with a dtd validator against /usr/share/xml/libglade/glade-2.0.dtd
Actual results: for exmaple: (snip some false-negative error) $ xmlstarlet val -d /usr/share/xml/libglade/glade-2.0.dtd 2.glade 2.glade:18: element widget: validity error : Element widget content does not follow the DTD, expecting (property* , accessibility? , signal* , accelerator* , child*), got (property property property property accelerator signal )
Expected results: it should pass the dtd validate
Does this happen every time? yes
in a real program, you will recieve this warning:
libglade-WARNING **: Unexpected element
and the signal binding is lost.