+2001-07-31 Padraig O'Briain <padraig.obriain@sun.com>
+
+ * atk/atkobject.c
+ Create an object relation set when the object is created.
+
2001-07-30 Brian Cameron <brian.cameron@sun.com>
+
* atk/atkutil.[ch]
Changed first argument of atk_add_global_event_listener
so the callback function is of type GSignalEmissionHook
accessible->name = NULL;
accessible->description = NULL;
accessible->accessible_parent = NULL;
- accessible->relation_set = NULL;
+ accessible->relation_set = atk_relation_set_new();
accessible->role = ATK_ROLE_UNKNOWN;
}
static AtkRelationSet*
atk_object_real_ref_relation_set (AtkObject *accessible)
{
- if (accessible->relation_set)
- g_object_ref (accessible->relation_set);
+ g_return_val_if_fail (accessible->relation_set, NULL);
+ g_object_ref (accessible->relation_set);
return accessible->relation_set;
}