From 55b44f1c465147949a550422ff7515e8a1684cb0 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sun, 15 Apr 2001 16:52:41 +0000 Subject: Added /* #defines */ at the top. Fixed ALTERNATE_COLORS to be an #ifdef 2001-04-15 Christopher James Lahey * e-table-item.c: Added /* #defines */ at the top. Fixed ALTERNATE_COLORS to be an #ifdef instead of an #if. * e-cell-text.c (ect_show_tooltip): Set "strikeout" argument on created tooltip. svn path=/trunk/; revision=9328 --- widgets/table/e-cell-text.c | 2 ++ widgets/table/e-table-item.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'widgets') diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index db881f764b..1ad50921e3 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -579,6 +579,7 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable, sel_rect.height = height; gtk_paint_flat_box (canvas->style, drawable, + edit->has_selection ? GTK_STATE_SELECTED : GTK_STATE_ACTIVE, GTK_SHADOW_NONE, clip_rect, @@ -1225,6 +1226,7 @@ ect_show_tooltip (ECellView *ecell_view, "anchor", GTK_ANCHOR_NW, /* "font_gdk", text_view->font, */ "bold", (gboolean) ect->bold_column >= 0 && e_table_model_value_at(ecell_view->e_table_model, ect->bold_column, row), + "strikeout", (gboolean) ect->strikeout_column >= 0 && e_table_model_value_at(ecell_view->e_table_model, ect->strikeout_column, row), "text", cell.text, "editable", FALSE, "clip_width", max_width, diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index 98cb7788e5..85fab6bd64 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -33,6 +33,7 @@ #define FOCUSED_BORDER 2 /* #define DO_TOOLTIPS 1 */ +/* #define ALTERNATE_COLORS 1 */ #define d(x) @@ -1337,11 +1338,12 @@ eti_draw (GnomeCanvasItem *item, GdkDrawable *drawable, int x, int y, int width, background = &canvas->style->base [GTK_STATE_NORMAL]; } -#if ALTERNATE_COLORS +#ifdef ALTERNATE_COLORS if (row % 2) { } else { free_background = TRUE; + background = gdk_color_copy (background); e_hsv_tweak (background, 0.0f, 0.0f, -0.05f); gdk_color_alloc (gtk_widget_get_colormap (GTK_WIDGET (canvas)), background); } -- cgit