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

Add config test. Implement test here. and here.


2000-11-16  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (format_month_before_day) : Add config test.
	* configure.in : Implement test here.
	* config.h.in : and here.

2000-11-15  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_update_only_grid) : split from sheet_update.
	(sheet_update) : call sheet_update_only_grid.
parent 4e9d5f53
......@@ -11,7 +11,7 @@ Release Critical
Long term breakage
------------------
- Look into ability to identify versions of gnumeric xml that are newer than we
are. As DV about name spaces.
are. Ask DV about name spaces.
- Entering "=1e11111" yields "Syntax Error", not "overflow".
......
2000-11-16 Jody Goldberg <jgoldberg@home.com>
* src/format.c (format_month_before_day) : Add config test.
* configure.in : Implement test here.
* config.h.in : and here.
2000-11-15 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_update_only_grid) : split from sheet_update.
(sheet_update) : call sheet_update_only_grid.
2000-11-16 Michael Meeks <michael@helixcode.com>
* src/xml-io.h: add xmlmemory.h
......
2000-11-16 Jody Goldberg <jgoldberg@home.com>
* src/format.c (format_month_before_day) : Add config test.
* configure.in : Implement test here.
* config.h.in : and here.
2000-11-15 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_update_only_grid) : split from sheet_update.
(sheet_update) : call sheet_update_only_grid.
2000-11-16 Michael Meeks <michael@helixcode.com>
* src/xml-io.h: add xmlmemory.h
......
2000-11-16 Jody Goldberg <jgoldberg@home.com>
* src/format.c (format_month_before_day) : Add config test.
* configure.in : Implement test here.
* config.h.in : and here.
2000-11-15 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_update_only_grid) : split from sheet_update.
(sheet_update) : call sheet_update_only_grid.
2000-11-16 Michael Meeks <michael@helixcode.com>
* src/xml-io.h: add xmlmemory.h
......
2000-11-16 Jody Goldberg <jgoldberg@home.com>
* src/format.c (format_month_before_day) : Add config test.
* configure.in : Implement test here.
* config.h.in : and here.
2000-11-15 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_update_only_grid) : split from sheet_update.
(sheet_update) : call sheet_update_only_grid.
2000-11-16 Michael Meeks <michael@helixcode.com>
* src/xml-io.h: add xmlmemory.h
......
2000-11-16 Jody Goldberg <jgoldberg@home.com>
* src/format.c (format_month_before_day) : Add config test.
* configure.in : Implement test here.
* config.h.in : and here.
2000-11-15 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_update_only_grid) : split from sheet_update.
(sheet_update) : call sheet_update_only_grid.
2000-11-16 Michael Meeks <michael@helixcode.com>
* src/xml-io.h: add xmlmemory.h
......
......@@ -71,6 +71,9 @@ AC_CHECK_HEADERS(ieeefp.h)
dnl Check for some functions
AC_CHECK_FUNCS(random drand48)
dnl check for complete locale implementation
AC_CHECK_HEADERS(langinfo.h)
dnl **************************************************
dnl * ORBit support
dnl **************************************************
......@@ -196,8 +199,8 @@ bonobo_suffix=
have_bonobo=false
AC_ARG_WITH(bonobo,
[--{with,without}-bonobo Compile with Bonobo support or without it],
if test x$withval = xno; then
try_bonobo=false
if test x$withval = xyes; then
try_bonobo=true
fi
)
......
......@@ -27,10 +27,12 @@
#include <time.h>
#include <math.h>
#include <float.h>
#include <langinfo.h>
#include <limits.h>
#include <ctype.h>
#include <locale.h>
#ifdef HAVE_LANGINFO_H
# include <langinfo.h>
#endif
#ifdef HAVE_IEEEFP_H
# include <ieeefp.h>
#endif
......@@ -105,6 +107,7 @@ format_get_currency (void)
gboolean
format_month_before_day (void)
{
#ifdef HAVE_LANGINFO_H
static gboolean month_first = TRUE;
if (!date_order_cached) {
......@@ -124,6 +127,14 @@ format_month_before_day (void)
}
return month_first;
#else
static gboolean warning = TRUE;
if (warning) {
g_warning ("Incomplete locale library, dates will be month day year");
warning = FALSE;
}
return TRUE;
#endif
}
/* Use comma as the arg seperator unless the decimal point is a
......
......@@ -781,7 +781,10 @@ gnumeric_sheet_key_mode_sheet (GnumericSheet *gsheet, GdkEventKey *event)
return gtk_widget_event (GTK_WIDGET (workbook_get_entry_logical (wbcg)),
(GdkEvent *) event);
}
if (!wbcg->editing)
if (wbcg->editing)
sheet_update_only_grid (sheet);
else
sheet_update (sheet);
return TRUE;
......
......@@ -781,7 +781,10 @@ gnumeric_sheet_key_mode_sheet (GnumericSheet *gsheet, GdkEventKey *event)
return gtk_widget_event (GTK_WIDGET (workbook_get_entry_logical (wbcg)),
(GdkEvent *) event);
}
if (!wbcg->editing)
if (wbcg->editing)
sheet_update_only_grid (sheet);
else
sheet_update (sheet);
return TRUE;
......
This diff is collapsed.
......@@ -9,14 +9,14 @@
#define SHEET_CONTROL_GUI_CLASS(k) (GTK_CHECK_CLASS_CAST((k), SHEET_CONTROL_GUI_TYPE))
#define IS_SHEET_CONTROL_GUI(o) (GTK_CHECK_TYPE((o), SHEET_CONTROL_GUI_TYPE))
typedef gboolean (*SheetControlGUISlideHandler) (SheetControlGUI *sheet_view, int col, int row,
gpointer user_data);
typedef gboolean (*SheetControlGUISlideHandler) (SheetControlGUI *scg, int col, int row,
gpointer user_data);
struct _SheetControlGUI {
GtkTable table;
Sheet *sheet;
WorkbookControlGUI *wbcg; /* FIXME : How does sheet-view relate to workbook-control */
WorkbookControlGUI *wbcg;
GtkWidget *canvas;
GtkWidget *select_all_btn;
GnomeCanvas *col_canvas, *row_canvas;
......@@ -28,9 +28,7 @@ struct _SheetControlGUI {
/* Selection group */
GnomeCanvasGroup *selection_group;
/*
* Control points for the current item
*/
/* Control points for the current item */
GnomeCanvasItem *control_points [9];
/* Scrolling information */
......@@ -54,46 +52,48 @@ struct _SheetControlGUI {
GtkType sheet_view_get_type (void);
GtkWidget *sheet_view_new (Sheet *sheet);
void sheet_view_set_zoom_factor (SheetControlGUI *sheet_view,
void sheet_view_set_zoom_factor (SheetControlGUI *scg,
double factor);
void sheet_view_redraw_all (SheetControlGUI *sheet_view);
void sheet_view_redraw_cell_region (SheetControlGUI *sheet_view,
void sheet_view_redraw_all (SheetControlGUI *scg);
void sheet_view_redraw_cell_region (SheetControlGUI *scg,
int start_col, int start_row,
int end_col, int end_row);
void sheet_view_redraw_headers (SheetControlGUI *sheet_view,
void sheet_view_redraw_headers (SheetControlGUI *scg,
gboolean const col, gboolean const row,
Range const * r /* optional == NULL */);
void sheet_view_hide_cursor (SheetControlGUI *sheet_view);
void sheet_view_show_cursor (SheetControlGUI *sheet_view);
void sheet_view_hide_cursor (SheetControlGUI *scg);
void sheet_view_show_cursor (SheetControlGUI *scg);
GnomeCanvasItem *sheet_view_comment_create_marker (SheetControlGUI *sheet_view,
GnomeCanvasItem *sheet_view_comment_create_marker (SheetControlGUI *scg,
int col, int row);
void sheet_view_comment_relocate (SheetControlGUI *sheet_view,
void sheet_view_comment_relocate (SheetControlGUI *scg,
int col, int row,
GnomeCanvasItem *o);
void sheet_view_set_header_visibility (SheetControlGUI *sheet_view,
void sheet_view_set_header_visibility (SheetControlGUI *scg,
gboolean col_headers_visible,
gboolean row_headers_visible);
void sheet_view_scrollbar_config (SheetControlGUI const *sheet_view);
void sheet_view_scrollbar_config (SheetControlGUI const *scg);
void sheet_view_selection_ant (SheetControlGUI *sheet_view);
void sheet_view_selection_unant (SheetControlGUI *sheet_view);
void sheet_view_selection_ant (SheetControlGUI *scg);
void sheet_view_selection_unant (SheetControlGUI *scg);
void sheet_view_adjust_preferences (SheetControlGUI *sheet_view);
void sheet_view_adjust_preferences (SheetControlGUI *scg);
void sheet_view_update_cursor_pos (SheetControlGUI *sheet_view);
void sheet_view_update_cursor_pos (SheetControlGUI *scg);
StyleFont * sheet_view_get_style_font (Sheet const *sheet,
MStyle const * const mstyle);
MStyle const *mstyle);
gboolean sheet_view_start_sliding (SheetControlGUI *sheet_view,
gboolean sheet_view_start_sliding (SheetControlGUI *scg,
SheetControlGUISlideHandler slide_handler,
gpointer user_data,
int col, int row, int dx, int dy);
void sheet_view_stop_sliding (SheetControlGUI *sheet_view);
void sheet_view_stop_sliding (SheetControlGUI *scg);
void scg_visible_spans_regen (SheetControlGUI *scg);
typedef struct {
GtkTableClass parent_class;
......@@ -104,6 +104,6 @@ typedef struct {
* forces me to put them here
*/
SheetControlGUI *sheet_new_sheet_view (Sheet *sheet);
void sheet_detach_sheet_view (SheetControlGUI *sheet_view);
void sheet_detach_sheet_view (SheetControlGUI *scg);
#endif /* GNUMERIC_SHEET_CONTROL_GUI_H */
......@@ -711,12 +711,14 @@ sheet_flag_selection_change (Sheet const *sheet)
sheet->priv->selection_content_changed = TRUE;
}
/*
* sheet_update : Should be called after a logical command has finished processing
* to request redraws for any pending events
/**
* sheet_update_only_grid :
*
* Should be called after a logical command has finished processing
* to request redraws for any pending events
*/
void
sheet_update (Sheet const *sheet)
sheet_update_only_grid (Sheet const *sheet)
{
SheetPrivate *p;
......@@ -773,14 +775,27 @@ sheet_update (Sheet const *sheet)
}
p->resize_scrollbar = FALSE;
}
}
#warning disable during editing
#if 0
if (sheet->workbook->editing)
return;
#endif
if (sheet->priv->edit_pos.content_changed) {
sheet->priv->edit_pos.content_changed = FALSE;
/**
* sheet_update:
*
* Should be called after a logical command has finished processing to request
* redraws for any pending events, and to update the various status regions
*/
void
sheet_update (Sheet const *sheet)
{
SheetPrivate *p;
g_return_if_fail (sheet != NULL);
sheet_update_only_grid (sheet);
p = sheet->priv;
if (p->edit_pos.content_changed) {
p->edit_pos.content_changed = FALSE;
WORKBOOK_FOREACH_VIEW (sheet->workbook, view,
{
if (wb_view_cur_sheet (view) == sheet) {
......@@ -790,8 +805,8 @@ sheet_update (Sheet const *sheet)
});
}
if (sheet->priv->edit_pos.format_changed) {
sheet->priv->edit_pos.format_changed = FALSE;
if (p->edit_pos.format_changed) {
p->edit_pos.format_changed = FALSE;
WORKBOOK_FOREACH_VIEW (sheet->workbook, view,
{
if (wb_view_cur_sheet (view) == sheet)
......@@ -799,10 +814,10 @@ sheet_update (Sheet const *sheet)
});
}
if (sheet->priv->edit_pos.location_changed) {
if (p->edit_pos.location_changed) {
char const *new_pos = cell_pos_name (&sheet->cursor.edit_pos);
sheet->priv->edit_pos.location_changed = FALSE;
p->edit_pos.location_changed = FALSE;
WORKBOOK_FOREACH_VIEW (sheet->workbook, view,
{
if (wb_view_cur_sheet (view) == sheet) {
......@@ -812,8 +827,8 @@ sheet_update (Sheet const *sheet)
});
}
if (sheet->priv->selection_content_changed) {
sheet->priv->selection_content_changed = FALSE;
if (p->selection_content_changed) {
p->selection_content_changed = FALSE;
WORKBOOK_FOREACH_VIEW (sheet->workbook, view,
{
if (wb_view_cur_sheet (view) == sheet)
......
......@@ -257,6 +257,7 @@ void sheet_flag_status_update_cell (Cell const *cell);
void sheet_flag_status_update_range(Sheet const *sheet, Range const *range);
void sheet_flag_format_update_range(Sheet const *sheet, Range const *range);
void sheet_flag_selection_change (Sheet const *sheet);
void sheet_update_only_grid (Sheet const *sheet);
void sheet_update (Sheet const *sheet);
void sheet_compute_visible_ranges (Sheet const *sheet);
......
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