Added better gtk-doc comments.
[platform/upstream/atk.git] / atk / atkregistry.c
index 8ad9847..89f4a42 100644 (file)
@@ -116,7 +116,18 @@ atk_registry_finalize (GObject *instance)
   g_free (registry->factory_singleton_cache);
 }
 
-
+/**
+ *atk_registry_set_factory_type:
+ *@registry: the #AtkRegistry in which to register the association
+ * between an #AtkObjectFactory #GType and an #AtkObject @GType
+ *@type: an #AtkObject #GType 
+ *@factory_type: an #AtkObjectFactory #GType to associate with @type
+ *
+ *Associate an #AtkObjectFactory subclass with a #GType. Note:
+ * The associated @factory_type will thereafter be responsible for
+ * the creation of new #AtkObject implementations for instances
+ * of type @type.
+ **/
 void
 atk_registry_set_factory_type (AtkRegistry *registry,
                                GType type,
@@ -152,6 +163,18 @@ atk_registry_set_factory_type (AtkRegistry *registry,
                        GUINT_TO_POINTER (factory_type));
 }
 
+/**
+ *atk_registry_get_factory_type:
+ *@registry: an #AtkRegistry
+ *@type: a #GType with which to look up the associated #AtkObjectFactory
+ * subclass
+ *
+ *Provides a GType indicating the #AtkObjectFactory subclass
+ * associated with type @type
+ *
+ *Returns: a GType indicating the AtkObjectFactory subclass
+ * associated with type @type
+ **/
 GType
 atk_registry_get_factory_type (AtkRegistry *registry,
                                GType type)
@@ -179,7 +202,17 @@ atk_registry_get_factory_type (AtkRegistry *registry,
   return factory_type;
 }
 
-
+/**
+ *atk_registry_get_factory:
+ *@registry: an #AtkRegistry
+ *@type: a #GType with which to look up the associated #AtkObjectFactory
+ *
+ *Returns an #AtkObjectFactory appropriate for creating #AtkObjects
+ * of type @type.
+ *
+ *Returns: an #AtkObjectFactory appropriate for creating #AtkObjects
+ * of type @type.
+ **/
 AtkObjectFactory*
 atk_registry_get_factory (AtkRegistry *registry,
                           GType type)
@@ -217,7 +250,20 @@ atk_registry_get_factory (AtkRegistry *registry,
   return ATK_OBJECT_FACTORY (factory_pointer);
 }
 
-
+/**
+ *atk_get_default_registry:
+ *
+ *Return a default implementation of the #AtkObjectFactory/type
+ * registry.
+ *Note: For most toolkit maintainers, this will be the correct
+ * registry for registering new #AtkObject factories. Following
+ * a call to this function, maintainers may call atk_registry_set_factory_type()
+ * to associate an #AtkObjectFactory subclass with the GType of objects
+ * for whom accessability information will be provided.
+ *
+ *Returns: a default implementation of the #AtkObjectFactory/type
+ * registry
+ **/
 AtkRegistry*
 atk_get_default_registry ()
 {