1. 05 Mar, 2001 6 commits
    • Chyla Zbigniew's avatar
      Added plugins/python-loader/python-loader.c, · b8692b30
      Chyla Zbigniew authored
      
      * POTFILES.in: Added plugins/python-loader/python-loader.c,
      plugins/python-loader/py-gnumeric.c.
      b8692b30
    • Chyla Zbigniew's avatar
      New plugin, loader for Python plugins. · 1a9dc526
      Chyla Zbigniew authored
      
      * Makefile.am, plugin.xml, py-gnumeric.c, py-gnumeric.h,
      python-loader.c, README-IMPORTANT:
      New plugin, loader for Python plugins.
      1a9dc526
    • Chyla Zbigniew's avatar
      New plugin, sample Python functions. · 8d0d5fc3
      Chyla Zbigniew authored
      
      * Makefile.am, plugin.xml, py_func.py:
      New plugin, sample Python functions.
      8d0d5fc3
    • Chyla Zbigniew's avatar
      New plugin, Gnome Glossary .po exporter (sample Python plugin). · 6bb98b3e
      Chyla Zbigniew authored
      
      * Makefile.am, plugin.xml, glossary-po-header, gnome_glossary_py:
      New plugin, Gnome Glossary .po exporter (sample Python plugin).
      6bb98b3e
    • Chyla Zbigniew's avatar
      Fixes #51316 (actually, it fixes the _real_ problem). · 4f163da8
      Chyla Zbigniew authored
      
      Fixes #51316 (actually, it fixes the _real_ problem).
      
      * src/dialogs/dialog-plugin-manager.c
      (cb_pm_button_activate_plugin_clicked): If the plugin is already
      active, remove it from "marked for deactivation" list.
      (cb_pm_button_deactivate_plugin_clicked): If the plugin cannot be
      deactivated, optionally add it to "marked for deactivation" list
      (if the user wants to).
      (cb_pm_clist_row_selected):
      Make "Activate plugin" button sensitive for some active plugins (for
      those on "marked for deactivation" list).
      (cb_pm_clist_row_unselected):
      Bugfix: don't free pm_gui->current_plugin_id string.
      (update_plugin_manager_view):
      Display the plugin state after its name ("in memory", "marked for
      deactivation").
      (dialog_plugin_manager): Plug leak.
      
      * src/plugin.c
      (plugin_info_force_mark_inactive,
      plugin_db_mark_plugin_for_deactivation,
      plugin_db_is_plugin_marked_for_deactivation): New functions.
      (plugins_shutdown): Set all plugins on "marked for deactivation"
      list as inactive before saving active plugins in configuration.
      
      * src/plugin.h:
      (plugin_db_mark_plugin_for_deactivation,
      plugin_db_is_plugin_marked_for_deactivation): New functions.
      4f163da8
    • Almer S. Tigelaar's avatar
      Remove. (horizontal_scroll_change) : Remove. (vertical_scroll_event) : · 0393f83f
      Almer S. Tigelaar authored
      2001-03-05  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/sheet-control-gui.c
      	(vertical_scroll_change) : Remove.
      	(horizontal_scroll_change) : Remove.
      	(vertical_scroll_event) : Remove.
      	(horizontal_scroll_event) : Remove.
      	(vertical_scroll_changed) : New function, handles the
      	GnumericVScrollbar's "changed" signal.
      	(horizontal_scroll_changed) : Idem for the GnumericHScrollbar.
      	(scg_construct) : Create a gnumeric-vscrollbar instead of a
      	gtk-vscrollbar and connect the "changed" signal do the same
      	for gnumeric-hscrollbar.
      
      2001-03-05  Almer S. Tigelaar  <almer@gnome.org>
      
      	* gnumeric-vscrollbar.c, gnumeric-vscrollbar.h : New, vscrollbar widget.
      
      	* gnumeric-hscrollbar.c, gnumeric-hscrollbar.h : New, hscrollbar widget.
      
      	* Makefile.am : Add gnumeric-[vh]scrollbar.*
      0393f83f
  2. 04 Mar, 2001 3 commits
    • Jody Goldberg's avatar
      missed commit · 688c4f9e
      Jody Goldberg authored
      688c4f9e
    • Almer S. Tigelaar's avatar
      New, invokes the data validation dialog. · db8a57d7
      Almer S. Tigelaar authored
      2001-03-04  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/workbook-control-gui.c
      	(cb_data_validate) : New, invokes the data validation dialog.
      
      2001-03-04  Almer S. Tigelaar  <almer@gnome.org>
      
      	* validate.glade : Improve.
      
      	* dialog-validate.glade : Implement.
      
      	* dialogs.h : Add dialog-validate entry point here.
      db8a57d7
    • Jody Goldberg's avatar
      rewrite to be less stupid. · d5576bba
      Jody Goldberg authored
      
      2001-03-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_cell_calc_span) : rewrite to be less stupid.
      d5576bba
  3. 03 Mar, 2001 1 commit
    • Chyla Zbigniew's avatar
      Plugin code cleanup (removed unnecessary function arguments) + small · ed7ceda2
      Chyla Zbigniew authored
      
      Plugin code cleanup (removed unnecessary function arguments) + small
      fixes.
      
      * src/func.[ch]
      (struct _FunctionDefinition):
      Removed get_full_info_callback_data field.
      (function_add_name_only): Removed callback_data argument.
      (function_def_get_full_info_if_needed, FunctionGetFullInfoCallback):
      Now we just pass fn_def instead of name + callback_data.
      (function_call_with_list):
      Added missing function_def_get_full_info_if_needed() call.
      
      * src/plugin-loader.[ch]
      (gnumeric_plugin_loader_load_service,
      gnumeric_plugin_loader_unload_service):
      Return error (instead of crashing) if service is not supported.
      (gnumeric_plugin_loader_is_loaded): New function.
      
      * src/plugin-service.h
      (struct _PluginServiceGeneral, struct _PluginServiceFileOpener,
      struct _PluginServiceFileSaver, _PluginServicePluginLoader):
      Removed unneeded plugin argument from every function.
      
      * src/plugin-service.c
      (plugin_service_function_group_get_full_info_callback): Get fn_def
      arg instead of fn_name + callback_data.
      (plugin_service_function_group_initialize): Store pointer to service
      in fn_def's user_data.
      Adjusted to plugin-service.h (removed plugin argument).
      
      * src/plugin-loader-module.c
      (gnumeric_plugin_loader_module_func_init,
      gnumeric_plugin_loader_module_func_can_deactivate,
      gnumeric_plugin_loader_module_func_cleanup,
      gnumeric_plugin_loader_module_func_file_probe,
      gnumeric_plugin_loader_module_func_file_open,
      gnumeric_plugin_loader_module_func_file_save,
      gnumeric_plugin_loader_module_func_get_full_function_info,
      gnumeric_plugin_loader_module_func_get_loader_type):
      Adjusted to plugin-service.h (removed plugin argument).
      
      * src/plugin.[ch]
      s/plugin_load_loader_if_needed/plugin_get_loader_if_needed
      (plugin_info_get_extra_info_list): Get loader if it's not available.
      (plugin_info_is_loaded, plugin_info_get_loader): New functions.
      ed7ceda2
  4. 02 Mar, 2001 5 commits
  5. 01 Mar, 2001 2 commits
  6. 28 Feb, 2001 4 commits
  7. 27 Feb, 2001 3 commits
    • Almer S. Tigelaar's avatar
      Set undo descriptor for row height correctly. · 73486d4a
      Almer S. Tigelaar authored
      2001-02-27  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/commands.c
      	(cmd_colrow_std_size) : Set undo descriptor for row height correctly.
      73486d4a
    • Almer S. Tigelaar's avatar
      Implement. (workbook_cmd_format_row_std_height) : Idem. · 6d6cfe5c
      Almer S. Tigelaar authored
      2001-02-27  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/workbook-cmd-format.c
      	(workbook_cmd_format_column_std_width) : Implement.
      	(workbook_cmd_format_row_std_height) : Idem.
      
      	* src/commands.c, src/commands.h
      	(cmd_colrow_std_size_undo) : New, Undo for the std row-height/col-width
      	setting.
      	(cmd_colrow_std_size_redo) : Idem, for redo.
      	(cmd_colrow_std_size_destroy) : Idem.
      	(cmd_colrow_std_size) : Entry point for std row-height/col-width command.
      6d6cfe5c
    • Christophe Merlet's avatar
      Updated French translation. · d920a215
      Christophe Merlet authored
      d920a215
  8. 25 Feb, 2001 6 commits
    • Jody Goldberg's avatar
      round the zoom factor before displaying. · 1f266e46
      Jody Goldberg authored
      
      2001-02-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (zoom_changed) : round the zoom factor
      	  before displaying.
      1f266e46
    • Chyla Zbigniew's avatar
      Removed -DGNUMERIC_VERSION, the macro is already defined in config.h. · f5243b9a
      Chyla Zbigniew authored
      
      * Makefile.am: Removed -DGNUMERIC_VERSION, the macro is already
      defined in config.h.
      f5243b9a
    • Jody Goldberg's avatar
      Fix a redraw bug when merging entire cols/rows and shrinking the selection. · 72eef083
      Jody Goldberg authored
      2001-02-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (sheet_selection_set_internal) : when the selection
      	  shrinks and no longer selects full cols/rows redraw the union.
      72eef083
    • Chyla Zbigniew's avatar
      Used "function_group" service. · de07ebb0
      Chyla Zbigniew authored
      
      * plugin-gda.c, plugin.xml:
      Used "function_group" service.
      de07ebb0
    • Chyla Zbigniew's avatar
      Fixed crash (caused by calling gnumeric_io_context_free twice). · 368d2543
      Chyla Zbigniew authored
      
      * src/file.c (workbook_save_as): Fixed crash (caused by calling
      gnumeric_io_context_free twice).
      368d2543
    • Jody Goldberg's avatar
      Bart bugs · dcbb2ead
      Jody Goldberg authored
      2001-02-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (format_number) : Invert the logic if this test.
      	  We increment again later.  So what we really want is to avoid double
      	  incrementing and avoid incrementing past the end.
      
      	* src/cellspan.c (cell_calc_span) : rework when to increment
      	  boundaries.  It is important not to have a span end in a hidden
      	  column or it will not be drawn.  As such we need to be careful to
      	  only increment the margin args when a bound extends into a visible
      	  column.
      
      	* src/sheet.c (sheet_regen_adjacent_spans) : check for spans before
      	  cells in case we are cutting off the span at its core.
      
      	* src/colrow.c (colrow_set_visibility_list) : set all visibilities
      	  before regening spans.
      
      	* src/cell-draw.c (cell_draw) : Add some warnings for cols/rows that
      	  are too small.
      dcbb2ead
  9. 24 Feb, 2001 10 commits
    • Chyla Zbigniew's avatar
      Export "file_opener" plugin service (+ "file_saver" for dif and html). Use · 6ba33eed
      Chyla Zbigniew authored
      
      * plugins/applix/applix-read.c,
      plugins/applix/applix.h, plugins/applix/boot.c,
      plugins/applix/plugin.xml,
      plugins/dif/dif.c, /plugins/dif/plugin.xml,
      plugins/html/boot.c, plugins/html/html.c,
      plugins/html/html.h, /plugins/html/latex.c,
      plugins/html/latex.h, plugins/html/plugin.xml,
      plugins/html/roff.c, /plugins/html/roff.h,
      plugins/lotus-123/boot.c, plugins/lotus-123/lotus.c,
      plugins/lotus-123/lotus.h, plugins/lotus-123/plugin.xml,
      plugins/oleo/boot.c, plugins/oleo/oleo.c,
      plugins/oleo/oleo.h, plugins/oleo/plugin.xml,
      plugins/plan-perfect/pln.c, plugins/plan-perfect/plugin.xml,
      plugins/sc/plugin.xml, plugins/sc/sc.c,
      plugins/sylk/plugin.xml, plugins/sylk/sylk.c,
      plugins/xbase/boot.c, plugins/xbase/plugin.xml,
      plugins/xbase/xbase.c, plugins/xbase/xbase.h,
      plugins/xml2/plugin.xml, plugins/xml2/xml2.c:
      Export "file_opener" plugin service (+ "file_saver" for dif and html).
      Use ErrorInfo where needed.
      Use GNUMERIC_MODULE_PLUGIN_INFO_DECL macro instead of
      gnumeric_plugin_version[] declaration.
      
      * plugins/numtheory/numtheory.c, plugins/numtheory/plugin.xml:
      Export "function_group" plugin service.
      
      * plugins/gb/plugin.c, plugins/gb/plugin.xml,
      plugins/gda/plugin-gda.c, plugins/gda/plugin.xml,
      plugins/guile/plugin.c, /plugins/guile/plugin.xml,
      plugins/perl/perl.c, plugins/perl/plugin.xml,
      plugins/python/Makefile.am, plugins/python/plugin.xml,
      plugins/python/python.c:
      Export "general" plugin service.
      Use ErrorInfo where needed.
      (init_plugin, can_deactivate_plugin, cleanup_plugin): Rename and
      signature changes.
      
      * plugins/excel/boot.c (excel_save_95, excel_save_98, excel_save, excel_probe,
      excel_load): Signature changes.
      
      * plugins/excel/ms-formula-write.c: Use accessor functions from
      func.h instead of accessing FunctionDefinition struct directly.
      6ba33eed
    • Chyla Zbigniew's avatar
      Added files: plugin-service.[ch], plugin-loader.[ch], · a924975e
      Chyla Zbigniew authored
      
      * src/Makefile.am: Added files:  plugin-service.[ch],
      plugin-loader.[ch], plugin-loader-module.[ch], module-plugin-defs.h.
      
      * src/error-info.[ch] (error_info_new_from_errno): New function.
      
      * src/file.c
      (struct _FileOpener, struct _FileSaver): Moved from file.h
      (file_opener_get_format_description, file_opener_has_probe,
      file_saver_get_extension,  file_saver_get_format_description):
      New accessor functions.
      (file_opener_probe, file_opener_open, file_saver_save,
      file_opener_set_user_data, file_opener_get_user_data,
      file_saver_set_user_data, file_saver_get_user_data): New
      functions.
      (get_file_opener_by_id, get_file_saver_by_id): Removed
      Now using FileOpener*/FileSaver* instead of FileOpenerId/FileSaverId
      everywhere.
      
      * src/file.h
      (struct _FileOpener, struct _FileSaver): Moved to file.c.
      Adjusted to file.c.
      
      * src/gui-file.c: Adjusted to file.[ch], now FileSaver.extension
      field should contain real extension (without a dot).
      
      * src/func.[ch]
      (enum FunctionFlags, struct _FunctionDefinition): Moved from func.h
      to func.c.
      (struct _FunctionCategory): Added "internal_name" and "display_name"
      in place of "name" field.
      (function_get_category_with_translation,
      function_category_remove_func, func_get_ref_count, function_remove,
      function_add_name_only): New functions.
      Now it's possible to load function implementation on demand (after
      registering function using function_add_name_only() and providing
      function of type FunctionGetFullInfoCallback).
      Rename fd and fndef to fn_def for consistency.
      
      * src/functions/fn-database.c (database_functions_init),
      src/functions/fn-date.c (date_functions_init),
      src/functions/fn-eng.c (eng_functions_init),
      src/functions/fn-financial.c (finance_functions_init),
      src/functions/fn-information.c (information_functions_init),
      src/functions/fn-logical.c (logical_functions_init),
      src/functions/fn-lookup.c (lookup_functions_init),
      src/functions/fn-math.c (math_functions_init),
      src/functions/fn-sheet.c (sheet_functions_init),
      src/functions/fn-stat.c (stat_functions_init),
      src/functions/fn-string.c (string_functions_init):
      Use function_get_category_with_translation, instead of
      function_get_category.
      
      * src/plugin.[ch]
      (struct _PluginInfo): Removed many fields.
      (plugin_info_get_extra_info_list):
      Just call gnumeric_plugin_loader_get_extra_info_list.
      (plugin_info_peek_services_data, plugin_info_peek_loader_type_str):
      New accessor functions.
      (plugin_info_read_service_list, plugin_info_read_loader,
      plugin_info_read):
      Read services and loader info, use functions from
      gal/util/e-xml-utils.h everywhere.
      (activate_plugin, deactivate_plugin): Just activate/deactivate all
      plugin services.
      (plugin_can_deactivate): Ask plugin services.
      (plugin_load_service, plugin_unload_service,
      plugin_info_offers_loader_by_type_str,
      plugin_loader_register_type, plugin_loader_register_id_only,
      plugin_loader_get_by_id, plugin_loader_is_available_by_id,
      plugin_list_sort_by_dependency):
      New functions.
      (plugin_db_activate_plugin_list): Activate plugins in correct order,
      using plugin_list_sort_by_dependency function.
      (plugin_info_print): Removed.
      (module_plugin_print_info, module_plugin_info_get_extra_info_list,
      module_plugin_free, module_plugin_info_read, module_plugin_activate,
      module_plugin_deactivate, module_plugin_can_deactivate): Removed,
      most code  moved to plugin-loader.c and plugin-loader-module.c.
      
      * src/plugin-service.[ch]: New files, support for plugin services
      (five types of these so far).
      
      * src/plugin-loader.[ch]: New files, base class for plugin loaders.
      
      * src/plugin-loader-module.[ch]: New files, support for "g_module"
      plugins.
      
      * src/plugin-util.[ch] (gnumeric_fopen_error_info,
      gnumeric_open_error_info, gnumeric_mmap_error_info): New functions.
      
      * src/gutils.[ch] (g_list_free_custom, g_slist_free_custom,
      gnumeric_time_counter_push, gnumeric_time_counter_pop):
      New functions.
      
      * src/io-context-priv.h (struct _IOContext): Added error_info field.
      
      * src/io-context.[ch] (gnumeric_io_context_new,
      gnumeric_io_context_free, gnumeric_io_error_info_set,
      gnumeric_io_error_info_push, gnumeric_io_error_info_pop,
      gnumeric_io_error_info_clear, gnumeric_io_error_info_display,
      gnumeric_io_has_error_info): New functions, quick hack to add
      support for ErrorInfo.
      
      * src/module-plugin-defs.h: New file, should be included be every
      g_module plugin.
      
      * src/auto-format.c: Use accessor function from func.h.
      
      * src/bonobo-io.c (gnumeric_bonobo_write_workbook,
      gnumeric_bonobo_read_workbook, gnumeric_bonobo_io_probe),
      src/stf.c (stf_read_workbook, stf_write_workbook),
      src/xml-io.[ch] (xml_probe, gnumeric_xml_read_workbook,
      gnumeric_xml_write_workbook):
      Signature changes.
      
      * src/workbook.c: Adjusted to
      workbook_load_from/gnumeric_xml_write_workbook signature change.
      
      * src/dialogs/dialog-function-select.c: Adjust to func.[ch].
      
      * src/dialogs/dialog-plugin-manager.c
      Adjust to plugin.[ch].
      (cb_pm_button_activate_plugin_clicked): Check if loader for current
      plugin is available, suggest activating loader plugin otherwise.
      a924975e
    • Morten Welinder's avatar
      Brag. · a8bf359c
      Morten Welinder authored
      a8bf359c
    • Morten Welinder's avatar
      Non-modal search and replace. · 223aa84b
      Morten Welinder authored
      2001-02-24  Morten Welinder  <terra@diku.dk>
      
      	* src/workbook-control-gui.c (cb_edit_search_replace_action): New
       	function for non-modal action.
      	(cb_edit_search_replace): Supply action callback.
      
      
      2001-02-24  Morten Welinder  <terra@diku.dk>
      
      	* dialog-search-replace.c (dialog_search_replace): Rework to be
       	non-modal.
      223aa84b
    • Almer S. Tigelaar's avatar
      Add sheet remove and sheet re-order menu items. · 85306f55
      Almer S. Tigelaar authored
      2001-02-24  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/workbook-control-gui-priv.h :
      	Add sheet remove and sheet re-order menu items.
      
      	* src/workbook-control-gui.c
      	(wbcg_menu_state_sheet_count) : New, Take care of sheet counts dependant
      	gui elements like the sheet remove/re-order menus.
      	(wbcg_sheet_add) : Call menu_state_sheet_count from here.
      	(wbcg_sheet_remove) : Idem.
      	(workbook_control_gui_init) : Initialize the remove and re-order menu-items.
      85306f55
    • Jody Goldberg's avatar
      Why was I protecting a generic call ? Its constituents not the caller are · 906203ad
      Jody Goldberg authored
      
      2001-02-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (workbook_control_gui_new) : Why was I
      	  protecting a generic call ?  Its constituents not the caller are
      	  responsible for blocking events.
      	(workbook_control_gui_init) : Be anal and init this just in case.
      906203ad
    • Jody Goldberg's avatar
      Why was I protecting a generic call ? Its constituents not the caller are · 68acda5b
      Jody Goldberg authored
      
      2001-02-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (workbook_control_gui_new) : Why was I
      	  protecting a generic call ?  Its constituents not the caller are
      	  responsible for blocking events.
      68acda5b
    • Almer S. Tigelaar's avatar
      If we reach the maximum scroll offset increase it so we can keep scrolling · 25a01a39
      Almer S. Tigelaar authored
      2001-02-24  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/sheet-control-gui.c
      	(horizontal_scroll_event) : If we reach the maximum scroll offset
      	increase it so we can keep scrolling down.
      	(vertical_scroll_event) : Idem.
      	(horizontal_scroll_change) : Directly manipulate scroll offset.
      	(vertical_scroll_change) : Idem.
      25a01a39
    • Almer S. Tigelaar's avatar
      Add spacing. · eb949c10
      Almer S. Tigelaar authored
      2001-02-24  Almer S. Tigelaar  <almer@gnome.org>
      
      	* search-replace.glade : Add spacing.
      eb949c10
    • Jody Goldberg's avatar
      update · a4d1f9f0
      Jody Goldberg authored
      a4d1f9f0