summaryrefslogtreecommitdiff
path: root/gtk/gtkaccessible.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-07-14 19:42:12 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-07-14 19:42:12 -0400
commit7c2414ec7e7096b0bcc7ce404d7cd9c36bc3a4a3 (patch)
treeaa6f30959687a5dd9c3c6c200552f7a6f2269bad /gtk/gtkaccessible.c
parent3e05518881a208e851e632a37f5dcc3926c6387d (diff)
downloadgtk+-7c2414ec7e7096b0bcc7ce404d7cd9c36bc3a4a3.tar.gz
Drop private GtkAccessible api
We no longer use factories anywhere.
Diffstat (limited to 'gtk/gtkaccessible.c')
-rw-r--r--gtk/gtkaccessible.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/gtk/gtkaccessible.c b/gtk/gtkaccessible.c
index ba1b206c16..25f1c94f54 100644
--- a/gtk/gtkaccessible.c
+++ b/gtk/gtkaccessible.c
@@ -127,34 +127,3 @@ gtk_accessible_real_connect_widget_destroyed (GtkAccessible *accessible)
g_signal_connect (priv->widget, "destroy",
G_CALLBACK (gtk_widget_destroyed), &priv->widget);
}
-
-/*
- * _gtk_accessible_set_factory_type:
- * @widget_type: a #GtkWidget subtype
- * @factory_type: a #AtkObjectFactory subtype
- *
- * A wrapper around atk_registry_set_factory_type().
- *
- * Only installs the factory if accessibility is
- * enabled.
- */
-void
-_gtk_accessible_set_factory_type (GType widget_type,
- GType factory_type)
-{
- AtkObjectFactory *factory;
- AtkRegistry *registry;
- GType accessible_type;
-
- /*
- * Figure out whether accessibility is enabled by looking
- * at the type of the accessible object which would be created
- * for GtkWidget.
- */
- registry = atk_get_default_registry ();
- factory = atk_registry_get_factory (registry, GTK_TYPE_WIDGET);
- accessible_type = atk_object_factory_get_accessible_type (factory);
- if (g_type_is_a (accessible_type, GTK_TYPE_ACCESSIBLE))
- atk_registry_set_factory_type (registry, widget_type, factory_type);
-}
-