summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-07-08 16:38:40 +0200
committerAlexander Larsson <alexl@redhat.com>2009-07-08 16:46:26 +0200
commitfb1aeab052acc0453cc0cec20e63a0dd70aa1d52 (patch)
tree4e5edf33c8bcd153d11ba2283a115baff95f19b8 /gtk
parent11ec2ede5623c052644af83c2e0c36d60744aa99 (diff)
downloadgtk+-fb1aeab052acc0453cc0cec20e63a0dd70aa1d52.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')
-rw-r--r--gtk/gtkcellview.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index 6add539de8..3fa0ad9013 100644
--- a/gtk/gtkcellview.c
+++ b/gtk/gtkcellview.c
@@ -1042,23 +1042,10 @@ gtk_cell_view_set_background_color (GtkCellView *cell_view,
gtk_widget_queue_draw (GTK_WIDGET (cell_view));
}
-/**
- * gtk_cell_view_get_cell_renderers:
- * @cell_view: a #GtkCellView
- *
- * Returns the cell renderers which have been added to @cell_view.
- *
- * Return value: a list of cell renderers. The list, but not the
- * renderers has been newly allocated and should be freed with
- * g_list_free() when no longer needed.
- *
- * Since: 2.6
- *
- * Deprecated: 2.18: use gtk_cell_layout_get_cells() instead.
- **/
-GList *
-gtk_cell_view_get_cell_renderers (GtkCellView *cell_view)
+static GList *
+gtk_cell_view_cell_layout_get_cells (GtkCellLayout *layout)
{
+ GtkCellView *cell_view = GTK_CELL_VIEW (layout);
GList *retval = NULL, *list;
g_return_val_if_fail (cell_view != NULL, NULL);
@@ -1075,13 +1062,26 @@ gtk_cell_view_get_cell_renderers (GtkCellView *cell_view)
return g_list_reverse (retval);
}
-static GList *
-gtk_cell_view_cell_layout_get_cells (GtkCellLayout *layout)
+/**
+ * gtk_cell_view_get_cell_renderers:
+ * @cell_view: a #GtkCellView
+ *
+ * Returns the cell renderers which have been added to @cell_view.
+ *
+ * Return value: a list of cell renderers. The list, but not the
+ * renderers has been newly allocated and should be freed with
+ * g_list_free() when no longer needed.
+ *
+ * Since: 2.6
+ *
+ * Deprecated: 2.18: use gtk_cell_layout_get_cells() instead.
+ **/
+GList *
+gtk_cell_view_get_cell_renderers (GtkCellView *cell_view)
{
- return gtk_cell_view_get_cell_renderers (GTK_CELL_VIEW (layout));
+ return gtk_cell_view_cell_layout_get_cells (GTK_CELL_LAYOUT (cell_view));
}
-
static gboolean
gtk_cell_view_buildable_custom_tag_start (GtkBuildable *buildable,
GtkBuilder *builder,