summaryrefslogtreecommitdiff
path: root/camlibs/jd11
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2005-01-02 16:13:35 +0000
committerMarcus Meissner <marcus@jet.franken.de>2005-01-02 16:13:35 +0000
commit6e5fa8ec9e4bf685e03de82e8dbd8c0c111086c4 (patch)
treefb5035ef95972444d8220529a060e10ea5236190 /camlibs/jd11
parentec6c95416c3601be6c14408867b6a1bb2c182abf (diff)
downloadlibgphoto2-6e5fa8ec9e4bf685e03de82e8dbd8c0c111086c4.tar.gz
* jd11.c: Added widget names.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7461 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/jd11')
-rw-r--r--camlibs/jd11/ChangeLog4
-rw-r--r--camlibs/jd11/jd11.c10
2 files changed, 12 insertions, 2 deletions
diff --git a/camlibs/jd11/ChangeLog b/camlibs/jd11/ChangeLog
index 3b7dd2ef2..9864c76d3 100644
--- a/camlibs/jd11/ChangeLog
+++ b/camlibs/jd11/ChangeLog
@@ -1,3 +1,7 @@
+2005-01-02 Marcus Meissner <marcus@jet.franken.de>
+
+ * jd11.c: Added names to the properties.
+
2002-08-01 Marcus Meissner <meissner@suse.de>
* jd11.c, serial.c: Fixed gp_port_write() retvalue checking.
diff --git a/camlibs/jd11/jd11.c b/camlibs/jd11/jd11.c
index 4ae837399..7933b47fd 100644
--- a/camlibs/jd11/jd11.c
+++ b/camlibs/jd11/jd11.c
@@ -184,14 +184,16 @@ static int camera_config_get (Camera *camera, CameraWidget **window,
CameraWidget *widget,*section;
float value_float,red,green,blue;
int ret;
- gp_widget_new (GP_WIDGET_WINDOW, "JD11 Configuration", window);
+ gp_widget_new (GP_WIDGET_WINDOW, _("JD11 Configuration"), window);
+ gp_widget_set_name (*window, "config");
gp_widget_new (GP_WIDGET_SECTION, _("Other Settings"), &section);
+ gp_widget_set_name (section, "othersettings");
gp_widget_append (*window, section);
-
/* Bulb Exposure Time */
gp_widget_new (GP_WIDGET_RANGE, _("Bulb Exposure Time"), &widget);
+ gp_widget_set_name (widget, "exposuretime");
gp_widget_append (section, widget);
gp_widget_set_range (widget, 1, 9, 1);
/* this is a write only capability */
@@ -201,18 +203,21 @@ static int camera_config_get (Camera *camera, CameraWidget **window,
gp_widget_new (GP_WIDGET_SECTION, _("Color Settings"), &section);
gp_widget_append (*window, section);
+ gp_widget_set_name (section, "colorsettings");
ret = jd11_get_rgb(camera->port,&red,&green,&blue);
if (ret < GP_OK)
return ret;
gp_widget_new (GP_WIDGET_RANGE, _("Red"), &widget);
gp_widget_append (section, widget);
+ gp_widget_set_name (widget, "red");
gp_widget_set_range (widget, 50, 150, 1);
red*=100.0;
gp_widget_set_value (widget, &red);
gp_widget_changed(widget);
gp_widget_new (GP_WIDGET_RANGE, _("Green"), &widget);
+ gp_widget_set_name (widget, "green");
gp_widget_append (section, widget);
gp_widget_set_range (widget, 50, 150, 1);
green*=100.0;
@@ -220,6 +225,7 @@ static int camera_config_get (Camera *camera, CameraWidget **window,
gp_widget_changed(widget);
gp_widget_new (GP_WIDGET_RANGE, _("Blue"), &widget);
+ gp_widget_set_name (widget, "blue");
gp_widget_append (section, widget);
gp_widget_set_range (widget, 50, 150, 1);
blue*=100.0;