*** empty log message ***
[platform/core/uifw/at-spi2-atk.git] / cspi / spi_value.c
index bfc5545..d4121bd 100644 (file)
@@ -1,3 +1,26 @@
+/*
+ * AT-SPI - Assistive Technology Service Provider Interface
+ * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
+ *
+ * Copyright 2001, 2002 Sun Microsystems Inc.,
+ * Copyright 2001, 2002 Ximian, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
 #include <cspi/spi-private.h>
 
 /**
@@ -33,16 +56,16 @@ AccessibleValue_unref (AccessibleValue *obj)
  * Returns: the minimum allowed value for this object.
  *
  **/
-float
+double
 AccessibleValue_getMinimumValue (AccessibleValue *obj)
 {
-  float retval;
+  double retval;
 
   cspi_return_val_if_fail (obj != NULL, 0.0);
 
   retval = 
     Accessibility_Value__get_minimumValue (CSPI_OBJREF (obj), cspi_ev ());
-
+  
   cspi_return_val_if_ev ("getMinimumValue", 0.0);
 
   return retval;
@@ -56,10 +79,10 @@ AccessibleValue_getMinimumValue (AccessibleValue *obj)
  *
  * Returns: the current value for this object.
  **/
-float
+double
 AccessibleValue_getCurrentValue (AccessibleValue *obj)
 {
-  float retval;
+  double retval;
 
   cspi_return_val_if_fail (obj != NULL, 0.0);
 
@@ -79,11 +102,10 @@ AccessibleValue_getCurrentValue (AccessibleValue *obj)
  *
  * Returns: the maximum allowed value for this object.
  **/
-float
+double
 AccessibleValue_getMaximumValue (AccessibleValue *obj)
 {
-  float retval;
-
+  double retval;       
   cspi_return_val_if_fail (obj != NULL, 0.0);
 
   retval =
@@ -106,12 +128,12 @@ AccessibleValue_getMaximumValue (AccessibleValue *obj)
  **/
 SPIBoolean
 AccessibleValue_setCurrentValue (AccessibleValue *obj,
-                                 float newValue)
+                                 double newValue)
 {
   cspi_return_val_if_fail (obj != NULL, FALSE);
 
   Accessibility_Value__set_currentValue (
-    CSPI_OBJREF (obj), (CORBA_float) newValue, cspi_ev ());
+    CSPI_OBJREF (obj), newValue, cspi_ev ());
 
   cspi_return_val_if_ev ("setCurrentValue", FALSE);