+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
*
* 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;
}
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 ();
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
}