aboutsummaryrefslogtreecommitdiffstats
path: root/a11y/ea-factory.h
diff options
context:
space:
mode:
authorBoby Wang <boby.wang@sun.com>2006-04-28 11:52:07 +0800
committerLi Yuan <liyuan@src.gnome.org>2006-04-28 11:52:07 +0800
commitaeae812f66a1457e6844bed09c85299cd49a3381 (patch)
treeabd171ea5f5f0ead0391411723b6defb07b4b1fa /a11y/ea-factory.h
parent9710f404f5b8c4d3daac1f881dd3b67790bfa494 (diff)
downloadgsoc2013-evolution-aeae812f66a1457e6844bed09c85299cd49a3381.tar.gz
gsoc2013-evolution-aeae812f66a1457e6844bed09c85299cd49a3381.tar.zst
gsoc2013-evolution-aeae812f66a1457e6844bed09c85299cd49a3381.zip
Fix for # 333725
2006-04-28 Boby Wang <boby.wang@sun.com> Fix for # 333725 * ea-factory.h: Disable accessible code when accessibility is not enabled * gal-a11y-factory.h: Remove some unused code svn path=/trunk/; revision=31922
Diffstat (limited to 'a11y/ea-factory.h')
-rw-r--r--a11y/ea-factory.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/a11y/ea-factory.h b/a11y/ea-factory.h
index 06ae612d6f..34b7f4ceff 100644
--- a/a11y/ea-factory.h
+++ b/a11y/ea-factory.h
@@ -106,8 +106,12 @@ type_as_function ## _factory_get_type (void) \
EA_FACTORY_PARTB(type, type_as_function, opt_create_accessible)
#define EA_SET_FACTORY(obj_type, type_as_function) \
- atk_registry_set_factory_type (atk_get_default_registry (), \
- obj_type, \
- type_as_function ## _factory_get_type ())
+{ \
+ if (atk_get_root ()) { \
+ atk_registry_set_factory_type (atk_get_default_registry (), \
+ obj_type, \
+ type_as_function ## _factory_get_type ());\
+ } \
+}
#endif /* _EA_FACTORY_H__ */