From 9e927267cdd157e56c238ea131758ecaadbe6309 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Wed, 30 Sep 1998 05:51:35 +0000 Subject: [PATCH] New routine to paint a little red triangle if the cell hsa notes. 1998-09-29 Miguel de Icaza * src/cell.c (cell_draw_comment): New routine to paint a little red triangle if the cell hsa notes. * src/cell.c (cell_destroy): Destroy the comment. (str_trim_spaces): New routine. Trims the spaces on a string. (cell_draw): Trim the leading and trailing spaces on every string of a multi-line text. * src/color.c (color_init): Allocate a red for tagging the spreadhseet notes. * src/dialog-cell-format.c (format_list_fill): Apply the traslation when adding the format. * doc/tranlating.sgml: New document that describes how to internationalize and localize Gnumeric properly. * src/workbook.c (recalc_cmd): Provide a way to force a recomputation. (insert_current_time_cmd): New function. insert the current time. (insert_current_date_cmd): New function. insert the current date. (insert_at_cursor): New utility function. * src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Handle control-home svn path=/trunk/; revision=414 --- widgets/misc/e-colors.c | 1 + widgets/misc/e-colors.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/widgets/misc/e-colors.c b/widgets/misc/e-colors.c index d47a2af899..c8f88bbe61 100644 --- a/widgets/misc/e-colors.c +++ b/widgets/misc/e-colors.c @@ -64,6 +64,7 @@ color_init (void) color_alloc_name ("gray60", &gs_light_gray); color_alloc_name ("gray20", &gs_dark_gray); + color_alloc_name ("red", &gs_red); color_inited = 1; } diff --git a/widgets/misc/e-colors.h b/widgets/misc/e-colors.h index 738d0aec55..0381871e5e 100644 --- a/widgets/misc/e-colors.h +++ b/widgets/misc/e-colors.h @@ -9,6 +9,6 @@ void color_alloc_name (char *name, GdkColor *color); void color_alloc_gdk (GdkColor *color); /* Colors used by any GnumericSheet item */ -extern GdkColor gs_white, gs_light_gray, gs_dark_gray, gs_black; +extern GdkColor gs_white, gs_light_gray, gs_dark_gray, gs_black, gs_red; #endif