No issues found
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 #ifdef HAVE_CONFIG_H
21 #include <config.h>
22 #endif
23
24 #include "gailcanvaswidgetfactory.h"
25 #include "gailcanvaswidget.h"
26
27 static AtkObject * gail_canvas_widget_factory_create_accessible (GObject *obj);
28
29 static GType gail_canvas_widget_factory_get_accessible_type (void);
30
31 G_DEFINE_TYPE (GailCanvasWidgetFactory,
32 gail_canvas_widget_factory,
33 ATK_TYPE_OBJECT_FACTORY);
34
35 static void
36 gail_canvas_widget_factory_init (GailCanvasWidgetFactory *foo)
37 {
38 ;
39 }
40
41 static void
42 gail_canvas_widget_factory_class_init (GailCanvasWidgetFactoryClass *klass)
43 {
44 AtkObjectFactoryClass *class = ATK_OBJECT_FACTORY_CLASS (klass);
45
46 class->create_accessible = gail_canvas_widget_factory_create_accessible;
47 class->get_accessible_type = gail_canvas_widget_factory_get_accessible_type;
48 }
49
50 static AtkObject *
51 gail_canvas_widget_factory_create_accessible (GObject *obj)
52 {
53 return gail_canvas_widget_new (obj);
54 }
55
56 static GType
57 gail_canvas_widget_factory_get_accessible_type (void)
58 {
59 return GAIL_TYPE_CANVAS_WIDGET;
60 }