diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2017-04-08 14:58:53 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2017-04-08 14:58:53 +0200 |
commit | 06f2f8198fdf40750e66b6948253ee7a6df48e18 (patch) | |
tree | 463284335d8c1708529710bd54297d4a2763c1f8 | |
parent | ed68e42fce4549c77e4625066199a68fc38aa90b (diff) | |
download | libgphoto2-06f2f8198fdf40750e66b6948253ee7a6df48e18.tar.gz |
bulb toggle set correctly
-rw-r--r-- | camlibs/pentax/library.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/camlibs/pentax/library.c b/camlibs/pentax/library.c index 87518f25c..30218b915 100644 --- a/camlibs/pentax/library.c +++ b/camlibs/pentax/library.c @@ -571,7 +571,7 @@ camera_get_config (Camera *camera, CameraWidget **window, GPContext *context) pslr_status status; char buf[20]; int *available_resolutions; - int i; + int i, ival; float fval; pslr_get_status (&camera->pl->pslr, &status); @@ -751,7 +751,8 @@ camera_get_config (Camera *camera, CameraWidget **window, GPContext *context) gp_widget_new (GP_WIDGET_TOGGLE, _("Bulb"), &t); gp_widget_set_name (t, "bulb"); - gp_widget_set_value (t, "2"); + ival = 2; + gp_widget_set_value (t, &ival); gp_widget_append (section, t); return GP_OK; |