summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2017-03-16 07:36:15 +0100
committerMarcus Meissner <marcus@jet.franken.de>2017-03-16 07:36:15 +0100
commit09619d04197be77c894d0e404ca4da0d0191c632 (patch)
treecf1b35ec19c2736e0d758cc199d945fa4d2a80ab
parent304dbdb6585aff05ed8185d5789bdd31c12e871d (diff)
downloadlibgphoto2-09619d04197be77c894d0e404ca4da0d0191c632.tar.gz
added Bulb configuration
-rw-r--r--camlibs/pentax/library.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/camlibs/pentax/library.c b/camlibs/pentax/library.c
index c9e41529d..5f7098562 100644
--- a/camlibs/pentax/library.c
+++ b/camlibs/pentax/library.c
@@ -628,6 +628,11 @@ camera_get_config (Camera *camera, CameraWidget **window, GPContext *context)
}
gp_widget_append (section, t);
+ gp_widget_new (GP_WIDGET_TOGGLE, _("Bulb"), &t);
+ gp_widget_set_name (t, "bulb");
+ gp_widget_set_value (t, "2");
+ gp_widget_append (section, t);
+
return GP_OK;
}
@@ -779,6 +784,15 @@ camera_set_config (Camera *camera, CameraWidget *window, GPContext *context)
}
}
+ ret = gp_widget_get_child_by_label (window, _("Bulb"), &w);
+ if ((ret == GP_OK) && gp_widget_changed (w)) {
+ int bulb;
+
+ gp_widget_set_changed (w, 0);
+ gp_widget_get_value (w, &bulb);
+ pslr_bulb (camera->pl, bulb);
+ }
+
return GP_OK;
}
#endif