diff options
author | Boby Wang <boby.wang@sun.com> | 2006-04-28 11:52:07 +0800 |
---|---|---|
committer | Li Yuan <liyuan@src.gnome.org> | 2006-04-28 11:52:07 +0800 |
commit | aeae812f66a1457e6844bed09c85299cd49a3381 (patch) | |
tree | abd171ea5f5f0ead0391411723b6defb07b4b1fa /a11y/ea-factory.h | |
parent | 9710f404f5b8c4d3daac1f881dd3b67790bfa494 (diff) | |
download | gsoc2013-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.h | 10 |
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__ */ |