[gtk+] Drop private GtkAccessible api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Drop private GtkAccessible api
- Date: Thu, 14 Jul 2011 23:51:41 +0000 (UTC)
commit 7c2414ec7e7096b0bcc7ce404d7cd9c36bc3a4a3
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jul 14 19:42:12 2011 -0400
Drop private GtkAccessible api
We no longer use factories anywhere.
gtk/Makefile.am | 1 -
gtk/gtkaccessible.c | 31 -------------------------------
gtk/gtkaccessibleprivate.h | 31 -------------------------------
3 files changed, 0 insertions(+), 63 deletions(-)
---
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 058fdc3..cb6b4e5 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -380,7 +380,6 @@ endif
# GTK+ header files that don't get installed
gtk_private_h_sources = \
gtkaccelgroupprivate.h \
- gtkaccessibleprivate.h \
gtkanimationdescription.h \
gtkappchooserprivate.h \
gtkappchoosermodule.h \
diff --git a/gtk/gtkaccessible.c b/gtk/gtkaccessible.c
index ba1b206..25f1c94 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);
-}
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]