1 /* GAIL - The GNOME Accessibility Implementation Library
2  * Copyright 2001 Sun Microsystems Inc.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 
20 #include "gailcanvaswidgetfactory.h"
21 #include "gailcanvaswidget.h"
22 
23 static void gail_canvas_widget_factory_class_init (GailCanvasWidgetFactoryClass *klass);
24 
25 static AtkObject * gail_canvas_widget_factory_create_accessible (GObject *obj);
26 
27 static GType gail_canvas_widget_factory_get_accessible_type (void);
28 
29 G_DEFINE_TYPE (GailCanvasWidgetFactory,
30 	       gail_canvas_widget_factory,
31 	       ATK_TYPE_OBJECT_FACTORY);
32 
33 static void
gail_canvas_widget_factory_init(GailCanvasWidgetFactory * foo)34 gail_canvas_widget_factory_init (GailCanvasWidgetFactory *foo)
35 {
36   ;
37 }
38 
39 static void
gail_canvas_widget_factory_class_init(GailCanvasWidgetFactoryClass * klass)40 gail_canvas_widget_factory_class_init (GailCanvasWidgetFactoryClass *klass)
41 {
42   AtkObjectFactoryClass *class = ATK_OBJECT_FACTORY_CLASS (klass);
43 
44   class->create_accessible = gail_canvas_widget_factory_create_accessible;
45   class->get_accessible_type = gail_canvas_widget_factory_get_accessible_type;
46 }
47 
48 static AtkObject*
gail_canvas_widget_factory_create_accessible(GObject * obj)49 gail_canvas_widget_factory_create_accessible (GObject   *obj)
50 {
51   return gail_canvas_widget_new (obj);
52 }
53 
54 static GType
gail_canvas_widget_factory_get_accessible_type(void)55 gail_canvas_widget_factory_get_accessible_type (void)
56 {
57   return GAIL_TYPE_CANVAS_WIDGET;
58 }
59