propertiesView: Use decoder format

Use the format that we actually used when decoding.
The mime type is usually derived from the file extension
which might not always be correct.

Issue #43

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/132>
This commit is contained in:
Sophie Herold 2023-03-09 22:10:08 +01:00 • committed by Marge Bot
parent f8e64d9805
commit a2a9b4134b
6 changed files with 44 additions and 38 deletions

View file

@ -68,12 +68,12 @@
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">File Type</property>
<property name="title" translatable="yes">Image Format</property>
<property name="subtitle-selectable">True</property>
<binding name="subtitle">
<closure type="gchararray" function="file_type">
<lookup name="file-info">LpPropertiesView</lookup>
</closure>
<lookup type="LpImage" name="format-name">
<lookup type="LpPropertiesView" name="image"/>
</lookup>
</binding>
<style>
<class name="property"/>