1. 29 Jun, 2003 2 commits
    • Morten Welinder's avatar
      Move ref early. (set_format_category_menu_from_style): Call · de2dbe8c
      Morten Welinder authored
      2003-06-29  Morten Welinder  <terra@gnome.org>
      
      	* widget-format-selector.c
      	(number_format_selector_set_style_format): Move ref early.
      	(set_format_category_menu_from_style): Call
      	fmt_dialog_enable_widgets to update the display.
      
      2003-06-29  Morten Welinder  <terra@gnome.org>
      
      	* src/formats.c (style_format_percent, style_format_science,
      	style_format_account, style_format_number): Simplify using
      	g_string_append_len.
      de2dbe8c
    • Morten Welinder's avatar
      Don't switch locales here. · a9d79019
      Morten Welinder authored
      2003-06-29  Morten Welinder  <terra@gnome.org>
      
      	* src/stf.c (stf_store_results): Don't switch locales here.
      a9d79019
  2. 28 Jun, 2003 2 commits
    • Andreas J. Guelzow's avatar
      initialize new fields (stf_parse_options_free): free new fields · 378b24fe
      Andreas J. Guelzow authored
      2003-06-28  Andreas J. Guelzow  <aguelzow@taliesin.ca>
      
      	* src/stf-parse.c (stf_parse_options_new): initialize new fields
      	(stf_parse_options_free): free new fields
      	(stf_parse_csv_line): show all columns
      	(stf_parse_sheet): only store selected rows (and formats vary within
      	  each row!)
      	* src/stf-parse.h: add col_import_array to parse_options
      	* src/stf.c (stf_store_results): apply only the format of selected
      	  columns
      
      2003-06-28  Andreas J. Guelzow  <aguelzow@taliesin.ca>
      
      	* dialog-stf-format-page.c (cb_col_check_clicked): new
      	(format_page_update_preview): vreate checkboxes in column
      	  headers
      	(stf_dialog_format_page_cleanup): clean up selected column list
      	(stf_dialog_format_page_init): initialize selected column list
      	* dialog-stf-preview.c (stf_preview_new): allocate lots of columns
      	  in the lazy list. (We need to fix this.)
      	(stf_preview_set_lines): show all lines
      	* dialog-stf.c (stf_dialog): copy selected column list to parseoptions
      	* dialog-stf.h: new fields in FormatInfo_t
      378b24fe
    • Jody Goldberg's avatar
      add to round things out. · c3b5abaf
      Jody Goldberg authored
      2003-06-27  Jody Goldberg <jody@gnome.org>
      
      	* functions.c (gnumeric_yearfrac) : add to round things out.
      
      2003-06-27  Jody Goldberg <jody@gnome.org>
      
      	* src/datetime.c (days_between_basis) : tidy up a bit.
      	(annual_year_basis) : move this here from the date plugin and use the
      	  enum to improve clarity.
      c3b5abaf
  3. 27 Jun, 2003 5 commits
  4. 26 Jun, 2003 2 commits
  5. 25 Jun, 2003 5 commits
  6. 24 Jun, 2003 2 commits
    • Jon Kåre Hellan's avatar
      Call gtk_selection_data_set with correct data flavour. · fa49a0fd
      Jon Kåre Hellan authored
      * src/gui-clipboard.c (x_clipboard_get_cb): Call
      gtk_selection_data_set with correct data flavour.
      fa49a0fd
    • Morten Welinder's avatar
      New function. · 89181f43
      Morten Welinder authored
      2003-06-24  Morten Welinder  <terra@gnome.org>
      
      	* src/application.c (application_get_pixbuf): New function.
      
      	* src/pixmaps/Makefile.am (VARIABLES): Extra gnm_cursor_cross from
      	gui-util.c.
      
      	* src/sheet-control-gui.c (scg_set_display_cursor): Use
      	gnm_widget_set_cursor methods.
      
      	* src/item-grid.c (cb_cursor_motion): Use
      	gnm_pane_mouse_cursor_set.
      
      	* src/gnumeric-pane.h (GnumericPane): Replace cursor_type member
      	by mouse_cursor.
      
      	* src/gnumeric-pane.c (gnm_pane_release): Free mouse_cursor.
      	(gnm_pane_mouse_cursor_set): New function.
      
      	* src/gui-util.c (gdk_cursor_new_from_pixbuf)
      	[!HAVE_GDK_CURSOR_NEW_FROM_PIXBUF]: New function.
      	(CursorDef, cursor_cross_xpm, gnm_cursor_init1, gnm_cursor_create,
      	gnm_cursor_set_widget): Delete.
      	(gnm_widget_set_cursor_type): Rename from gnm_widget_set_cursor.
      	All callers changed.
      	(gnm_widget_set_cursor): New function.
      	(gnm_fat_cross_cursor): New function.
      
      	* configure.in: Check for gdk_cursor_new_from_pixbuf.
      
      	* src/workbook-format-toolbar.c (workbook_create_format_toolbar):
      	Use application_get_pixbuf to get icons for color_combo_new.
      
      2003-06-24  Morten Welinder  <terra@gnome.org>
      
      	* dialog-sheet-order.c (dialog_sheet_order): Use
      	application_get_pixbuf to get icon for color_combo_new.  Don't
      	include all the pixbufs.
      
      2003-06-24  Morten Welinder  <terra@gnome.org>
      
      	* widget-color-combo.c (color_combo_construct, color_combo_new):
      	No longer eat a reference to the icon.  All callers changed.
      89181f43
  7. 23 Jun, 2003 7 commits
    • Jon Kåre Hellan's avatar
      Add xhtml_range saver. Used when exporting to clipboard. · 82c37b04
      Jon Kåre Hellan authored
      * plugins/html/plugin.xml.in: Add xhtml_range saver. Used when
      exporting to clipboard.
      
      * plugins/html/html.[ch] (xhtml_range_file_save): New function. Save
      range as xhtml. Used when exporting to clipboard.
      
      * plugins/html/html.c (write_sheet): Add save_scope parameter. Don't add
      caption if scope is 'range'.
      (html_file_save): Call write_sheet with save_scope argument.
      
      * src/plugin-service.c (plugin_service_file_saver_read_xml):
      Recognize save_scope value "range".
      
      * src/gui-file.c (make_format_chooser): Leave savers with scope
      'range' out from menu.
      
      * src/gui-clipboard.c (table_cellregion_write): New
      function. Convert to memory buffer in format wanted by clipboard
      by pasting into a temporary workbook, saving that to a memory
      output stream.
      (x_clipboard_get_cb): Export to clipboard as xhtml.
      
      * src/file.h (enum FileSaveScope): Add FILE_SAVE_RANGE, used when
      exporting to clipboard.
      82c37b04
    • Andreas J. Guelzow's avatar
      change Gnumeric URL · 507ffdc3
      Andreas J. Guelzow authored
      2003-06-23  Andreas J. Guelzow  <aguelzow@taliesin.ca>
      
      	* src/main-application.c (warn_about_ancient_gnumerics): change
      	  Gnumeric URL
      507ffdc3
    • Morten Welinder's avatar
      Use gnm_widget_set_cursor. · 383fb55c
      Morten Welinder authored
      2003-06-23  Morten Welinder  <terra@gnome.org>
      
      	* src/item-edit.c (item_edit_event): Use gnm_widget_set_cursor.
      
      	* src/item-cursor.c (item_cursor_set_cursor): Use
      	gnm_widget_set_cursor.
      
      	* src/sheet-object-cell-comment.c (cell_comment_event): Use
      	gnm_widget_set_cursor.
      
      	* src/gui-util.c (gnm_widget_set_cursor): New function.
      
      	* src/gui-util.h (GnmCursorType): Eliminate unused _SIZE cursors.
      
      	* src/gnumeric-pane.c (cb_control_point_event): Change "cursor"
      	data to a GdkCursorType.
      	(set_acetate_coords): Ditto.
      	(new_control_point): Ditto.  Arg type changed.  All callers
      	changed.
      	(set_item_x_y): Ditto.
      383fb55c
    • Morten Welinder's avatar
      Eliminate unused zoom and hand cursors. · 8f289f0e
      Morten Welinder authored
      2003-06-23  Morten Welinder  <terra@gnome.org>
      
      	* src/gui-util.h (GnmCursorType): Eliminate unused zoom and hand
      	cursors.
      8f289f0e
    • Morten Welinder's avatar
      Simplify using gnumeric_regexp_quote1. (char_to_re): Delete. (str_to_re): · 6b704a6f
      Morten Welinder authored
      2003-06-23  Morten Welinder  <terra@gnome.org>
      
      	* src/number-match.c (format_create_regexp): Simplify using
      	gnumeric_regexp_quote1.
      	(char_to_re): Delete.
      	(str_to_re): Replace by gnumeric_regexp_quote.
      
      	* src/search.c (search_replace_compile): Simplify using
      	gnumeric_regexp_quote.
      
      	* src/regutf8.c (gnumeric_regexp_quote, gnumeric_regexp_quote1):
      	New functions.
      	(gnumeric_regcomp_XL): Simplify using gnumeric_regexp_quote1.
      6b704a6f
    • Jon Kåre Hellan's avatar
      Tidy up changelog · d300b5b6
      Jon Kåre Hellan authored
      d300b5b6
    • Jon Kåre Hellan's avatar
      New name in OpenOffice.org 1.1 Beta for OpenOffice XML clipboard target. · e2782873
      Jon Kåre Hellan authored
      * src/gui-clipboard.c (OOO11_ATOM_NAME, complex_content_received)
      (x_clipboard_received): New name in OpenOffice.org 1.1 Beta for
      OpenOffice XML clipboard target. Add it.
      e2782873
  8. 22 Jun, 2003 3 commits
    • Andreas J. Guelzow's avatar
      add printsetup/header and printsetup/footer schemas add more keys new · 6b751f31
      Andreas J. Guelzow authored
      2003-06-21  Andreas J. Guelzow  <aguelzow@taliesin.ca>
      
      	* schemas/gnumeric-dialogs.schemas.in: add printsetup/header and
      	  printsetup/footer schemas
      	* src/gnumeric-gconf-priv.h: add more keys
      	* src/gnumeric-gconf.c (gnm_gconf_set_printer_footer): new
      	(gnm_gconf_set_printer_header): new
      	(gnm_gconf_set_printer_config): change name of key
      	(gnm_conf_init): initialize header and footer from gconf
      	* src/gnumeric-gconf.h (gnm_gconf_set_printer_footer): new
      	(gnm_gconf_set_printer_header): new
      	(GnmAppPrefs): add header and footer fields
      	* src/print-info.c (print_info_save): save footer and header to
      	  gconf
      	(print_info_new): read footer and header to gconf
      6b751f31
    • Jon K Hellan's avatar
      Don't check for overwrite if not saving to a file. · da6e50b8
      Jon K Hellan authored
      2003-06-22  Jon K Hellan  <hellan@acm.org>
      
      	* src/file.c (gnm_file_saver_save): Don't check for overwrite if
      	not saving to a file.
      da6e50b8
    • Jody Goldberg's avatar
      vary style by element handled in plot now. (gog_pie_plot_get_property) : · f0eddd3f
      Jody Goldberg authored
      
      2003-06-22  Jody Goldberg <jody@gnome.org>
      
      	* graph/plugins/plot_pie/gog-pie.c (gog_pie_plot_set_property) : vary
      	  style by element handled in plot now.
      	(gog_pie_plot_get_property) : ditto.
      	(gog_pie_plot_cardinality) : deleted.
      	(gog_pie_plot_foreach_elem) : doh!  USe the label we just calculated.
      	(gog_pie_view_render) : implement general extracted slices.
      
      	* graph/gog-theme.c (gog_theme_get_name) : new util.
      
      	* graph/gog-style.c : Implement the hooks for serialization but have
      	  not actually written them yet.
      
      	* graph/gog-series.c (gog_series_editor) : add a notebook wrapper to
      	  allow changing style and data.
      	(gog_series_init) : set GogObject::use_parent_as_proxy flag.
      	(gog_series_dataset_dims) new.
      
      	* graph/gog-plot.c (gog_plot_set_property) : handle the
      	  'vary_style_by_element' at this level.
      	(gog_plot_get_cardinality) : ditto.
      
      	* graph/gog-object.c (gog_object_emit_changed) : Add
      	  'use_parent_as_proxy' utility to make life easier for things like
      	  series that will not have individual views.  This will fire a
      	  changed signal from their plots.
      
      	* graph/gog-legend.c (gog_legend_parent_changed) : new.  ensure we get
      	  updated when chart cardinality changes.
      	(gog_legend_update) : new.
      
      	* graph/gog-label.c (gog_label_editor) : fix.
      	(gog_label_class_init) : fix.
      	(gog_label_dims) : added to handle the extension to dataset interface.
      
      	* graph/gog-guru.glade : remove frame wrapping the prop notebook.
      
      	* graph/gog-guru.c (prop_notebook_set_current_page) : new util.
      	  to cleanup the handling of prop pages.  Only show the border if the
      	  prop page is not a notebook.  This keeps the layout visually
      	  similar in both cases.
      	(cb_select_prop_page) : use it here.
      	(cb_attr_tree_selection_change) : and here.
      	(graph_guru_type_selector_new) : remove the useless notebook wrapping
      	  the type selector.  It gives us more space and forces an initial
      	  selection.
      
      	* graph/gog-graph.c (gog_graph_set_property) : add a 'theme-name'
      	  property to facilitate serialization.
      
      	* graph/gog-data-allocator.c (gog_dataset_dims) : extension to the
      	  dataset interface to facilitate serialization.
      
      	* graph/gog-chart.c (gog_chart_get_property) : new.  Needed a way to
      	  signal that the cardinality had changed, and a read only property
      	  with a notify handler seemed cleaner than a stand alone signal.
      	  Looking back at that decision, it seems ugly.  Might revisit this
      	  later.
      
      	* graph/gog-axis.c : hook up the dataset interface to prepare for
      	 serializing all the flags.
      
      	* graph/go-data-impl.h (GOData) : extend interface to require a
      	  'from_str' operation to allow serialization to xml.
      	* graph/go-data.c (go_data_from_str) : wrapper.
      
      	* graph/Makefile.am : Add gog-object-xml.[ch]
      
      2003-06-14    Jean Brefort <jean.brefort@ac-dijon.fr>
      
      	* graph/gog-style.c (gog_style_editor): move a bad placed g_signal_connect
      	* graph/gog-style.c (gog_style_copy): duplicate filename if useful
      	* graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_polygon):
      	  added missing white spaces (purely cosmetic)
      	* graph/gog-renderer-pixbuf.c (go_color_to_artpix): removed static
      	* graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_polygon):
      	  added image and gradient support
      
      2003-06-13  Jon K Hellan  <hellan@acm.org>
      
      	* graph/gog-style.c (gog_style_editor) : Use the new
      	color_combo_set_instant_apply flag.
      
      
      2003-06-22  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-object.c (sheet_object_register) : register the graph
      	  types to allow loading.
      
      	* src/sheet-object-graph.c (sheet_object_graph_read_xml) : enable.
      	(sheet_object_graph_write_xml) : enable.
      
      	* src/graph.c (gnm_go_data_from_str) : new utility shared by vector
      	  and scalar that can parse, and handle delaying the parse until the
      	  data source is linked to a sheet to provide context.
      	(gnm_go_data_set_sheet) : ditto.
      	(gnm_go_data_scalar_from_str) : new requirement for interface.
      	(gnm_go_data_scalar_set_sheet) : use gnm_go_data_set_sheet.
      	(gnm_go_data_vector_from_str) : new requirement for interface.
      	(gnm_go_data_vector_set_sheet) : use gnm_go_data_set_sheet.
      
      	* src/application.c (application_history_add) : GObject::notify seems
      	  to prefer hyphens to underscores.
      	(gnumeric_application_class_init) : ditto.
      
      2003-06-18  Jody Goldberg <jody@gnome.org>
      
      	* src/hlink.c (gnm_hlink_cur_wb_activate) : jump to the target sheet,
      	  not the current sheet.
      f0eddd3f
  9. 21 Jun, 2003 3 commits
    • Andreas J. Guelzow's avatar
      initialize locale (stf_parse_options_free): free locale (stf_parse_sheet): · 716771ed
      Andreas J. Guelzow authored
      2003-06-21  Andreas J. Guelzow  <aguelzow@taliesin.ca>
      
      	* src/stf-parse.c (stf_parse_options_new): initialize locale
      	(stf_parse_options_free): free locale
      	(stf_parse_sheet): setup locale
      	(stf_parse_region): setup locale
      	* src/stf-parse.h : add locale to parseoptions
      	* src/stf.c (stf_store_results): setup locale
      
      2003-06-21  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* dialog-stf-format-page.c (locale_changed_cb): store locale in
      	  pagedata
      	* dialog-stf.c (stf_dialog): move locale to parseoptions
      716771ed
    • Andreas J. Guelzow's avatar
      free allocated memory since currency_date_format_init/shutdown may be · a0340aae
      Andreas J. Guelzow authored
      2003-06-21  Andreas J. Guelzow  <aguelzow@taliesin.ca>
      
      	* src/formats.c (currency_date_format_shutdown): free allocated
      	  memory since currency_date_format_init/shutdown may be called
      	  multiple time
      	(currency_date_format_init): Do not assume that data structures
      	  are in pristine state
      
      	* widget-locale-selector.c (fmt_dialog_enable_widgets):
      	  switch locales as appropriate
      	(number_format_selector_set_locale): don't switch them here
      a0340aae
    • Andreas J. Guelzow's avatar
      remove duplicated code by calling cb_do_print_ok · 35e94580
      Andreas J. Guelzow authored
      2003-06-20  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* dialog-printer-setup.c (cb_do_print): remove duplicated code
      	  by calling cb_do_print_ok
      
      	* src/print-info.c (print_info_new): set up (but disable) load of
      	  print-config from configuration string
      	* src/print.c (print_job_info_set_one_time_defaults): delete
      	(print_job_info_save_one_time_defaults): delete
      35e94580
  10. 20 Jun, 2003 3 commits
  11. 19 Jun, 2003 6 commits
    • Andreas J. Guelzow's avatar
      protect all parts of the locale from libcups · d215da2c
      Andreas J. Guelzow authored
      2003-06-19  Andreas J. Guelzow  <aguelzow@taliesin.ca>
      
      	* src/print-info.c (print_info_new): protect all parts of the
      	  locale from libcups
      d215da2c
    • Morten Welinder's avatar
      Return a UTF-8 string, not a char. All callers changed. · 56a5793d
      Morten Welinder authored
      2003-06-19  Morten Welinder  <terra@gnome.org>
      
      	* src/format.c (format_get_decimal, format_get_thousand): Return a
      	UTF-8 string, not a char.  All callers changed.
      56a5793d
    • Jon K Hellan's avatar
      Don't load any more workbooks if user closed splash. · 75874efb
      Jon K Hellan authored
      2003-06-19  Jon K Hellan  <hellan@acm.org>
      
      	* src/main-application.c (main): Don't load any more workbooks if
      	user closed splash.
      
      	* src/io-context-gtk.c (struct _IOContextGtk): Add 'interrupted'
      	member.
      	(cb_icg_window_destroyed): Don't abort, set 'interrupted' flag
      	instead, when user closes splash after the first file has been
      	shown.
      	(icg_init): Initialize 'interrupted'.
      
      	* src/io-context-gtk.[ch] (icg_get_interrupted): New. Return
      	'interrupted'.
      75874efb
    • Andreas J. Guelzow's avatar
      missed in last commit (broken pipe) · c50482ea
      Andreas J. Guelzow authored
      c50482ea
    • Andreas J. Guelzow's avatar
      spelling fixes · 6e6cffd4
      Andreas J. Guelzow authored
      6e6cffd4
    • Andreas J. Guelzow's avatar
      spelling fix spelling fix spelling fix · 2ad82574
      Andreas J. Guelzow authored
      2003-06-18  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* dialog-paste-special.c: spelling fix
      	* search-replace.glade: spelling fix
      	* search.glade: spelling fix
      
      	* analysis-tools.c: spelling fix
      
      	* reports-write.c: spelling fix
      
      	* src/file.c: spelling fixes
      	* src/format-template.c: spelling fixes
      	* src/formats.c: spelling fixes
      	* src/func-builtin.c: spelling fixes
      	* src/sheet-style.c: spelling fixes
      2ad82574