1. 17 Mar, 2000 1 commit
    • Miguel de Icaza's avatar
      Change NULL to CORBA_OBJECT_NIL · 684c9df2
      Miguel de Icaza authored
      
      
      2000-03-13  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/sheet-vector.c (sheet_vectors_cell_changed): Change NULL to
      	CORBA_OBJECT_NIL
      
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_load_from_file):
      	Use the new IDL:Bonobo interface name, not the IDL:GNOME one
      	(sheet_object_bonobo_load_from_file): ditto.
      	(sheet_object_bonobo_load): ditto.
      
      	* src/sheet-object.c (sheet_set_mode_type): Temporary hack to get
      	the graphics working under 1:20 hours when my battery runs out of
      	power.
      
      	* src/sheet-object-container.c
      	(sheet_object_container_new_from_goadid): Renamed from
      	sheet_object_container_new
      
      	(sheet_object_container_new): Now takes a BonoboObjectClient as an
      	argument.
      
      2000-03-12  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/sheet-vector.c (impl_vector_get_numbers): Increment idx
      	here;
      	(impl_vector_get_vec_values): ditto.
      	(impl_vector_get_numbers): Use the proper values for the columns
      	row.
      	(impl_vector_get_vec_values): ditto.
      
      	* src/clipboard.c (x_clipboard_bind_workbook): Fix memory leak.
      	The problem is worse, because the warning comment there was
      	completely bogus.
      
      2000-03-12  Miguel de Icaza  <miguel@helixcode.com>
      
      	* graphic-type.c (graphic_type_show_page): On page switch, set the
      	graphics type to the first one in there.
      
      	* graphic-context.c (data_range_new): Assing this guy.
      684c9df2
  2. 14 Mar, 2000 2 commits
    • Jon K Hellan's avatar
      ): We introduce numbers in front of the the history file names for the · 1cd2b66f
      Jon K Hellan authored
      2000-03-14  Jon K Hellan  <hellan@acm.org>
      
      	* src/workbook-view.c (workbook_view_history_update,
      	workbook_view_history_shrink): ): We introduce numbers in front of
      	the the history file names for the following reasons:
      	1. Bonobo won't let you make 2 entries with the same label in the
      	   same menu. But that's what happens if you e.g. access
      	   worksheets with the same name from 2 different directories.
      	2. The numbers are useful accelerators.
      	This means that when a new item is added, all existing entries get
      	a new number. We access them via the label, so we have to remove
      	all the old list entries and make a new list.
      
      	history_menu_flush is called to remove the old list,
      	history_menu_update to build the new.
      
      	* src/history.c
      	(history_item_label): Add accel_number parameter, make label from
      	accel_number and basename. Rename basename variable to label.
      	(history_menu_item_create): Add accel_number parameter. Use it
      	when calling history_item_label.
      	(history_menu_locate_separator): New static function. Locate the
      	menu and position of history separator. They may not yet exist.
      	(history_menu_insert_separator): New static function. Insert the
      	history separator. Return its position and the menu shell.
      	(history_menu_insert_items): New static function. Add the history
      	items to the file menu.
      	(history_menu_remove_items): New static function. Remove the
      	history items from the file menu.
      	(history_menu_setup): Split into lots of twisty little functions,
      	all different.
      	(history_menu_fill): New exported function. Make the menus for
      	the workbooks show the new history list.
      	(history_menu_flush): New exported function. Remove the history
      	list from the file menus of all workbooks.
      	(history_insert_menu_item): Remove.
      	(history_remove_menu_item): Remove.
      
      	* src/history.h
      	(history_menu_fill, history_menu_flush): Declare.
      	(history_insert_menu_item, history_remove_menu_item): Remove.
      1cd2b66f
    • Jody Goldberg's avatar
      *** empty log message *** · 551d17c7
      Jody Goldberg authored
      551d17c7
  3. 13 Mar, 2000 4 commits
    • Jon K Hellan's avatar
      Silence warning. · 5c01401a
      Jon K Hellan authored
      2000-03-13  Jon K Hellan  <hellan@acm.org>
      
      	* src/main.c (main): Silence warning.
      
      	* wizards/graphics/graphic-context.c
      	(graphic_context_auto_guess_series):
      	Next pointer was followed twice each round => segfault.
      5c01401a
    • Jody Goldberg's avatar
      Make wizards and graph subdirs contingent on bonobo. distribute all the · f6acb848
      Jody Goldberg authored
      
      2000-03-13  Jody Goldberg <jgoldberg@home.com>
      
      	* Makefile.am : Make wizards and graph subdirs contingent on bonobo.
      	  distribute all the ChangeLogs.
      f6acb848
    • JP Rosevear's avatar
      Remove clip_range_to_finite. (dialog_cell_sort): Use range_clip_to_finite. · ff6d9c07
      JP Rosevear authored
      2000-03-12  JP Rosevear  <jpr@arcavia.com>
      
      	* src/dialogs/dialog-cell-sort.c : Remove clip_range_to_finite.
      	(dialog_cell_sort): Use range_clip_to_finite.
      
      	* src/ranges.c (range_clip_to_finite): Make the range finite using
      	sheet_get_extent if its infinite.
      
      	* src/ranges.h: Prototype range_clip_to_finite.
      
      	* src/workbook-format-toolbar.c (sort_cmd): Sort the current
      	selection if simple.
      	(sort_ascend_cmd): Call sort_cmd with asc=0.
      	(sort_descend_cmd): Call sort_cmd with asc=1.
      
      	* src/workbook-format-toolbar.c : Add sort ascend/descend buttons.
      	(sort_ascend_cmd): New toolbar callback function to sort
      	selection in ascending order.
      	(sort_descend_cmd): New toolbar callback function to sort
      	selection in descending order.
      ff6d9c07
    • JP Rosevear's avatar
      Remove old clip_range_to_finite function and replace with · 26bc24d3
      JP Rosevear authored
      2000-03-12  JP Rosevear  <jpr@arcavia.com>
      
      	* src/dialogs/dialog-cell-sort.c : Remove old
      	clip_range_to_finite function and replace with
      	range_clip_to_finite.
      	(dialog_cell_sort): Reflect new function call.
      
      	* src/ranges.c (range_clip_to_finite): New function, if range
      	is infinite, cut it down to to a finite range using
      	sheet_get_extent.
      
      	* src/ranges.h: New prototype "range_clip_to_finite".
      
      	* src/workbook-format-toolbar.c : Add sort ascend/descend buttons.
      	(sort_ascend_cmd): New toolbar callback function to sort
      	selection in ascending order.
      	(sort_descend_cmd): New toolbar callback function to sort
      	selection in descending order.
      26bc24d3
  4. 12 Mar, 2000 4 commits
    • JP Rosevear's avatar
      Reflect new location of idl. · c20b930e
      JP Rosevear authored
      2000-03-12  JP Rosevear  <jpr@arcavia.com>
      
      	* src/Makefile.am: Reflect new location of idl.
      
      2000-03-12  JP Rosevear  <jpr@arcavia.com>
      
      	* graphic-type.c: Reflect the fact that the idl dir is now in
      	the INCLUDEs.
      
      	* graphic-context.h: Reflect the fact that the idl dir is now
      	in the INCLUDEs.
      
      	* Makefile.am: Reflect new location of idl.
      c20b930e
    • Jody Goldberg's avatar
      Fix what looks like an off by one error when selecting a cursor from the · b2ae60d3
      Jody Goldberg authored
      exterior vs the interior.
      b2ae60d3
    • Miguel de Icaza's avatar
      Cleaned Makefile. · c2c4899e
      Miguel de Icaza authored
      2000-03-11  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/Makefile.am: Cleaned Makefile.
      
      	* graph/Makefile.am: ditto.
      
      	* graph/sample.c: fix
      
      	* idl/Makefile.am, idl/Graph.idl, idl/Gnumeric.idl: Moved IDL
      	files here, and create the libGnumeric.a and libGraph.a libraries
      	here.
      c2c4899e
    • Jody Goldberg's avatar
      Sensitize/desensitize the ok/cancel buttons. hiding changed shapes. · 61291261
      Jody Goldberg authored
      Re gen glade file.
      
      2000-03-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_setup_edit_area) : Use sensitize rather
      	  than show/hide for the ok/cancel buttons.  Return wizard back
      	  to end of list.
      	(workbook_new) : Revert last change, no longer necessary.
      	(workbook_start_editing_at_cursor) : Sensitize the ok/cancel edit buttons.
      	(workbook_finish_editing) : desensitize them.
      61291261
  5. 11 Mar, 2000 3 commits
    • Jody Goldberg's avatar
      When the edit lined receives focus start editing. (accept_input) : No need · 297927c2
      Jody Goldberg authored
      
      2000-03-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (cb_editline_focus_in) : When the edit lined receives
      	  focus start editing.
      	(accept_input) : No need to force edit mode we should already be in
      	  edit mode.
      	(workbook_setup_edit_area) : Move the wizard button to the begining of
      	  the list and store the ok and cancel buttons in the Private section.
      	  Hook cb_editline_focus_in to focus-in.
      	(workbook_new) : After show_all, we need to hide the ok/cancel edit
      	  buttons.  We start out not editing.
      	(workbook_start_editing_at_cursor) : Show the ok/cancel edit buttons.
      	(workbook_finish_editing) : Hide them.
      297927c2
    • Jon K Hellan's avatar
      #ifdef out the fix for now. · 36110ef0
      Jon K Hellan authored
      2000-03-11  Jon K Hellan  <hellan@acm.org>
      
      	* src/main.c (main): #ifdef out the fix for now.
      36110ef0
    • Jon K Hellan's avatar
      Work around guile / gnorba problem: gnorba closes stdin, and · 47eeabce
      Jon K Hellan authored
      2000-03-11  Jon K Hellan  <hellan@acm.org>
      
      	* src/main.c (main): Work around guile / gnorba problem: gnorba
      	closes stdin, and scm_boot_guile segfaults if any of the stdio
      	streams are missing. We map the missing streams to /dev/null.
      47eeabce
  6. 10 Mar, 2000 3 commits
    • Alastair McKinstry's avatar
      Irish translations. · 9b6404f1
      Alastair McKinstry authored
      9b6404f1
    • Jody Goldberg's avatar
      Constness. · c2af08a9
      Jody Goldberg authored
      2000-03-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/func.c (tokenized_help_new) : Constness.
      
      	* src/widgets/gtk-combo-box.c (cb_state_change) : New function to keep
      	  the state of the combo display button and the combo arrow in sync.
      	(gtk_combo_box_init) : Connect cb_state_change to the arrow.
      	(gtk_combo_box_set_display) : Ditto for the display widget.
      
      	* src/sheet.c (sheet_set_zoom_factor) : Bound the factor at 10% and 500%
      
      	* src/workbook.c (change_zoom_in_current_sheet_cb) :
      	  call change_displayed_zoom_cb to adjust the combo to contain the
      	(workbook_focus_current_sheet) : Only emit signal if the sheet
      	  changed.
      
      2000-03-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/collect.c (callback_function_collect) : Treat arrays and ranges
      	  as errors.
      
      	* src/format.c (format_value) : formating a range returns a
      	  #VALUE! message.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) :
      	  Use the workbook flags, and delete the icky globals.
      	(start_cell_selection_at) : Hide the std cursor when a cell selection
      	  cursor is created.
      	(gnumeric_sheet_stop_cell_selection) : Restore the std cursor.
      
      2000-03-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (accept_input) : Use workbook_finish_editing.
      	(cancel_input) : Ditto.
      	(do_focus_sheet) : Support range selection across spreadsheets.
      	(workbook_get_sheet_position) : Fix and document.
      	(workbook_move_sheet) : Fix.
      	(workbook_focus_sheet) : Handle errors cleanly.
      	(wb_edit_key_pressed) : Improve F4 handling.
      	(wizard_input) : Begin non-modal function wizard.  NOT FINSIHED.
      	(workbook_start_editing_at_cursor) : transfered from
      	  sheet_start_editing_at_cursor.
      	(workbook_finish_editing) : Distilled from sheet_{accept,cancel}_pending_input.
      	(Workbook) : Add editing_cell, editing_sheet, editing.
      
      	* src/sheet.c (sheet_stop_editing) : Delete.
      	(sheet_accept_pending_input) : Merge into workbook_finish_editing.
      	(sheet_cancel_pending_input) : Ditto.
      	(sheet_start_editing_at_cursor) :
      	(sheet_create_edit_cursor) : New function.
      	(sheet_destroy_edit_cursor) : New function.
      	(sheet_destroy_cell_select_cursor) :  New function.
      	(Sheet) : Delete editing and editing_cell.
      
      	* src/selection.c (sheet_selection_changed_hook) : Make public.  This
      	  should eventually move but I'm not sure where.  It is used for more
      	  than just changes in the selection in the current sheet.  It must
      	  also be called when the sheet changes.  What it REALLY does it to
      	  sync the shared workbook state with the current sheet's selection.
      
      	* src/item-cursor.c (item_cursor_init) : Handle change from
      	  sheet_accept_pending_input -> workbook_finish_editing.
      	* src/item-grid.c (item_grid_button_1) : Ditto.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_can_move_cursor) : Edit moved
      	  from sheet -> workbook.
      	(selection_insert_selection_string) : Extend to support
      	  abs/rel refs and intersheet-refs.
      	(gnumeric_sheet_stop_cell_selection) : Add clear_string argument
      	  to optionally remove the selection range.
      	(gnumeric_sheet_key_mode_sheet) : Adjust to movement of editing flag
      	  from sheet -> workbook.  Be careful to use the original sheet when
      	  moving rather than the current sheet.  Support F4 while editing.
      
      	* src/cell-draw.c (cell_draw) : editing_cell has moved from sheet to
      	  workbook.  Fix font ref leak when drawing the edit cell.
      
      	* src/dialogs/dialog-function-wizard.c : Begin transition to being
      	  non-modal.  NOT FINISHED.
      c2af08a9
    • Michael Meeks's avatar
      make it depend on Gnumeric.h not Vector.h · b00cbe1b
      Michael Meeks authored
      2000-03-10  Michael Meeks  <michael@helixcode.com>
      
      	* src/Makefile.am (sheet-vector.h): make it depend on Gnumeric.h
      	not Vector.h
      b00cbe1b
  7. 09 Mar, 2000 1 commit
  8. 08 Mar, 2000 4 commits
    • Jon K Hellan's avatar
      Really handle wb == NULL. · b2288a81
      Jon K Hellan authored
      2000-03-09  Jon K Hellan  <hellan@acm.org>
      
      	* src/corba-workbook.c (command_context_corba): Really handle wb
      	== NULL.
      b2288a81
    • Jon K Hellan's avatar
      Handle wb = NULL. It would segfault. · 4f6f6906
      Jon K Hellan authored
      2000-03-08  Jon K Hellan  <hellan@acm.org>
      
      	* src/corba-workbook.c (command_context_corba): Handle wb =
      	NULL. It would segfault.
      
      	* src/Gnumeric.idl: Fixed places where a name at an inner scope
      	differs only in case from a name at an outer scope. This breaks
      	the rule that identifiers cannot differ only in case, because an
      	identifier from a surrounding scope is introduced into a scope if
      	it is used in that scope. The solution is to scope the outer
      	identifiers explicitly:
      	(GNOME::Gnumeric::Sheet::cell_set_value): Change Value to
      	Gnumeric::Value.
      	(GNOME::Gnumeric::Workbook::parse): Change Sheet to
      	Gnumeric::Sheet.
      
      	* src/dialogs/dialog-cell-comment.c (dialog_cell_comment): Set
      	word wrap.
      
      	* src/dialogs/dialog-summary.c (dialog_summary_update): Ditto.
      4f6f6906
    • Jukka-Pekka Iivonen's avatar
      Fixed a leak (in sheet->solver_parameters.input_entry_str). · b4efdbd6
      Jukka-Pekka Iivonen authored
      2000-03-08  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/sheet.c (sheet_destroy): Fixed a leak (in
       	sheet->solver_parameters.input_entry_str).
      b4efdbd6
    • Miguel de Icaza's avatar
      Make the graphics code link, and works. This does not mean it is trivial · 765852c8
      Miguel de Icaza authored
      
      
      Make the graphics code link, and works.
      This does not mean it is trivial to get it to link.
      Do not fix.  I will be looking at the problem "soon".
      
      Well, it does not quite work.  The code is not yet linking the
      selection correctly to the range vectors.
      
      Miguel.
      765852c8
  9. 07 Mar, 2000 1 commit
    • Almer. S. Tigelaar's avatar
      Gnumeric instances can now eXchange data in a gnumeric XML clipboard · be3852ca
      Almer. S. Tigelaar authored
      2000-03-07  Almer. S. Tigelaar.  <almer1@dds.nl>
      
      	Gnumeric instances can now eXchange data in a gnumeric
      	XML clipboard format. This way style information and such
      	can be preserved when copying/cutting from one instance
      	to another.
      
      	* src/xml-io.c, src/xml-io.h :
      	Added some functions for the gnumeric clipboard xml format.
      	(gnumeric_xml_read_selection_clipboard) :
      	For reading xml data from the clipboard
      	(gnumeric_xml_write_selection_clipboard) :
      	For writing xml data to the clipboard
      	(xml_read_selection_clipboard) :
      	For reading xml data from the clipboard, does the dirty work
      	(xml_write_selection_clipboard) :
      	For writing xml data to the clipboard, does the dirty work
      	(xml_read_cell_copy) :
      	Similar to xml_read_cell, but returns a CellCopy* instead
      	of a Cell*
      	(xml_write_cell_and_position) :
      	Similar to old xml_write_cell but allows you to set the col and
      	row manually
      	(xml_write_cell) :
      	Calls upon xml_write_cell_and_position, but takes the col and row
      	from the ColRowInfo members of type Cell.
      	(xml_read_style_region_ex) :
      	Read the xml data and returns an mstyle and a range. Does
      	_NOT_ attach this to a sheet.
      	(xml_read_style_region) :
      	calls upon xml_read_style_region_ex and attaches the mstyle
      	to a sheet
      
      	* src/cell.h
      	New cellcopy type added CELL_COPY_TYPE_AND_COMMENT, if a
      	cellcopy is of this type the comments will be put in
      	cellcopy.comment
      
      	* src/clipboard.c
      	(paste_cell_flags) :
      	added support for the new CELL_COPY_TYPE_TEXT_AND_COMMENT copy type
      	(x_selection_received) :
      	Modified so it support the TARGETS and GNUMERIC XML atoms and renders
      	the gnumeric clipboard xml format
      	(x_selection_handler) :
      	Now it can render theselection to ASCII text and gnumeric clipboard xml
      	format.
      	(x_clipboard_bind_workbook) :
      	Registers the new GNUMERIC XML atom that enables other instances of
      	gnumeric to see that we are also gnumeric and can render the clipboard
      	data in a the special gnumeric xml clipboard format
      	(clipboard_release) :
      	Handles new CELL_COPY_TYPE_TEXT_AND_COMMENT type
      be3852ca
  10. 06 Mar, 2000 2 commits
    • Dom Lachowicz's avatar
      Created. · 52493557
      Dom Lachowicz authored
      2000-03-01  Dom Lachowicz <dominicl@seas.upenn.edu>
      
      	* src/dialogs/sheet-order.glade,
      	  src/dialogs/sheet-order.glade.h,
      	  src/dialogs/dialog-sheet-order.c: Created.
      
      	* src/dialogs/Makefile.am: Added three above files to project
      
      	* src/dialogs/dialogs.h (dialog_sheet_order): added new function
      
      	* src/workbook.c (sheet_order_cmd): added
      	(workbook_get_sheet_position, workbook_delete_sheet),
      	(workbook_move_sheet, workbook_focus_sheet, wb_edit_key_pressed): updated.
      
      	* src/workbook.h (workbook_delete_sheet, workbook_move_sheet): added
      52493557
    • Michael Meeks's avatar
      8293d7bc
  11. 05 Mar, 2000 2 commits
    • Jukka-Pekka Iivonen's avatar
      Added documentation of the Solver tool. · 01a6c10e
      Jukka-Pekka Iivonen authored
      2000-03-05  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
              * doc/C/solver.sgml, doc/C/images/solver-0[1,2,3,4,5].jpg: Added
              documentation of the Solver tool.
      01a6c10e
    • Jody Goldberg's avatar
      - Strike through - initial format dialog support for underline and · 7f8319da
      Jody Goldberg authored
      - Strike through
      - initial format dialog support for underline and strikethrough.
      - Printing of underlines and strikethroughs.
      
      2000-03-05  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-cell-format.c : Enable the underline and
      	  strikethrough elements. TODO : redo the preview for the font
      	  tab to support underlining and friends.
      
      	* src/dialogs/cell-format.glade : Rename the underline combo and
      	  strikethrough button.
      
      	* src/xml-io.c (xml_write_style) : Add strikethrough.
      	(xml_read_style) : Ditto.
      
      	* src/workbook-format-toolbar.c (workbook_feedback_set) : Only show
      	  the underline button for single underlines.
      
      	* src/sheet-view.[ch] : rename select_all -> select_all_btn.
      	  remove unused element.
      
      	* src/sheet-object.h : Remove silly self inclusion.
      
      	* src/print-cell.c : Support underlining and strikethrough.
      	  Move even closer into sync with drawing code.
      
      	* src/mstyle.c : Add strikethrough and cleanup includes.
      
      	* src/main.h : Add include for popt.h.
      
      	* src/item-grid.c (item_grid_draw_border) : No more need for BOTTOM or
      	  RIGHT.
      	(item_grid_draw_cell) : Delete, and merge with draw_cell.
      
      	* src/commands.c (cmd_set_text_undo) : Use cursor_set rather than
      	  cursor_move.
      	* src/corba-sheet.c (Sheet_cursor_move) : Ditto.
      	(gnumeric_sheet_key_mode_sheet) : Ditto.
      	* src/workbook.c (workbook_parse_and_jump) : Ditto.
      
      	* src/cell-draw.c : Clean includes, add support for strikethrough.
      7f8319da
  12. 04 Mar, 2000 3 commits
    • Morten Welinder's avatar
      THE WORLD'S BEST KEPT C SECRETS, PART 12: · e2df9a9e
      Morten Welinder authored
      ----------------------------------------
      
      The functions isalpha, isdigit, ..., isspace, tolower, and toupper
      are ONLY defined on EOF (typically -1) and unsigned characters.
      Read the manual pages from various OSs -- it's in there.
      
      It is wrong to call these with signed characters as argument; the
      type "char" can be, and often is, signed.  Please don't write code
      like
      
           void frob (char *s)
           {
             while (isspace (*s))       /* WRONG! */
               s++;
             /* ... */
           }
      
      Instead write something like
      
           void frob (char *s)
           {
             while (isspace ((unsigned char)*s))   /* Right */
               s++;
             /* ... */
           }
      
      Note: the above is true even if you don't like it.  Some people have
      gotten terrible upset and defensive when they have had this problem
      pointed out to them.  That does not help.
      
      FYI, all this makes a serious difference on Solaris, HP-UX and maybe
      other OSs.
      e2df9a9e
    • Jody Goldberg's avatar
      Fix Morton's missing pixel. Right alignment was double counting the · f5c650f9
      Jody Goldberg authored
      far grid line.
      
      2000-03-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-draw.c (cell_draw) : Correct off by one error for
      	  right alignment.
      
      	* src/print-cell.c (print_cell_text) : Ditto.
      f5c650f9
    • Jody Goldberg's avatar
      Fix thinko that was putting hidden cols/rows into an infinite loop. · 3b554727
      Jody Goldberg authored
      2000-03-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/print-cell.c (print_cell_range) : Don't forget to increment
      	  when dealing with hidden cols/rows.
      	* src/item-grid.c (item_grid_draw) : Ditto.
      3b554727
  13. 03 Mar, 2000 3 commits
    • Dom Lachowicz's avatar
      Re-implemented dialog. (refresh_right_frame): New function · 8ec4f6ae
      Dom Lachowicz authored
      2000-03-01  Dom Lachowicz <dominicl@seas.upenn.edu>
      
      	* src/dialogs/dialog-plugin-manager.c (add_to_clist, populate_clist),
      	(add_cb, remove_cb, row_cb, remove_cb, dialog_plugin_manager),
      	(dialog_plugin_manager_impl): Re-implemented dialog.
      	(refresh_right_frame): New function
      
      	* src/dialogs/plugin-manager.glade: updated.
      
      	* src/dialogs/plugin-manager.glade.h: updated
      8ec4f6ae
    • Morten Welinder's avatar
      Fix 6760. · 8c9ef16b
      Morten Welinder authored
      8c9ef16b
    • Jon K Hellan's avatar
      Updated documentation · 12de8ec8
      Jon K Hellan authored
      2000-03-03  Jon K Hellan  <hellan@acm.org>
      
      	* doc/python-gnumeric.txt: Updated documentation
      
      	* plugins/python/python.c (value_to_python): Update comment.
      	(boolean_to_python): Use class gnumeric_defs.Boolean - we can now
      	recognize booleans and convert them back.
      	(boolean_check): New function: Checks if object is instance of
      	gnumeric_defs.Boolean.
      	(boolean_from_python): New function: Convert back to VALUE_BOOLEAN.
      	(range_from_python): Remove misleading comment.
      	(value_from_python): Handle boolean.
      	(call_function): Factored out of marshal_func.
      	(marshal_func): Rename to marshal_func_args. Added sanity checks.
      	(marshal_func_nodes): New function. Handles varargs.
      	(register_function): Handle varargs.
      	(apply): Fix refcounting bug.
      
      	* gnumeric_defs.py (Boolean): New class. Implements boolean.
      12de8ec8
  14. 02 Mar, 2000 6 commits
    • Jon K Hellan's avatar
      Test went wrong way. (symbol_remove): Ditto. · 660a5297
      Jon K Hellan authored
      2000-03-02  Jon K Hellan  <hellan@acm.org>
      
      	* src/symbol.c (symbol_is_unused): Test went wrong way.
      	(symbol_remove): Ditto.
      
      	* plugins/python/python.c (apply): Plug "Value" leak.
      	(array_from_python): Fix silly mistake.
      	(row_from_python): Rename "col" variable to "rowno"
      660a5297
    • Dom Lachowicz's avatar
      Catch Div0 && invalid log() domain. · a681f037
      Dom Lachowicz authored
      2000-03-01  Dom Lachowicz <dominicl@seas.upenn.edu>
      
      	* src/functions/fn-eng.c (val_to_base): Catch Div0 && invalid log()
      	domain.
      
      	* src/functions/fn-financial (gnumeric_accrint, gnumeric_recieved),
      	(gnumeric_pricemat): Same
      
      	* src/functions/fn-stat.c (gnumeric_ttest): Ditto
      a681f037
    • Michael Meeks's avatar
      made static. (sheet_vector_new): setup sheet_vector->sheet. · 822fac8b
      Michael Meeks authored
      2000-03-02  Michael Meeks  <michael@helixcode.com>
      
      	* src/sheet-vector.c (sheet_vector_corba_object_create): made static.
      	(sheet_vector_new): setup sheet_vector->sheet.
      	(sheet_vector_detach): re-arrange to compile.
      822fac8b
    • Jon K Hellan's avatar
      Updated documentation · d875fc7e
      Jon K Hellan authored
      2000-03-02  Jon K Hellan  <hellan@acm.org>
      
      	* doc/python-gnumeric.txt: Updated documentation
      
      	* src/func.h: Make FunctionCategory.name a String * instead of
      	gchar *. This was necessary to allow user defined categories.
      	src/func.c (function_category_compare, function_get_category): Use
      	new FunctionCategory. Fix wrong use of g_list_find_custom.
      	(function_def_count_args, function_def_get_arg_type): Null pointer
      	check.
      
      	* src/dialogs/dialog-function-select.c (function_categories_fill):
      	ditto.
      
      2000-03-01  Jon K Hellan  <hellan@acm.org>
      
      	* python.c (exception_to_string): Rename to string_from_exception.
      	(value_from_exception): New function. Converts the current Python
      	exception to a new VALUE_ERROR.
      	(file static variable eval_pos): remove
      	(value_to_python): Fix refcounting bug re Py_None.
      	(value_from_python): Caller is now responsible for converting
      	exception to VALUE_ERROR.
      	(marshal_func): Handle optional arguments. Use
      	value_from_exception. Do away with eval_pos kludge. Consequence:
      	We must pass FunctionEvalInfo as an extra parameter to the python
      	functions.
      	(apply): Add context parameter.
      	(register_function): Add category parameter to Python
      	signature. Register function in given category.
      
      	* gnumeric_startup.py: Add category argument to all
      	register_function calls.
      	(gnumeric_mid, py_abs): Add context parameter.
      
      	* python.c
      d875fc7e
    • Almer. S. Tigelaar's avatar
      src/dialogs/dialog-stf-format-page.c src/dialogs/dialog-stf-preview.c · 41fcdb90
      Almer. S. Tigelaar authored
      2000-03-02  Almer. S. Tigelaar.  <almer1@dds.nl>
      
      	* src/dialogs/dialog-stf-format-page.c
      	* src/dialogs/dialog-stf-preview.c
      	* src/dialogs/dialog-stf-preview.h
      	* src/dialogs/dialog-stf.c
      	Modified, the format page now really display formatted
      	cells in the preview.
      	NOTE : A downside of this is that the cache is no longer shared
      	between fixed/csv pages and format pages.
      
      	* src/dialogs/dialog-stf.c
      	(dialog_stf_editables_enter) :
      	Disabled "enter activates default button" for the TextIndicator
      	field on the csv page. This would case the page to cycle, which
      	is ok, but it also caused the dropdown option to pop-up on the
      	next page, which is not ok.
      
      2000-03-02  Jon K Hellan  <hellan@acm.org>
      
      	* src/dialogs/dialog-stf.c (dialog_stf_druid_page_cancel): In
      	Yes/No dialog - set initial keyboard focus to "No". It went
      	nowhere.
      	(dialog_stf_set_initial_keyboard_focus): New function: Set
      	keyboard focus to the an appropriate widget on the page.
      	(dialog_stf_druid_page_next, dialog_stf_druid_page_previous): Set
      	initial keyboard focus.
      	(dialog_stf_druid_page_next): Make "Finish" button default on the the
      	final page. This doesn't change behaviour, but cues the user
      	visually.
      	(dialog_stf_druid_page_previous): Restore "Next" button as default
      	when coming from final page.
      	(dialog_stf_check_escape): New function: Watch keypresses, and
      	simulate "Cancel" when you see <Escape>.
      	(dialog_stf_attach_page_signals): Connect dialog_stf_check_escape
      	to handle <Escape>.
      	(dialog_stf_editables_enter): New function: Make <Ret> in text
      	fields activate default.
      	(dialog_stf): Use dialog_stf_editables_enter,
      	dialog_stf_set_initial_keyboard_focus. Make "next" button the
      	default button. Make window a child of the workbook window.
      
      	* src/dialogs/dialog-stf-format-page.c (format_page_init): Make
      	format list titles passive.
      
      	* src/dialogs/dialog-stf-fixed-page.c (fixed_page_init): Make
      	column list titles passive.
      
      	* src/clipboard.c (x_selection_to_cell_region): Add command
      	context to interface. Use it when calling dialog_stf.
      	(x_selection_to_cell_region):
      	(x_selection_received): Call x_selection_to_cell_region with
      	workbook_command_context_gui.
      41fcdb90
    • Miguel de Icaza's avatar
      Lots of more work on the wizard for graphics. · 419be624
      Miguel de Icaza authored
      
      
      Lots of more work on the wizard for graphics.
      
      2000-03-02  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/about.c (dialog_about): Changed to www.helixcode.com
      
      2000-03-01  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/parser.c (gnumeric_expr_parser): Make preconditions clear.
      
      	* src/ranges.c: Removed gnome.h from the include list.
      
      	* src/sheet.h: Fix comment.  The list contains SheetSelection
      	structures not Ranges.
      
      Lots of work on the wizard/graphics directory
      419be624
  15. 01 Mar, 2000 1 commit