forked from AuroraMiddleware/gtk
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:
parent
fb1aeab052
commit
6fc6903c16
@ -1540,20 +1540,10 @@ gtk_tree_view_column_clear (GtkTreeViewColumn *tree_column)
|
||||
gtk_cell_layout_clear (GTK_CELL_LAYOUT (tree_column));
|
||||
}
|
||||
|
||||
/**
|
||||
* 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)
|
||||
static GList *
|
||||
gtk_tree_view_column_cell_layout_get_cells (GtkCellLayout *layout)
|
||||
{
|
||||
GtkTreeViewColumn *tree_column = GTK_TREE_VIEW_COLUMN (layout);
|
||||
GList *retval = NULL, *list;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user