From feb570c230183052076aad6ae33ca331b721ecad Mon Sep 17 00:00:00 2001 From: Ross Lagerwall Date: Tue, 9 Sep 2014 18:55:10 +0100 Subject: mtp: Improve root dir name and icon handling If the device has no friendly name, set the display name of the device from the udev info to match the name shown by the volume monitor. This is visible as the folder title when the root dir of the device is open in Nautilus (or using gvfs-info). https://bugzilla.gnome.org/show_bug.cgi?id=736285 --- daemon/gvfsbackendmtp.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'daemon/gvfsbackendmtp.h') diff --git a/daemon/gvfsbackendmtp.h b/daemon/gvfsbackendmtp.h index ce2159d8..c45618b8 100644 --- a/daemon/gvfsbackendmtp.h +++ b/daemon/gvfsbackendmtp.h @@ -52,6 +52,9 @@ struct _GVfsBackendMtp GMutex mutex; LIBMTP_mtpdevice_t *device; char *dev_path; + char *volume_name; + char *volume_icon; + char *volume_symbolic_icon; GHashTable *file_cache; -- cgit v1.2.1