Reset changed to 0 on gp_widget_append/prepend.

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1750 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Lutz Mueller
2001-03-14 23:34:54 +00:00
parent 07b1ceedc1
commit 8ca7af5aea
2 changed files with 9 additions and 7 deletions

View File

@@ -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;

View File

@@ -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);
}