summaryrefslogtreecommitdiff
path: root/gtk/gtkcellview.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-12-29 07:53:01 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-12-29 07:53:01 +0000
commit6fa25d074e3bc5b06c7346a97bd06da74064a63a (patch)
tree13a1cf5d0fc4804efbc3f96c8fbc014d684b8a1d /gtk/gtkcellview.c
parentb3ef93d8ee2139996d1a43b498a6314d5a2b2370 (diff)
downloadgtk+-6fa25d074e3bc5b06c7346a97bd06da74064a63a.tar.gz
New function to get the cell renderers of a cell layout.
2006-12-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkcelllayout.[hc] (gtk_cell_layout_get_cells): New function to get the cell renderers of a cell layout. * gtk/gtktreeviewcolumn.c: * gtk/gtkcellview.c: * gtk/gtkiconview.c: Implement get_cells.
Diffstat (limited to 'gtk/gtkcellview.c')
-rw-r--r--gtk/gtkcellview.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index 405a8ba0ad..1cd3fc7065 100644
--- a/gtk/gtkcellview.c
+++ b/gtk/gtkcellview.c
@@ -103,7 +103,7 @@ static void gtk_cell_view_cell_layout_set_cell_data_func (GtkCellLayout
static void gtk_cell_view_cell_layout_reorder (GtkCellLayout *layout,
GtkCellRenderer *cell,
gint position);
-
+static GList * gtk_cell_view_cell_layout_get_cells (GtkCellLayout *layout);
#define GTK_CELL_VIEW_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_CELL_VIEW, GtkCellViewPrivate))
@@ -184,6 +184,7 @@ gtk_cell_view_cell_layout_init (GtkCellLayoutIface *iface)
iface->set_cell_data_func = gtk_cell_view_cell_layout_set_cell_data_func;
iface->clear_attributes = gtk_cell_view_cell_layout_clear_attributes;
iface->reorder = gtk_cell_view_cell_layout_reorder;
+ iface->get_cells = gtk_cell_view_cell_layout_get_cells;
}
static void
@@ -1060,5 +1061,12 @@ 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)
+{
+ return gtk_cell_view_get_cell_renderers (GTK_CELL_VIEW (layout));
+}
+
+
#define __GTK_CELL_VIEW_C__
#include "gtkaliasdef.c"