propertiesView: Use image dimensions from decoder
This also shows the units for SVG dimensions if not pixels. Issue #43 Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/136>
This commit is contained in:
parent
490a46d7c4
commit
42d558d22f
9 changed files with 101 additions and 265 deletions
|
|
@ -59,7 +59,11 @@
|
|||
<property name="title" translatable="yes">Image Size</property>
|
||||
<property name="subtitle-selectable">True</property>
|
||||
<binding name="subtitle">
|
||||
<lookup name="dimensions">LpPropertiesView</lookup>
|
||||
<closure type="gchararray" function="image_size">
|
||||
<lookup type="LpImage" name="image-size">
|
||||
<lookup name="image">LpPropertiesView</lookup>
|
||||
</lookup>
|
||||
</closure>
|
||||
</binding>
|
||||
<style>
|
||||
<class name="property"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue