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

We need to recalc the size after rendering the value. However, it is


2000-09-17  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (cb_cell_rerender) : We need to recalc the size
	  after rendering the value.  However, it is wasteful to redraw each
	  cell individually.
	(cb_sheet_pref_display_formulas) : redraw entire sheet.  It is
	  simpler.
parent 031ceea8
2000-09-17 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (cb_cell_rerender) : We need to recalc the size
after rendering the value. However, it is wasteful to redraw each
cell individually.
(cb_sheet_pref_display_formulas) : redraw entire sheet. It is
simpler.
2000-09-17 Jody Goldberg <jgoldberg@home.com>
* src/workbook-format-toolbar.c : Use the new Gnome App Libs (GAL)
......
2000-09-17 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (cb_cell_rerender) : We need to recalc the size
after rendering the value. However, it is wasteful to redraw each
cell individually.
(cb_sheet_pref_display_formulas) : redraw entire sheet. It is
simpler.
2000-09-17 Jody Goldberg <jgoldberg@home.com>
* src/workbook-format-toolbar.c : Use the new Gnome App Libs (GAL)
......
2000-09-17 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (cb_cell_rerender) : We need to recalc the size
after rendering the value. However, it is wasteful to redraw each
cell individually.
(cb_sheet_pref_display_formulas) : redraw entire sheet. It is
simpler.
2000-09-17 Jody Goldberg <jgoldberg@home.com>
* src/workbook-format-toolbar.c : Use the new Gnome App Libs (GAL)
......
2000-09-17 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (cb_cell_rerender) : We need to recalc the size
after rendering the value. However, it is wasteful to redraw each
cell individually.
(cb_sheet_pref_display_formulas) : redraw entire sheet. It is
simpler.
2000-09-17 Jody Goldberg <jgoldberg@home.com>
* src/workbook-format-toolbar.c : Use the new Gnome App Libs (GAL)
......
2000-09-17 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (cb_cell_rerender) : We need to recalc the size
after rendering the value. However, it is wasteful to redraw each
cell individually.
(cb_sheet_pref_display_formulas) : redraw entire sheet. It is
simpler.
2000-09-17 Jody Goldberg <jgoldberg@home.com>
* src/workbook-format-toolbar.c : Use the new Gnome App Libs (GAL)
......
2000-09-17 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (cb_cell_rerender) : We need to recalc the size
after rendering the value. However, it is wasteful to redraw each
cell individually.
(cb_sheet_pref_display_formulas) : redraw entire sheet. It is
simpler.
2000-09-17 Jody Goldberg <jgoldberg@home.com>
* src/workbook-format-toolbar.c : Use the new Gnome App Libs (GAL)
......
2000-09-17 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (cb_cell_rerender) : We need to recalc the size
after rendering the value. However, it is wasteful to redraw each
cell individually.
(cb_sheet_pref_display_formulas) : redraw entire sheet. It is
simpler.
2000-09-17 Jody Goldberg <jgoldberg@home.com>
* src/workbook-format-toolbar.c : Use the new Gnome App Libs (GAL)
......
2000-09-17 Jody Goldberg <jgoldberg@home.com>
* POTFILES.in : remove the widgets that have now moved to GAL.
2000-09-04 Jody Goldberg <jgoldberg@home.com>
* no.po : Adjust the translation of 'File/Print Preview'
......
......@@ -136,9 +136,7 @@ src/stf.c
src/style.c
src/value-sheet.c
src/value.c
src/widgets/widget-color-combo.c
src/widgets/widget-font-selector.c
src/widgets/widget-pixmap-combo.c
src/workbook-cmd-format.c
src/workbook-format-toolbar.c
src/workbook-view.c
......
......@@ -866,10 +866,11 @@ static void
cb_cell_rerender (gpointer element, gpointer userdata)
{
Dependent *dep = element;
if (dep->flags & DEPENDENT_CELL) {
int const t = (dep->flags & DEPENDENT_TYPE_MASK);
if (t == DEPENDENT_CELL) {
Cell *cell = DEP_TO_CELL (dep);
cell_render_value (cell);
sheet_redraw_cell (cell);
rendered_value_calc_size (cell);
}
}
......@@ -879,6 +880,7 @@ cb_sheet_pref_display_formulas (GtkWidget *widget, Workbook *wb)
Sheet *sheet = wb->current_sheet;
sheet->display_formulas = !sheet->display_formulas;
g_list_foreach (wb->dependents, &cb_cell_rerender, NULL);
sheet_redraw_all (sheet);
}
static void
cb_sheet_pref_hide_zeros (GtkWidget *widget, Workbook *wb)
......
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