properties_view: Make subtitles selectable

Closes #23
This commit is contained in:
Christopher Davis 2023-01-31 00:14:26 -05:00 • committed by Sophie Herold
parent 7cf04d290a
commit 04e8646daa

View file

@ -17,6 +17,7 @@
<child> <child>
<object class="AdwActionRow"> <object class="AdwActionRow">
<property name="title" translatable="yes">Folder</property> <property name="title" translatable="yes">Folder</property>
<property name="subtitle-selectable">True</property>
<property name="activatable-widget">folder_button</property> <property name="activatable-widget">folder_button</property>
<binding name="subtitle"> <binding name="subtitle">
<closure type="gchararray" function="folder_name"> <closure type="gchararray" function="folder_name">
@ -46,6 +47,7 @@
<child> <child>
<object class="AdwActionRow"> <object class="AdwActionRow">
<property name="title" translatable="yes">Image Size</property> <property name="title" translatable="yes">Image Size</property>
<property name="subtitle-selectable">True</property>
<binding name="subtitle"> <binding name="subtitle">
<lookup name="dimensions">LpPropertiesView</lookup> <lookup name="dimensions">LpPropertiesView</lookup>
</binding> </binding>
@ -57,6 +59,7 @@
<child> <child>
<object class="AdwActionRow"> <object class="AdwActionRow">
<property name="title" translatable="yes">File Type</property> <property name="title" translatable="yes">File Type</property>
<property name="subtitle-selectable">True</property>
<binding name="subtitle"> <binding name="subtitle">
<closure type="gchararray" function="file_type"> <closure type="gchararray" function="file_type">
<lookup name="file-info">LpPropertiesView</lookup> <lookup name="file-info">LpPropertiesView</lookup>
@ -70,6 +73,7 @@
<child> <child>
<object class="AdwActionRow"> <object class="AdwActionRow">
<property name="title" translatable="yes">File Size</property> <property name="title" translatable="yes">File Size</property>
<property name="subtitle-selectable">True</property>
<binding name="subtitle"> <binding name="subtitle">
<closure type="gchararray" function="file_size"> <closure type="gchararray" function="file_size">
<lookup name="file-info">LpPropertiesView</lookup> <lookup name="file-info">LpPropertiesView</lookup>
@ -87,6 +91,7 @@
<child> <child>
<object class="AdwActionRow"> <object class="AdwActionRow">
<property name="title" translatable="yes">File Created</property> <property name="title" translatable="yes">File Created</property>
<property name="subtitle-selectable">True</property>
<binding name="subtitle"> <binding name="subtitle">
<closure type="gchararray" function="created_date"> <closure type="gchararray" function="created_date">
<lookup name="file-info">LpPropertiesView</lookup> <lookup name="file-info">LpPropertiesView</lookup>
@ -100,6 +105,7 @@
<child> <child>
<object class="AdwActionRow"> <object class="AdwActionRow">
<property name="title" translatable="yes">File Modified</property> <property name="title" translatable="yes">File Modified</property>
<property name="subtitle-selectable">True</property>
<binding name="subtitle"> <binding name="subtitle">
<closure type="gchararray" function="modified_date"> <closure type="gchararray" function="modified_date">
<lookup name="file-info">LpPropertiesView</lookup> <lookup name="file-info">LpPropertiesView</lookup>
@ -122,6 +128,7 @@
<child> <child>
<object class="AdwActionRow"> <object class="AdwActionRow">
<property name="title" translatable="yes">Location</property> <property name="title" translatable="yes">Location</property>
<property name="subtitle-selectable">True</property>
<property name="activatable-widget">location_button</property> <property name="activatable-widget">location_button</property>
<binding name="subtitle"> <binding name="subtitle">
<lookup name="location"> <lookup name="location">
@ -154,6 +161,7 @@
<child> <child>
<object class="AdwActionRow"> <object class="AdwActionRow">
<property name="title" translatable="yes">Originally Created</property> <property name="title" translatable="yes">Originally Created</property>
<property name="subtitle-selectable">True</property>
<binding name="subtitle"> <binding name="subtitle">
<lookup name="originally-created"> <lookup name="originally-created">
<lookup name="metadata">LpPropertiesView</lookup> <lookup name="metadata">LpPropertiesView</lookup>
@ -174,6 +182,7 @@
<child> <child>
<object class="AdwActionRow"> <object class="AdwActionRow">
<property name="title" translatable="yes">Aperture</property> <property name="title" translatable="yes">Aperture</property>
<property name="subtitle-selectable">True</property>
<binding name="subtitle"> <binding name="subtitle">
<lookup name="f-number"> <lookup name="f-number">
<lookup name="metadata">LpPropertiesView</lookup> <lookup name="metadata">LpPropertiesView</lookup>
@ -194,6 +203,7 @@
<child> <child>
<object class="AdwActionRow"> <object class="AdwActionRow">
<property name="title" translatable="yes">Exposure</property> <property name="title" translatable="yes">Exposure</property>
<property name="subtitle-selectable">True</property>
<binding name="subtitle"> <binding name="subtitle">
<lookup name="exposure-time"> <lookup name="exposure-time">
<lookup name="metadata">LpPropertiesView</lookup> <lookup name="metadata">LpPropertiesView</lookup>
@ -214,6 +224,7 @@
<child> <child>
<object class="AdwActionRow"> <object class="AdwActionRow">
<property name="title" translatable="yes">ISO</property> <property name="title" translatable="yes">ISO</property>
<property name="subtitle-selectable">True</property>
<binding name="subtitle"> <binding name="subtitle">
<lookup name="iso"> <lookup name="iso">
<lookup name="metadata">LpPropertiesView</lookup> <lookup name="metadata">LpPropertiesView</lookup>
@ -234,6 +245,7 @@
<child> <child>
<object class="AdwActionRow"> <object class="AdwActionRow">
<property name="title" translatable="yes">Focal Length</property> <property name="title" translatable="yes">Focal Length</property>
<property name="subtitle-selectable">True</property>
<binding name="subtitle"> <binding name="subtitle">
<lookup name="focal-length"> <lookup name="focal-length">
<lookup name="metadata">LpPropertiesView</lookup> <lookup name="metadata">LpPropertiesView</lookup>
@ -254,6 +266,7 @@
<child> <child>
<object class="AdwActionRow"> <object class="AdwActionRow">
<property name="title" translatable="yes">Maker, Model</property> <property name="title" translatable="yes">Maker, Model</property>
<property name="subtitle-selectable">True</property>
<binding name="subtitle"> <binding name="subtitle">
<lookup name="maker-model"> <lookup name="maker-model">
<lookup name="metadata">LpPropertiesView</lookup> <lookup name="metadata">LpPropertiesView</lookup>
@ -279,4 +292,3 @@
</property> </property>
</template> </template>
</interface> </interface>