diff --git a/libgphoto2/camera.c b/libgphoto2/camera.c index f630b88b0..bd6450c23 100644 --- a/libgphoto2/camera.c +++ b/libgphoto2/camera.c @@ -537,13 +537,13 @@ int gp_camera_file_get_info (Camera *camera, const char *folder, /* Get the file */ info->file.fields = GP_FILE_INFO_NONE; - if (gp_camera_file_get_file (camera, folder, file, cfile) - == GP_OK) { - info->file.fields |= GP_FILE_INFO_SIZE | - GP_FILE_INFO_TYPE; - info->file.size = cfile->size; - strcpy (info->file.type, cfile->type); - } +// if (gp_camera_file_get_file (camera, folder, file, cfile) +// == GP_OK) { +// info->file.fields |= GP_FILE_INFO_SIZE | +// GP_FILE_INFO_TYPE; +// info->file.size = cfile->size; +// strcpy (info->file.type, cfile->type); +// } /* Get the preview */ info->preview.fields = GP_FILE_INFO_NONE; diff --git a/libgphoto2/widget.c b/libgphoto2/widget.c index c17ddff36..8b10aaaaf 100644 --- a/libgphoto2/widget.c +++ b/libgphoto2/widget.c @@ -248,6 +248,7 @@ int gp_widget_append (CameraWidget *parent, CameraWidget *child) parent->children[parent->children_count] = child; parent->children_count += 1; child->parent = parent; + child->changed = 0; return (GP_OK); } @@ -269,6 +270,7 @@ int gp_widget_prepend (CameraWidget *parent, CameraWidget *child) parent->children[0] = child; parent->children_count += 1; child->parent = parent; + child->changed = 0; return (GP_OK); }