From 8ca7af5aeaddf2867054fa3eb3ecc58fdefb2304 Mon Sep 17 00:00:00 2001 From: Lutz Mueller Date: Wed, 14 Mar 2001 23:34:54 +0000 Subject: [PATCH] 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 --- libgphoto2/camera.c | 14 +++++++------- libgphoto2/widget.c | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) 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); }