SPIBoolean
AccessibleSelection_selectAll (AccessibleSelection *obj)
{
+ SPIBoolean retval;
+
cspi_return_val_if_fail (obj != NULL, FALSE);
- Accessibility_Selection_selectAll (CSPI_OBJREF (obj), cspi_ev ());
+ retval = Accessibility_Selection_selectAll (CSPI_OBJREF (obj), cspi_ev ());
- cspi_check_ev ("selectAll");
+ cspi_return_val_if_ev ("selectAll", FALSE);
- return TRUE; /* TODO: change the bonobo method to return SPIBoolean */
+ return retval;
}
/**
*
* Clear the current selection, removing all selected children from the
* specified #AccessibleSelection implementor's selection list.
+ *
+ * Returns: #TRUE if successful, #FALSE otherwise.
+ *
**/
-void
+SPIBoolean
AccessibleSelection_clearSelection (AccessibleSelection *obj)
{
- cspi_return_if_fail (obj != NULL);
+ SPIBoolean retval;
+
+ cspi_return_val_if_fail (obj != NULL, FALSE);
+
+ retval = Accessibility_Selection_clearSelection (CSPI_OBJREF (obj), cspi_ev ());
+ cspi_return_val_if_ev ("clearSelection", FALSE);
- Accessibility_Selection_clearSelection (CSPI_OBJREF (obj), cspi_ev ());
- cspi_check_ev ("clearSelection");
+ return retval;
}