1. 06 Jun, 2003 2 commits
    • Jody Goldberg's avatar
      use connect_swapped to get rid of the unused argument · 3dba5fbc
      Jody Goldberg authored
      
      2003-06-05  Jody Goldberg <jody@gnome.org>
      
      	* dialog-plugin-manager.c (cb_pm_button_rescan_directories_clicked) :
      	  use connect_swapped to get rid of the unused argument
      	(cb_pm_button_directory_add_clicked) : merge in pm_add_dir
      	  and clarify the ownership of the lists and manually
      	  reload the directories for now.  Eventually we should
      	  just monitor the notify signal of something.
      	(cb_pm_button_directory_delete_clicked) : merge in pm_delete_dir
      	  and clarify the ownership of the lists and manually
      	  reload the directories for now.  Eventually we should
      	  just monitor the notify signal of something.
      	(cb_dir_changed_notification) : delete.
      
      	* dialog-paste-special.c (dialog_paste_special) : begin transition
      	  from modal dialog by moving the calls to cmd_paste_to_selection here.
      
      	* dialog-printer-setup.c : remove some deprecation.
      
      
      2003-06-05  Jody Goldberg <jody@gnome.org>
      
      	* src/plugin.c (gnumeric_extra_plugin_dirs) : clarify the ownership of
      	  the lists.
      	(plugins_init) : ditto.
      	(plugins_shutdown) : ditto.
      
      	* src/application.c (application_history_get_list) : const the output
      	  to be clear on the ownership semantics.  Add a 'force_reload'
      	  argument to force the list to reload and clip from the underlying
      	  gconf source.  Should not be necessary later when we clear up the
      	  relationship between application, and the config.
      	(application_history_update_list) : deleted.
      	(application_history_add) : new.  merge in some of the old
      	  application_history_update_list, and some of the history_menu stuff
      	  and emit a notifuy even on the newly created file_history_list
      	  property of the application.  We should do the same for other
      	  properties rather than requiring direct gconf connections.
      	(application_history_list_shrink) : delete.
      	(application_history_write_config) : delete.
      	(gnumeric_application_get_property) : new.
      	(gnumeric_application_class_init) : install the property.
      
      	* src/workbook.c (workbook_finalize) : Just call
      	  application_history_add directly rather than
      	  workbook_history_update that was a pointless layer of indirection.
      	  No need to directly call application_history_write_config
      	  history_add handles that.
      
      	* src/sheet-object-widget.c (sheet_widget_list_create_widget) : If
      	  we're going to throw in a stub widget, it might as well a treeview
      	  rather than a deprecated list widget.
      
      	* src/workbook.c (workbook_history_update) : delete the vast majority
      	  of this moving what little remained into.
      
      	* src/history.c : delete everything but history_item_label.
      	  greatly simplify the logic and move the majority of it into.
      	* src/workbook-control-gui.c : here.  While we're at it simplify our
      	  lives in preparation for turning the bonobo mess into virtuals on
      	  wbcg.  Use a simpler approach to creation and removal that let
      	    - monitors the application::notify::file-history-list rather than
      	      requiring explicit calls from a non-gui layer.
      	    - removes everything even the seperator then reinserts the new
      	      entries.
      	(wbcg_file_history_setup) : renamed from wbcg_history_setup.
      	(change_menu_label) : Use gtk_label_set_text with use_underline
      	  set to true in place of the deprecated parse_uline gunk.  While
      	  we're in here set the tooltip too.  Its a hack, setting the data
      	  directly based on knownledge of the implementation in libgnomeui.
      	  However, there aren't many choices other than fixing libgnomeui
      	  which is just too long a wait.
      	(cb_edit_paste_special) : move call to cmd_paste_to_selection in to
      	  the dialog like every other implemntation.
      	(wbcg_finalize) :  Use g_signal_handlers_disconnect_by_func in place
      	  of the deprecated gtk_signal_disconnect_by_func.
      	(workbook_setup_sheets) : Use gtk_notebook_set_show_border (FALSE) in
      	  place of the deprecated gtk_notebook_set_tab_border (0).
      	(workbook_control_gui_init) : use allow_grow, and allow_shrink
      	  properties in place of deprecated gtk_window_set_policy.  And
      	  g_idle_add, in place of deprecated gtk_idle_add.
      
      	* src/sheet-control-gui.c (context_menu_handler) :
      	  dialog_paste_special now calls cmd_paste_to_selection itself
      	  like all the other dialogs.
      
      	* src/gutils.c (g_slist_map) : constify to make life easier.
      
      	* src/gnumeric-pane.c : some minor property renaming in the custom
      	  canvas-items when we removed the deprecated gunk.
      	* src/item-bar.c : remove deprecated GtkArg gunk in favour of
      	  GObject::Param stuff.
      	* src/item-grid.c : ditto.
      
      	* src/gnumeric-gconf.h : Make the public GSLists const just to be
      	  absolutely clear about who owns what.
      
      	* src/gnumeric-gconf.c (gnm_gconf_set_plugin_extra_dirs) : make list
      	  ownership semantics absolutely clear.
      	(gnm_gconf_set_plugin_extra_dirs) : ditto.
      	(gnm_gconf_set_file_history_files) : ditto.
      	(gnm_gconf_add_notification_plugin_directories) : delete unused.
      	(gnm_gconf_set_autoformat_extra_dirs) : delete unused.
      
      	* src/gnumeric-gconf-priv.h : no need to publicly include gconf anymore
      3dba5fbc
    • Jody Goldberg's avatar
      use connect_swapped to get rid of the unused argument · 0878c77a
      Jody Goldberg authored
      2003-06-05  Jody Goldberg <jody@gnome.org>
      
      	* dialog-plugin-manager.c (cb_pm_button_rescan_directories_clicked) :
      	  use connect_swapped to get rid of the unused argument
      	(cb_pm_button_directory_add_clicked) : merge in pm_add_dir
      	  and clarify the ownership of the lists and manually
      	  reload the directories for now.  Eventually we should
      	  just monitor the notify signal of something.
      	(cb_pm_button_directory_delete_clicked) : merge in pm_delete_dir
      	  and clarify the ownership of the lists and manually
      	  reload the directories for now.  Eventually we should
      	  just monitor the notify signal of something.
      	(cb_dir_changed_notification) : delete.
      
      	* dialog-paste-special.c (dialog_paste_special) : begin transition
      	  from modal dialog by moving the calls to cmd_paste_to_selection here.
      
      	* dialog-printer-setup.c : remove some deprecation.
      
      
      2003-06-05  Jody Goldberg <jody@gnome.org>
      
      	* src/plugin.c (gnumeric_extra_plugin_dirs) : clarify the ownership of
      	  the lists.
      	(plugins_init) : ditto.
      	(plugins_shutdown) : ditto.
      
      	* src/application.c (application_history_get_list) : const the output
      	  to be clear on the ownership semantics.  Add a 'force_reload'
      	  argument to force the list to reload and clip from the underlying
      	  gconf source.  Should not be necessary later when we clear up the
      	  relationship between application, and the config.
      	(application_history_update_list) : deleted.
      	(application_history_add) : new.  merge in some of the old
      	  application_history_update_list, and some of the history_menu stuff
      	  and emit a notifuy even on the newly created file_history_list
      	  property of the application.  We should do the same for other
      	  properties rather than requiring direct gconf connections.
      	(application_history_list_shrink) : delete.
      	(application_history_write_config) : delete.
      	(gnumeric_application_get_property) : new.
      	(gnumeric_application_class_init) : install the property.
      
      	* src/workbook.c (workbook_finalize) : Just call
      	  application_history_add directly rather than
      	  workbook_history_update that was a pointless layer of indirection.
      	  No need to directly call application_history_write_config
      	  history_add handles that.
      
      	* src/sheet-object-widget.c (sheet_widget_list_create_widget) : If
      	  we're going to throw in a stub widget, it might as well a treeview
      	  rather than a deprecated list widget.
      
      	* src/workbook.c (workbook_history_update) : delete the vast majority
      	  of this moving what little remained into.
      
      	* src/history.c : delete everything but history_item_label.
      	  greatly simplify the logic and move the majority of it into.
      	* src/workbook-control-gui.c : here.  While we're at it simplify our
      	  lives in preparation for turning the bonobo mess into virtuals on
      	  wbcg.  Use a simpler approach to creation and removal that let
      	    - monitors the application::notify::file-history-list rather than
      	      requiring explicit calls from a non-gui layer.
      	    - removes everything even the seperator then reinserts the new
      	      entries.
      	(wbcg_file_history_setup) : renamed from wbcg_history_setup.
      	(change_menu_label) : Use gtk_label_set_text with use_underline
      	  set to true in place of the deprecated parse_uline gunk.  While
      	  we're in here set the tooltip too.  Its a hack, setting the data
      	  directly based on knownledge of the implementation in libgnomeui.
      	  However, there aren't many choices other than fixing libgnomeui
      	  which is just too long a wait.
      	(cb_edit_paste_special) : move call to cmd_paste_to_selection in to
      	  the dialog like every other implemntation.
      	(wbcg_finalize) :  Use g_signal_handlers_disconnect_by_func in place
      	  of the deprecated gtk_signal_disconnect_by_func.
      	(workbook_setup_sheets) : Use gtk_notebook_set_show_border (FALSE) in
      	  place of the deprecated gtk_notebook_set_tab_border (0).
      	(workbook_control_gui_init) : use allow_grow, and allow_shrink
      	  properties in place of deprecated gtk_window_set_policy.  And
      	  g_idle_add, in place of deprecated gtk_idle_add.
      
      	* src/sheet-control-gui.c (context_menu_handler) :
      	  dialog_paste_special now calls cmd_paste_to_selection itself
      	  like all the other dialogs.
      
      	* src/gutils.c (g_slist_map) : constify to make life easier.
      
      	* src/gnumeric-pane.c : some minor property renaming in the custom
      	  canvas-items when we removed the deprecated gunk.
      	* src/item-bar.c : remove deprecated GtkArg gunk in favour of
      	  GObject::Param stuff.
      	* src/item-grid.c : ditto.
      
      	* src/gnumeric-gconf.h : Make the public GSLists const just to be
      	  absolutely clear about who owns what.
      
      	* src/gnumeric-gconf.c (gnm_gconf_set_plugin_extra_dirs) : make list
      	  ownership semantics absolutely clear.
      	(gnm_gconf_set_plugin_extra_dirs) : ditto.
      	(gnm_gconf_set_file_history_files) : ditto.
      	(gnm_gconf_add_notification_plugin_directories) : delete unused.
      	(gnm_gconf_set_autoformat_extra_dirs) : delete unused.
      
      	* src/gnumeric-gconf-priv.h : no need to publicly include gconf anymore
      0878c77a
  2. 05 Jun, 2003 5 commits
    • Morten Welinder's avatar
      Delete. · f46fd8bb
      Morten Welinder authored
      2003-06-05  Morten Welinder  <terra@gnome.org>
      
      	* src/stf.c (stf_read_default_probe): Delete.
      
      	* src/stf-parse.c (stf_parse_get_rowcount): Delete.
      	(stf_parse_fixed_cell): Make UTF-8 safe.
      	(stf_parse_get_longest_row_width): Ditto.
      	(stf_parse_is_valid_data): Delete.
      
      2003-06-05  Morten Welinder  <terra@gnome.org>
      
      	* dialog-stf-fixed-page.c (fixed_page_prepare): Set the number of
      	lines to parse.
      	* dialog-stf-csv-page.c (csv_page_prepare): Ditto.
      f46fd8bb
    • Morten Welinder's avatar
      Butcher this. Don't do encodings here. · b7aca93c
      Morten Welinder authored
      2003-06-05  Morten Welinder  <terra@gnome.org>
      
      	* src/stf.c (stf_preparse): Butcher this.  Don't do encodings
      	here.
      
      2003-06-05  Morten Welinder  <terra@gnome.org>
      
      	* dialog-stf.c (stf_dialog): Take an optional encoding.  Specify
      	that input is not necessarily UTF-8.
      
      	* dialog-stf.h (DialogStfResult_t): Make the return text be the
      	UTF-8 version of the input.  Add rowcount.
      
      	* dialog-stf-main-page.c (main_page_set_encoding): New function.
      	(stf_dialog_main_page_init): Pick an encoding, either the supplied
      	one or using a fallback.
      
      2003-06-05  Morten Welinder  <terra@gnome.org>
      
      	* widget-charmap-selector.c (charmap_selector_set_encoding): New
      	function.
      b7aca93c
    • Morten Welinder's avatar
      Name space butchering. · b76b60b0
      Morten Welinder authored
      b76b60b0
    • Morten Welinder's avatar
      Another round of cleanups. · f754884b
      Morten Welinder authored
      2003-06-05  Morten Welinder  <terra@gnome.org>
      
      	* dialog-stf*.[ch]: Another round of cleanups.
      f754884b
    • Jon Kåre Hellan's avatar
      (py_initgnumeric): Fix typo. Should be · 0a65a1ba
      Jon Kåre Hellan authored
      "GnumericErrorVALUE", not "GnumericErrorVALUEL".
      0a65a1ba
  3. 04 Jun, 2003 21 commits
  4. 03 Jun, 2003 8 commits
    • Jody Goldberg's avatar
      invert · 4e8ae8d7
      Jody Goldberg authored
      4e8ae8d7
    • Jody Goldberg's avatar
      don't freak out with emoty names. · 4d2dd844
      Jody Goldberg authored
      2003-06-03  Jody Goldberg <jody@gnome.org>
      
      	* dialog-define-names.c (name_guru_add) : don't freak out with emoty
      	  names.
      
      2003-06-03  Jody Goldberg <jody@gnome.org>
      
      	* dialog-define-names.c (name_guru_add) : cmd_define_name is smarter
      	  now we don't need to do any heavy lifting here.
      
      2003-06-02  Jody Goldberg <jody@gnome.org>
      
      	* dialog-define-names.c (cb_scope_changed) : handle failure to change
      	  scope and update the name list on success.
      
      2003-06-03  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-object.c (sheet_objects_relocate) : kludgy tweak so that
      	  ins/del col/row moves things and cut-n-paste does not.
      
      2003-06-03  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-filter.c (gnm_filter_overlaps_range) : new.
      	(gnm_filter_contains_row) : delete.
      	* src/sheet-view.c (sv_first_selection_in_filter) : new.
      	(sv_edit_pos_in_filter) : delete.
      	* src/workbook-control-gui.c (wbcg_menu_state_update) : use here.
      	(cb_auto_filter) : and here.
      
      2003-06-03  Jody Goldberg <jody@gnome.org>
      
      	* src/expr-name.c (gnm_named_expr_collection_insert) : ease
      	  requirements and allow active names to be inserted.  This is the
      	  majority case for all the places we up/dowgrade placeholders and
      	  change scope.
      	(expr_name_check_for_loop) : rename from name_refer_circular and make
      	  public.
      	(expr_name_downgrade_to_placeholder) : new.
      	(expr_name_set_scope) : no need to diddle ::active now that
      	  collection_insert is less anal.
      	(expr_name_cmp_by_name) : renamed from expr_name_by_name.
      
      	* src/commands.c (cmd_define_name*) : add more checking at the start.
      	  Don't bother keeping a ref to the nexpr.
      	  handle undo for defining an existing placeholder.
      4d2dd844
    • J.H.M. Dassen (Ray)'s avatar
    • Morten Welinder's avatar
      Brag. · 7de6eacf
      Morten Welinder authored
      7de6eacf
    • Morten Welinder's avatar
      New function. (stf_parse_next_token): Move UTF-8 from here to callers to · 5c04774c
      Morten Welinder authored
      2003-06-03  Morten Welinder  <terra@gnome.org>
      
      	* src/stf-parse.c (stf_parse_lines): New function.
      	(stf_parse_next_token): Move UTF-8 from here to callers to avoid
      	insane slowdown.
      5c04774c
    • Morten Welinder's avatar
      New function for init-time adding of columns. (gnumeric_lazy_list_new): · 467e2516
      Morten Welinder authored
      2003-06-03  Morten Welinder  <terra@gnome.org>
      
      	* gnumeric-lazy-list.c (gnumeric_lazy_list_add_column): New
      	function for init-time adding of columns.
      	(gnumeric_lazy_list_new): Allow zero columns.
      467e2516
    • Jody Goldberg's avatar
      handle failure to change scope and update the name list on success. · 74121b98
      Jody Goldberg authored
      2003-06-02  Jody Goldberg <jody@gnome.org>
      
      	* dialog-define-names.c (cb_scope_changed) : handle failure to change
      	  scope and update the name list on success.
      
      2003-06-02  Jody Goldberg <jody@gnome.org>
      
      	* src/expr-name.c (expr_name_set_scope) : if the new scope does not
      	  have any names initialize it.  Don't remove the name from the old
      	  scope if it already exists in the newscope.  Return an error message
      	  in the case of problems.
      74121b98
    • Jody Goldberg's avatar
      quick and dirty draw the text. Still lots of work needed to measure things · 360c3204
      Jody Goldberg authored
      
      2003-06-02  Jody Goldberg <jody@gnome.org>
      
      	* graph/gog-legend.c (cb_render_elements) : quick and dirty draw the
      	  text.  Still lots of work needed to measure things properly and do a
      	  more dynamic layout.
      
      	* graph/gog-guru.c (cb_typesel_sample_plot_resize) : use the canvas zoom
      	(cb_sample_plot_resize) : ditto.
      	(graph_guru_init_format_page) : ditto.
      	(graph_guru_type_selector_new) : ditto.
      
      	* graph/gog-renderer-pixbuf.c (make_layout) : new.
      	(gog_renderer_pixbuf_draw_text) : new. simple handler no rotation yet.
      	(gog_renderer_pixbuf_measure_text) : new.
      	(gog_art_renderer_new) : new utility.
      	(gog_renderer_pixbuf_draw_polygon) : used here.
      
      	* graph/gog-control-foocanvas.c (gog_control_foocanvas_draw) : another
      	  speed up by using regions rather tha nthe bounding rect of the expose.
      	  Thanks to AlexL for pointing out that this will help us when
      	  multiple exposes are compressed into 1 event and we do better to
      	  clip against the distinct sub regions, than the bounding box of all
      	  of them.
      	(gog_control_foocanvas_update) : make life easier and pass the zoom to
      	  the renderer.
      
      2003-06-02  Jody Goldberg <jody@gnome.org>
      
      	* graph/gog-style.c : minor warning suppression and format style
      	  tidying.
      360c3204
  5. 02 Jun, 2003 4 commits
    • Morten Welinder's avatar
      New files, split out from dialog-search.c. · 01a6942e
      Morten Welinder authored
      2003-06-02  Morten Welinder  <terra@gnome.org>
      
      	* gnumeric-lazy-list.[ch]: New files, split out from
      	dialog-search.c.
      01a6942e
    • Morten Welinder's avatar
      White-space frobbing. · 4e81ef07
      Morten Welinder authored
      4e81ef07
    • Morten Welinder's avatar
      New function. (stf_parse_general): Switch from list <list<string>> to · b3361ef5
      Morten Welinder authored
      2003-06-02  Morten Welinder  <terra@gnome.org>
      
      	* src/stf-parse.c (stf_parse_general_free): New function.
      	(stf_parse_general): Switch from list <list<string>> to
      	ptrarray<ptrarray<string>>, gaining random access.  All callers
      	changed.
      
      2003-06-02  Morten Welinder  <terra@gnome.org>
      
      	* dialog-stf-preview.c (stf_preview_render): Switch from list
      	<list<string>> to ptrarray<ptrarray<string>>, gaining random
      	access.  All callers changed.
      b3361ef5
    • Morten Welinder's avatar
      Take a pango context argument also instead of producing a bogus one. · ad9cdc0a
      Morten Welinder authored
      2003-06-02  Morten Welinder  <terra@gnome.org>
      
      	* src/style.c (style_font_new_simple): Take a pango context
      	argument also instead of producing a bogus one.
      	(style_font_new): Ditto.  Improve fall-back scheme.
      	(font_init): For now, create the default font on the default
      	screen.  The need for the default is almost gone.
      
      	* src/mstyle.c (mstyle_get_font, mstyle_get_pango_attrs): Take a
      	pango context also to produce fonts.
      	* src/rendered-value.c (calc_indent, rendered_value_render): Ditto.
      	* src/sheet-control-gui.c (scg_get_style_font): Ditto.
      ad9cdc0a