diff options
author | Martin Szulecki <opensuse@sukimashita.com> | 2010-04-07 10:48:29 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2010-04-07 10:19:50 +0100 |
commit | 1cb5861795d375719b196ecf93fb0a10397414d3 (patch) | |
tree | 241ef33d12e66f3740eb9eaca384bd2a5f5b9a6e /daemon | |
parent | 1d648805dbea63d98af14f3e45dcdf3eb3f77c14 (diff) | |
download | gvfs-1cb5861795d375719b196ecf93fb0a10397414d3.tar.gz |
afc: Detect iPad and set correct icon name
https://bugzilla.gnome.org/show_bug.cgi?id=615039
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gvfsbackendafc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/daemon/gvfsbackendafc.c b/daemon/gvfsbackendafc.c index 9f396a7e..a6c9e14e 100644 --- a/daemon/gvfsbackendafc.c +++ b/daemon/gvfsbackendafc.c @@ -386,6 +386,10 @@ g_vfs_backend_afc_mount (GVfsBackend *backend, { g_vfs_backend_set_icon_name (G_VFS_BACKEND(self), "multimedia-player-apple-ipod-touch"); } + else if ((self->model != NULL) && (strstr(self->model, "iPad") != NULL)) + { + g_vfs_backend_set_icon_name (G_VFS_BACKEND(self), "computer-apple-ipad"); + } else { g_vfs_backend_set_icon_name (G_VFS_BACKEND(self), "phone-apple-iphone"); |