From 72b4ef438fab8667fc6446948d62ce9d93baa55c Mon Sep 17 00:00:00 2001 From: Marc Mulcahy Date: Thu, 23 Aug 2001 04:32:08 +0000 Subject: [PATCH] AtkAction.c AtkAction.h: Made atk_action_do_action return a gboolean as the class member of AtkActionIface does. .cvsignore: Added atk.spec --- .cvsignore | 1 + ChangeLog | 8 ++++++++ atk/atkaction.c | 8 +++++--- atk/atkaction.h | 2 +- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index 8be6e4a..8938fce 100644 --- a/.cvsignore +++ b/.cvsignore @@ -14,3 +14,4 @@ install-sh mkinstalldirs atk-uninstalled.pc sgml +atk.spec diff --git a/ChangeLog b/ChangeLog index 7a08c03..d591b19 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +<2001-08-22 Marc Mulcahy + AtkAction.c AtkAction.h: + Made atk_action_do_action return a gboolean as the class member of AtkActionIface does. + + .cvsignore: + Added atk.spec + + 2001-08-20 Padraig O'Briain * docs/tmpl/atkimage.sgml atk/atkimage.h: diff --git a/atk/atkaction.c b/atk/atkaction.c index 071396e..7962df4 100755 --- a/atk/atkaction.c +++ b/atk/atkaction.c @@ -46,18 +46,20 @@ atk_action_get_type () * * Perform the specified action on the object. **/ -void +gboolean atk_action_do_action (AtkAction *obj, gint i) { AtkActionIface *iface; - g_return_if_fail (ATK_IS_ACTION (obj)); + g_return_val_if_fail (ATK_IS_ACTION (obj), FALSE); iface = ATK_ACTION_GET_IFACE (obj); if (iface->do_action) - (iface->do_action) (obj, i); + return (iface->do_action) (obj, i); + else + return FALSE; } /** diff --git a/atk/atkaction.h b/atk/atkaction.h index 5237ec1..d25af79 100755 --- a/atk/atkaction.h +++ b/atk/atkaction.h @@ -77,7 +77,7 @@ GType atk_action_get_type (); * provided in a support library */ -void atk_action_do_action (AtkAction *action, +gboolean atk_action_do_action (AtkAction *action, gint i); gint atk_action_get_n_actions (AtkAction *action); G_CONST_RETURN gchar* atk_action_get_description (AtkAction *action, -- 2.7.4