After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 776513 - Separate code from user interface.
Separate code from user interface.
Status: RESOLVED DUPLICATE of bug 780424
Product: gnome-photos
Classification: Applications
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: GNOME photos maintainer(s)
GNOME photos maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-12-26 21:34 UTC by Kartikeya Sharma
Modified: 2017-03-23 06:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kartikeya Sharma 2016-12-26 21:34:53 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.
Comment 1 Debarshi Ray 2016-12-31 11:33:55 UTC
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.
Comment 2 Debarshi Ray 2017-03-23 06:50:54 UTC

*** This bug has been marked as a duplicate of bug 780424 ***