Move get_cells implementation from deprecated function

This way the deprecated function calls the new one instead of the other
way around, which fixes pltcheck.sh
This commit is contained in:
Alexander Larsson 2009-07-08 16:41:32 +02:00
parent fb1aeab052
commit 6fc6903c16

View File

@ -1540,20 +1540,10 @@ gtk_tree_view_column_clear (GtkTreeViewColumn *tree_column)
gtk_cell_layout_clear (GTK_CELL_LAYOUT (tree_column)); gtk_cell_layout_clear (GTK_CELL_LAYOUT (tree_column));
} }
/** static GList *
* gtk_tree_view_column_get_cell_renderers: gtk_tree_view_column_cell_layout_get_cells (GtkCellLayout *layout)
* @tree_column: A #GtkTreeViewColumn
*
* Returns a newly-allocated #GList of all the cell renderers in the column,
* in no particular order. The list must be freed with g_list_free().
*
* Return value: A list of #GtkCellRenderers
*
* Deprecated: 2.18: use gtk_cell_layout_get_cells() instead.
**/
GList *
gtk_tree_view_column_get_cell_renderers (GtkTreeViewColumn *tree_column)
{ {
GtkTreeViewColumn *tree_column = GTK_TREE_VIEW_COLUMN (layout);
GList *retval = NULL, *list; GList *retval = NULL, *list;
g_return_val_if_fail (tree_column != NULL, NULL); g_return_val_if_fail (tree_column != NULL, NULL);
@ -1568,10 +1558,21 @@ gtk_tree_view_column_get_cell_renderers (GtkTreeViewColumn *tree_column)
return retval; return retval;
} }
static GList * /**
gtk_tree_view_column_cell_layout_get_cells (GtkCellLayout *layout) * gtk_tree_view_column_get_cell_renderers:
* @tree_column: A #GtkTreeViewColumn
*
* Returns a newly-allocated #GList of all the cell renderers in the column,
* in no particular order. The list must be freed with g_list_free().
*
* Return value: A list of #GtkCellRenderers
*
* Deprecated: 2.18: use gtk_cell_layout_get_cells() instead.
**/
GList *
gtk_tree_view_column_get_cell_renderers (GtkTreeViewColumn *tree_column)
{ {
return gtk_tree_view_column_get_cell_renderers (GTK_TREE_VIEW_COLUMN (layout)); return gtk_tree_view_column_cell_layout_get_cells (GTK_CELL_LAYOUT (tree_column));
} }
/** /**