diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2004-05-27 03:31:17 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-05-27 03:31:17 +0000 |
commit | 310fd268e7498582755fd21bcf5428794a832bc0 (patch) | |
tree | 9323eafee5beacd4743fd73599b1a82a11658958 /gtk/gtkcellview.c | |
parent | 7c200f8a9c9985c483f6293d79d8b4192e2e6a4a (diff) | |
download | gdk-pixbuf-310fd268e7498582755fd21bcf5428794a832bc0.tar.gz |
Support insensitive cells in tree views and combo boxes.
Diffstat (limited to 'gtk/gtkcellview.c')
-rw-r--r-- | gtk/gtkcellview.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c index 84dc2e7fd..14600a29c 100644 --- a/gtk/gtkcellview.c +++ b/gtk/gtkcellview.c @@ -80,7 +80,6 @@ static void gtk_cell_view_set_valuesv (GtkCellView *cel va_list args); static GtkCellViewCellInfo *gtk_cell_view_get_cell_info (GtkCellView *cellview, GtkCellRenderer *renderer); -static void gtk_cell_view_set_cell_data (GtkCellView *cellview); static void gtk_cell_view_cell_layout_pack_start (GtkCellLayout *layout, @@ -527,7 +526,7 @@ gtk_cell_view_get_cell_info (GtkCellView *cellview, return NULL; } -static void +void gtk_cell_view_set_cell_data (GtkCellView *cellview) { GList *i; @@ -979,3 +978,20 @@ gtk_cell_view_set_background_color (GtkCellView *view, } } } + +GList * +gtk_cell_view_get_cell_renderers (GtkCellView *cell_view) +{ + GList *retval = NULL, *list; + + g_return_val_if_fail (cell_view != NULL, NULL); + + for (list = cell_view->priv->cell_list; list; list = list->next) + { + GtkCellViewCellInfo *info = (GtkCellViewCellInfo *)list->data; + + retval = g_list_prepend (retval, info->cell); + } + + return g_list_reverse (retval); +} |