GNOME Bugzilla – Bug 776513
Separate code from user interface.
Last modified: 2017-03-23 06:50:54 UTC
Use different files to store user interface layout by using UI descriptions in an XML format. e.g. in totem user interface layout is stored in files with extension ".ui". it will make it more convenient to manage UI related tasks and build complex UI.
Yes, it will be nice to turn our custom widgets into widget templates. See src/photos-selection-toolbar.* for an example. Also, please split the patches into one per custom widget, so that they are small and easy to review. One small note, though. I, personally, consider the XML form of the widget to be code as well. It is not data because you can't expect to delete random parts of the XML and still expect the application to start and elegantly handle any errors at run-time. If the C code expects something to be in the XML, and it isn't, then there is very little that can be done at run-time.
*** This bug has been marked as a duplicate of bug 780424 ***