</property>
<property name="DeviceFilePresentation" type="s" access="read">
<doc:doc><doc:description><doc:para>
- If not blank, the preferred device file (typically a symlink to the value of the <doc:ref type="property" to="Device:DeviceFile">DeviceFile</doc:ref> property) to present in user interface.
+ Either the value of the
+ <doc:ref type="property" to="Device:DeviceFile">DeviceFile</doc:ref>
+ property, otherwise the preferred device file (typically a symlink to the value of the
+ <doc:ref type="property" to="Device:DeviceFile">DeviceFile</doc:ref>
+ property) to present in user interface.
Example: <doc:tt>/dev/mapper/mpathb</doc:tt> or
<doc:tt>/dev/vg_phobos/lv_root</doc:tt>.
</doc:para></doc:description></doc:doc>
g_value_set_string (value, device->priv->device_file);
break;
case PROP_DEVICE_FILE_PRESENTATION:
- g_value_set_string (value, device->priv->device_file_presentation);
+ if (device->priv->device_file_presentation != NULL)
+ g_value_set_string (value, device->priv->device_file_presentation);
+ else
+ g_value_set_string (value, device->priv->device_file);
break;
case PROP_DEVICE_FILE_BY_ID:
g_value_set_boxed (value, device->priv->device_file_by_id);