[gvfs/mtp-1.14.0: 22/49] Put conditional test in gphoto2 monitor for libmtp.
- From: Philip Langdale <philipl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/mtp-1.14.0: 22/49] Put conditional test in gphoto2 monitor for libmtp.
- Date: Sat, 3 Nov 2012 23:02:33 +0000 (UTC)
commit b77270abbde75ee15edbffbf927191ac56a9ea5a
Author: Philip Langdale <philipl overt org>
Date: Wed Aug 15 22:18:13 2012 -0700
Put conditional test in gphoto2 monitor for libmtp.
monitor/gphoto2/ggphoto2volumemonitor.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/monitor/gphoto2/ggphoto2volumemonitor.c b/monitor/gphoto2/ggphoto2volumemonitor.c
index 1f3ecc4..24811d4 100644
--- a/monitor/gphoto2/ggphoto2volumemonitor.c
+++ b/monitor/gphoto2/ggphoto2volumemonitor.c
@@ -201,11 +201,13 @@ gudev_add_camera (GGPhoto2VolumeMonitor *monitor, GUdevDevice *device, gboolean
return;
}
#endif /* HAVE_AFC */
+#ifdef HAVE_LIBMTP
if (g_udev_device_get_property_as_boolean (device, "ID_MTP_DEVICE"))
{
- /* g_debug ("ignoring device, is AFC"); */
+ /* g_debug ("ignoring device, is MTP"); */
return;
}
+#endif /* HAVE_LIBMTP */
usb_bus_num = g_udev_device_get_property (device, "BUSNUM");
if (usb_bus_num == NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]