evolution-3.6.4/libgnomecanvas/gailcanvasitemfactory.c

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 <gtk/gtk.h>
25 #include "gailcanvasitemfactory.h"
26 #include "gailcanvasitem.h"
27 
28 static AtkObject * gail_canvas_item_factory_create_accessible (GObject *obj);
29 
30 static GType gail_canvas_item_factory_get_accessible_type (void);
31 
32 G_DEFINE_TYPE (GailCanvasItemFactory,
33 	       gail_canvas_item_factory,
34 	       ATK_TYPE_OBJECT_FACTORY);
35 
36 static void
37 gail_canvas_item_factory_init (GailCanvasItemFactory *foo)
38 {
39   ;
40 }
41 
42 static void
43 gail_canvas_item_factory_class_init (GailCanvasItemFactoryClass *klass)
44 {
45   AtkObjectFactoryClass *class = ATK_OBJECT_FACTORY_CLASS (klass);
46 
47   class->create_accessible = gail_canvas_item_factory_create_accessible;
48   class->get_accessible_type = gail_canvas_item_factory_get_accessible_type;
49 }
50 
51 static AtkObject *
52 gail_canvas_item_factory_create_accessible (GObject *obj)
53 {
54   return gail_canvas_item_new (obj);
55 }
56 
57 static GType
58 gail_canvas_item_factory_get_accessible_type (void)
59 {
60   return GAIL_TYPE_CANVAS_ITEM;
61 }