mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-05 21:02:42 +02:00
This commit changes the metadata viewer to use `GtkListBox`es instead of `GtkTreeView`s for displaying the tags and their values. The main advantages is that the latter isn't available in GTK4 (making the eventual port to it smaller), that they have a11y problems, and that list boxes allow more advanced UIs than just showing a simple string. One thing for example that this commit introduces, is to make the labels selectable, so they can be easily copy-pasted for lookup. Since we wanted to use `GListModel`, this commit also introduces a helper object `GimpMetadataTagObject` which holds both a tag's name and its value. In the future, we could use this to move the string formatting logic to that helper object, which we could then in turn use for more advanced UIs.