From fbb044ad169fcd85443055deb8011f79fcf53db9 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 29 Sep 2011 13:52:50 +0000 Subject: [PATCH] min/max focal length aperture git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@13741 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/pentax/library.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/camlibs/pentax/library.c b/camlibs/pentax/library.c index 70d22a2b1..d3554cdf5 100644 --- a/camlibs/pentax/library.c +++ b/camlibs/pentax/library.c @@ -227,6 +227,7 @@ camera_get_config (Camera *camera, CameraWidget **window, GPContext *context) gp_widget_new (GP_WIDGET_TEXT, _("Model"), &t); gp_widget_set_name (t, "model"); gp_widget_set_value (t, model); + gp_widget_set_readonly (t, 1); gp_widget_append (section, t); @@ -270,6 +271,20 @@ camera_get_config (Camera *camera, CameraWidget **window, GPContext *context) gp_widget_set_value (t, buf); gp_widget_append (section, t); + gp_widget_new (GP_WIDGET_TEXT, _("Aperture at Lens Minimum Focal Length"), &t); + gp_widget_set_name (t, "apertureatminfocallength"); + sprintf(buf,"%d/%d",status.lens_min_aperture.nom,status.lens_min_aperture.denom); + gp_widget_set_value (t, buf); + gp_widget_set_readonly (t, 1); + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_TEXT, _("Aperture at Lens Maximum Focal Length"), &t); + gp_widget_set_name (t, "apertureatmaxfocallength"); + sprintf(buf,"%d/%d",status.lens_max_aperture.nom,status.lens_max_aperture.denom); + gp_widget_set_value (t, buf); + gp_widget_set_readonly (t, 1); + gp_widget_append (section, t); + gp_widget_new (GP_WIDGET_RADIO, _("Shooting Mode"), &t); gp_widget_set_name (t, "shootingmode"); gp_widget_add_choice (t, _("GREEN"));