From 2e4cfd2c72f2c962eb3a7ee4f002bfbbd0ca732c Mon Sep 17 00:00:00 2001 From: Erwin Ireland Date: Mon, 30 Apr 2001 15:55:54 +0000 Subject: [PATCH] Correct return type for atk_image_set_image_description() Omit check for G_IS_VALUE when getting a value as value type is not known. --- atk/atkimage.h | 16 ++++++++-------- atk/atkvalue.c | 3 --- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/atk/atkimage.h b/atk/atkimage.h index 59bf596..caa959e 100755 --- a/atk/atkimage.h +++ b/atk/atkimage.h @@ -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 diff --git a/atk/atkvalue.c b/atk/atkvalue.c index eaddd69..a389dab 100755 --- a/atk/atkvalue.c +++ b/atk/atkvalue.c @@ -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); -- 2.7.4