summaryrefslogtreecommitdiff
path: root/atk/atkselection.c
diff options
context:
space:
mode:
authorLouise Miller <lousie.miller@sun.com>2001-06-27 11:52:34 +0000
committerLouise Miller <louised@src.gnome.org>2001-06-27 11:52:34 +0000
commit0051c4a1f9df066eacd18210c0bf1d257d37ba03 (patch)
tree533740600b35dbd09c75914286149d9cbc6c104c /atk/atkselection.c
parent0fbca6aea104c85ea30edf4037dc5566be3b8c91 (diff)
downloadatk-0051c4a1f9df066eacd18210c0bf1d257d37ba03.tar.gz
*atk/atkselection.h, atk/atkselection.c changed return type to gboolean
2001-06-27 Louise Miller <lousie.miller@sun.com> *atk/atkselection.h, atk/atkselection.c changed return type to gboolean for atk_selection_select_all_selection
Diffstat (limited to 'atk/atkselection.c')
-rwxr-xr-xatk/atkselection.c12
1 files changed, 8 insertions, 4 deletions
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;
}