1. 29 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      - Do NOT clear a cell and save its value when we start editing. I assume this · 523b03fc
      Jody Goldberg authored
        was done so that contents of spanning cells would not be visible when editing
        began.  Rather than doing that I've adjusted the grid to pretend the cell
        being edited is empty.
      
      - Some cleanup editing and assigning text into cells.  Still can not directly
        call redo from the cmd.  Something screws up the memory associated with the
        text entry widget ??
      
      2000-01-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_set_text_undo) : Special case VALUE_EMPTY.
      	  Move to the previous cell only after reverting its value so that the
      	  edit area is updated.
      	(cmd_set_text) : Retrieve the old text of the cell directly.
      
      	* src/sheet.c (sheet_set_current_value) : Delete and merge into...
      	(sheet_accept_pending_input) : Here.  Harmonize the logic with.
      	(sheet_cancel_pending_input) : this function.
      	(sheet_set_text) : Publicize.
      	(sheet_stop_editing) : Removed storage of value of cell being edited.
      	(sheet_start_editing_at_cursor) : Ditto.
      
      	* src/workbook.c (accept_input) : Use sheet_accept_pending_input.
      	(redo_cmd, undo_cmd) : cancel pending input.
      
      2000-01-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_draw) : Pretend that the cell being
      	  edited (and anything it spans) are empty.
      
      	* src/sheet.c (sheet_duplicate_colrow) : Delete unused.
      523b03fc
  2. 28 Jan, 2000 5 commits
    • Jon K Hellan's avatar
      Megacommit. · 333a8167
      Jon K Hellan authored
      2000-01-29  Jon K Hellan  <hellan@acm.org>
      
      	Megacommit.
      
      	The purpose of the changeset is twofold:
      
      	1. Use CommandContexts for error reporting for file read/save.
      	2. This allows us to let FileFormatOpen return 0 on success, -1 on
      	   failure, same as FileFormatSave. The convention to return NULL
      	   on success was highly ideosyncratic.
      
      	* src/file.h (FileFormatOpen, FileFormatSave, workbook_load_from,
      	workbook_import): Add CommandContext
      	(FileFormatOpen, workbook_load_from): Return int instead of char*.
      
      	* src/file.c (workbook_load_from, workbook_try_read,
      	workbook_read, workbook_import, workbook_save_as, workbook_save)
      	(file_error_message): Remove function
      	(workbook_read, workbook_load_from, workbook_save_as,
      	workbook_save): Do not display message, message, plugin does -
      	using CommandContext.
      	(workbook_load_from): Return int instead of char*.
      	(workbook_load_from, workbook_import): fo->open returns int
      	instead of char*.
      	(workbook_try_read): Remove msg paramenter
      
      	* src/workbook.c (workbook_persist_file_load,
      	workbook_persist_file_save): Use workbook_command_context_gui.
      	(file_import_cmd): ditto
      	(file_open_cmd): ditto
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_filenames_dropped): Use
      	workbook_command_context_gui. Call workbook_try_read without msg
      	argument.
      
      	* src/workbook.h (workbook_try_read, workbook_read,
      	workbook_save_as, workbook_save): Add command context
      	(workbook_try_read): Remove msg paramenter
      
      	* src/dialogs/dialog-autosave.c (dialog_autosave_callback):
      	ditto
      
      	* src/command-context.[ch] (gnumeric_error_read,
      	gnumeric_error_save): New functions.
      
      	* src/command-context-corba.c (ccc_error_read, ccc_error_save):
      	Ditto.
      	(ccc_init_class): Initialize error_read, error_save.
      
      	* src/command-context-gui.c (ccg_error_read, ccg_error_save):
      	Ditto.
      	(ccg_init_class): Initialize error_read, error_save.
      
      	* src/main.c (gnumeric_main): Make a CommandContext for use before
      	we make first workbook. Unref it when no longer needed. Call
      	plugins_init and workbook_read with CommandContext.
      
      	* src/plugin-manager.c (add_cb): Use gnumeric_error_plugin_problem.
      	(remove_cb): Ditto.
      
      	* src/plugin.c (plugin_load, plugin_unload): CommandContext
      	instead of workbook.
      	(plugins_init): Add CommandContext.
      
      	* src/plugin.c (plugin_load, plugin_unload): CommandContext
      	instead of workbook.
      	(plugin_unload): Use gnumeric_error_plugin_problem.
      	(plugin_load_plugins_in_dir, load_all_plugins, plugins_init): Add
      	CommandContext.
      
      	* src/xml-io.h:  ditto
      
      	* src/xml-io.c (gnumeric_xml_read_workbook,
      	gnumeric_xml_write_workbook):  ditto
      
      In plugins/dif:
      
      	* dif.c (dif_read_workbook, dif_write_workbook): Add
      	CommandContext.
      	(dif_read_workbook): Return 0 on success, -1 on failure.
      	 Use gnumeric_error_read to report errors.
      
      In plugins/excel:
      
      	* excel.h (ms_excel_read_workbook, ms_excel_write_workbook) Add
      	CommandContext. Return int.
      
      	* ms-excel-read.c (ms_excel_read_workbook): Add
      	CommandContext. Return 0 on success, -1 on failure. Use
      	gnumeric_error_read to display messages.
      
      	* ms-excel-write.c (write_sheet): Check max no. of rows for the
      	format.
      	(new_sheet): Return the ExcelSheet. Let caller add it to
      	wb->sheets.
      	(pre_pass): Add CommandContext.
      	(free_workbook): New function, previously in write_workbook.
      	(write_workbook): Change parameter from Workbook to ExcelWorkbook.
      	Move deallocation to free_workbook.
      	(check_sheet): New function. Check if we are able to save the
      	sheet.
      	(ms_excel_check_write): New function. Check if we are able to save
      	to the file. Do initialization previously in
      	ms_excel_write_workbook.
      	(ms_excel_write_workbook): Add CommandContext. Add state. Change
      	wb from Workbook to ExcelWorkbook. Use gnumeric_error_save to
      	report problems. Return 0 on success, -1 on failure.
      
      	* ms-excel-biff.h: Define enum for max no. of rows. Fix typo.
      
      	* boot.c (excel_load, excel_save, excel_save_98, excel_save_95):
      	Add CommandContext.
      	(excel_load): Return 0 on success, -1 on failure.
      	Use gnumeric_error_read to display messages. Remove "Opening .. "
      	message on stdout.
      	(excel_probe_write): New function. Check if we are able to save to
      	the file.
      	(excel_save): Use gnumeric_error_save to display messages.
      	Return 0 on success, -1 on failure.
      
      In plugins/ff-csv:
      
      	* csv-io.c (csv_read_workbook, csv_write_workbook,
      	csv_parse_sheet, csv_parse_field): Add CommandContext. Return 0 on
      	success, -1 on failure. Use gnumeric_error_read to report errors.
      
      In plugins/ff-stf:
      
      	* dialog-stf.h: Add CommandContext. Return int.
      
      	* dialog-stf.c (dialog_stf) : Add CommandContext. Return 0 on success,
      	-1 on failure. Use gnumeric_error_read to report errors.
      
      	* stf.c (stf_read_workbook): Ditto.
      
      In plugins/html:
      
      	* epsf.h (epsf_write_wb): Add CommandContext.
      
      	* epsf.c (epsf_write_wb): ditto.
      
      	* latex.h (html_write_wb_latex, html_write_wb_latex2e): ditto
      
      	* latex.c (html_write_wb_latex, html_write_wb_latex2e): ditto
      
      	* roff.c (html_write_wb_roff_ps, html_write_wb_roff_dvi,
      	html_write_wb_roff_pdf, html_write_wb_roff): ditto
      
      	* roff.c (html_write_wb_roff_ps, html_write_wb_roff_dvi,
      	html_write_wb_roff_pdf, html_write_wb_roff): ditto
      
      	* html.h (html_read, html_write_wb_html40, html_write_wb_html32):
      	ditto.
      	(html_read): Return int.
      
      	* html.c (html_read, html_write_wb_html40, html_write_wb_html32):
      	ditto
      	(html_read): Return 0 on success, -1 on failure. Use
      	gnumeric_error_read to report errors.
      
      In plugins/lotus-123:
      
      	* lotus.c (lotus_read): Add CommandContext. Return 0 on success,
      	-1 on failure. Use gnumeric_error_read to report errors. Close
      	file unconditionally.
      	(read_workbook): Return 0 on success, -1 on failure. Remove unused
      	panic_message variable.
      
      	* lotus.h (lotus_read): Add CommandContext. Return int.
      
      	* boot.c (lotus_load): Ditto
      
      In plugins/oleo:
      
      	* oleo.c (oleo_read): Add CommandContext. Return 0 on success,
      	-1 on failure. Use gnumeric_error_read to report errors.
      
      	* oleo.h (oleo_read): Add CommandContext. Return int.
      
      	* boot.c (oleo_load): Ditto.
      
      In plugins/plan-perfect:
      
      	* pln.c (pln_parse_sheet, pln_read_workbook): Add
      	CommandContext. Return 0 on success, -1 on failure. Use
      	gnumeric_error_read to report errors.
      
      In plugins/sc:
      
      	* sc.c (sc_read_workbook, sc_parse_sheet): Add
      	CommandContext. Return 0 on success, -1 on failure.  Use
      	gnumeric_error_read to report errors.
      
      In plugins/sylk:
      
      	* sylk.c (sylk_read_workbook, sylk_parse_sheet): Add
      	CommandContext. Return 0 on success, -1 on failure. Use
      	gnumeric_error_read to report errors.
      
      In plugins/text:
      
      	* text-io.c (text_read_workbook, text_write_workbook,
      	readTextWorkbook): Add CommandContext.
      	(text_read_workbook, readTextWorkbook): Return 0 on success, -1 on
      	failure.
      	(readTextWorkbook): Use gnumeric_error_read to report errors.
      
      In plugins/xbase:
      
      	* xbase.h (xbase_open): Add CommandContext.
      
      	* xbase.c (xbase_open): Add CommandContext. Remove progress
      	message to stdout. Use gnumeric_error_read to report errors.
      
      	* boot.c (xbase_load): Add CommandContext. Return 0 on success, -1
      	on failure.
      333a8167
    • Michael Meeks's avatar
      fixup for new bonobo. · 6b1c82d3
      Michael Meeks authored
      6b1c82d3
    • Nat Friedman's avatar
      Updated for new Bonobo identifier names. · a2fcfc01
      Nat Friedman authored
      a2fcfc01
    • Richard Hult's avatar
      Updated Swedish translation. · d7a81fef
      Richard Hult authored
      d7a81fef
    • Michael Meeks's avatar
      Mike Kestner's stylish work. · f1e8200a
      Michael Meeks authored
      f1e8200a
  3. 27 Jan, 2000 5 commits
    • Michael Meeks's avatar
      Clean guile bits, The beggining of the end. · 4ca1bb93
      Michael Meeks authored
      Clean guile bits,
      The beggining of the end.
      4ca1bb93
    • Andreas Hydén's avatar
      Updated Swedish translation · c5a42952
      Andreas Hydén authored
      c5a42952
    • Jon K Hellan's avatar
      Handle wb = NULL correctly. Move handling of wb != NULL to · efe65519
      Jon K Hellan authored
      2000-01-28  Jon K Hellan  <hellan@acm.org>
      
      	* src/gnumeric-util.c (gnumeric_dialog_run): Handle wb = NULL
      	correctly. Move handling of wb != NULL to gnumeric_wb_dialog_run.
      	(gnumeric_wb_dialog_run): New static function.
      efe65519
    • Jody Goldberg's avatar
      Add a PROJECTS file. · 9ad2bf6c
      Jody Goldberg authored
      switch some toolbar elements to make it look more like XL.
      9ad2bf6c
    • Jody Goldberg's avatar
      - Some xml fixes - Row/col ins/del undo fix. - Mouse scroll fix, and · d99c96e7
      Jody Goldberg authored
      - Some xml fixes
      - Row/col ins/del undo fix.
      - Mouse scroll fix, and scrollbar speedup.
      
      2000-01-27  Jody Goldberg <jgoldberg@home.com>
      
      	* *.c : convert to using Workbook::current_sheet rather than
      	    workbook_get_current_sheet.
      
      	* src/workbook.c : Add a current_sheet member to Workbook.
      	Delete some old test code.
      	(do_focus_sheet) : Cancel inputs and update edit area with new cell.
      	(workbook_focus_current_sheet) : Update current_sheet.
      	(workbook_get_current_sheet) : Delete.
      
      	* src/sheet.c (sheet_cursor_{move, set}) : Delete call to
      	  gnumeric_sheet_cursor_set.
      
      	* src/sheet.c (sheet_{row,col}_add) : Use sheet_view_scrollbar_config.
      	  We should not be touching GUI directly.
      
      	* src/sheet-view.c (sheet_view_scrollbar_config) : Set the scrollbar's
      	  value as well as it max and page info.
      
      	* src/gnumeric-sheet.[ch] (gnumeric_sheet_cursor_set) : Delete.
      	  The scrollbars reflect the visible range, not the cursor cell.
      
      	* src/item-cursor.c (item_cursor_set_bounds_visibly) : Remove call to
      	  gnumeric_sheet_cursor_set.
      
      2000-01-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_workbook_write) : Do not save the current
      	  edit-text.  We don't save the current cell or the current selection
      	  so restoring the text of the ex-cursor is quite confusing.
      	(xml_workbook_read) : Restore window size.
      	(gnumeric_xml_sheet_{read,write}) : Delete unused.
      	(xml_get_range) : Utility routine.
      	(xml_read_selection_info) : Utility routine to restore the selection.
      
      	* src/sheet.c (sheet_{insert,delete}_{cols,rows}) : Do the
      	  insert/delete even if it looks like there are no cells there.
      	  There may be styles.
      d99c96e7
  4. 26 Jan, 2000 8 commits
  5. 25 Jan, 2000 5 commits
    • Jon K Hellan's avatar
      Clip to bounds of drawable. Avoid guint16 overflow during line drawing. Do · 6c7206d0
      Jon K Hellan authored
      2000-01-26  Jon K Hellan  <hellan@acm.org>
      
      	* src/item-cursor.c (item_cursor_draw): Clip to bounds of
      	drawable.  Avoid guint16 overflow during line drawing. Do the
      	right thing when autofill handle is at top of viewport.
      	Use explicit lower right coordinate for cursor.
      6c7206d0
    • Jody Goldberg's avatar
      - Fix a problem with zooming caused by the new item-bar enhancements. - · 03198e1d
      Jody Goldberg authored
      
      - Fix a problem with zooming caused by the new item-bar enhancements.
      - Remove gnumeric-sheet.h from a number of places that it had no reason to be.
      - Move all of the row/col pos/offset cache into GnumericSheet.  WARNING
        I do not populate all of it yet.
      
      2000-01-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-view.c (sheet_view_set_zoom_factor) : Keep the cursor in
      	  the same place and recompute the alignments for everything.
      
      	* src/item-cursor.c (item_cursor_set_bounds) : New function.
      
      	* src/gnumeric-sheet.h : Add more orthogonal structure for caching
      	  common row/col bounds and their canvas offsets.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_create) : Init the new members.
      	(gnumeric_sheet_filenames_dropped) : Keep the canvas private.
      	(gnumeric_sheet_make_cell_visible) : Add 'force_scroll' argument.
      
      	* src/clipboard.c (clipboard_release) : It is possible to have no
      	  styles associated with a region.
      
      	* src/item-grid.c : Remove overlapping cache of bounding rows/cols and
      	  offsets.  Use the superset in GnumericSheet.
      	 (item_grid_find_{row, col}) : Support sliding backwards.
      03198e1d
    • Jukka-Pekka Iivonen's avatar
      Implemented the `>=' and `=' constraints. Solver should be quite usable · e692b098
      Jukka-Pekka Iivonen authored
      2000-01-26  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/solver-lp.c: Implemented the `>=' and `=' constraints.
        	Solver should be quite usable now for LP problems assumed to be
       	non-negative.
      
      	* src/dialogs/dialog-solver.c: Related changes.
      
      	* src/dialogs/advanced-filter.glade,
       	src/dialogs/dialog-advanced-filter.c: New files added.  Not done
       	yet.
      e692b098
    • Jukka-Pekka Iivonen's avatar
      Made workbook_is_dirty() public. · ddfafec8
      Jukka-Pekka Iivonen authored
      2000-01-25  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/workbook.[ch]: Made workbook_is_dirty() public.
      
      	* src/dialogs/dialog-autosave.c (dialog_autosave_callback): Added
       	checking whether the workbook is changed or not before saving it.
      ddfafec8
    • Jody Goldberg's avatar
      Bug 5490. · 0b4cdc20
      Jody Goldberg authored
      2000-01-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-draw.c (cell_draw) : Take the style as an argument, no need
      	  to recompute something that is already available.
      
      	* src/xml-io.c (xml_sheet_read) : Move the {freeze,thaw}_redraws here.
      	(xml_read_cell) : Remove the sillyness about removing newlines and
      	  trailing spaces.  Remove the {freeze,thaw}_redraws.
      
      	* src/cell.c (cell_set_text_simple) : Store the rendered value.
      	(cell_set_text) : Store the entered value.
      0b4cdc20
  6. 24 Jan, 2000 7 commits
    • Jon K Hellan's avatar
      Really commit the changes I entered into the ChangeLog yesterday. · 55ef8972
      Jon K Hellan authored
      2000-01-24 Jon K Hellan  <hellan@acm.org>
      
      	* src/dialogs/autocorrect.glade: Really commit the changes I
      	entered into the ChangeLog yesterday.
      
      	* ChangeLog: I jumbled the order and attributions of some entries
      	yesterday. Fix.
      55ef8972
    • Jukka-Pekka Iivonen's avatar
      New file added. · 0cc5eddd
      Jukka-Pekka Iivonen authored
      2000-01-24  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/dialogs/analysis-tools.glade, src/dialogs/Makefile.am: New
       	file added.
      
      	* src/dialogs/dialog-analysis-tools.c (dialog_data_analysis): Made
       	the main dialog of the analysis tools to use the new Glade file.
      0cc5eddd
    • jpekka's avatar
      New file added. · 1a168352
      jpekka authored
      1a168352
    • Jukka-Pekka Iivonen's avatar
      New file for Solver options. · 73e70e15
      Jukka-Pekka Iivonen authored
      2000-01-24  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/dialogs/solver-options.glade, src/dialogs/Makefile.am: New
       	file for Solver options.
      
      	* src/dialogs/dialog-solver.c: Updated for the new Glade file.
        	Removed some unimplemented options.  Made the Solver options
       	unsensitive.
      
      	* src/sheet.c (sheet_new): Added setting some default parameter
       	values for the Solver tool.
      73e70e15
    • Sergey I. Panov's avatar
    • NotZed's avatar
      Note this requires an updated gnome-print to build. · 5d16ec5e
      NotZed authored
      2000-01-23  NotZed  <notzed@zedzone.helixcode.com>
      
              * src/xml-io.c (xml_set_print_hf): Dont encode the html entity &,
              since we dont have to.
              (xml_read_print_info): Store the footer into the footer, not the
              header(!).
      
              * src/print.c (print_job_info_get): Init the page number to be 1
              (global page number).
              (print_sheet_range): Do not reset the page number to 1 for each
              sheet.
              (compute_pages): New function, calculates the total number of
              pages to be printed.
              (compute_sheet_pages): New function, calculates the number of
              pages to be printed by a single sheet.
              (print_sheet_range): No longer set the # pages.
              (sheet_print_selection): Calculate the # pages for selection
              printing.
              (workbook_print_all): Calculate the # pages for all or sheet range
              printing.
              (sheet_print): Caclulate the # pages for sheet printing.
              The changes above are a bit messy.
              (sheet_print): Killed some warnings.
      
      2000-01-11  Michael Zucchi  <zucchi@zedzone.mmc.com.au>
      
              * src/print.c: Removed preview from PrintJobInfo.
              (print_sheet): When printing a sheet range, only print pages in
              the range.
              (print_job_info_get): Initialise end_page to the # pages in the
              sheet.
              (sheet_print): Use the gnomeprintmaster object for
              printing/preview, and gnomeprintdialog for getting printer
              information.
      5d16ec5e
    • Miguel de Icaza's avatar
      Handle GDK_ISO_Left_Tab and GDK_KP_Tab as well, per Chris' suggestion. · a3f6bb69
      Miguel de Icaza authored
      2000-01-23  Miguel de Icaza   <miguel@gnu.org>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Handle
      	GDK_ISO_Left_Tab and GDK_KP_Tab as well, per Chris' suggestion.
      a3f6bb69
  7. 23 Jan, 2000 5 commits
    • Jon K Hellan's avatar
      Give "Yes" button initial keyboard focus. · 6b04ed8c
      Jon K Hellan authored
      2000-01-23  Jon K Hellan  <hellan@acm.org>
      
      	* src/dialogs/autosave-prompt.glade: Give "Yes"
      	button initial keyboard focus.
      
      	* src/dialogs/autosave.glade: Set initial focus to
      	first check button. Make OK the default.
      
      	* src/dialogs/dialog-autocorrect.c (dialog_autocorrect): Make
      	<Ret> in entry fields invoke default.
      	(dialog_autocorrect, exceptions_callback):
      
      	* src/dialogs/autocorrect-exceptions.glade: Set initial focus to
      	text entry field. Make OK the default. Do not show column headers
      	in clist. Remove unnecessary level of scrollwindow.
      
      	* src/dialogs/autocorrect.glade: Make OK the default. Set initial
      	focus to first check button. Define accelerators. Set widgets for
      	"replace text when typed" insensitive until feature is
      	implemented. Do not show column headers in clist.
      
      	* src/dialogs/dialog-autosave.c (dialog_autosave): Make
      	<Ret> in "minutes" fields invoke default.
      6b04ed8c
    • Jody Goldberg's avatar
      Remove debuging output. · 4a1f7e19
      Jody Goldberg authored
      4a1f7e19
    • Michael Meeks's avatar
      Stuff from Michael. · 7a8ae8e9
      Michael Meeks authored
      2000-01-23  Michael Meeks  <michael@edenproject.org>
      
      	* src/ranges.c (range_translate): fix glaring bugs + make
      	semantics saner.
      	(range_transpose): implement.
      
      	* src/clipboard.c (do_clipboard_paste_cell_region): s/cell.cell/cell.
      	(x_selection_to_cell_region): Null styles.
      	(clipboard_prepend_cell): kill mstyle inefficiency.
      	(clipboard_release): destroy styles.
      	(sheet_paste_selection): new style bits.
      
      	* src/render-ascii.c (cell_region_render_ascii): kill cell.cell
      
      	* src/cell.h (CellCopy): Kill MStyle member.
      
      	* src/ranges.c (range_init): implement helper.
      
      	* src/sheet-style.c (style_region_destroy): add precondition.
      	(sheet_get_styles_in_range, sheet_style_list_destroy): implement.
      7a8ae8e9
    • Jody Goldberg's avatar
      Update NEWS · 488c300f
      Jody Goldberg authored
      488c300f
    • Jody Goldberg's avatar
      Improve itembar redraw. · b8823fde
      Jody Goldberg authored
      2000-01-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-view.c (sheet_view_redraw_headers) : New function that
      	  will redraw a subset of an itembar.
      	(sheet_view_redraw_columns) : Delete.
      	(sheet_view_redraw_rows) : Delete.
      
      	* src/sheet.c (sheet_redraw_headers) : Call sheet_view_redraw_headers.
      	(sheet_redraw_columns) : Delete.
      	(sheet_redraw_rows) : Delete.
      
      	* src/gnumeric-sheet.h (GnumericSheet) : Remove unused member item_bar_col.
      
      	* src/colrow.c (col_row_set_visiblity) : Use sheet_redraw_headers
      	  in place of sheet_redraw_{cols,row}.
      	* src/selection.c (sheet_selection_append_range) : Ditto.
      	(sheet_select_all) : Ditto.
      	(sheet_selection_reset_only) : Ditto.  Clear the selection internally.
      
      	* src/sheet.c (sheet_{col,row}_get_distance) : Handle from > to.
      
      	* src/item-cursor.c (item_cursor_get_pixel_coords) : Use the
      	  precalculated offsets.
      	* src/item-edit.c (item_edit_get_pixel_coords) : Ditto.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_bar_set_top_row) : Update the
      	  item_grid's notion of the top.  Calculate the new distance using the
      	  previous top as the start point.
      	(gnumeric_sheet_bar_set_left_col) : Rename from top_col.  Ditto.
      
      2000-01-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (item_bar_draw) : Remove minor drawing glitch when
      	  drawing at the edge of the sheet.
      	(item_bar_class_init) : Remove the unsed 'First' argument.
      
      	* src/item-grid.c (item_grid_draw) : Draw gridlines even at the
      	  outer edges.
      b8823fde
  8. 22 Jan, 2000 2 commits
  9. 21 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      s/gnome_dialog_run(dialog)/gnumeric_dialog_run (workbook, dialog)/g · 914cec6f
      Jody Goldberg authored
      Put a wrapper in place around dialog creation.  This will eventually handle the
      setting of the parent and closing the parent application while a dialog is up.
      
      2000-01-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-printer-setup.c (do_hf_config) : Take a Workbook.
      
      	* src/gnumeric-util.c (gnumeric_dialog_run) : New function.
      	  It is a wrapper for now.  After the release of .48 we will
      	  move the parent setting here.  And handle the case where a
      	  user closes the app window while a dialog is displayed.
      
      	* src/file.c (workbook_import) : Use gnumeric_dialog_run.
      
      	* src/dialogs/dialog-{dialog-zoom.c (dialog_zoom_impl)
      		    summary.c (dialog_summary_update)
      		    solver.c (dialog_solver)
      		    solver.c (constr_add_click)
      		    solver.c (dialog_solver_options)
      		    simple-input.c (dialog_get_number, dialog_get_sheet_name)
      		    printer.c (gnumeric_printer_dialog_run)
      		    paste-special.c (dialog_paste_special)
      		    insert-cells.c (dialog_insert_cells_impl)
      		    goto-cell.c (dialog_goto_cell)
      		    goal-seek.c (dialog_found_solution, dialog_goal_seek)
      		    function-wizard.c (dialog_function_wizard)
      		    delete-cells.c (dialog_delete_cells_impl)
      		    cell-sort.c (dialog_cell_sort)
      		    cell-format.c (fmt_dialog_impl)
      		    cell-comment.c (dialog_cell_comment)
      		    autosave.c (dialog_autosave_callback, dialog_autosave)
      		    autocorrect.c (exceptions_callback)
      		    (dialog_autocorrect)} : Ditto.
      
      	* src/dialogs/dialog-analysis-tools.c
      	(dialog_{correlation_tool, covariance_tool, sampling_tool,
      	 descriptive_stat_tool, ztest_tool, ttest_paired_tool, ttest_eq_tool,
      	 ttest_neq_tool, ftest_tool, random_tool, regression_tool,
      	 average_tool, ranking_tool, anova_single_factor_tool,
      	 anova_two_factor_without_r_tool, data_analysis}) : Ditto.
      
      	* src/workbook.c (workbook_can_close) : Ditto.
      	* src/item-cursor.c (item_cursor_target_region_ok) : Ditto.
      
      	* src/sheet.c (sheet_move_range) : Avoid leaking when we paste.
      	  This information will be used when undo for pasteing a cut
      	  is ready.
      
      	* README : update requirements.
      
      	* plugins/Makefile.am : Do not compile the python plugin by
      	  default.  This will avoid complaints regarding problems with
      	  no dynamic python library until we have a solution.
      
      	* src/functions/fn-stat.c : (gnumeric_kurt, gnumeric_kurtp) : return DIV/0
      	  on error.
      914cec6f
  10. 20 Jan, 2000 1 commit
    • Morten Welinder's avatar
      Correct error code. · 1180a48e
      Morten Welinder authored
      Thu Jan 20 16:52:14 2000  Morten Welinder  <welinder@rentec.com>
      
      	* src/functions/fn-stat.c (gnumeric_stdev): Correct error code.
      
      	* src/functions/fn-math.c (gnumeric_log): Correct error code and
       	protect from crash.
      1180a48e