ChangeLog 355 KB
Newer Older
Morten Welinder's avatar
Morten Welinder committed
1 2
2003-06-29  Morten Welinder  <terra@gnome.org>

3 4 5 6
	* src/formats.c (style_format_percent, style_format_science,
	style_format_account, style_format_number): Simplify using
	g_string_append_len.

Morten Welinder's avatar
Morten Welinder committed
7 8
	* src/stf.c (stf_store_results): Don't switch locales here.

9 10 11 12 13 14 15 16 17 18 19
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

Jody Goldberg's avatar
Jody Goldberg committed
20 21 22 23 24 25
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.

26 27 28 29 30 31
2003-06-27  Andreas J. Guelzow  <aguelzow@taliesin.ca>

	http://bugzilla.gnome.org/show_bug.cgi?id=115503
	* src/formats.c (cell_format_classify): set the date related
	  FormatCharacteristics to something valid (not just to something sane)

32 33 34
2003-06-27  Morten Welinder  <terra@gnome.org>

	* src/rendered-value.c (cell_get_entered_text): Always quote
35
	string values starting with a quote.
36

37 38 39 40 41 42 43 44
2003-06-26  Jody Goldberg <jody@gnome.org>

	* src/gui-file.c (ask_for_file_saver) : ditto.
	* src/file.c (gnm_file_saver_save_to_stream_real) : delete.  We can
	  handle this via libgsf now.

	* src/workbook-control-gui-priv.h : some cleanup.

45 46 47 48 49
2003-06-27  Jon K Hellan  <hellan@acm.org>

	* src/workbook-control-gui-priv.h (struct _WorkbookControlGUI):
	Remove clipboard_paste_callback_data.

50 51 52 53 54 55 56 57 58
2003-06-26  Jon K Hellan  <hellan@acm.org>

	* src/gui-clipboard.c (struct GnmGtkClipboardCtxt): New struct,
	clipboard paste context.
	(complex_content_received): Request fallback format if paste
	doesn't succeed.
	(x_clipboard_received): Choose a table or spreadsheet format as
	preferred paste format, and a string format to fall back to.

Morten Welinder's avatar
Morten Welinder committed
59 60 61 62 63
2003-06-26  Morten Welinder  <terra@gnome.org>

	* src/stf-parse.c (stf_parse_options_guess): Improve separator
	guessing.

64 65
2003-06-25  Morten Welinder  <terra@gnome.org>

66 67 68
	* src/gui-util.c (gdk_cursor_new_from_pixbuf): Please leaks in
	stolen code...

69 70 71 72
	* src/expr.c (do_expr_as_string): Make this produce "(-2)^2", not
	"-2^2", to cut down on surprises.  Fix old bug in other
	()-insertion.

73 74 75 76 77
2003-06-25  Andreas J. Guelzow  <aguelzow@taliesin.ca>

	* src/func-builtin.c: change category name to match previous change 
	  in fn-math plugin

78 79 80 81 82 83
2003-06-25  Jon K Hellan  <hellan@acm.org>

	* src/gui-clipboard.c (x_clipboard_get_cb): Use
	gtk_selection_data_set_text when pasting as string. Makes pasting
	non Latin-1 work.

84 85 86 87 88 89
2003-06-24  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=115853
	* src/formats.c (style_format_number) : generate an _un_translated
	  format.

90 91 92 93 94
2003-06-24  Jon K Hellan  <hellan@acm.org>

	* src/gui-clipboard.c (x_clipboard_get_cb): Call
	gtk_selection_data_set with correct data flavour.

Morten Welinder's avatar
Morten Welinder committed
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
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.

128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
2003-06-24  Jon K Hellan  <hellan@acm.org>

	* 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.

	* src/file.[ch] (gnm_file_saver_get_save_scope): Constify.

Andreas J. Guelzow's avatar
Andreas J. Guelzow committed
147 148 149 150 151
2003-06-23  Andreas J. Guelzow  <aguelzow@taliesin.ca>

	* src/main-application.c (warn_about_ancient_gnumerics): change
	  Gnumeric URL
	
152 153
2003-06-23  Morten Welinder  <terra@gnome.org>

Morten Welinder's avatar
Morten Welinder committed
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
	* 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.

173 174 175
	* src/gui-util.h (GnmCursorType): Eliminate unused zoom and hand
	cursors.

176 177 178 179 180 181 182 183 184 185 186 187
	* 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.

188 189
2003-06-23  Jon K Hellan  <hellan@acm.org>

Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
190 191
	* src/gui-clipboard.c (OOO11_ATOM_NAME, complex_content_received,
	x_clipboard_received): New name in OpenOffice.org 1.1 Beta for
192 193
	OpenOffice XML clipboard target. Add it.

194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
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

210 211 212 213 214
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.

215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
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.

241 242 243 244 245 246 247 248 249
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

250 251 252 253 254 255 256 257
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

258 259 260 261 262 263 264
2003-06-20  Andreas J. Guelzow  <aguelzow@taliesin.ca>

	* 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

Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
265
2003-06-20  Jon K Hellan  <hellan@acm.org>
266 267 268 269 270 271

	* src/io-context-gtk.c (cb_realize): New. Called when splash is
	realized. Move placement logic here, and use natural size.
	(icg_show_gui): Register realize handler, move placement logic
	out, and get rid of explicit sizing.

272 273 274 275 276
2003-06-20  Andreas J. Guelzow  <aguelzow@taliesin.ca>

	* src/print.c (print_job_info_get): don't overwrite page layout
	  info with default.

277 278 279 280 281
2003-06-19  Andreas J. Guelzow  <aguelzow@taliesin.ca>

	* src/print-info.c (print_info_new): protect all parts of the
	  locale from libcups

282 283 284 285 286
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.

287 288 289 290 291 292 293 294 295 296 297 298 299 300 301
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'.

302 303 304 305
2003-06-19  Andreas J. Guelzow  <aguelzow@taliesin.ca>

	* format.c (update_lc): set locale_info_cached to TRUE

Andreas J. Guelzow's avatar
Andreas J. Guelzow committed
306 307 308 309 310
2003-06-18  Andreas J. Guelzow  <aguelzow@taliesin.ca>

	* src/GNOME_Gnumeric.xml: spelling fixes
	* schemas/gnumeric-general.schemas.in: spelling fixes

311 312 313 314 315 316 317 318
2003-06-18  Andreas J. Guelzow  <aguelzow@taliesin.ca>

	* 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

319 320 321 322 323
2003-06-18  Andreas J. Guelzow  <aguelzow@taliesin.ca>

	* src/gui-clipboard.c: call stf_dialog with new arguments
	* src/stf.c: call stf_dialog with new arguments

324 325 326 327 328 329 330 331 332 333 334
2003-06-18  Jon K Hellan  <hellan@acm.org>

	* src/io-context-gtk.c (struct _IOContextGtk): Add 'latency'
	member to help in startup time prediction.
	(icg_user_is_impatient): Try to predict startup time after
	ICG_POPUP_DELAY/3, and pop up splash if we predict startup to take
	> ICG_POPUP_DELAY.
	(icg_progress_set): Update progress before checking if it is time
	to show splash.
	(icg_init): Initialize latency.

Jon K Hellan's avatar
Jon K Hellan committed
335 336 337 338
2003-06-18  Jon K Hellan  <hellan@acm.org>

	* src/print-info.c: Include locale.h

339 340 341 342 343 344
2003-06-18  Andreas J. Guelzow  <aguelzow@taliesin.ca>

	* src/print-info.c (print_info_new): preserve the locale across
	  the call to gnome_print_config_default. 
	  (A workaround for a library bug.)

Morten Welinder's avatar
Morten Welinder committed
345 346
2003-06-17  Morten Welinder  <terra@gnome.org>

347 348 349 350 351
	* src/format.c (update_lc): New function to extract all lc info
	right away.
	(format_get_decimal, format_get_thousand, format_get_currency):
	Use it.

Morten Welinder's avatar
Morten Welinder committed
352 353 354
	* src/stf-parse.c (stf_parse_options_guess): Set sepchar in all
	cases.

355 356
2003-06-16  Morten Welinder  <terra@gnome.org>

Morten Welinder's avatar
Morten Welinder committed
357 358 359 360 361 362 363
	* src/gutils.c (gnm_guess_encoding): New function.

	* src/stf.c (stf_read_workbook_auto_csvtab): Properly decode file
	before inspecting.  Use stf_parse_options_guess.

	* src/stf-parse.c (stf_parse_options_guess): New function.

364 365 366
	* src/parse-util.c (sheetref_parse): Base on gnm_strunescape like
	parser.y's equivalent code.  Avoid unbounded stack usage.

Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
367 368 369 370 371
2003-06-14  Jon K Hellan  <hellan@acm.org>

	* src/sheet-object-graphic.c (sheet_object_graphic_user_config)
	(sheet_object_filled_user_config): Fix typo

372 373 374 375 376 377
2003-06-13  Jon K Hellan  <hellan@acm.org>

	* src/sheet-object-graphic.c (sheet_object_graphic_user_config)
	(sheet_object_filled_user_config): Turn off instant apply for
	color combos.

378 379
2003-06-13  Morten Welinder  <terra@gnome.org>

380 381 382
	* src/gui-clipboard.c (text_to_cell_region): Stop assuming
	nul-termination and stop copying the string.

383 384 385
	* src/workbook-control-gui.c (register_xml_ui): Change signature
	to using GCallback, not a bonobo type.

386 387
2003-06-12  Morten Welinder  <terra@gnome.org>

388 389 390
	* src/gui-clipboard.c (text_to_cell_region): Add fixed_encoding
	argument as for stf_dialog.  All callers changed.

391 392 393 394 395 396 397 398 399
	* src/stf-parse.c (compile_terminators): New function.
	(stf_parse_options_add_line_terminator,
	stf_parse_options_remove_line_terminator,
	stf_parse_options_clear_line_terminator): Call
	compile_terminators, fix memory ownership.
	(stf_parse_options_new): Set terminators using
	stf_parse_options_add_line_terminator.
	(compare_terminator): Speed up using compiled terminators.

Andreas J. Guelzow's avatar
Andreas J. Guelzow committed
400 401 402 403
2003-06-12  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* configure.in: added en_CA

404 405 406 407 408
2003-06-12  Andreas J. Guelzow <aguelzow@taliesin.ca>

	http://bugzilla.gnome.org/show_bug.cgi?id=114099
	* src/clipboard.h: change PASTE_DEFAULT to include comments

409 410
2003-06-12  Andreas J. Guelzow <aguelzow@taliesin.ca>

411
	* src/workbook-control-gui.c: Correct the description of the mean
412 413 414 415 416 417 418
	  test.
	* src/GNOME_Gnumeric.xml: ditto
	
2003-06-12  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/workbook-control-gui.c: Improve the description of the mean 
	  test. 
419

420 421 422 423
2003-06-11  Jody Goldberg <jody@gnome.org>

	* src/workbook-control-gui.c (workbook_setup_sheets) : Fix my
	  incorrect replacement on 2003-06-05.  show_border is something
424
	  completely different.  Use the properties instead of the old
425 426
	  accessors.

427 428 429 430 431 432 433 434 435
2003-06-11  Andreas J. Guelzow <aguelzow@taliesin.ca>

	for Evert Verhellen
	* src/GNOME_Gnumeric.xml: change Insert->Add/Modify Comment to
	  Edit->Comment
	* src/workbook-control-gui.c: ditto
	* src/sheet-control-gui.c: change pop-up Add/Modify comment to
	  Edit Comment
	
436 437 438 439 440 441 442 443 444 445
2003-06-11  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* schemas/gnumeric-plugins.schemas.in: new
	* schemas/Makefile.am: added schemas/gnumeric-plugin.schemas.in
	* src/gnumeric-gconf-priv.h: add gconf keys
	* src/gnumeric-gconf.c (gnm_gconf_set_latex_use_utf8): new
	* src/gnumeric-gconf.h: add latex_use_utf field
	(gnm_gconf_set_latex_use_utf8): new
	* schemas/.cvsignore: add schemas/gnumeric-plugin.schemas

Morten Welinder's avatar
Morten Welinder committed
446 447 448 449 450 451 452 453 454 455 456 457
2003-06-11  Morten Welinder  <terra@gnome.org>

	* src/stf-parse.h (StfParseOptions_t): Remove parselines member.

	* src/stf-parse.c (stf_parse_get_longest_row_width): Take a
	data_end pointer too.  Callers changed.
	(stf_parse_general): Ditto.
	(stf_parse_sheet): Ditto, but optional.
	(stf_parse_region): Ditto, but optional.
	(stf_parse_options_fixed_autodiscover): Ditto.  Remove data_lines arg.
	(stf_parse_options_set_lines_to_parse): Delete.

458 459 460 461 462
2003-06-11  Jody Goldberg <jody@gnome.org>

	* schemas/gnumeric-general.schemas.in : Make the default number of
	  sheets 3 to make things clearer in the documentation.

463 464
2003-06-11  Morten Welinder  <terra@gnome.org>

Morten Welinder's avatar
Delete.  
Morten Welinder committed
465 466 467 468 469
	* src/stf-parse.c (stf_parse_convert_to_unix): Delete.

	* src/gui-clipboard.c (text_to_cell_region): Don't muck with line
	endings.

470 471 472 473 474 475 476
	* src/stf-parse.c (stf_parse_options_fixed_autodiscover): Handle
	line terminators correctly.
	(stf_parse_get_longest_row_width): Ditto.
	(stf_parse_general): Properly skip line endings.
	(stf_parse_lines): Add parse option argument and use standard line
	ending parsing.  All callers changed.

477 478 479 480 481 482 483 484
	* src/gui-clipboard.c (complex_content_received): Handle all kinds
	of strings here too.
	(text_to_cell_region): Rename from x_clipboard_to_cell_region.
	Add optional encoding parameter and let data be in that encoding.
	Only allow simple one-line paste if we can translate to UTF-8.
	(x_clipboard_received): Put string targets into prioritized list.
	(text_received): Delete.

485 486 487 488 489 490
2003-06-11  Andreas J. Guelzow <aguelzow@taliesin.ca>

	http://bugzilla.gnome.org/show_bug.cgi?id=114777
	* src/stf-export.c (stf_export_cell): quote content before 
	converting it into some other encoding. (fix leaks on the side)

491 492 493 494 495 496 497 498 499 500 501 502 503
2003-06-10  Jody Goldberg <jody@gnome.org>

	* src/sheet-object-image.c (sheet_object_image_print) : fix.

	* src/sheet-object-graph.c (sheet_object_graph_update_bounds) :
	  Handle inversion.
	(sheet_object_graph_print) : implement.

	* src/format-template.c (format_template_transform_edges) : minor
	  pedantic reordering.

	* src/print.c (print_sheet_objects) : handle inverted objects.

504 505
2003-06-10  Morten Welinder  <terra@gnome.org>

506 507 508
	* src/workbook-edit.c (wbcg_edit_start): Make sure we only mark
	ranges when we are dealing with a formula.

Morten Welinder's avatar
Morten Welinder committed
509 510
	* src/format-template.c: Apply flame thrower.

511 512 513 514 515 516 517 518 519 520 521 522 523 524
	* src/stf.c (stf_read_workbook): Make filename handling UTF-8
	safe.
	* src/workbook-view.c (wb_view_attach_control): Ditto.
	(wb_view_save): Ditto.
	(workbook_view_new): Ditto.
	(wbv_save_to_file): Ditto.
	* src/workbook.c (workbook_set_filename): Ditto.
	* src/print-info.c (render_file): Ditto.
	* src/gui-file.c (can_try_save_to): Ditto.

	* src/workbook.c (workbook_get_filename_utf8): New function.

	* src/gutils.c (gnumeric_valid_filename): Delete.  No longer useful.

525 526 527 528 529
2003-06-10  Abel Cheung  <maddog@linux.org.hk>

	* configure.in: Removed en_CA and en_AU from ALL_LINGUAS. They are
	  dummy translations now.

530 531 532 533 534 535
2003-06-09  Jody Goldberg <jody@gnome.org>

	* src/format-template.c (xml_read_format_col_row_info) : remove use of
	  get_child_by_name.
	(xml_read_format_template_member) : ditto.

Morten Welinder's avatar
Morten Welinder committed
536 537 538 539
2003-06-09  Morten Welinder  <terra@gnome.org>

	* src/format-template.c (format_template_transform_edges): Plug
	leak.
540 541
	* src/gnm-marshalers.list: Add stuff from gal.
	* src/*.c: change to use imported gal widgets.
Morten Welinder's avatar
Morten Welinder committed
542

543 544 545 546
2003-06-09  Jody Goldberg <jody@gnome.org>

	* src/application.c (gnumeric_application_finalize) : patch a leak.

547 548 549 550 551 552 553 554 555 556 557 558
2003-06-09  Jody Goldberg <jody@gnome.org>

	* src/preview-grid.c : Major reorg.
	  Convert the signals into virtuals.
	  Add default value, and style methods
	  Convert from GtkArg -> GParam
	  Begin fixing _draw to support positions other than 0,0
	  Update queus a redraw

	* src/file-autoft.c (category_group_list_find_category_by_name) : delete
	* src/Makefile.am : add preview-grid-impl.h

J.H.M. Dassen (Ray)'s avatar
J.H.M. Dassen (Ray) committed
559 560 561 562
2003-06-09  J.H.M. Dassen (Ray) <jdassen@debian.org>

	* debian/*: Updated from latest package.

Morten Welinder's avatar
Morten Welinder committed
563 564 565 566
2003-06-09  Morten Welinder  <terra@gnome.org>

	* src/mathfunc.c (mathfunc_init): Turn off SIGFPE in here.

Jean Brefort's avatar
Jean Brefort committed
567 568
2003-06-08  Jody Goldberg <jody@gnome.org>

569 570 571 572
	* src/style.h : DEFAULT size in the schemas is 10, use it here too.

	* schemas/gnumeric-general.schemas.in : Use valid english.

Jean Brefort's avatar
Jean Brefort committed
573 574 575 576 577 578
	* Makefile.am : do not include the .server or .server.in files in the
	  distribution.
	* src/Makefile.am (ui_DATA) : be absolutely anal about
	  gnumeric-paths.h, generate it early, and do not include it in the
	  distribution.

Jody Goldberg's avatar
Jody Goldberg committed
579 580 581 582
2003-06-07  Jody Goldberg <jody@gnome.org>

	* configure.in : bump again

Jody Goldberg's avatar
Jody Goldberg committed
583 584 585 586 587 588 589 590 591 592 593 594 595 596
2003-06-07  Jody Goldberg <jody@gnome.org>

	* Release 1.1.19

2003-06-07  Jody Goldberg <jody@gnome.org>

	* src/Makefile.am : Suck it up and ignore the make warnings about
	  circular dependencies.   automake-1.4 pisses me off.

2003-06-07  Jody Goldberg <jody@gnome.org>

	* src/dependent.c (link_expr_dep) : be more anal in case something
	  unexpected gets in.

Jody Goldberg's avatar
Jody Goldberg committed
597 598 599 600
2003-06-07  Jody Goldberg <jody@gnome.org>

	* configure.in : post release bump

Jody Goldberg's avatar
Jody Goldberg committed
601 602 603 604
2003-06-07  Jody Goldberg <jody@gnome.org>

	* Release 1.1.18

Morten Welinder's avatar
Morten Welinder committed
605 606
2003-06-06  Morten Welinder  <terra@gnome.org>

607 608 609 610 611 612 613
	* src/style-border.c (style_border_set_gc_dash): Work around a
	missing const in gdk.
	(*_line, *_pattern): constify.

	* src/style-color.c (gnumeric_color_shutdown): Unref
	black/white/grid colors.  Print leaks.

Morten Welinder's avatar
Morten Welinder committed
614
	* src/format.c (number_format_shutdown): Print leaks.
615
	(number_format_shutdown): Unref default formats.
616
	(format_destroy): Make static.
Morten Welinder's avatar
Morten Welinder committed
617

Jody Goldberg's avatar
Jody Goldberg committed
618 619
2003-06-06  Jody Goldberg <jody@gnome.org>

620 621 622 623 624 625
	* src/sheet.c (sheet_colrow_delete_finish) : This is bad practice and
	  should not really be here.  However, we need to ensure that update is
	  run before sv_panes_insdel_colrow plays with frozen panes, updating
	  those can trigger redraws before sheet_update has been called.
	(sheet_colrow_insert_finish) : ditto.

Jody Goldberg's avatar
Jody Goldberg committed
626 627 628
	* configure.in : bump gsf req.
	* README : ditto.

629 630 631 632
2003-06-06  Jody Goldberg <jody@gnome.org>

	* src/bonobo-io.c (gnm_persist_stream_load) : warning suppression.

633 634 635 636 637 638 639 640 641 642 643 644 645 646 647
2003-06-06  Morten Welinder  <terra@gnome.org>

	* src/item-bar.c (struct _ItemBar): Add normal_font_ascent and
	bold_font_ascent fields.  Change normal_font and bold_font to
	PangoFonts.
	(item_bar_calc_size): Set font and ascent fields.
	(ib_draw_cell): Use them.
	(item_bar_normal_font): Change to return a pango font.
	(ib_fonts_unref): Use g_object_unref, not style_font_unref.
	(ib_draw_cell): Use the right font for shaping.  (This prevents
	the bold dancing effect.)

	* src/sheet-control-gui.c (scg_setup_group_buttons): Match
	item_bar_normal_font change.

648 649
	* src/style.c (font_init): Don't export gnumeric_default_font, but
	gnumeric_default_font_width instead.  Single user changed.
650 651 652
	(style_font_string_width): Make static.
	(style_font_get_height): Delete.

653 654
2003-06-05  Jody Goldberg <jody@gnome.org>

655 656
	* src/gnumeric-gconf.c (gnm_gconf_rm_notification) : delete.

657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740
	* 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

741 742
2003-06-05  Morten Welinder  <terra@gnome.org>

Morten Welinder's avatar
Delete.  
Morten Welinder committed
743 744 745 746 747 748 749
	* 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.

750 751 752
	* src/stf.c (stf_preparse): Butcher this.  Don't do encodings
	here.

753 754
2003-06-04  Morten Welinder  <terra@gnome.org>

755 756 757 758 759 760
	* src/stf.c (stf_store_results): Fix off-by-one and missing base
	error in setting formats.

	* src/gui-clipboard.c (x_clipboard_to_cell_region): Fix off-by-one
	error in setting formats.

761 762 763
	* src/stf-parse.c (stf_parse_region): Quote anything that might be
	an expression.  Still not brilliant, but better.

764 765 766 767 768
2003-06-04  Jody Goldberg <jody@gnome.org>

	* src/sheet-filter.c (cb_filter_button_press) : this seems simpler,
	  and catches clicking on other buttons to close the popup.

769 770 771 772 773 774 775 776 777 778 779 780
2003-06-03  Jody Goldberg <jody@gnome.org>

	For Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>
	http://bugzilla.gnome.org/show_bug.cgi?id=112713
	* src/gui-utils.[ch] 
	(gnumeric_button_new_with_stock_image) : new
	(gnumeric_add_dialog_button) : new
	(gnumeric_message_dialog_new) : new
	* src/workbook-control-gui.c
	(workbook_close_if_user_permits) : build a HIG compliant 
	confirmation dialog

781 782
2003-06-03  Jody Goldberg <jody@gnome.org>

783 784 785 786
	* src/sheet.c (sheet_row_size_fit_pixels) : delete the old hack to
	  work around granular font sizes and take out the +1 for the grid
	  line

787 788 789 790 791
	* src/sheet-filter.c (gnm_filter_remove) : make filterered rows
	  visible.
	* src/workbook-control-gui.c (cb_auto_filter) : sheet_update on remove
	  too.

792 793 794
	* src/item-cursor.c : clear out deprecated GtkObject::Arg goo.
	(item_cursor_draw) : pixel noise drawing zero sized animated cursors.

795 796
2003-06-03  Jody Goldberg <jody@gnome.org>

797 798
	* src/sheet.h : delete some non-existant decls.

799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827
	* 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.

828 829 830 831 832 833
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.

834 835 836 837 838 839 840
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.

841 842
2003-06-02  Morten Welinder  <terra@gnome.org>

843 844 845 846 847
	* 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.

848 849 850 851 852 853 854 855 856 857 858
	* 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.

859 860
	* src/print.c (sheet_print): Display preview on the right display.

Morten Welinder's avatar
Morten Welinder committed
861 862
	* src/gui-util.c (gnm_link_button_and_entry): New function.

863 864 865
	* src/commands.c (cmd_analysis_tool): Clarify memory ownership
	rules and adhere to them.  Plug leak.

866
	* src/item-edit.c (ie_layout): Handle ->layout properly so it
867 868
	doesn't get leaked.

869 870 871 872 873 874 875
2003-06-01  Jody Goldberg <jody@gnome.org>

	* src/sheet-object.c (sheet_objects_relocate) : check for
	  move_with_cells.
	(sheet_object_init) : init move_with_cells.

	* src/sheet-filter.c (filter_field_init) : new.
876 877 878 879

	* src/workbook-control-gui.c (cb_auto_filter) : update the menu when
	  adding or removing a filter.

880 881
2003-05-31  Jody Goldberg <jody@gnome.org>

882 883 884 885
	http://bugzilla.gnome.org/show_bug.cgi?id=114084
	* src/parser.y (find_matching_close) : Generated spurious paren errors
	  because gnm_strunescape points to the first char after the string
	  then we incremented.
886
	(yylex) : As long as we're down here tack on a bit of user
887 888 889 890
	  friendliness in the face of spaces.  If we know they can't be
	  operators based on the token we're returning ignore them to help the
	  users out.

891 892 893
	http://bugzilla.gnome.org/show_bug.cgi?id=114147.
	* src/sheet.c (sheet_clone_colrow_info) : copy max outline level too.

894 895 896 897
	http://bugzilla.gnome.org/show_bug.cgi?id=114151.
	* src/commands.c (cmd_selection_outline_change) : minor thinko when
	  implementing inverted placement.

898 899 900 901
	* src/sheet-control-gui.c (scg_setup_group_buttons) : honour the
	  sheet::display_outline flag.  We could probably move these to the
	  SheetView.

902 903 904 905 906 907 908
	* src/parser.y (parser_sheet_by_name) : don't leak the arguments when
	  attempting to parse an expression with an unknown function name.

	http://bugzilla.gnome.org/show_bug.cgi?id=114144.
	* src/workbook-control-gui.c (wbcg_validation_msg) : add accelerators
	  for the buttons.

909 910 911 912
	http://bugzilla.gnome.org/show_bug.cgi?id=114097.
	* src/sheet-object-widget.c : while we're in here clean up a bit.
	(cb_checkbox_label_changed) : doh!

913 914 915 916 917 918
	http://bugzilla.gnome.org/show_bug.cgi?id=114079.
	* src/colrow.c (colrow_get_states) : a difference in the default state
	  will also split a run. (fixes crash #2)
	* src/sheet-merge.c (sheet_merge_remove) : don't free range until
	  after we're through using r.  Just in case they are the same.

919 920 921
	* src/workbook-control-gui.c (cb_view_freeze_panes) : base the
	  decision to use default position on the last visible, not last full.

922 923 924
	* src/gnumeric-pane.c (cb_sheet_object_canvas_event) : don't freak out
	  if we can't edit the seleted object.

925 926 927 928 929 930 931
	* src/xml-io.c (xml_read_style) : target needs a function, it is not a
	  GObject::param.

	* src/dialogs/dialog-hyperlink.c (dialog_hyperlink) : we need to
	  register the types earlier.  Move the calls from here.
	* src/libgnumeric.c (gnm_common_init) : to here.

932 933 934
	* src/gui-util.c (gnumeric_error_info_dialog_new) : make the close
	  button the default.

935 936 937
	* src/validation.c (validation_eval) : fix typo that passed the type
	  as the style. Unique to 1.1.x

938 939 940 941 942 943 944 945 946 947 948 949 950 951
2003-05-31  Jody Goldberg <jody@gnome.org>

	* src/workbook-edit.c (wbcg_edit_finish) : add an optional flag to
	  indicate if a dialog was displayed.  This is necessary for only 1
	  caller.
	* src/validation.c (validation_eval) : add the dialog needed flag here
	  too.
	* src/item-grid.c (item_grid_button_press) : don't start dragging or
	  showing a menu.  If there was a validation dialog we already ignored
	  the corresponding button release.

	* src/tools/fill-series.c (do_row_filling) : only clip the fill with
	  the selection if the stoping value is not set.  Add a bounds test.
	(do_column_filling) : ditto.
952 953

	* src/GNOME_Gnumeric.xml : disable unimplemented import external.
954 955
	  Give Fill -> Series & Merge mnemonics
	  s/Graph/Chart/
956 957
	* src/workbook-control-gui.c : ditto.

Morten Welinder's avatar
Morten Welinder committed
958 959
2003-05-30  Morten Welinder  <terra@gnome.org>

Morten Welinder's avatar
Morten Welinder committed
960 961
	* src/workbook-control.c (wb_control_parse_and_jump): Fix 114045.

962 963 964 965 966 967 968 969
	* src/style.c: Eliminate gnumeric_default_bold_font and
	gnumeric_default_italic_font.
	(style_font_new): Apply a simpler fall-back scheme that will work
	for bold & italic also.
	(style_shutdown): Greatly simplify now that
	gnumeric_default_bold_font and gnumeric_default_italic_font are
	gone.

Morten Welinder's avatar
Morten Welinder committed
970 971 972
	* src/mstyle.c (mstyle_link_sheet): Avoid referring to
	possibly-freed pointer.

973 974 975 976 977 978 979 980 981
2003-05-30  Morten Welinder  <terra@gnome.org>

	* src/mstyle.c (mstyle_init, mstyle_shutdown): New functions.
	(mstyle_new, mstyle_copy, mstyle_copy_merge, mstyle_unref): Use
	mstyle pool.

	* src/libgnumeric.c (gnm_common_init): Init mstyles.
	(gnm_shutdown): Shut them down.

982 983 984 985
2003-05-28  Jody Goldberg <jody@gnome.org>

	* configure.in : Add he to ALL_LINGUAS

Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
986 987 988 989
2003-05-27  Jon K Hellan  <hellan@acm.org>

	* src/main-component.c: Include gnumeric-paths.h.

Morten Welinder's avatar
Morten Welinder committed
990 991
2003-05-27  Morten Welinder  <terra@gnome.org>

Morten Welinder's avatar
Morten Welinder committed
992 993 994
	* src/style-border.c (style_border_none_set_color): Fix ref count
	leak.

Morten Welinder's avatar
Morten Welinder committed
995 996 997 998 999 1000 1001 1002
	* src/style.c (style_font_new_simple): Fix warning text.

	* src/gnumeric-pane.h (struct _GnumericPane): cursor_type is of
	type GnmCursorType, not int.

	* src/item-grid.c (cb_cursor_motion): Ditto for cursor.
	* src/sheet-control-gui.c (scg_set_display_cursor): Ditto.

Jody Goldberg's avatar
Jody Goldberg committed
1003 1004 1005 1006 1007 1008 1009 1010 1011 1012
2003-05-24  Jody Goldberg <jody@gnome.org>

	* src/workbook-control-gui.c (cb_sheet_label_drag_begin) : remove
	  deprecation.

2003-05-23  Jody Goldberg <jody@gnome.org>

	* src/selection.c (sv_selection_to_plot) : skip the dimension if its
	  can't be filled, don't just keep looking for data to put in it.

1013 1014
2003-05-23  Morten Welinder  <terra@gnome.org>

Morten Welinder's avatar
Morten Welinder committed
1015 1016
	* src/style-border.c (style_border_get_gc): Fix ref count error.

1017 1018 1019 1020 1021 1022
	* src/gnumeric-pane.c (set_acetate_coords): Create bitmap on the
	right display.

	* src/pattern.c (gnumeric_pattern_get_stipple): Take drawable
	argument for identifying screen that bitmaps need to be valid on.

1023 1024 1025
	* src/workbook-format-toolbar.c (workbook_create_format_toolbar):
	Switch font and size selectors to gnm_combo_text.

1026 1027 1028 1029
	* src/gui-util.c (gnm_cursor_set_widget): New function, cloned
	from GAL's e_cursor_set_widget which isn't multihead safe.  Some
	GAL stuff imported.  All callers changed.

1030 1031 1032
	* src/pattern.c (gnumeric_background_set_gc): Batching is back per
	Jody's request.  The multihead issues remain fixed, though.

1033 1034
2003-05-22  Morten Welinder  <terra@gnome.org>

Morten Welinder's avatar
Morten Welinder committed
1035 1036 1037 1038 1039 1040
	* src/style-color.c (style_color_new_uninterned): Set bogus .pixel
	values.

	* src/pattern.c (gnumeric_background_set_gc): Don't batch, gdk
	already does that.  Don't assume .pixel for colours.

1041 1042 1043 1044
	* src/gui-clipboard.c (x_claim_clipboard): Get the clipboard from
	the right display.
	(x_request_clipboard): Ditto.

1045 1046 1047 1048 1049 1050 1051
	* src/clipboard.c (cellregion_to_string): Take a pango context
	parameter.  Use that instead of faking it.

	* src/gui-clipboard.c (x_clipboard_get_cb): Make this take a wbcg
	which is what it already gets.  Use that to get a pango context to
	send to cellregion_to_string.

1052 1053 1054
	* src/item-bar.c (item_bar_realize): Set cursor for the right
	display.

1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070
	* src/workbook-control-gui.c (workbook_control_gui_new): Extra
	argument here is a GdkScreen pointer.  Supply that to
	workbook_control_gui_init.  All callers changed.

	* src/workbook-control-priv.h (WorkbookControlClass): Add extra
	parameter to control_new method.

	* src/workbook-control.c (wb_control_wrapper_new): Add "extra"
	argument here also and supply it to control_new.  All callers
	changed.

	* src/workbook-control-gui.c (workbook_control_gui_init): Make
	static.  Take extra GdkScreen parameter and set the new screen
	asap before we go creating pango contexts and gcs relating to the
	default screen.  All callers changed.

1071 1072
2003-05-22  Jody Goldberg <jody@gnome.org>

1073 1074 1075
	* src/dependent.c (dependents_relocate) : cells optionally don't
	  relink, but objects must for now.

1076 1077 1078
	* src/expr.c (cellrange_relocate) : fix logic inversion introduced
	  when I removed the unnecessary heuristic on 2003-05-16.

1079 1080 1081 1082 1083 1084 1085 1086
2003-05-22  Morten Welinder  <terra@gnome.org>

	* src/workbook-control-gui.c (workbook_menu_view): Combine the two
	New-View entries into one.
	(workbook_control_gui_init): Fix reference to freeze-panes menu
	entry.
	(cb_view_new): New function just calling the dialog.

Jody Goldberg's avatar
Jody Goldberg committed
1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099
2003-05-21  Jody Goldberg <jody@gnome.org>

	* src/item-edit.c : General de-cruftification.
	  - Move from GtkObject -> GObject
	  - Use set_property rather than set_args
	  - Remove pointless inclusion of sheet-control-gui-priv.h
	  (ie_layout) : rename from recalc_spans, move the
	  PangoLayout generation from _draw in here because it was more
	  advanced and cache the layout.

	* Makefile.am : don't clean the .server file it is generated by
	autoconf and a real pain to regenerate

1100 1101
2003-05-21  Morten Welinder  <terra@gnome.org>

1102 1103 1104
	* src/gui-util.c (cb_free_keyed_dialog_context): Set the
	KeyedDialog property on the right object.

1105 1106 1107 1108 1109 1110 1111 1112 1113
	* src/style-border.h (struct _StyleBorder): Add gc_screen field to
	track the screen that gc belongs to.

	* src/style-border.c (style_border_get_gc): Manage gc_screen.
	(style_border_unref): Ditto.

	* src/workbook-control-gui.c (workbook_create_standard_toolbar):
	Get pango context from toplevel widget.

1114 1115 1116 1117
	* src/preview-grid.c (preview_grid_draw): Get pango context from
	widget and pass it to pg_construct_cell.
	(pg_construct_cell): Remove bogus context construction from here.

1118 1119
2003-05-20  Morten Welinder  <terra@gnome.org>

1120 1121 1122 1123 1124 1125
	* src/style-border.c (style_border_set_gc_dash): Set the
	background colour as previosly, not the foreground.  Ugh.

	* src/sheet-control-gui.c (sheet_control_gui_new): Use
	g_object_set_data, not gtk_object_set_data.

1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140
	* src/style-border.c (style_border_set_gc_dash): Use
	gdk_gc_set_rgb_fg_color, not gdk_gc_set_foreground.  USe
	gdk_gc_set_rgb_bg_color, not gdk_gc_set_background.
	(style_border_none_set_color): Ditto.
	(style_border_get_gc): Ditto.

	* src/item-grid.c (item_grid_realize): Ditto.
	* src/item-cursor.c (item_cursor_draw): Ditto.
	* src/pattern.c (gnumeric_background_set_pc): Ditto.  (#if 0'ed.)
	(gnumeric_background_set_gc): Ditto, more or less.

	* src/preview-grid.c (preview_grid_realize): Plug "white" out of
	the style.  Use gdk_gc_set_rgb_fg_color, not
	gdk_gc_set_foreground.

1141 1142 1143
	* src/gnumeric-canvas.c (gnm_canvas_realize): Plug "white" out of
	the style.

1144 1145 1146
	* src/style-color.c (gnumeric_color_init): Make gs_yellow,
	gs_white, gs_black, gs_dark_gray, gs_light_gray, and gs_lavender
	unallocated colours.  Eliminate unused gs_red.
1147 1148 1149 1150

	* src/item-bar.c (item_bar_realize): Use gdk_gc_set_rgb_fg_color,
	not gdk_gc_set_foreground for multi-head support.

1151 1152 1153 1154 1155 1156
	* src/style-color.h (struct _StyleColor): Remove redundant red,
	green, and blue members.  All users changed to use color member.

	* src/style-color.c (color_hash): Improve hash function (as if it
	mattered).

1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170
2003-05-20  Jody Goldberg <jody@gnome.org>

	* src/sheet-object-graph.c (sheet_object_graph_remove_from_sheet) : new.
	(sheet_object_graph_class_init) : hook it up.

	* src/graph.c (gnm_go_data_vector_finalize) : free the values too.
	(gnm_go_data_scalar_set_sheet) : handle unlinking too.
	(gnm_go_data_vector_load_len) : only free the buffer if the length
	  changed.
	(gnm_go_data_vector_set_sheet) : ditto.
	(cb_assign_val) : be smarter and collect min/max and do decent end
	  checking.
	(nm_go_data_vector_load_values) : use the additional information.

1171 1172 1173 1174 1175 1176 1177 1178
2003-05-19  Jody Goldberg <jody@gnome.org>

	* src/workbook-control-gui.c (wbcg_sheet_focus) : set the scg earlier
	  as soon as the sheet gets focus.

	* configure.in : remove -Wsign-promo according to gcc-3.3 it is only
	  valid for C++ now.

1179 1180
2003-05-19  Morten Welinder  <terra@gnome.org>

1181 1182 1183 1184
	* src/history.c (file_history_cmd): Use GObject methods.
	(history_menu_item_create): Ditto.
	* src/gui-util.c (popup_item_activate): Ditto.

1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202
	* src/workbook-control-gui.c (workbook_create_standard_toolbar):
	Use gtk_widget_set_size_request, not gtk_widget_set_usize.
	(workbook_setup_auto_calc): Ditto.
	(show_gui): Ditto.
	(workbook_setup_edit_area): Ditto.  Also don't use an arbitrary
	pixel count.

	* src/workbook-format-toolbar.c (workbook_create_format_toolbar):
	Use gtk_widget_set_size_request, not gtk_widget_set_usize.

	* src/gui-util.c (gnumeric_error_info_dialog_new): Use
	gtk_widget_set_size_request, not gtk_widget_set_usize.  Also base
	size of window on screen size, not arbitrary pixel counts.

	* src/sheet-control-gui.c (scg_setup_group_buttons, scg_resize,
	scg_resize): Use gtk_widget_set_size_request, not
	gtk_widget_set_usize.

Morten Welinder's avatar
Morten Welinder committed
1203 1204
	* src/workbook-format-toolbar.c: Avoid GNOME deprecated pixmaps.

1205 1206 1207
	* src/libgnumeric.c (gnm_common_init): Use glade_init, not
	glade_gnome_init.

1208 1209 1210 1211 1212 1213
	* src/gui-util.c (gnumeric_position_tooltip): Use gtk_window_move,
	not deprecated gtk_widget_set_uposition.
	(gnumeric_clist_moveto): Use "void *" as arg instead of deprecated
	"GtkCList *" so the many includers of gui-util.h do not get
	punished.

1214 1215 1216 1217
2003-05-18  Morten Welinder  <terra@gnome.org>

	* src/*.c: Eliminate obvious deprecated stuff.

1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229
2003-05-16  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=106148.
	* src/expr.c (cellrange_relocate) : remove previous hack.  We're not
	  changing the expression so don't pretend to.  The right solution is.
	* src/dependent.c (dependents_relocate) : here.
	  Even if the expression does not change queue it for recalc.  We know
	  it depends on the region, so it needs to recalc.

	* src/sheet.c (sheet_move_range) : queue dependencies of target region
	  for recalc their expressions may not change but the content will.

1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240
2003-05-16  Morten Welinder  <terra@gnome.org>

	* src/workbook-control-gui.c (workbook_setup_auto_calc,
	workbook_create_standard_toolbar): Use gnm_measure_string instead
	of incorrect and deprecated GdkFont stuff.

	* src/workbook-format-toolbar.c (workbook_create_format_toolbar):
	Ditto.

	* src/gui-util.c (gnm_measure_string): New function.

1241 1242 1243 1244
2003-05-15  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/stf-parse.c (stf_parse_csv_cell): remove debug spew

Andreas J. Guelzow's avatar
Andreas J. Guelzow committed
1245 1246 1247 1248 1249
2003-05-14  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/GNOME_Gnumeric.xml: Fix spelling
	* src/workbook-control-gui.c: ditto

1250 1251
2003-05-14  Jody Goldberg <jody@gnome.org>

Jody Goldberg's avatar
Jody Goldberg committed
1252 1253 1254
	* src/workbook-control-gui.c (cb_notebook_switch_page) : set the edit
	  line's scg if we are not in the middle of a rangesel.

1255 1256 1257 1258 1259 1260
	* src/xml-io.c (xml_read_names) : revert my previous error.
	  We can't use parse_pos_init_sheet here because it will fail in the
	  context of workbook level names.

	* src/position.c (parse_pos_init_sheet) : check for that.

1261 1262 1263 1264 1265
2003-05-14  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/gui-file.c (gui_file_open): change in charmap_selector_new
	  arguments

1266 1267
2003-05-14  Morten Welinder  <terra@gnome.org>

1268 1269 1270
	* src/gutils.c (ldexpgnum): Use gnm_pinf and gnm_ninf.
	* src/regression.c (general_linear_regression): Ditto.

1271 1272 1273
	* src/mathfunc.c (mathfunc_init): Generate gnm_pinf and gnm_ninf
	also.  Try much harder at making a NaN.

1274 1275 1276 1277
	* src/stf-export.c (stf_export_can_transliterate): Don't use
	fallback.  I think we want it to fail if it cannot transliterate
	the test string.

1278 1279
	* src/stf-export.h (StfExportOptions_t): Make quoting_char and
	cell_separator gunichars.
1280

1281 1282
	* src/stf-export.c (stf_export_options_set_quoting_char,
	stf_export_options_set_cell_separator): Ditto.
1283 1284
	(stf_export_cell): Handle gunichar quoting.

Jody Goldberg's avatar
Jody Goldberg committed
1285 1286 1287 1288
2003-05-13  Jody Goldberg <jody@gnome.org>

	* schemas/gnumeric-general.schemas.in : Sans 10 is the default font

1289 1290
2003-05-13  Morten Welinder  <terra@gnome.org>

1291 1292 1293
	* src/stf.c (stf_read_workbook): Set an error message so cancels
	won't cause blank books.

1294 1295 1296 1297
	* src/mathfunc.c (random_binomial): Use qbinom for sane time
	consumption.
	(random_negbinom): Use qnbinom for sane time consumption.

1298 1299 1300 1301 1302 1303
2003-05-13  Jody Goldberg <jody@gnome.org>

	* src/gui-file.c (gui_file_open) : add mnemonics for the type and
	  encoding selector.
	(file_format_changed_cb) : desensitize the label as well as the menu.

Jody Goldberg's avatar
Jody Goldberg committed
1304 1305 1306 1307
2003-05-13  Jody Goldberg <jody@gnome.org>

	* src/pattern.c (gnumeric_pattern_get_stipple) : fence post.

Morten Welinder's avatar
Morten Welinder committed
1308 1309 1310 1311
2003-05-13  Morten Welinder  <terra@gnome.org>

	* src/stf-parse.c (trim_spaces_inplace): Make UTF-8 safe.

Morten Welinder's avatar
Morten Welinder committed
1312 1313
2003-05-12  Morten Welinder  <terra@gnome.org>

1314 1315 1316
	* src/stf.c (stf_open_and_read): Fix crash on errors and empty
	files.  Fix return value for empty files.

Morten Welinder's avatar
Morten Welinder committed
1317 1318 1319
	* src/xml-io.c (gnumeric_xml_write_workbook): Fix broken object
	handling.

1320 1321
2003-05-12  Andreas J. Guelzow <aguelzow@taliesin.ca>

Morten Welinder's avatar
Morten Welinder committed
1322
	* src/stf-parse.c (compare_terminator) : return the byte
1323 1324 1325
	  length of the used terminator
	(stf_parse_paresoptions_new): initialize the string indicator
	  to our default
Morten Welinder's avatar
Morten Welinder committed
1326
	(stf_parse_next_token): pass all parse options, check also for
1327
	  separators and terminators
Morten Welinder's avatar
Morten Welinder committed
1328
	(stf_parse_options_csv_set_stringindicator): the string
1329
	  indicator could be a non-ascii character
Morten Welinder's avatar
Morten Welinder committed
1330
	(stf_parse_csv_cell): use the type information returned by
1331 1332 1333 1334 1335 1336 1337 1338
	  stf_parse_next_token
	(stf_parse_eat_separators): Don't eat null bytes.
	(stf_parse_get_rowcount): use stf_parse_next_token to avoid
	  counting in-string newlines
	* src/stf-parse.h (stf_parse_next_token): pass all parse
	  options
	(stf_parse_options_csv_set_stringindicator): the string
	  indicator could be a non-ascii character
1339 1340
	* src/stf.c (stf_read_workbook_auto_csvtab): stf_parse_next_token
	  now needs a parseoption
1341

Jody Goldberg's avatar
Jody Goldberg committed
1342 1343 1344 1345
2003-05-12  Jody Goldberg <jody@gnome.org>

	* omf-install/Makefile.am : add missing ;

Jody Goldberg's avatar
Jody Goldberg committed
1346 1347 1348 1349
2003-05-12  Jody Goldberg <jody@gnome.org>

	* configure.in : post release version bump

Jody Goldberg's avatar
Jody Goldberg committed
1350 1351 1352 1353
2003-05-11  Jody Goldberg <jody@gnome.org>

	* Release 1.1.17

Jody Goldberg's avatar
Jody Goldberg committed
1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365
2003-05-09  Jody Goldberg <jody@gnome.org>

	* src/item-edit.c (item_edit_set_arg) : Use connect_object and
	  simplify the detroy function
	(item_edit_destroy) : by not having to recall the handler ids.

2003-05-09  Jody Goldberg <jody@gnome.org>

	* src/workbook-control-gui.c (cb_data_pivottable) : disable until it
	  does something.
	* src/GNOME_Gnumeric.xml : ditto.

1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384
2003-05-10  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/stf-parse.c (comp_term): handle multibyte terminals
	(compare_terminator): check all terminators
	(stf_parse_options_new): initialize terminator list
	(stf_parse_options_free): free terminator list
	(long_string_first): new
	(stf_parse_options_set_line_terminator_char): deleted
	(stf_parse_options_set_line_terminator): deleted
	(stf_parse_options_clear_line_terminator): new
	(stf_parse_options_add_line_terminator): new
	(stf_parse_options_remove_line_terminator): new
	* src/stf-parse.h: Change type of StfParseOptions_t->
	  terminator
	(stf_parse_options_set_line_terminator_char): deleted
	(stf_parse_options_set_line_terminator): deleted
	(stf_parse_options_clear_line_terminator): new
	(stf_parse_options_add_line_terminator): new
	(stf_parse_options_remove_line_terminator): new
Morten Welinder's avatar
Morten Welinder committed
1385

1386

1387 1388 1389
2003-05-10  Andreas J. Guelzow <aguelzow@taliesin.ca>

	http://bugzilla.gnome.org/show_bug.cgi?id=99649
Morten Welinder's avatar
Morten Welinder committed
1390 1391
	* src/GNOME_Gnumeric.xml: insert separator between Open and
	  Save of the File menu.
1392 1393 1394
	* src/workbook-control-gui.c (workbook_menu_file): ditto


1395 1396 1397 1398 1399
2003-05-10  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* stf-export.c (stf_export_cell): transliterate if
	  requested
	(stf_export_options_set_transliterate_mode): new
Morten Welinder's avatar
Morten Welinder committed
1400
	(stf_export_can_transliterate): new
1401 1402 1403 1404 1405

	* stf-export.h: Add StfTransliterateMode_t
	(stf_export_options_set_transliterate_mode): new
	(stf_export_can_transliterate): new

1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425
2003-05-09  Morten Welinder  <terra@gnome.org>

	* src/format.h: Use gnumeric_regex_t, not regex_t.

	* configure.in: Check for memmove.  Add
	src/cut-n-paste-code/pcre/Makefile.

	* src/Makefile.am (gnumeric_app_libs): Add
	cut-n-paste-code/pcre/libpcre.a.

	* src/formats.c (currency_date_format_init): Switch to pcre
	(==perl) syntax in regular expressions.
	(cell_format_is_number): Use UTF-8 regexp
	routines.

	* src/number-match.c (char_to_re): Take a gunichar, just in case.
	(format_create_regexp): Take an unsigned char *.  Make UTF-8 safe.

	* src/regutf8.c: Switch to using pcre.

1426 1427 1428 1429 1430
2003-05-08  Morten Welinder  <terra@gnome.org>

	* src/cell-draw.c (cell_draw): Fix HALIGN_CENTER case when a cell
	overflows.

1431 1432 1433 1434 1435
2003-05-08  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/stf.c (stf_read_workbook_auto_csvtab): use a locale dependent
	separator (same as argument separator)

Andreas J. Guelzow's avatar