]> Pileus Git - ~andy/gtk/commitdiff
Move get_cells implementation from deprecated function
authorAlexander Larsson <alexl@redhat.com>
Wed, 8 Jul 2009 14:38:40 +0000 (16:38 +0200)
committerAlexander Larsson <alexl@redhat.com>
Wed, 8 Jul 2009 14:46:26 +0000 (16:46 +0200)
This way the deprecated function calls the new one instead of the other
way around, which fixes pltcheck.sh

gtk/gtkcellview.c

index 6add539de815c24f13286e60e2e36b16cf20efe6..3fa0ad9013c03429c47120e46fb85d4e7556285d 100644 (file)
@@ -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,