Commit a08c9777 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

only display warning once. 2000-12-27 Jody Goldberg <jgoldberg@home.com>


2000-12-27  Jody Goldberg <jgoldberg@home.com>

	* fn-date.c (datedif_opt_yd) : only display warning once.
2000-12-27  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_cell_insert) : privatize.
	(sheet_cell_remove_simple) : privatize.
parent 81406add
......@@ -98,9 +98,12 @@ STF - pasting a single line should not invoke the importer
- Merged Cells
- autofill
- undo/redo (even for row/col ins/del)
- copy/paste (cut works)
- undo/redo merge
- fix undo ins/del row/col to restore lost merged regions
- width of cell for general format
- printing
- multi line text in merged cells
Dialogs
-------
......
2000-12-27 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_cell_insert) : privatize.
(sheet_cell_remove_simple) : privatize.
2000-12-27 Morten Welinder <terra@diku.dk>
* src/workbook-format-toolbar.c
......
2000-12-27 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_cell_insert) : privatize.
(sheet_cell_remove_simple) : privatize.
2000-12-27 Morten Welinder <terra@diku.dk>
* src/workbook-format-toolbar.c
......
2000-12-27 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_cell_insert) : privatize.
(sheet_cell_remove_simple) : privatize.
2000-12-27 Morten Welinder <terra@diku.dk>
* src/workbook-format-toolbar.c
......
2000-12-27 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_cell_insert) : privatize.
(sheet_cell_remove_simple) : privatize.
2000-12-27 Morten Welinder <terra@diku.dk>
* src/workbook-format-toolbar.c
......
2000-12-27 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_cell_insert) : privatize.
(sheet_cell_remove_simple) : privatize.
2000-12-27 Morten Welinder <terra@diku.dk>
* src/workbook-format-toolbar.c
......
......@@ -154,7 +154,13 @@ datedif_opt_yd (GDate *gdate1, GDate *gdate2, int excel_compat)
g_date_set_year (gdate1, new_year1);
g_date_set_year (gdate2, new_year2);
g_warning("datedif is known to differ from Excel for some values.");
{
static gboolean need_warning = TRUE;
if (need_warning) {
g_warning("datedif is known to differ from Excel for some values.");
need_warning = FALSE;
}
}
}
return datetime_g_days_between (gdate1, gdate2);
......
......@@ -54,7 +54,7 @@ draw_overflow (GdkDrawable *drawable, GdkGC *gc, GdkFont *font,
* WARNING : This code is an almost exact duplicate of
* print-cell.c:cell_split_text
* and is very similar to
* cell.c:calc_text_dimensions
* rendered-value.c:rendered_value_calc_size_ext
*
* Try to keep it that way.
*/
......
......@@ -154,7 +154,13 @@ datedif_opt_yd (GDate *gdate1, GDate *gdate2, int excel_compat)
g_date_set_year (gdate1, new_year1);
g_date_set_year (gdate2, new_year2);
g_warning("datedif is known to differ from Excel for some values.");
{
static gboolean need_warning = TRUE;
if (need_warning) {
g_warning("datedif is known to differ from Excel for some values.");
need_warning = FALSE;
}
}
}
return datetime_g_days_between (gdate1, gdate2);
......
......@@ -1985,7 +1985,7 @@ sheet_cell_add_to_hash (Sheet *sheet, Cell *cell)
g_hash_table_insert (sheet->cell_hash, &cell->pos, cell);
}
void
static void
sheet_cell_insert (Sheet *sheet, Cell *cell, int col, int row, gboolean recalc_span)
{
cell->base.sheet = sheet;
......@@ -2034,7 +2034,7 @@ sheet_cell_remove_from_hash (Sheet *sheet, Cell *cell)
* sheet_cell_remove_simple : Remove the cell from the web of depenancies of a
* sheet. Do NOT redraw or free the cell.
*/
void
static void
sheet_cell_remove_simple (Sheet *sheet, Cell *cell)
{
GList *deps;
......@@ -2054,7 +2054,7 @@ sheet_cell_remove_simple (Sheet *sheet, Cell *cell)
}
/**
* sheet_cell_remove_simple : Remove the cell from the web of depenancies of a
* sheet_cell_remove : Remove the cell from the web of depenancies of a
* sheet. Do NOT free the cell, optionally redraw it.
*/
void
......@@ -2170,7 +2170,6 @@ cb_remove_allcells (gpointer ignored, gpointer value, gpointer flags)
return TRUE;
}
static gboolean
cb_dummy_remove_func (void *key, void *value, void *user)
{
......
......@@ -99,10 +99,7 @@ void sheet_make_cell_visible (Sheet *sheet, int col, int row);
Cell *sheet_cell_get (Sheet const *sheet, int col, int row);
Cell *sheet_cell_fetch (Sheet *sheet, int col, int row);
Cell *sheet_cell_new (Sheet *sheet, int col, int row);
void sheet_cell_insert (Sheet *sheet, Cell *cell,
int col, int row, gboolean recalc_span);
void sheet_cell_remove (Sheet *sheet, Cell *cell, gboolean redraw);
void sheet_cell_remove_simple (Sheet *sheet, Cell *cell);
/* Iteration utilities */
/* See also : workbook_foreach_cell_in_range */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment