Commit 15482528 authored by Mike Gorse's avatar Mike Gorse Committed by Li Yuan

Implement action interface for gailcell.

Bug #580889.
parent 52887f00
...@@ -36,8 +36,7 @@ gchar *gail_boolean_cell_property_list[] = { ...@@ -36,8 +36,7 @@ gchar *gail_boolean_cell_property_list[] = {
NULL NULL
}; };
G_DEFINE_TYPE_WITH_CODE (GailBooleanCell, gail_boolean_cell, GAIL_TYPE_RENDERER_CELL, G_DEFINE_TYPE (GailBooleanCell, gail_boolean_cell, GAIL_TYPE_RENDERER_CELL)
gail_cell_type_add_action_interface (g_define_type_id))
static void static void
gail_boolean_cell_class_init (GailBooleanCellClass *klass) gail_boolean_cell_class_init (GailBooleanCellClass *klass)
......
...@@ -37,7 +37,7 @@ static gint gail_cell_get_index_in_parent (AtkObject *obj); ...@@ -37,7 +37,7 @@ static gint gail_cell_get_index_in_parent (AtkObject *obj);
/* AtkAction */ /* AtkAction */
static void gail_cell_atk_action_interface_init static void atk_action_interface_init
(AtkActionIface *iface); (AtkActionIface *iface);
static ActionInfo * _gail_cell_get_action_info (GailCell *cell, static ActionInfo * _gail_cell_get_action_info (GailCell *cell,
gint index); gint index);
...@@ -76,6 +76,7 @@ static void gail_cell_get_extents (AtkComponent *componen ...@@ -76,6 +76,7 @@ static void gail_cell_get_extents (AtkComponent *componen
static gboolean gail_cell_grab_focus (AtkComponent *component); static gboolean gail_cell_grab_focus (AtkComponent *component);
G_DEFINE_TYPE_WITH_CODE (GailCell, gail_cell, ATK_TYPE_OBJECT, G_DEFINE_TYPE_WITH_CODE (GailCell, gail_cell, ATK_TYPE_OBJECT,
G_IMPLEMENT_INTERFACE (ATK_TYPE_ACTION, atk_action_interface_init)
G_IMPLEMENT_INTERFACE (ATK_TYPE_COMPONENT, atk_component_interface_init)) G_IMPLEMENT_INTERFACE (ATK_TYPE_COMPONENT, atk_component_interface_init))
static void static void
...@@ -285,7 +286,7 @@ gail_cell_get_index_in_parent (AtkObject *obj) ...@@ -285,7 +286,7 @@ gail_cell_get_index_in_parent (AtkObject *obj)
} }
static void static void
gail_cell_atk_action_interface_init (AtkActionIface *iface) atk_action_interface_init (AtkActionIface *iface)
{ {
iface->get_n_actions = gail_cell_action_get_n_actions; iface->get_n_actions = gail_cell_action_get_n_actions;
iface->do_action = gail_cell_action_do_action; iface->do_action = gail_cell_action_do_action;
...@@ -298,14 +299,6 @@ gail_cell_atk_action_interface_init (AtkActionIface *iface) ...@@ -298,14 +299,6 @@ gail_cell_atk_action_interface_init (AtkActionIface *iface)
void void
gail_cell_type_add_action_interface (GType type) gail_cell_type_add_action_interface (GType type)
{ {
const GInterfaceInfo atk_action_info =
{
(GInterfaceInitFunc) gail_cell_atk_action_interface_init,
(GInterfaceFinalizeFunc) NULL,
NULL
};
g_type_add_interface_static (type, ATK_TYPE_ACTION,
&atk_action_info);
} }
gboolean gboolean
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment