evolution-3.6.4/libgnomecanvas/gailcanvasgroupfactory.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 "gailcanvasgroupfactory.h"
26 #include "gailcanvasgroup.h"
27 
28 static void gail_canvas_group_factory_class_init (GailCanvasGroupFactoryClass *klass);
29 
30 static AtkObject * gail_canvas_group_factory_create_accessible (GObject *obj);
31 
32 static GType gail_canvas_group_factory_get_accessible_type (void);
33 
34 GType
35 gail_canvas_group_factory_get_type (void)
36 {
37   static GType type = 0;
38 
39   if (!type)
40   {
41     static const GTypeInfo tinfo =
42     {
43       sizeof (GailCanvasGroupFactoryClass),
44       (GBaseInitFunc) NULL, /* base init */
45       (GBaseFinalizeFunc) NULL, /* base finalize */
46       (GClassInitFunc) gail_canvas_group_factory_class_init, /* class init */
47       (GClassFinalizeFunc) NULL, /* class finalize */
48       NULL, /* class data */
49       sizeof (GailCanvasGroupFactory), /* instance size */
50       0, /* nb preallocs */
51       (GInstanceInitFunc) NULL, /* instance init */
52       NULL /* value table */
53     };
54     type = g_type_register_static (
55 			   ATK_TYPE_OBJECT_FACTORY,
56 			   "GailCanvasGroupFactory" , &tinfo, 0);
57   }
58 
59   return type;
60 }
61 
62 static void
63 gail_canvas_group_factory_class_init (GailCanvasGroupFactoryClass *klass)
64 {
65   AtkObjectFactoryClass *class = ATK_OBJECT_FACTORY_CLASS (klass);
66 
67   class->create_accessible = gail_canvas_group_factory_create_accessible;
68   class->get_accessible_type = gail_canvas_group_factory_get_accessible_type;
69 }
70 
71 static AtkObject *
72 gail_canvas_group_factory_create_accessible (GObject *obj)
73 {
74   return gail_canvas_group_new (obj);
75 }
76 
77 static GType
78 gail_canvas_group_factory_get_accessible_type (void)
79 {
80   return GAIL_TYPE_CANVAS_GROUP;
81 }