Correct return type for atk_image_set_image_description()
authorErwin Ireland <eire@src.gnome.org>
Mon, 30 Apr 2001 15:55:54 +0000 (15:55 +0000)
committerErwin Ireland <eire@src.gnome.org>
Mon, 30 Apr 2001 15:55:54 +0000 (15:55 +0000)
Omit check for G_IS_VALUE when getting a value as value type is not known.

atk/atkimage.h
atk/atkvalue.c

index 59bf596..caa959e 100755 (executable)
@@ -68,16 +68,16 @@ struct _AtkImageIface
   /*
    * Gets the height of the image
    */
-  gint   ( *get_image_height)      (AtkImage              *image);
+  gint     ( *get_image_height)      (AtkImage              *image);
   /*
    * Gets the width of the image
    */
-  gint   ( *get_image_width)       (AtkImage              *image);
+  gint     ( *get_image_width)       (AtkImage              *image);
   /*
    * Sets the description of the image
    */
-  void   ( *set_image_description) (AtkImage              *image,
-                                    const gchar           *description);
+  gboolean ( *set_image_description) (AtkImage              *image,
+                                      const gchar           *description);
 
 };
 GType  atk_image_get_type             (void);
@@ -85,12 +85,12 @@ GType  atk_image_get_type             (void);
 AtkImageType          atk_image_get_storage_type      (AtkImage   *image);
 G_CONST_RETURN gchar* atk_image_get_image_description (AtkImage   *image);
 
-gint   atk_image_get_image_height      (AtkImage           *image);
+gint     atk_image_get_image_height      (AtkImage           *image);
 
-gint   atk_image_get_image_width       (AtkImage           *image);
+gint     atk_image_get_image_width       (AtkImage           *image);
 
-void   atk_image_set_image_description (AtkImage           *image,
-                                        const gchar       *description);
+gboolean atk_image_set_image_description (AtkImage           *image,
+                                          const gchar       *description);
 
 
 #ifdef __cplusplus
index eaddd69..a389dab 100755 (executable)
@@ -58,7 +58,6 @@ atk_value_get_current_value (AtkValue *obj,
   g_return_if_fail (obj != NULL);
   g_return_if_fail (value != NULL);
   g_return_if_fail (ATK_IS_VALUE (obj));
-  g_return_if_fail (G_IS_VALUE (value));
 
   iface = ATK_VALUE_GET_IFACE (obj);
 
@@ -85,7 +84,6 @@ atk_value_get_maximum_value  (AtkValue *obj,
   g_return_if_fail (obj != NULL);
   g_return_if_fail (value != NULL);
   g_return_if_fail (ATK_IS_VALUE (obj));
-  g_return_if_fail (G_IS_VALUE (value));
 
   iface = ATK_VALUE_GET_IFACE (obj);
 
@@ -112,7 +110,6 @@ atk_value_get_minimum_value (AtkValue *obj,
   g_return_if_fail (obj != NULL);
   g_return_if_fail (value != NULL);
   g_return_if_fail (ATK_IS_VALUE (obj));
-  g_return_if_fail (G_IS_VALUE (value));
 
   iface = ATK_VALUE_GET_IFACE (obj);