summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2019-06-28 17:20:53 +0200
committerMarcus Meissner <marcus@jet.franken.de>2019-06-28 17:21:12 +0200
commitd96088e00ff039650c25d5deec9cf7ca1057b56a (patch)
treed50443c41abd0912756ae1c90ad5f4fb6d08cf9f
parent8a5a0ee6c731bd513865a08634f9b4af1e2d4c87 (diff)
downloadlibgphoto2-d96088e00ff039650c25d5deec9cf7ca1057b56a.tar.gz
added iso
-rw-r--r--camlibs/lumix/lumix.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/camlibs/lumix/lumix.c b/camlibs/lumix/lumix.c
index b1180ee98..4b5e751f3 100644
--- a/camlibs/lumix/lumix.c
+++ b/camlibs/lumix/lumix.c
@@ -1161,9 +1161,19 @@ camera_config_get (Camera *camera, CameraWidget **window, GPContext *context)
gp_widget_append (section, widget);
- gp_widget_new (GP_WIDGET_TEXT, _("ISO"), &widget);
+ gp_widget_new (GP_WIDGET_RADIO, _("ISO"), &widget);
gp_widget_set_name (widget, "iso");
gp_widget_set_value (widget, Get_ISO(camera));
+ gp_widget_add_choice (widget, "auto");
+ gp_widget_add_choice (widget, "80");
+ gp_widget_add_choice (widget, "100");
+ gp_widget_add_choice (widget, "200");
+ gp_widget_add_choice (widget, "400");
+ gp_widget_add_choice (widget, "800");
+ gp_widget_add_choice (widget, "1600");
+ gp_widget_add_choice (widget, "3200");
+ gp_widget_add_choice (widget, "6400");
+ gp_widget_add_choice (widget, "12800");
gp_widget_append (section, widget);
@@ -1271,6 +1281,14 @@ camera_config_set (Camera *camera, CameraWidget *window, GPContext *context)
sprintf(buf,"cam.cgi?mode=setsetting&type=focal&value=%s", val);
loadCmd(camera,buf);
}
+ if ((GP_OK == gp_widget_get_child_by_name(window, "iso", &widget)) && gp_widget_changed (widget)) {
+ char buf[50];
+
+ if (GP_OK != (ret = gp_widget_get_value (widget, &val)))
+ return ret;
+ sprintf(buf,"cam.cgi?mode=setsetting&type=iso&value=%s", val);
+ loadCmd(camera,buf);
+ }
return GP_OK;
}