diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-02-17 12:25:23 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-02-17 12:25:23 -0500 |
commit | 7bddfb579091885f4d3a6d2275f4e243036a07f4 (patch) | |
tree | 874931b7fb51ee93d1d772e7f206178b913b8085 /gtk/gtkassistant.c | |
parent | 169282959410c23d63db0a7ded81567ea7918120 (diff) | |
download | gtk+-7bddfb579091885f4d3a6d2275f4e243036a07f4.tar.gz |
GtkAssistant: Use _gtk_accessible_set_factory_type
Diffstat (limited to 'gtk/gtkassistant.c')
-rw-r--r-- | gtk/gtkassistant.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c index 98628b7d16..bb32add0aa 100644 --- a/gtk/gtkassistant.c +++ b/gtk/gtkassistant.c @@ -2485,24 +2485,8 @@ gtk_assistant_get_accessible (GtkWidget *widget) if (first_time) { - AtkObjectFactory *factory; - AtkRegistry *registry; - GType derived_type; - GType derived_atk_type; - - /* Figure out whether accessibility is enabled by looking - * at the type of the accessible object which would be - * created for the parent type of GtkAssistant. - */ - derived_type = g_type_parent (GTK_TYPE_ASSISTANT); - - registry = atk_get_default_registry (); - factory = atk_registry_get_factory (registry, derived_type); - derived_atk_type = atk_object_factory_get_accessible_type (factory); - if (g_type_is_a (derived_atk_type, GTK_TYPE_ACCESSIBLE)) - atk_registry_set_factory_type (registry, - GTK_TYPE_ASSISTANT, - gtk_assistant_accessible_factory_get_type ()); + _gtk_accessible_set_factory_type (GTK_TYPE_ASSISTANT, + gtk_assistant_accessible_factory_get_type ()); first_time = FALSE; } |