diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-07-08 16:41:32 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-07-08 16:46:26 +0200 |
commit | 6fc6903c16e92a21fb19e5d48140c01ba7ccae80 (patch) | |
tree | faf4b2181158c42728ab38b76e8a0757fd8875ad /gtk/gtktreeviewcolumn.c | |
parent | fb1aeab052acc0453cc0cec20e63a0dd70aa1d52 (diff) | |
download | gtk+-6fc6903c16e92a21fb19e5d48140c01ba7ccae80.tar.gz |
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
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r-- | gtk/gtktreeviewcolumn.c | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index bf98fdf1ad..d3259d0f64 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -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)); } /** |