From c5515f8f09193ad252e2e63a4c5fd07849a7b82e Mon Sep 17 00:00:00 2001 From: Padraig O'Briain Date: Tue, 31 Jul 2001 09:19:49 +0000 Subject: [PATCH] atk/atkobject.c Create an object relation set when the object is created. * atk/atkobject.c Create an object relation set when the object is created. --- ChangeLog | 6 ++++++ atk/atkobject.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0da3032..7c5b4ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,10 @@ +2001-07-31 Padraig O'Briain + + * atk/atkobject.c + Create an object relation set when the object is created. + 2001-07-30 Brian Cameron + * atk/atkutil.[ch] Changed first argument of atk_add_global_event_listener so the callback function is of type GSignalEmissionHook diff --git a/atk/atkobject.c b/atk/atkobject.c index 961285e..cf856f1 100755 --- a/atk/atkobject.c +++ b/atk/atkobject.c @@ -366,7 +366,7 @@ atk_object_init (AtkObject *accessible, 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; } @@ -780,8 +780,8 @@ atk_implementor_ref_accessible (AtkImplementor *object) 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; } -- 2.7.4