From 23dc5722ff137f131879514eab70d43a93bc6d0a Mon Sep 17 00:00:00 2001 From: Padraig O'Briain Date: Thu, 22 Nov 2001 17:53:46 +0000 Subject: Specify role as ATK_ROLE_INVALID and layer as ATK_LAYER_INVALID when * atk/atknoopobject.c: Specify role as ATK_ROLE_INVALID and layer as ATK_LAYER_INVALID when creating object --- atk/atknoopobject.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'atk/atknoopobject.c') diff --git a/atk/atknoopobject.c b/atk/atknoopobject.c index bbb2999..83bf1a7 100644 --- a/atk/atknoopobject.c +++ b/atk/atknoopobject.c @@ -145,10 +145,13 @@ atk_no_op_object_new (GObject *obj) { AtkObject* accessible; - g_return_val_if_fail ((obj != NULL), NULL); + g_return_val_if_fail (obj != NULL, NULL); accessible = g_object_new (ATK_TYPE_NO_OP_OBJECT, NULL); - g_return_val_if_fail ((accessible != NULL), NULL); + g_return_val_if_fail (accessible != NULL, NULL); + + accessible->role = ATK_ROLE_INVALID; + accessible->layer = ATK_LAYER_INVALID; return accessible; } -- cgit v1.2.1