*atk/atkselection.h, atk/atkselection.c changed return type to gboolean
authorLouise Miller <lousie.miller@sun.com>
Wed, 27 Jun 2001 11:52:34 +0000 (11:52 +0000)
committerLouise Miller <louised@src.gnome.org>
Wed, 27 Jun 2001 11:52:34 +0000 (11:52 +0000)
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

ChangeLog
atk/atkselection.c
atk/atkselection.h

index 667d4a0..f94292a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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
+
 2001-06-26  Brian Cameron <brian.cameron@sun.com>
        *atk/atkstate.h atk/atkstate.c
        docs/tmpl/atk-unused.sgml docs/tmpl/atkselection.sgml
index d4dc14a..1ca3b39 100755 (executable)
@@ -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;
 }
index af042aa..dc4c905 100755 (executable)
@@ -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
 }