From 484c8193e1ae11a967e002b132dd04fa8b4e460d Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 10 Oct 2001 20:44:25 +0000 Subject: Implement these functions as pass through to the child cell. 2001-10-10 Christopher James Lahey * e-cell-popup.c (ecp_get_bg_color), e-cell-tree.c (ect_get_bg_color): Implement these functions as pass through to the child cell. * e-cell-text.c, e-cell-text.h (ect_get_bg_color): Implemented this using a bg_color_column which can be set through the argument of the same string. * e-cell.c, e-cell.h (e_cell_get_bg_color): Added this function to allow background color to change by cell. * e-table-item.c (eti_get_cell_background_color): Call e_cell_get_bg_color to allow background color to change by cell. svn path=/trunk/; revision=13566 --- widgets/table/e-cell-popup.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'widgets/table/e-cell-popup.c') diff --git a/widgets/table/e-cell-popup.c b/widgets/table/e-cell-popup.c index 224227e209..96f88dbd3c 100644 --- a/widgets/table/e-cell-popup.c +++ b/widgets/table/e-cell-popup.c @@ -105,6 +105,7 @@ static void ecp_show_tooltip (ECellView *ecv, int row, int col_width, ETableTooltip *tooltip); +static char *ecp_get_bg_color (ECellView *ecell_view, int row); static gint e_cell_popup_do_popup (ECellPopupView *ecp_view, GdkEvent *event); @@ -136,6 +137,7 @@ e_cell_popup_class_init (GtkObjectClass *object_class) ecc->print_height = ecp_print_height; ecc->max_width = ecp_max_width; ecc->show_tooltip = ecp_show_tooltip; + ecc->get_bg_color = ecp_get_bg_color; parent_class = gtk_type_class (e_cell_get_type ()); } @@ -464,6 +466,14 @@ ecp_show_tooltip (ECellView *ecv, col_width, tooltip); } +static char * +ecp_get_bg_color (ECellView *ecell_view, int row) +{ + ECellPopupView *ecp_view = (ECellPopupView *) ecell_view; + + return e_cell_get_bg_color (ecp_view->child_view, row); +} + ECell* -- cgit v1.2.3