forked from AuroraMiddleware/gtk
a11y: Remove unused gtk_cell_accessible_set_cell_data()
This commit is contained in:
parent
b8b8ba8ed9
commit
c0fdcbf513
@ -359,29 +359,6 @@ atk_component_interface_init (AtkComponentIface *iface)
|
||||
iface->grab_focus = gtk_cell_accessible_grab_focus;
|
||||
}
|
||||
|
||||
/**
|
||||
* _gtk_cell_accessible_set_cell_data:
|
||||
* @cell: a #GtkCellAccessible
|
||||
*
|
||||
* Sets the cell data to the row used by @cell. This is useful in
|
||||
* particular if you want to work with cell renderers.
|
||||
*
|
||||
* Note that this function is potentially slow, so be careful.
|
||||
**/
|
||||
void
|
||||
_gtk_cell_accessible_set_cell_data (GtkCellAccessible *cell)
|
||||
{
|
||||
AtkObject *parent;
|
||||
|
||||
g_return_if_fail (GTK_IS_CELL_ACCESSIBLE (cell));
|
||||
|
||||
parent = gtk_widget_get_accessible (cell->widget);
|
||||
if (parent == NULL)
|
||||
return;
|
||||
|
||||
_gtk_cell_accessible_parent_set_cell_data (GTK_CELL_ACCESSIBLE_PARENT (parent), cell);
|
||||
}
|
||||
|
||||
/**
|
||||
* _gtk_cell_accessible_get_state:
|
||||
* @cell: a #GtkCellAccessible
|
||||
|
@ -54,7 +54,6 @@ GtkCellRendererState
|
||||
void _gtk_cell_accessible_state_changed (GtkCellAccessible *cell,
|
||||
GtkCellRendererState added,
|
||||
GtkCellRendererState removed);
|
||||
void _gtk_cell_accessible_set_cell_data (GtkCellAccessible *cell);
|
||||
void _gtk_cell_accessible_update_cache (GtkCellAccessible *cell);
|
||||
|
||||
void _gtk_cell_accessible_initialise (GtkCellAccessible *cell,
|
||||
|
@ -129,21 +129,6 @@ _gtk_cell_accessible_parent_get_renderer_state (GtkCellAccessibleParent *parent,
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
_gtk_cell_accessible_parent_set_cell_data (GtkCellAccessibleParent *parent,
|
||||
GtkCellAccessible *cell)
|
||||
{
|
||||
GtkCellAccessibleParentIface *iface;
|
||||
|
||||
g_return_if_fail (GTK_IS_CELL_ACCESSIBLE_PARENT (parent));
|
||||
g_return_if_fail (GTK_IS_CELL_ACCESSIBLE (cell));
|
||||
|
||||
iface = GTK_CELL_ACCESSIBLE_PARENT_GET_IFACE (parent);
|
||||
|
||||
if (iface->set_cell_data)
|
||||
(iface->set_cell_data) (parent, cell);
|
||||
}
|
||||
|
||||
void
|
||||
_gtk_cell_accessible_parent_expand_collapse (GtkCellAccessibleParent *parent,
|
||||
GtkCellAccessible *cell)
|
||||
|
@ -63,8 +63,6 @@ struct _GtkCellAccessibleParentIface
|
||||
GtkCellRendererState
|
||||
( *get_renderer_state) (GtkCellAccessibleParent *parent,
|
||||
GtkCellAccessible *cell);
|
||||
void ( *set_cell_data) (GtkCellAccessibleParent *parent,
|
||||
GtkCellAccessible *cell);
|
||||
/* actions */
|
||||
void ( *expand_collapse) (GtkCellAccessibleParent *parent,
|
||||
GtkCellAccessible *cell);
|
||||
@ -93,8 +91,6 @@ int _gtk_cell_accessible_parent_get_child_index (GtkCellAccessibleParent *
|
||||
GtkCellRendererState
|
||||
_gtk_cell_accessible_parent_get_renderer_state(GtkCellAccessibleParent *parent,
|
||||
GtkCellAccessible *cell);
|
||||
void _gtk_cell_accessible_parent_set_cell_data (GtkCellAccessibleParent *parent,
|
||||
GtkCellAccessible *cell);
|
||||
void _gtk_cell_accessible_parent_expand_collapse (GtkCellAccessibleParent *parent,
|
||||
GtkCellAccessible *cell);
|
||||
void _gtk_cell_accessible_parent_activate (GtkCellAccessibleParent *parent,
|
||||
|
@ -1363,15 +1363,6 @@ gtk_tree_view_accessible_get_renderer_state (GtkCellAccessibleParent *parent,
|
||||
return flags;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_tree_view_accessible_set_cell_data (GtkCellAccessibleParent *parent,
|
||||
GtkCellAccessible *cell)
|
||||
{
|
||||
set_cell_data (GTK_TREE_VIEW (gtk_accessible_get_widget (GTK_ACCESSIBLE (parent))),
|
||||
GTK_TREE_VIEW_ACCESSIBLE (parent),
|
||||
cell);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_tree_view_accessible_expand_collapse (GtkCellAccessibleParent *parent,
|
||||
GtkCellAccessible *cell)
|
||||
@ -1442,7 +1433,6 @@ gtk_cell_accessible_parent_interface_init (GtkCellAccessibleParentIface *iface)
|
||||
iface->grab_focus = gtk_tree_view_accessible_grab_cell_focus;
|
||||
iface->get_child_index = gtk_tree_view_accessible_get_child_index;
|
||||
iface->get_renderer_state = gtk_tree_view_accessible_get_renderer_state;
|
||||
iface->set_cell_data = gtk_tree_view_accessible_set_cell_data;
|
||||
iface->expand_collapse = gtk_tree_view_accessible_expand_collapse;
|
||||
iface->activate = gtk_tree_view_accessible_activate;
|
||||
iface->edit = gtk_tree_view_accessible_edit;
|
||||
|
Loading…
Reference in New Issue
Block a user