* atk/atknoopobject.c:
Specify role as ATK_ROLE_INVALID and layer as ATK_LAYER_INVALID
when creating object
2001-11-22 Padraig O'Briain <padraig.obriain@sun.com>
+ * atk/atknoopobject.c:
+ Specify role as ATK_ROLE_INVALID and layer as ATK_LAYER_INVALID
+ when creating object
+
+2001-11-22 Padraig O'Briain <padraig.obriain@sun.com>
+
* atk/atk.def, atk/atkrelationtype.h, docs/atk-sections.txt,
docs/tmpl/atkrelation.sgml:
Change atk_relation_type_from_string to atk_relation_type_for_name
{
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;
}