diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2019-06-26 12:35:43 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2019-06-26 12:35:43 +0200 |
commit | 1675e810b56009290faa11b6c2bbf516e719d094 (patch) | |
tree | 9884e91747dcda41429489905de8d026587c1aee | |
parent | 85420422a788c04aadca7cd2bcd867bfe3544293 (diff) | |
download | libgphoto2-1675e810b56009290faa11b6c2bbf516e719d094.tar.gz |
added shutterspeed config
-rw-r--r-- | camlibs/lumix/lumix.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/camlibs/lumix/lumix.c b/camlibs/lumix/lumix.c index 20e736451..8279010f2 100644 --- a/camlibs/lumix/lumix.c +++ b/camlibs/lumix/lumix.c @@ -433,6 +433,11 @@ Get_Clock(Camera *camera) { } static char* +Get_ShutterSpeed(Camera *camera) { + return loadCmd(camera,"cam.cgi?mode=getsetting&type=shtrspeed"); +} + +static char* Get_AFMode(Camera *camera) { return loadCmd(camera,"cam.cgi?mode=getsetting&type=afmode"); } @@ -884,6 +889,11 @@ camera_config_get (Camera *camera, CameraWidget **window, GPContext *context) gp_widget_set_value (widget, Get_Clock(camera)); gp_widget_append (section, widget); + gp_widget_new (GP_WIDGET_TEXT, _("Shutterspeed"), &widget); + gp_widget_set_name (widget, "shutterspeed"); + gp_widget_set_value (widget, Get_ShutterSpeed(camera)); + gp_widget_append (section, widget); + gp_widget_new (GP_WIDGET_TEXT, _("Autofocus Mode"), &widget); gp_widget_set_name (widget, "afmode"); gp_widget_set_value (widget, Get_AFMode(camera)); |