2008-05-28 Mark Doffman <mark.doffman@codethink.co.uk>
[platform/core/uifw/at-spi2-atk.git] / tests / testapps / object-app.c
1 #include <gmodule.h>
2 #include <atk/atk.h>
3 #include <my-atk.h>
4
5 static AtkObject *root_accessible;
6
7 G_MODULE_EXPORT void
8 test_init (void)
9 {
10   root_accessible = (AtkObject *) g_object_new(MY_TYPE_ATK_OBJECT, NULL);
11
12   atk_object_set_name(root_accessible, "Root Accessible");
13   atk_object_set_role(root_accessible, ATK_ROLE_ACCEL_LABEL);
14   atk_object_set_description(root_accessible, "A root object for the test tree"); 
15 }
16
17 G_MODULE_EXPORT AtkObject *
18 test_get_root (void)
19 {
20   return root_accessible;
21 }