summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrenderer.h
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2002-04-23 16:39:01 +0000
committerKristian Rietveld <kristian@src.gnome.org>2002-04-23 16:39:01 +0000
commitcb3c5cc14d4d7f8619ff2742bf6c4e6d7bd6a503 (patch)
treedb8e5f149598ca8a77517aad4cdb439c1278baad /gtk/gtkcellrenderer.h
parent1b771c4428e7528c09b2f0941a9277203f45b4cc (diff)
downloadgtk+-cb3c5cc14d4d7f8619ff2742bf6c4e6d7bd6a503.tar.gz
This commit adds a cell_background property for cell renderers. With this
Tue Apr 23 18:35:34 2002 Kristian Rietveld <kris@gtk.org> This commit adds a cell_background property for cell renderers. With this property you can make your TreeView look incredibly ugly. * gtk/gtkcellrenderer.c: add cell_background, cell_background_gdk and cell_background_set properties, (set_cell_bg_color): new function, (gtk_cell_renderer_get_property), (gtk_cell_renderer_set_property): support for new properties, (gtk_cell_renderer_render): render a background when set. * gtk/gtkcellrenderer.h: add cell_background_set and cell_background fields. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): when rendering, pass in just the background_area of the cell and not the background_area of the entire column.
Diffstat (limited to 'gtk/gtkcellrenderer.h')
-rw-r--r--gtk/gtkcellrenderer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkcellrenderer.h b/gtk/gtkcellrenderer.h
index ce9085d8b5..16e9ca97a5 100644
--- a/gtk/gtkcellrenderer.h
+++ b/gtk/gtkcellrenderer.h
@@ -69,6 +69,10 @@ struct _GtkCellRenderer
guint visible : 1;
guint is_expander : 1;
guint is_expanded : 1;
+
+ guint cell_background_set : 1;
+
+ GdkColor cell_background;
};
struct _GtkCellRendererClass