Specify role as ATK_ROLE_INVALID and layer as ATK_LAYER_INVALID when
authorPadraig O'Briain <padraigo@src.gnome.org>
Thu, 22 Nov 2001 17:53:46 +0000 (17:53 +0000)
committerPadraig O'Briain <padraigo@src.gnome.org>
Thu, 22 Nov 2001 17:53:46 +0000 (17:53 +0000)
* atk/atknoopobject.c:
Specify role as ATK_ROLE_INVALID and layer as ATK_LAYER_INVALID
when creating object

ChangeLog
atk/atknoopobject.c

index 1901f1d..0e1dcbe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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
index bbb2999..83bf1a7 100644 (file)
@@ -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;
 }