From: Louise Miller Date: Wed, 27 Jun 2001 11:52:34 +0000 (+0000) Subject: *atk/atkselection.h, atk/atkselection.c changed return type to gboolean X-Git-Tag: EA_1_0~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0051c4a1f9df066eacd18210c0bf1d257d37ba03;p=platform%2Fupstream%2Fatk.git *atk/atkselection.h, atk/atkselection.c changed return type to gboolean 2001-06-27 Louise Miller *atk/atkselection.h, atk/atkselection.c changed return type to gboolean for atk_selection_select_all_selection --- diff --git a/ChangeLog b/ChangeLog index 667d4a0..f94292a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-06-27 Louise Miller + *atk/atkselection.h, atk/atkselection.c + changed return type to gboolean for + atk_selection_select_all_selection + 2001-06-26 Brian Cameron *atk/atkstate.h atk/atkstate.c docs/tmpl/atk-unused.sgml docs/tmpl/atkselection.sgml diff --git a/atk/atkselection.c b/atk/atkselection.c index d4dc14a..1ca3b39 100755 --- a/atk/atkselection.c +++ b/atk/atkselection.c @@ -217,17 +217,21 @@ atk_selection_remove_selection (AtkSelection *obj, * * Causes every child of the object to be selected if the object * supports multiple selections. + * + * Returns: TRUE if success, FALSE otherwise. **/ -void +gboolean atk_selection_select_all_selection (AtkSelection *obj) { AtkSelectionIface *iface; - g_return_if_fail (obj != NULL); - g_return_if_fail (ATK_IS_SELECTION (obj)); + g_return_val_if_fail (obj != NULL, FALSE); + g_return_val_if_fail (ATK_IS_SELECTION (obj), FALSE); iface = ATK_SELECTION_GET_IFACE (obj); if (iface->select_all_selection) - (iface->select_all_selection) (obj); + return (iface->select_all_selection) (obj); + else + return FALSE; } diff --git a/atk/atkselection.h b/atk/atkselection.h index af042aa..dc4c905 100755 --- a/atk/atkselection.h +++ b/atk/atkselection.h @@ -58,7 +58,7 @@ struct _AtkSelectionIface gint i); gboolean (* remove_selection) (AtkSelection *selection, gint i); - void (* select_all_selection) (AtkSelection *selection); + gboolean (* select_all_selection) (AtkSelection *selection); }; GType atk_selection_get_type (); @@ -78,7 +78,7 @@ gboolean atk_selection_is_child_selected (AtkSelection *selection, gboolean atk_selection_remove_selection (AtkSelection *selection, gint i); -void atk_selection_select_all_selection (AtkSelection *selection); +gboolean atk_selection_select_all_selection (AtkSelection *selection); #ifdef __cplusplus }