aboutsummaryrefslogtreecommitdiffstats
path: root/a11y
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
parent9710f404f5b8c4d3daac1f881dd3b67790bfa494 (diff)
downloadgsoc2013-evolution-aeae812f66a1457e6844bed09c85299cd49a3381.tar
gsoc2013-evolution-aeae812f66a1457e6844bed09c85299cd49a3381.tar.gz
gsoc2013-evolution-aeae812f66a1457e6844bed09c85299cd49a3381.tar.bz2
gsoc2013-evolution-aeae812f66a1457e6844bed09c85299cd49a3381.tar.lz
gsoc2013-evolution-aeae812f66a1457e6844bed09c85299cd49a3381.tar.xz
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')
-rw-r--r--a11y/ChangeLog8
-rw-r--r--a11y/ea-factory.h10
-rw-r--r--a11y/gal-a11y-factory.h5
3 files changed, 15 insertions, 8 deletions
diff --git a/a11y/ChangeLog b/a11y/ChangeLog
index 82db5cf0bd..ec594e6f8a 100644
--- a/a11y/ChangeLog
+++ b/a11y/ChangeLog
@@ -1,3 +1,11 @@
+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
+
+
2006-04-27 Boby Wang <boby.wang@sun.com>
Fix for #332821
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__ */
diff --git a/a11y/gal-a11y-factory.h b/a11y/gal-a11y-factory.h
index 22da85eca8..c3edc3033b 100644
--- a/a11y/gal-a11y-factory.h
+++ b/a11y/gal-a11y-factory.h
@@ -86,9 +86,4 @@ type_as_function ## _factory_get_type (void) \
return t; \
}
-#define GAL_A11Y_WIDGET_SET_FACTORY(widget_type, type_as_function) \
- atk_registry_set_factory_type (atk_get_default_registry (), \
- widget_type, \
- type_as_function ## _factory_get_type ())
-
#endif /* _GAL_A11Y_FACTORY_H__ */