Updated Spanish translation
[evolution.git] / e-util / gal-a11y-e-table-click-to-add-factory.c
blobe3c0b383559cf501518899ba46667bd3e30e11bb
1 /*
2 * This program is free software; you can redistribute it and/or modify it
3 * under the terms of the GNU Lesser General Public License as published by
4 * the Free Software Foundation.
6 * This program is distributed in the hope that it will be useful, but
7 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
8 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
9 * for more details.
11 * You should have received a copy of the GNU Lesser General Public License
12 * along with this program; if not, see <http://www.gnu.org/licenses/>.
15 * Authors:
16 * Yuedong Du <yuedong.du@sun.com>
18 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
22 #ifdef HAVE_CONFIG_H
23 #include <config.h>
24 #endif
26 #include "gal-a11y-e-table-click-to-add-factory.h"
28 #include <atk/atk.h>
30 #include "e-table-click-to-add.h"
31 #include "e-table.h"
32 #include "gal-a11y-e-table-click-to-add.h"
33 #include "gal-a11y-e-table.h"
35 #define CS_CLASS(factory) (G_TYPE_INSTANCE_GET_CLASS ((factory), C_TYPE_STREAM, GalA11yETableClickToAddFactoryClass))
36 static AtkObjectFactoryClass *parent_class;
37 #define PARENT_TYPE (ATK_TYPE_OBJECT_FACTORY)
39 /* Static functions */
41 static GType
42 gal_a11y_e_table_click_to_add_factory_get_accessible_type (void)
44 return GAL_A11Y_TYPE_E_TABLE_CLICK_TO_ADD;
47 static AtkObject *
48 gal_a11y_e_table_click_to_add_factory_create_accessible (GObject *obj)
50 AtkObject * atk_object;
52 g_return_val_if_fail (E_IS_TABLE_CLICK_TO_ADD (obj), NULL);
54 atk_object = gal_a11y_e_table_click_to_add_new (obj);
56 return atk_object;
59 static void
60 gal_a11y_e_table_click_to_add_factory_class_init (GalA11yETableClickToAddFactoryClass *class)
62 AtkObjectFactoryClass *factory_class = ATK_OBJECT_FACTORY_CLASS (class);
64 parent_class = g_type_class_ref (PARENT_TYPE);
66 factory_class->create_accessible = gal_a11y_e_table_click_to_add_factory_create_accessible;
67 factory_class->get_accessible_type = gal_a11y_e_table_click_to_add_factory_get_accessible_type;
70 static void
71 gal_a11y_e_table_click_to_add_factory_init (GalA11yETableClickToAddFactory *factory)
75 /**
76 * gal_a11y_e_table_factory_get_type:
77 * @void:
79 * Registers the &GalA11yETableFactory class if necessary, and returns the type ID
80 * associated to it.
82 * Return value: The type ID of the &GalA11yETableFactory class.
83 **/
84 GType
85 gal_a11y_e_table_click_to_add_factory_get_type (void)
87 static GType type = 0;
89 if (!type) {
90 GTypeInfo info = {
91 sizeof (GalA11yETableClickToAddFactoryClass),
92 (GBaseInitFunc) NULL,
93 (GBaseFinalizeFunc) NULL,
94 (GClassInitFunc) gal_a11y_e_table_click_to_add_factory_class_init,
95 (GClassFinalizeFunc) NULL,
96 NULL, /* class_data */
97 sizeof (GalA11yETableClickToAddFactory),
99 (GInstanceInitFunc) gal_a11y_e_table_click_to_add_factory_init,
100 NULL /* value_table */
103 type = g_type_register_static (PARENT_TYPE, "GalA11yETableClickToAddFactory", &info, 0);
106 return type;