summaryrefslogtreecommitdiff
path: root/camlibs/ricoh
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2016-11-20 20:42:25 +0100
committerMarcus Meissner <marcus@jet.franken.de>2016-11-20 20:42:25 +0100
commit7ebd16e0f5a491b25ad94d7571d7e02beeedca05 (patch)
treeb30c76bb373aacd5ff13a18da8a1df085b13c3c2 /camlibs/ricoh
parentc82eae496214d97a29203de389443e859e06aaaa (diff)
downloadlibgphoto2-7ebd16e0f5a491b25ad94d7571d7e02beeedca05.tar.gz
Adjust the semantics of gp_widget_changed to not clear the changed state.
Adjust the camlibs that use it (As this is mostly a internal function it should be ok to change.) Fixes https://github.com/gphoto/libgphoto2/issues/73
Diffstat (limited to 'camlibs/ricoh')
-rw-r--r--camlibs/ricoh/library.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/camlibs/ricoh/library.c b/camlibs/ricoh/library.c
index 48bda7213..312a14319 100644
--- a/camlibs/ricoh/library.c
+++ b/camlibs/ricoh/library.c
@@ -412,6 +412,7 @@ static struct {
\
CR (gp_widget_get_child_by_name (wi, Name, &__w)); \
if (gp_widget_changed (__w)) { \
+ gp_widget_set_changed (__w, 0); \
CR (gp_widget_get_value (__w, &__v)); \
for (__i = 0; __i < N_ELEMENTS (ricoh_##n##s); __i++) \
if (!strcmp (__v, _(ricoh_##n##s[__i].name))) { \
@@ -482,6 +483,7 @@ camera_set_config (Camera *c, CameraWidget *window, GPContext *co)
/* Copyright */
CR (gp_widget_get_child_by_name (window, "copyright", &w));
if (gp_widget_changed (w)) {
+ gp_widget_set_changed (w, 0);
CR (gp_widget_get_value (w, &v_char));
CR (ricoh_set_copyright (c, co, v_char));
}
@@ -489,6 +491,7 @@ camera_set_config (Camera *c, CameraWidget *window, GPContext *co)
/* Date */
CR (gp_widget_get_child_by_name (window, "date", &w));
if (gp_widget_changed (w)) {
+ gp_widget_set_changed (w, 0);
CR (gp_widget_get_value (w, &time));
CR (ricoh_set_date (c, co, time));
}