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
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/>.
16 * Yuedong Du <yuedong.du@sun.com>
18 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
26 #include "gal-a11y-e-table-click-to-add-factory.h"
30 #include "e-table-click-to-add.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 */
42 gal_a11y_e_table_click_to_add_factory_get_accessible_type (void)
44 return GAL_A11Y_TYPE_E_TABLE_CLICK_TO_ADD
;
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
);
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
;
71 gal_a11y_e_table_click_to_add_factory_init (GalA11yETableClickToAddFactory
*factory
)
76 * gal_a11y_e_table_factory_get_type:
79 * Registers the &GalA11yETableFactory class if necessary, and returns the type ID
82 * Return value: The type ID of the &GalA11yETableFactory class.
85 gal_a11y_e_table_click_to_add_factory_get_type (void)
87 static GType type
= 0;
91 sizeof (GalA11yETableClickToAddFactoryClass
),
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);