* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include "atkobject.h"
#include "atknoopobject.h"
#include "atknoopobjectfactory.h"
+/**
+ * SECTION:atknoopobjectfactory
+ * @Short_description: The AtkObjectFactory which creates an AtkNoOpObject.
+ * @Title:AtkNoOpObjectFactory
+ *
+ * The AtkObjectFactory which creates an AtkNoOpObject. An instance of
+ * this is created by an AtkRegistry if no factory type has not been
+ * specified to create an accessible object of a particular type.
+ */
static void atk_no_op_object_factory_class_init (
AtkNoOpObjectFactoryClass *klass);
static AtkObject* atk_no_op_object_factory_create_accessible (
GObject *obj);
+static GType atk_no_op_object_factory_get_accessible_type (void);
-static AtkNoOpObjectFactoryClass *parent_class = NULL;
+static gpointer parent_class = NULL;
GType
-atk_no_op_object_factory_get_type ()
+atk_no_op_object_factory_get_type (void)
{
static GType type = 0;
{
AtkObjectFactoryClass *class = ATK_OBJECT_FACTORY_CLASS (klass);
- parent_class = g_type_class_ref (ATK_TYPE_OBJECT_FACTORY);
+ parent_class = g_type_class_peek_parent (klass);
class->create_accessible = atk_no_op_object_factory_create_accessible;
+ class->get_accessible_type = atk_no_op_object_factory_get_accessible_type;
}
/**
* Returns: an instance of an #AtkObjectFactory
**/
AtkObjectFactory*
-atk_no_op_object_factory_new ()
+atk_no_op_object_factory_new (void)
{
GObject *factory;
return accessible;
}
+
+static GType
+atk_no_op_object_factory_get_accessible_type (void)
+{
+ return ATK_TYPE_NO_OP_OBJECT;
+}