summaryrefslogtreecommitdiff
path: root/common/gvfsgphoto2utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/gvfsgphoto2utils.c')
-rw-r--r--common/gvfsgphoto2utils.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/gvfsgphoto2utils.c b/common/gvfsgphoto2utils.c
index 8608e515..3b882e7c 100644
--- a/common/gvfsgphoto2utils.c
+++ b/common/gvfsgphoto2utils.c
@@ -140,3 +140,15 @@ g_vfs_get_volume_symbolic_icon (GUdevDevice *device)
else
return g_strdup ("camera-photo-symbolic");
}
+
+char **
+g_vfs_get_x_content_types (GUdevDevice *device)
+{
+ char *camera_x_content_types[] = {"x-content/image-dcf", NULL};
+ char *media_player_x_content_types[] = {"x-content/audio-player", NULL};
+
+ if (g_udev_device_has_property (device, "ID_MEDIA_PLAYER"))
+ return g_strdupv (media_player_x_content_types);
+ else
+ return g_strdupv (camera_x_content_types);
+}