OChangeLog-2005-11-14 195 KB
Newer Older
1 2 3 4 5
2005-06-25  Jody Goldberg <jody@gnome.org>

	* src/xml-sax-read.c (xml_sax_hlink) : new.
	(xml_sax_input_msg) : new.

6 7 8 9 10
2005-06-22  Morten Welinder  <terra@gnome.org>

	* src/mathfunc.c (random_01): Use the Mersenne Twister as
	fallback.

11 12 13 14 15 16 17
2005-06-22  Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>

	* src/gnumeric-pane.c (cb_gnm_pane_drag_motion): set snap_to_grid if
	SHIFT is pressed, state given by widget parent window.
	* src/sheet-control-gui.c (scg_drag_receive_same_scg): ditto.
	(scg_objects_nudge): fix typo.
	
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
2005-06-22  Jody Goldberg <jody@gnome.org>

	* src/Makefile.am : enable pango-test

2005-06-22  Jody Goldberg <jody@gnome.org>

	* * : s/MStyle/GnmStyle/
	      s/mstyle_/gnm_style_/
	      s/StyleHAlignFlags/GnmHAlign/
	      s/StyleVAlignFlags/GnmVAlign/

2005-06-20  Morten Welinder  <terra@gnome.org>

	* src/commands.c (cmd_rename_sheet): Prevent renames to "".

33 34 35 36 37 38 39
2005-06-14  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=163414
	* src/item-bar.c (item_bar_event) : "If it hurts when you do that,
	  don't do that".  Position the tooltip above the cursor for row
	  headers too :-)

Morten Welinder's avatar
Morten Welinder committed
40 41 42 43 44 45 46 47 48
2005-06-14  Morten Welinder  <terra@gnome.org>

	* src/gnumeric-gconf.c (gnm_gconf_get_toolbar_visible,
	gnm_gconf_set_toolbar_visible): New functions.

	* src/wbc-gtk.c (cb_add_menus_toolbars): Set toolbar visibility.
	(cb_handlebox_visible): Make changes to visibility permanent.
	(wbc_gtk_init): Don't set everything visible.

49 50 51 52 53 54 55 56 57 58
2005-06-13  Jody Goldberg <jody@gnome.org>

	* src/expr.c (gnm_expr_eval) : when evaluating an array pass the
	  cols/rows into the EvalPos.

	* src/position.c (eval_pos_init) : init new cols/rows member
	(eval_pos_init_dep) : ditto.
	(eval_pos_init_cell) : ditto.
	(eval_pos_init_sheet) : ditto.

Jody Goldberg's avatar
Jody Goldberg committed
59 60 61 62
2005-06-13  Jody Goldberg <jody@gnome.org>

	* configure.in : post release bump

Jody Goldberg's avatar
Jody Goldberg committed
63 64 65 66
2005-06-13  Jody Goldberg <jody@gnome.org>

	* Release 1.5.2

Jody Goldberg's avatar
Jody Goldberg committed
67 68 69 70 71
2005-06-13  Jody Goldberg <jody@gnome.org>

	* src/expr-name.c (gnm_named_expr_collection_lookup) : be more
	  careful.

Jody Goldberg's avatar
Jody Goldberg committed
72 73 74 75
2005-06-12  Jody Goldberg <jody@gnome.org>

	* src/value.c (value_get_as_bool) : handle err == NULL

76 77 78 79 80 81 82 83 84 85 86 87 88
2005-06-12  Morten Welinder  <terra@gnome.org>

	* src/workbook.c (workbook_detach_view): Just dispose of the view.
	That will both break cycles and indirectly unref.
	(workbook_sheet_delete): Ditto.

	* src/workbook-view.c (wb_view_sheet_add): Don't leak a ref to the
	new view.

	* src/sheet-view.c (sheet_view_new): Ref the sheet view when we
	add it to the sheet's list of views.
	(sv_real_dispose): Unref as we remove from said list.

Morten Welinder's avatar
Morten Welinder committed
89 90
2005-06-10  Morten Welinder  <terra@gnome.org>

91 92 93 94 95
	* src/dependent.c (link_cellrange_dep, unlink_cellrange_dep): Fix
	condition for swapping sheet indices.  Fix loop.
	(dependent_unlink): Don't try to unlink dynamic dependencies from
	a NULL container.

96 97 98 99 100 101 102 103 104 105 106 107 108
	* src/dependent.c (gnm_dep_container_sanity_check): New function.
	(dependents_revive_sheet): Check sanity here.
	(gnm_dep_container_dump): And here.
	(handle_outgoing_references): New function.  Properly unlink
	dependencies that reference stuff outside current sheet.
	(do_deps_destroy, do_deps_invalidate): Use
	handle_outgoing_references.

	* src/dependent.c (dependents_invalidate_sheets): Handle 3d deps
	here.  Avoid crashes by not modifying the hash while we go over
	it.
	* src/workbook.c (workbook_sheet_delete): Not here.

Morten Welinder's avatar
Morten Welinder committed
109 110 111 112 113 114 115 116 117 118 119
	* src/xml-sax-write.c (xml_write_sheet): Write visibility.

	* src/xml-sax-read.c (xml_sax_attr_enum): New function.
	(xml_sax_sheet_start): Restore visibility.

	* src/xml-io.c (xml_read_selection_info): Don't crash if we lack a
	view.
	(xml_write_selection_info): Ditto.
	(xml_sheet_read): Restore visibility.
	(xml_sheet_write): Write visibility.

120 121 122 123 124
2005-06-09  Jody Goldberg <jody@gnome.org>

	* src/workbook-control-gui.c (cb_realize) : init the menu prefs on
	  realization.

125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
2005-06-09  Jody Goldberg <jody@gnome.org>

	* src/item-edit.c (ie_scan_for_range) : call
	  gnm_expr_entry_set_parsepos to be sure we're using the right
	  notional position.  This only really matters for R1C1 refs.

	* src/rendered-value.c (rendered_value_render) : use the Sheet::convs
	  to display expressions.
	(cell_get_entered_text) : ditto.

	* src/parse-util.c (rangeref_as_string) : r1c1 support.
	(cellref_as_string) : ditto.

	* src/item-bar.c (item_bar_draw) : for r1c1 use numbers for col
	  headers.
	(item_bar_calc_size) : ditto.

	* src/sheet.c : Add use-r1c1 property
	(re_render_formulas) : split from
	(sheet_set_display_formulas) : here.
	(sheet_set_use_r1c1) : for use here.

	* src/wbcg-actions.c (toggle_actions) : Add r1c1 toggle
	* src/GNOME_Gnumeric-gtk.xml : use it

150 151
2005-06-09  Morten Welinder  <terra@gnome.org>

152 153 154 155
	* src/workbook.c (workbook_sheet_delete): Merge
	workbook_sheet_detach into this.
	(workbook_sheet_detach): Removed.  All callers changed.

156 157 158 159 160
	* src/dependent.c (cb_dep_hash_destroy): Track changes to
	dependencies.
	(clear_revive_info): Free dep_exprs also.
	(dependents_revive_sheet): Undo changes to dependencies too.

161 162 163 164 165 166 167 168 169 170 171
2005-06-08  Morten Welinder  <terra@gnome.org>

	* src/sheet.c (gnm_sheet_class_init): Rename "visible" property to
	"visibility" and make it an enum.  All users changed.
	* src/sheet.h (struct _Sheet): Ditto for is_visible member.

	* src/workbook-view.c (wb_view_sheet_remove): New function to
	mirror wb_view_sheet_add.
	* src/workbook.c (workbook_sheet_hide_controls): Use
	wb_view_sheet_remove.

172 173 174 175 176
2005-06-08  Ivan, Wogn Yat Cheung  <email@ivanwong.info>

	* src/sheet-control-gui.c (scg_drag_receive_uri_list):
	adapt to the change of go_get_mime_type(). [#304074]

177 178 179 180 181
2005-06-07  Jody Goldberg <jody@gnome.org>

	From Ivan, Wong Yat Cheung  <email@ivanwong.info>
	* src/Makefile.am : enable libspreadsheet

Jody Goldberg's avatar
Jody Goldberg committed
182 183 184 185 186 187 188 189 190 191
2005-06-07  Jody Goldberg <jody@gnome.org>

	* src/parser.y : Pass the convention to the range_ref parser

	* src/parse-util.c (r1c1_get_index) : make this more robust.
	(cellref_r1c1_get) : adjust calling to new get_index args.
	(r1c1_rangeref_parse) : new.
	(rangeref_parse) : connect into the r1c1 parser.
	(parse_util_init) : add an r1c1 convention set

192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
2005-06-07  Morten Welinder  <terra@gnome.org>

	* src/workbook.c (workbook_sheet_state_restore): Revive sheets
	being re-attached.

	* src/workbook-control-gui.c (scg_delete_sheet_if_possible): Use
	cmd_reorganize_sheets2.

	* src/sheet.h (struct _Sheet): Add extra "revive" member.

	* src/expr-name.c (gnm_named_expr_collection_relink,
	gnm_named_expr_collection_unlink): New functions.
	(gnm_named_expr_collection_free): Remove the extra indirection.
	All callers changed.

	* src/dependent.c (handle_dynamic_deps, handle_referencing_names):
	Extracted from do_deps_destroy.
	(do_deps_invalidate, clear_revive_info, dependents_revive_sheet):
	New functions.
	(dependents_link): Do not free the argument list.  All callers
	changed.
	(do_deps_destroy): Call clear_revive_info.
	(invalidate_name): Renamed from cb_name_invalidate.  Add "destroy"
	argument.  If not destroying, save the name-expression pairs.
	(cb_collect_deps_of_names): Collect also the names.
	(dependents_invalidate_sheet, dependents_invalidate_sheets): Add
	extra "destroy" argument.  All callers changed.
	(dep_hash_destroy): Walk over the hash once, not three times.

221 222
2005-06-06  Morten Welinder  <terra@gnome.org>

223 224 225
	* src/mathfunc.c (lgamma): Define when needed.
	(lgamma_r): Base the implementation on lgammacor, not lgamma.

226 227 228
	* src/sheet-control-gui.c (scg_drag_receive_uri_list): Add warning
	about things we do not understand.

229 230 231 232 233 234 235 236 237 238 239 240 241 242
2005-06-04  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=165172
	* src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet) : quick and cheesy
	  handling of Delete while editing.  It forces an end to
	  autocompletion rather than unintentionally clearing the cell as if
	  we were not editing.

2005-06-04  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=164779
	* src/sheet-control-gui.c (scg_objects_nudge) : no nudging while
	  creating an object.

243 244
2005-06-04  Jody Goldberg <jody@gnome.org>

Jody Goldberg's avatar
Jody Goldberg committed
245
	http://bugzilla.gnome.org/show_bug.cgi?id=163589
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271
	* src/print.c (print_page_cells) : Use the PrintInfo from the supplied
	  sheet rather than something global.
	(print_page_repeated_rows) : ditto.
	(print_page_repeated_cols) : ditto.
	(print_page_repeated_intersect) : ditto.
	(print_hf_element) : ditto.
	(print_hf_line) : ditto.
	(print_headers) : ditto.
	(print_footers) : ditto.
	(setup_scale) : ditto.
	(print_page) : ditto.
	(print_range_down_then_right) : ditto.
	(print_range_right_then_down) : ditto.
	(print_job_info_init_sheet) : ditto.
	(print_sheet_range) : ditto.
	(compute_sheet_pages) : ditto.
	(compute_pages) : ditto.
	(print_sheet) : ditto.
	(workbook_print_all) : delete.
	(sheet_print_real) : and merge into here.
	(print_job_info_update_from_config) : merge into print_job_info_init_sheet.
	(print_job_info_get) : Do not attempt to load a PrintInfo from the
	  first sheet.  We'll set things up on a per sheet basis.
	(print_job_info_destroy) : we do not have a local copy of a PrintInfo
	  anymore.

272 273 274 275 276
2005-06-04  Ivan, Wong Yat Cheung  <email@ivanwong.info>

	* tools/gconf-schemas-to-win32-reg.c (convert_schemalist):
	  Use REGEDIT4 so that Win9x knows.

Jody Goldberg's avatar
Jody Goldberg committed
277 278 279 280
2005-06-03  Jody Goldberg <jody@gnome.org>

	* src/gnumeric.h : s/GnmRow/GnmStyleRow/  That is clearer

281 282 283 284 285
2005-06-03  Jody Goldberg <jody@gnome.org>

	* configure.in : bump gsf req to 1.12.1 for the new GSF_DYNAMIC_CLASS
	  signatures

286 287
2005-06-02  Morten Welinder  <terra@gnome.org>

288 289 290 291
	* src/mathfunc.c (binomialcf): Fix log_p case.
	(pfuncinverter): Handle NaNs better.
	(qbeta): Improve initial guess.

292 293 294 295
	* src/number-match.c (compute_value): When matching with
	strto[u]l, make sure to store the result in a variable large
	enough.  Fixes #306254.

296 297 298 299 300 301
2005-06-01  Morten Welinder  <terra@gnome.org>

	* src/xml-io.c (xml_write_cell_and_position): Don't duplicate
	ExprIDs for arrays.
	* src/xml-sax-write.c (xml_write_cell_and_position): Ditto.

302 303 304 305 306 307 308 309 310 311 312 313 314 315
2005-06-01  Stepan Kasal  <kasal@ucw.cz>

	* src/ranges.c (undo_cell_pos_name, undo_range_name, undo_range_list_name):
	  New functions.
	(max_range_name_width, range_list_name_try): New static functions.
	* src/commands.c (undo_global_range_name, cmd_cell_pos_name_utility):
	(cmd_range_list_to_string_utility, cmd_range_to_str_utility): Nuke; all
	  callers should use the new functions from ranges.c.

	* schemas/gnumeric-general.schemas.in (max_descriptor_width):
	Change the default to 40; "Clearing contents in Sheet1!A12:C34"
	should fit in without truncating.  The prefix is about 20 chars
	and about 20 chars should remain for the range name itself.

316 317 318 319 320
2005-05-31  Morten Welinder  <terra@gnome.org>

	* src/xml-sax-read.c (xml_sax_cell): Fix asserts.
	(xml_sax_cell_content): Guard against bogus values.

321 322 323 324 325
2005-05-31  Jody Goldberg <jody@gnome.org>

	* src/xml-sax-read.c (gnm_xml_file_open) : register the doc if
	  necessary, and hook it too the application for destruction.

326 327 328 329 330 331 332 333
2005-05-31  Morten Welinder  <terra@gnome.org>

	* src/mathfunc.c (random_hypergeometric): Define trivially using
	qhyper thus avoiding some performance problems.
	(qhyper): Move from plugins/fn-r/extra.c
	(pfuncinverter): Improve case where initial guess is outside valid
	range.

334 335 336 337 338 339 340 341 342
2005-05-31  Stepan Kasal  <kasal@ucw.cz>

	* src/dialogs/dialog-solver.c (solver_max_time_err): Move the
	  variable and its initialization...
	* src/gutils.c (gutils_init): ... here.
	* src/gutils.h (solver_max_time_err): Declare.
	* src/tools/solver/solver.c: Include gutils.h instead of the
	  declaration of solver_max_time_err.

343 344 345 346 347
2005-05-31  Stepan Kasal  <kasal@ucw.cz>

	* src/commands.c (cmd_set_text): Remove the variable `GObject *obj';
	it's not needed.  Similarly for other 43 command functions.

348 349 350 351 352
2005-05-31  Ivan, Wong Yat Cheung  <email@ivanwong.info>

	* src/ssconvert.c (main):
	* src/ssindex.c (main): Use go_shell_argv_to_glib_encoding() as well.

353 354 355 356 357 358
2005-05-31  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=304559
	* src/sheet-object-widget.c (sheet_object_widget_new_view) : keep the
	  view hidden until we can set the bounds

359 360 361 362 363 364
2005-05-30  Ivan, Wong Yat Cheung  <email@ivanwong.info>

	* src/main-application.c (main): Use go_shell_argv_to_glib_encoding(),
	so we can open file with name in any encoding when users "open" them in
	explorer (Win32).

365 366 367 368 369 370 371 372 373 374 375 376 377 378 379
2005-05-29  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=167584
	* src/sheet-object-widget.c (cb_adjustment_config_ok_clicked) : relink
	  after changing the expression.
	(sheet_widget_adjustment_set_details) : ditto.
	(cb_checkbox_config_ok_clicked) : ditto.
	(sheet_widget_checkbox_set_link) : ditto.

2005-05-29  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=165061
	* src/mstyle.c (mstyle_equal_header) : new
	* src/ranges.c (range_has_header) :  use it.

380 381 382 383 384
2005-05-29  Jody Goldberg <jody@gnome.org>

	* src/dependent.c (cb_collect_deps_of_name) : collect all deps of
	  names, even those we're about to lose.  Things need to be unlinked.

385 386 387 388 389 390 391
2005-05-27  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=305405
	* src/gui-clipboard.c (x_targets_received) : Add biff atoms to support
	  pastes from MS Excel.
	(table_content_received) : ditto.

Morten Welinder's avatar
Morten Welinder committed
392 393
2005-05-27  Morten Welinder  <terra@gnome.org>

Morten Welinder's avatar
Morten Welinder committed
394 395
	* src/mathfunc.c (discpfuncinverter, pfuncinverter): Make public.

Morten Welinder's avatar
Morten Welinder committed
396 397 398 399 400 401 402
	* src/position.c (eval_pos_init_cell): Constness fix.

	* src/cell.h (CELL_TO_DEP): Preserve constness.

	* src/dependent.c (dump_range_dep): Use range_name.
	(cell_queue_recalc): Not const.

Stepan Kasal's avatar
Stepan Kasal committed
403 404 405
2005-05-26  Stepan Kasal  <kasal@ucw.cz>

	* src/clipboard.c: Remove unneeded includes.
406 407 408 409

	* src/gnumeric-gconf.c: Move common headers to the top, add more
	  stubs for build without gtk.

410
	* src/ranges.c (range_name): Simplify.
411 412
	(global_range_name): Make the first parameter const.
	* src/ranges.h (global_range_name): Ditto.
413

414 415 416 417 418
2005-05-26  Morten Welinder  <terra@gnome.org>

	* src/mathfunc.c (discpfuncinverter): New function.
	(qpois): New implementation based on discpfuncinverter.

419 420
2005-05-25  Morten Welinder  <terra@gnome.org>

421 422 423
	* src/gui-clipboard.c (text_to_cell_region): Fall back to string.
	Fixes #305404.

424 425 426
	* src/workbook-control-gui.c (wbcg_create_edit_area): Add tooltips
	for ok_button, cancel_button, and func_button.

427 428
2005-05-23  Morten Welinder  <terra@gnome.org>

Morten Welinder's avatar
Morten Welinder committed
429 430 431
	* src/commands.c (cmd_reorganize_sheets_delete_recreate_sheet):
	Plug leak.

432 433 434
	* src/dependent.c (cb_name_invalidate): Fix a crash relating to
	globally scoped names.

435 436 437 438 439 440 441 442 443 444 445 446 447 448
	* src/workbook-edit.c (cb_entry_delete_text): Make this work for
	non-rich text also.  Turn off auto-completion.
	(cb_entry_insert_text): Make this work for non-rich text also.
	Turn off auto-completion if the insert is not at the end.
	(cb_entry_cursor_pos): Make this work for non-rich text also.
	Turn off auto-completion if the cursor is no longer at the end.
	(wbcg_edit_finish): Always turn off signals if they have been
	connected.
	(wbcg_edit_start): Always bind insert_text, delete_text, and
	cursor position signals here.
	(wbcg_edit_init_markup): Don't connect to insert_text, delete_text
	and cursor position signals here.
	(auto_complete_matches): Get rid of ugly event hack.

449 450 451
	* src/commands.c (command_redo): Keep a ref to the command and
	handle someone clearing the redo queue.  Fixes #305007.

452 453 454 455 456 457 458
2005-05-23  Stepan Kasal  <kasal@ucw.cz>

	* src/position.c (parse_pos_init): Don't perform the same check
	  twice.
	* src/graph.c, src/sheet-object-widget.c (*_debug_name): All these
	  functions now take a GString as the second parameter; adapt to it.

459 460 461 462 463
2005-05-21  Morten Welinder  <terra@gnome.org>

	* src/dependent.c (dependents_link): Drop pointless rwinfo
	argument.  All callers changed.

464 465
2005-05-20  Morten Welinder  <terra@gnome.org>

466 467 468
	* src/dependent.c (gnm_dep_container_dump): Dump also dynamic
	dependencies and name dependencies.

469 470 471
	* src/workbook-control.c (wb_control_parse_and_jump): Use
	expressions like A1, not A1:A1 for single cells.

Stepan Kasal's avatar
Stepan Kasal committed
472 473
2005-05-20  Stepan Kasal  <kasal@ucw.cz>

Stepan Kasal's avatar
Stepan Kasal committed
474
	* src/sheet-filter.c (filter_view_set_bounds): Remove unused
Stepan Kasal's avatar
Stepan Kasal committed
475 476
	  variable so.

477 478 479 480 481 482 483 484 485 486 487 488 489 490 491
2005-05-19  Morten Welinder  <terra@gnome.org>

	* src/sheet.h (struct _Sheet): add being_invalidated flag.

	* src/dependent.c (dependents_workbook_destroy): Renamed from
	workbook_deps_destroy.  Mark all sheets being_invalidated before
	actually doing so.
	(dependents_invalidate_sheet): Renamed from sheet_deps_destroy.
	(do_deps_destroy): Don't take a GnmExprRewriteInfo argument --
	create it locally.

	* src/expr.h (struct _GnmExprRewriteInfo): Combine
	GNM_EXPR_REWRITE_SHEET and GNM_EXPR_REWRITE_WORKBOOK into
	GNM_EXPR_REWRITE_INVALIDATE_SHEETS.

492 493 494 495 496 497 498 499 500 501 502
2005-05-19  Morten Welinder  <terra@gnome.org>

	* src/workbook.c (pre_sheet_index_change): Use dependent_unlink
	directly as callback.
	(post_sheet_index_change): Use dependent_link directly as
	callback.

	* src/dependent.c (dependent_link, dependent_unlink,
	link_expr_dep, unlink_expr_dep): Drop the pos argument, infer when
	needed.  All callers changed.

503 504 505 506 507 508 509 510 511
2005-05-18  Morten Welinder  <terra@gnome.org>

	* src/dependent.c (dependent_pos): New utility function.
	(dependent_set_sheet, dependent_add_dynamic_dep, dependent_unlink,
	dependents_link, do_deps_destroy, dynamic_dep_free): use
	dependent_pos.
	(link_expr_dep, unlink_expr_dep, dependents_unrelocate_free,
	dependents_unrelocate): Avoid cast.

Jody Goldberg's avatar
Jody Goldberg committed
512 513 514 515 516 517 518 519 520
2005-05-18  Jody Goldberg <jody@gnome.org>

	* src/expr-name.c (expr_name_new) : make public
	(expr_name_add) : accept a stub object.

2005-05-17  Jody Goldberg <jody@gnome.org>

	* src/workbook.c (workbook_focus_other_sheet) : fix

521 522 523 524 525
2005-05-17  Morten Welinder  <terra@gnome.org>

	* src/expr-name.c (expr_name_set_expr): Don't relink deps for
	sheets that are being destroyed.

526 527 528 529 530 531 532 533 534 535 536
2005-05-16  Morten Welinder  <terra@gnome.org>

	* src/print-cell.c (print_cell): Fix and simplify rotated case.

	* src/cell-draw.c (cell_draw): Simplify rotated case.

	* src/rendered-value.c (rendered_value_remeasure): Collect extra
	information for rotated values.
	(rendered_value_init): Setup a separate pool for rotated cells.
	(rendered_value_shutdown): Shut that down.

537 538 539 540 541
2005-05-16  Stepan Kasal  <kasal@ucw.cz>

	* src/sheet-control-gui.c (scg_drag_receive_uri_list): Change the
	  type of local variable `mime' to `const gchar *'.

542 543 544
2005-05-16  Morten Welinder  <terra@gnome.org>

	* configure.in (set_more_warnings): Kill -Wcast-align.  It does
545
	not catch anything useful.  We run-time check, either in gobject
546 547 548 549
	macros or else by virtue of running on a Sparc.  Also we do *tons*
	of valid cast from base classes to derived classes after carefully
	checking the dynamic type.

Jody Goldberg's avatar
Jody Goldberg committed
550 551 552 553
2005-05-16  Jody Goldberg <jody@gnome.org>

	* src/sheet-filter.c (filter_foo_view_init) : remove debug spew

Stepan Kasal's avatar
Stepan Kasal committed
554 555 556 557
2005-05-16  Stepan Kasal  <kasal@ucw.cz>

	* configure.in (PKG_PROG_PKG_CONFIG): Fix the explanation above.

558 559 560
2005-05-15  Jean Brefort  <jean.brefort@normalesup.org>

	* src/graph.c: (gnm_go_data_vector_get_value),
Stepan Kasal's avatar
Stepan Kasal committed
561
	(gnm_go_data_matrix_get_value): always release the value returned by
562 563
	value_coerce_to_number.

564 565 566
2005-05-15  J.H.M. Dassen (Ray) <jdassen@debian.org>

	* configure.in: Bumped the goffice requirement as we need GORegexp now.
567 568
	Enable a number of additional warnings (when available)
	for which the current code base is already virtually clean.
J.H.M. Dassen (Ray)'s avatar
J.H.M. Dassen (Ray) committed
569 570
	* src/func.c, src/gnumeric-gconf.c: Clean up function declarations.
	* src/sheet.h: Include prototype for sheet_apply_border.
571

572 573 574 575 576
2005-05-13  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=164950
	* src/ranges.c (range_trim) : make this more efficient.

577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594
2005-05-14  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=165734
	* src/value.c (find_rows_that_match) : The column in the condition is
	  absolute, not relative to the start of the input range.

2005-05-14  Jody Goldberg <jody@gnome.org>

	* src/ranges.c (gnm_sheet_range_from_value) : renamed from
	  value_to_global_range.
	(gnm_sheet_range_new) : renamed from global_range_new.
	(gnm_sheet_range_free) : renamed from global_range_free.
	(gnm_sheet_range_overlap) : renamed from global_range_overlap.
	(gnm_sheet_range_dup) : renamed from global_range_dup.

	* src/value.c (value_new_cellrange_str) : renamed from
	  global_range_parse.

595 596
2005-05-13  Morten Welinder  <terra@gnome.org>

597 598 599 600 601 602 603 604 605 606 607 608 609 610 611
	* src/rendered-value.c (get_rotated_layout_bounds): Remove.
	(rendered_value_remeasure): Rework the rotated case to match Excel
	much better.
	(rendered_value_new): Setup new noborders member.

	* src/sheet.c (sheet_apply_border): New functions.  Setting
	borders for rotated cells actually causes different rendering.

	* src/commands.c (cmd_format_undo): Fix CRITICAL.
	(cmd_format_redo): Use sheet_apply_border instead of going
	directly to sheet_style_apply_border.

	* src/cell-draw.c (cell_draw): Rework rotated case to match Excel
	much better.

612 613 614
	* src/style.c (style_default_halign): Handle that down rotations
	are now angles >180, not <0.

615 616 617 618 619
2005-05-13  Stepan Kasal  <kasal@ucw.cz>

	* src/xml-sax-read.c (content_ns, gnumeric_1_0_dtd): Mark these
	  variables with G_GNUC_UNUSED, the #warning below is enough.

620 621 622 623 624 625 626 627 628
2005-05-12  Jody Goldberg <jody@gnome.org>

	* src/value.c (parse_database_criteria) : remove old FIXME with a
	  simple test.

	http://bugzilla.gnome.org/show_bug.cgi?id=165700
	* src/commands.c (update_after_action) : re-focus only controls for
	  the current view, not all controls.

629 630 631 632 633
2005-05-12  Jody Goldberg <jody@gnome.org>

	* src/sheet-filter.c (filter_expr_eval) : for regexp based matches
	  make sure we matched the whole string.

634 635 636 637 638
2005-05-10  Jean Brefort  <jean.brefort@normalesup.org>

	* src/value.c: (value_get_as_gstring): exchange row_sep and col_sep
	when formatting an array formula.

Jody Goldberg's avatar
Jody Goldberg committed
639 640 641 642
2005-05-10  Jody Goldberg <jody@gnome.org>

	* configure.in : post release bump

Jody Goldberg's avatar
Jody Goldberg committed
643 644 645 646
2005-05-10  Jody Goldberg <jody@gnome.org>

	* Release 1.5.1

647 648
2005-05-09  Morten Welinder  <terra@gnome.org>

649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669
	* src/workbook.c (workbook_sheet_attach_at_pos): Add a ref to
	sheet to balance the unref in workbook_sheet_detach.
	(workbook_sheet_attach): Counter the above ref here.
	(workbook_sheet_add): Counter the above ref here.  Document that
	the returned sheet's ref is owned by the workbook.
	(workbook_sheet_detach): Get rid of sheet views here.  Replace
	almost all uses of this with workbook_sheet_delete.  (It was
	typically used to get rid of sheets that got created during a load
	which then failed.)

	* src/workbook-control-gui.c (wbcg_insert_sheet,
	wbcg_append_sheet): Use new cmd_reorganize_sheets2.

	* src/sheet.c (sheet_set_name): Fix logic to determine if a sheet
	is attached.
	(sheet_cell_destroy): Don't get rid of view here.

	* src/commands.c (command_undo): Hold a ref to cmd so it doesn't
	go away underneath us.  Don't crash if the undo command clears the
	undo queue.

Morten Welinder's avatar
Morten Welinder committed
670 671
	* src/workbook.c (workbook_sheet_state_diff): Implement.

Morten Welinder's avatar
Morten Welinder committed
672
	* src/workbook-control-gui.c (cb_sheet_label_drag_begin): Fix
Morten Welinder's avatar
Morten Welinder committed
673
	multihead issue.  Plug leak.
Morten Welinder's avatar
Morten Welinder committed
674

675 676 677 678 679
	* src/application.c (gnm_app_get_pixbuf): Remove.  All callers
	fixed.
	(add_icon): Don't install both a scalable and a fixed-sized icon.
	Fixes #302902.

680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696
2005-05-08  Jody Goldberg <jody@gnome.org>

	* src/xml-sax-read.c (xml_sax_styleregion_start) : work around use of
	  negative rotations which are used to indicate vertical text.
	* src/xml-io.c (xml_read_style) : ditto.

2005-05-07  Jody Goldberg <jody@gnome.org>

	* src/style.h : Add a 'VALIGN_DISTRIBUTED' that was added in XP
	  dunno what it does yet.
	* src/dialogs/dialog-cell-format.c : Add an entry for DISTRIBUTED

	* src/mstyle.h : document the range of rotation

	* src/workbook-view.c : remove pointless include
	* src/hlink.c : remove pointless include

697 698 699 700 701 702 703 704 705 706
2005-05-07  Jean Brefort  <jean.brefort@normalesup.org>

	* src/dialogs/dialog-about.c: (dialog_about): add NULL third arg
	to go_data_vector_val_new and go_data_vector_str_new.
	* src/stf-parse.c: use go_setlocale instead of gnm_setlocale.
	* src/xml-io.c: (xml_workbook_write), (xml_workbook_read): ditto.
	* src/xml-sax-read.c: (gnm_xml_file_open): ditto.
	* src/xml-sax-write.c: (gnm_xml_file_save),
	(gnm_cellregion_to_xml): ditto.

707 708
2005-05-06  Morten Welinder  <terra@gnome.org>

709 710 711 712 713 714 715 716 717 718
	* src/workbook.c (workbook_sheet_move): Public again.  Fix docs.

	* src/workbook-control-gui.c (gnm_notebook_page_num_by_label):
	Renamed from gtk_notebook_page_num_by_label.
	(cb_sheet_label_drag_data_received): Fix this in the presence of
	hidden sheets.
	(wbcg_sheet_move): Change to take old_pos, not new_pos which is
	trivial to get.  All callers changed.  Fix for the case where some
	sheets are hidden.

719 720 721
	* src/workbook.c (workbook_unref): Remove and replace calls with
	simple g_object_unref

722 723
2005-05-05  Morten Welinder  <terra@gnome.org>

724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743
	* src/workbook.c (workbook_focus_other_sheet): New function.
	(workbook_sheet_hide_controls, workbook_sheet_delete): Use
	workbook_focus_other_sheet.
	(workbook_sheet_unhide_controls): Do nothing if sheet is already
	shown.
	(workbook_sheet_add): Take a numerical position, not a sheet
	pointer for placement.  All callers changed.
	(workbook_sheet_attach_at_pos): New function extracted from
	workbook_sheet_attach.
	(workbook_sheet_attach): Make this not take a placement parameter.
	All callers changed.
	(workbook_sheet_move): Make static, don't return a value, and make
	3d references.
	(workbook_sheet_state_new, workbook_sheet_state_free,
	workbook_sheet_state_restore, workbook_sheet_state_diff): New
	functions.

	* src/commands.c (cmd_reorganize_sheets2): New function.
	(cmd_rename_sheet): Use cmd_reorganize_sheets2.

744 745
	* src/dependent.c (do_deps_destroy): Fix sheet-remove crash.

746 747
2005-05-04  Morten Welinder  <terra@gnome.org>

748 749 750 751 752
	* src/wbc-gtk.c (cb_show_menu_tip): Don't translate a space.

	* src/commands.c (cmd_rename_sheet): Simplify calling convention.
	Single caller fixed.

753 754 755
	* src/gui-util.c (gnumeric_popup_menu): If we have an event
	anchor, use that to figure out what screen to show the popup on.

756 757
2005-05-03  Morten Welinder  <terra@gnome.org>

758 759 760 761 762 763 764 765 766 767 768
	* src/workbook-control-gui.c (cb_zoom_change): New function,
	extracted from wbcg_zoom_feedback.
	(wbcg_zoom_feedback): Remove zoom_feedback method.
	(wbcg_sheet_add): Don't attach to sheet notify signals here.
	(wbcg_sheet_focus): Do it here so we only watch one sheet at a
	time.
	(wbcg_sheet_remove, wbcg_sheet_remove_all): Disconnect here too.

	* src/sheet.c (sheet_set_zoom_factor): Make static and add
	zoom-factor property.  All callers changed.

Morten Welinder's avatar
Morten Welinder committed
769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784
	* src/workbook-view.c (wb_view_prefs_update): Remove.

	* src/workbook-control-priv.h: Remove prefs_update member.

	* src/sheet-control-priv.h: Remove adjust_preferences and
	direction_changed members.

	* src/sheet-control-gui.c (sheet_control_gui_new): Also hook up to
	sheet:text-is-rtl.

	* src/workbook-control-gui-priv.h: Remove rtl property.  All users
	changed to use sheet's text_is_rtl (and some already were).

	* src/sheet-control-gui-priv.h: Remove text_is_rtl property.  All
	users changed to use sheet's text_is_rtl (and some already were).

785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801
	* src/xml-sax-read.c (xml_sax_sheet_name): Use g_object_set to set
	sheet properties.

	* src/workbook-control-gui.c (wbcg_sheet_add): Connect to more
	sheet properties.
	(workbook_control_gui_class_init): Eliminate
	wbc_class->menu_state.sheet_prefs.

	* src/sheet.c (gnm_sheet_set_property): Add properties
	"display-outlines-below" and "display-outlines-right".
	(sheet_adjust_preferences): No need to call
	wb_control_menu_state_sheet_prefs anymore.

	* src/sheet-control-gui.c (sheet_control_gui_new): Connect to
	notify signals for all the sheet properties that cause changed
	display.

Morten Welinder's avatar
Morten Welinder committed
802 803
2005-05-02  Morten Welinder  <terra@gnome.org>

804 805 806 807 808
	* src/workbook-control-gui.c (wbcg_sheet_add): Connect to
	sheet::name, sheet:tab-foregound, sheet:tab-background.
	(wbcg_sheet_remove): Disconnect.
	(wbcg_sheet_rename): Remove this method from the class.

Morten Welinder's avatar
Morten Welinder committed
809 810 811 812 813 814 815 816
	* src/commands.c (cmd_reorganize_sheets_finalize): Plug leak.

	* src/workbook-control-gui.c (cb_sheet_label_drag_end): Plug leak.

	* src/workbook.c (workbook_detach_view): Call sv_dispose to break
	circular links.
	(workbook_sheet_hide_controls): Fix search for focus and thus
	return value.
817 818
	(workbook_set_dirty, workbook_is_dirty, workbook_is_pristine):
	Walk the sheet array, not the hash.
Morten Welinder's avatar
Morten Welinder committed
819 820 821 822 823 824 825 826 827

	* src/sheet.c (sheet_destroy): Call sv_dispose to break circular
	links.

	* src/sheet-view.c (sheet_view_new): Keep a ref to the sheet.
	(sv_dispose): New function.
	(sv_real_dispose): Renamed from s_view_finalize (and made proper
	for a dispose function).

828 829
2005-05-02  Morten Welinder  <terra@gnome.org>

830 831 832 833 834 835 836
	* src/sheet-view.c (sv_direction_changed): Make static and change
	to a notification handler.

	* src/sheet.c (sheet_attach_view): Fold into sheet_view_new.
	(sheet_detach_view): Fold into s_view_finalize.
	(gnm_sheet_init): Setup ->sheet_views properly here.

837 838 839 840 841 842 843 844 845 846
	* src/style-color.c (gnm_style_color_get_type): New function
	defining the type as a boxed type.

	* src/sheet.c: Add "name", "tab-foreground", and "tab-background"
	properties.
	(sheet_set_tab_color): Remove.  All callers changed to use
	g_object_set.
	(sheet_rename): Make static.  All callers changed to use
	g_object_set.

847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874
2005-04-21  Jon K Hellan  <hellan@acm.org>

	* src/sheet-object.[ch]: Add sheet_object_get_target_list.

	* src/sheet-object-image.c (sheet_object_image_get_target_list): 
	New. Gets targets object is able render itself as.
	(soi_imageable_init): Register get_target_list virtual.

	* src/sheet-object-graph.c (sheet_object_graph_get_target_list):
	New. Gets targets object is able render itself as.
	(sog_imageable_init): Register get_target_list virtual.

	* src/sheet-control-gui.c (scg_drag_send_image): Use
	go_mime_to_image_format to get format.

	* src/gui-clipboard.c (image_write): Use go_mime_to_image_format
	to get image format.
	(target_list_to_entries): New. Convert a target list to an array
	of GtkTargetEntries.
	(x_claim_clipboard): Use sheet_object_get_target_list to get
	targets for images.

	* src/gnumeric-pane.c (cb_test_so_imageable): Remove
	(target_list_add_list): New. Add targets from "added_targets" to
	"targets".
	(gnm_pane_drag_begin): Use sheet_object_get_target_list to get
	targets for images.

Morten Welinder's avatar
Morten Welinder committed
875 876
2005-04-29  Morten Welinder  <terra@gnome.org>

877 878 879 880 881 882
	* src/sheet.c (gnm_sheet_class_init): Make lots of things
	properties.
	(sheet_set_visibility, sheet_toggle_show_formula,
	sheet_toggle_hide_zeros): Make static (and make the toggle ones
	actually toggle).

Morten Welinder's avatar
Morten Welinder committed
883 884 885 886 887 888
	* src/commands.c (cmd_toggle_rtl_redo): Use go_object_toggle.

	* src/sheet.c (sheet_set_direction): Make static.  Change all
	existing callers to use g_object_set.
	(gnm_sheet_class_init): Install PROP_RTL.

Stepan Kasal's avatar
Stepan Kasal committed
889 890
2005-04-28  Stepan Kasal  <kasal@ucw.cz>

Stepan Kasal's avatar
Stepan Kasal committed
891 892 893
	* configure.in (AC_CANONICAL_HOST): Call explicitly, we use $host.
	(WITH_WIN32): Small changes to make more the same as in goffice.
	(--disable-plugins): Support this.
Stepan Kasal's avatar
Stepan Kasal committed
894
	(WINDRES): Add an AC_ARG_VAR declaration.
Stepan Kasal's avatar
Stepan Kasal committed
895
	And some whitespace changes.
Stepan Kasal's avatar
Stepan Kasal committed
896

897 898
2005-04-26  Morten Welinder  <terra@gnome.org>

899 900 901 902 903 904
	* src/print-info.c (hf_format_render): If format is NULL, simply
	return NULL.

	* src/print.c (print_hf_element): Handle NULL text from
	hf_format_render same as "".

905 906
	* src/gui-file.c (gui_file_save_as): Add a little crash safety.

907 908 909 910 911 912 913 914 915 916 917 918 919 920
2005-04-21  Stepan Kasal  <kasal@ucw.cz>

	* src/Makefile.am (gnumeric-paths.h): Rewrite the rule,
	  gnumeric-paths.sh* is no longer used.
	* src/gnumeric-paths.sh.in: Removed.
	* src/.cvsignore: Remove src/gnumeric-paths.sh.
	* configure.in: Don't generate gnumeric-paths.sh, rearrange the
	  gnumeric_* AC_SUBSTs.
	(gnumeric_gladedir, gnumeric_autoformatdir): Nuke.
	* src/dialogs/Makefile.am (gnumeric_gladedir): Replace by value.
	* templates/autoformat/Makefile.am (autoformatdir): New variable.
	(EXTRA_DIST): Don't use "%" when replacing suffixes; it's GNU make
	  specific.

921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947
2005-04-20  Stepan Kasal  <kasal@ucw.cz>

	gnm_sys_lib_dir() and such now just return the string;
	they don't take any parameter and don't allocate anything.

	* src/libgnumeric.h (gnumeric_lib_dir, gnumeric_data_dir):
	  Move to gutils.h; #include "gutils.h".
	(gnumeric_icon_dir, gnumeric_locale_dir): Move to gutils.c
	  and make static.
	* src/libgnumeric.c: Likewise.
	(gnm_pre_parse_init): Call gutils_init instead of doing it.
	(gnm_shutdown): Call gutils_shutdown instead of doing it.
	* gutils.h:
	* gutils.c (gutils_init, gutils_shutdown): New functions.
	(gnumeric_usr_dir): New static variable, set up in gutils_init.
	(gnm_sys_lib_dir, gnm_sys_data_dir, gnm_usr_dir): Just return
	  the static string; all callers fixed.
	(gnm_sys_glade_dir, gnm_sys_plugin_dir, gnm_usr_plugin_dir):
	  Nuked; callers fixed to build the string themselves.
	(gnm_icon_dir, gnm_locale_dir): New wrappers; callers fixed.
	(PLUGIN_SUFFIX): Renamed to ...
	(PLUGIN_SUBDIR): ..., and moved to .h.
	* src/gui-util.c (gnumeric_icondir): This function was removed;
	  callers fixed to use gnm_icon_dir.

	* src/sheet-object-image.c: Include goffice/utils/go-glib-extras.h

948 949 950 951 952
2005-04-20  Ivan, Wong Yat Cheung  <email@ivanwong.info>

	* src/wbc-gtk.c (wbc_gtk_init_font_name): Set
	"case-sensitive" to FALSE. Fix #161382.

953 954
2005-04-19  Morten Welinder  <terra@gnome.org>

955 956 957 958 959 960 961 962
	* src/clipboard.c (clipboard_init, clipboard_shutdown): New
	functions.
	(gnm_cell_copy_new): Alloc in pool.
	(cellregion_unref): Free from pool.

	* src/libgnumeric.c (gnm_common_init): Call clipboard_init.
	(gnm_shutdown): Call clipboard_shutdown.

Morten Welinder's avatar
Morten Welinder committed
963 964
	* */*.c: #include fixes.

965 966 967
	* src/rangefunc.c (range_mode): Fix the case where multiple
	different values occur equally often.

968 969 970 971 972 973 974
2005-04-18  Stepan Kasal  <kasal@ucw.cz>

	* src/libgnumeric.h (gnumeric_lib_dir, gnumeric_data_dir):
	(gnumeric_icon_dir, gnumeric_locale_dir): Declare as "const char*",
	  not "const char[]"; we use "&gnumeric_lib_dir" sometimes.
	* src/libgnumeric.c: Likewise.

975 976 977 978 979
2005-04-19  Stepan Kasal  <kasal@ucw.cz>

	* src/Makefile.am (SUFFIXES): Remove, Automake (at least >= 1.7)
	  deduces this.

Stepan Kasal's avatar
Stepan Kasal committed
980 981 982 983 984 985 986
2005-04-18  Stepan Kasal  <kasal@ucw.cz>

	* src/libgnumeric.h (gnumeric_lib_dir, gnumeric_data_dir):
	(gnumeric_icon_dir, gnumeric_locale_dir): Declare as "const char[]"
	to get rid of some warnings (unless we are on OS/2). 
	* src/libgnumeric.c: Likewise.

Stepan Kasal's avatar
Stepan Kasal committed
987 988
2005-04-18  Stepan Kasal  <kasal@ucw.cz>

989
	* configure.in: Call PKG_PROG_PKG_CONFIG explicitly.
Stepan Kasal's avatar
Stepan Kasal committed
990 991 992 993 994 995
	* Makefile.am (dist-hook): Don't handle gnumeric.spec here, ...
	(EXTRA_DIST): ... it's enough to add it here.
	  I tested this change with automake versions 1.7.9, 1.8.5 and 1.9.5.
	* schemas/Makefile.am: To silence `automake -Wall', don't use
	pattern rules (with %.reg), use portable suffix rules instead.

996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008
2005-04-16  Ivan, Wong Yat Cheung  <email@ivanwong.info>

	* configure.in:
	* Makefile.am: New subdir 'tools', we now have a win32
	binary to build.

	* schemas/Makefile.am: Install .reg files into
	$prefix/etc/win32/reg. Two versions are served, i.e.
	.hkcu.reg and .reg. When the user chooses to install
	gnumeric/win32 for the "current user" only, use .hkcu.reg
	and otherwise .reg.

	* src/tools/Makefile.am:
Stepan Kasal's avatar
Stepan Kasal committed
1009 1010
	* src/tools/gconf-schemas-to-win32-reg.c: Moved to tools/;
	see tools/ChangeLog for details.
1011

Stepan Kasal's avatar
Stepan Kasal committed
1012 1013 1014 1015
2005-04-15  Stepan Kasal  <kasal@ucw.cz>

	* schemas/Makefile.am (CLEANFILES): Add $(reg_DATA), if we are
	  building .reg files.
1016
	Don't distribute $(schema_DATA).
Stepan Kasal's avatar
Stepan Kasal committed
1017

1018 1019 1020 1021 1022 1023
2005-04-13  Morten Welinder  <terra@gnome.org>

	* src/mathfunc.c (pfuncinverter): Handle Newton search when log_p
	is TRUE.
	(dgamma1, dbeta1): Don't bail out for log_p.

1024 1025
2005-04-13  Jon K Hellan  <hellan@acm.org>

1026 1027 1028
	* src/gui-clipboard.c (x_claim_clipboard): Don't clear clipboard
	if we still own CLIPBOARD.

1029 1030 1031 1032 1033 1034
	* src/sheet-control-gui.c (scg_drag_receive_uri_list): Handle a
	bunch of extra mime types for dropped files.
	(scg_drag_receive_cellregion, 
	(scg_drag_receive_same_proc_other_scg,
	(scg_drag_send_clipboard_objects): Check that cell region is non
	null before using it.
1035

1036 1037 1038
2005-04-12  Morten Welinder  <terra@gnome.org>

	* src/workbook-view.c (wb_view_sendto): Fix setting of "problem".
1039
	Handle failure of mkdtemp.
1040

1041 1042 1043 1044
2005-04-11  Morten Welinder  <terra@gnome.org>

	* src/mathfunc.c (qf): Make our own version of this.

1045 1046
2005-04-10  Ivan, Wong Yat Cheung  <email@ivanwong.info>

1047 1048
	* src/dialogs/dialog-preferences.c (cb_pref_font_hf_set_fonts,
	cb_pref_font_set_fonts):
Stepan Kasal's avatar
Stepan Kasal committed
1049
	They were broken by my changes in 2005-04-08.
1050

Morten Welinder's avatar
Morten Welinder committed
1051 1052 1053 1054 1055
2005-04-09  Morten Welinder  <terra@gnome.org>

	* src/mathfunc.c (qf): Make our own version of this.  It's quite
	simple now that we have a working qbeta.

1056 1057 1058 1059 1060 1061
2005-04-05  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=162951 : trivial
	* src/sheet-control-gui.c (scg_comment_display) : remove some
	  unnecessary code now that a gtk bug has been fixed.

1062 1063 1064 1065 1066 1067
2005-04-09  Ivan, Wong Yat Cheung  <email@ivanwong.info>

	* configure.in: Determine whether we are cross-compiling.

	* src/libgnumeric.[ch]: Path variables should not be const.

1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089
2005-04-08  Ivan, Wong Yat Cheung  <email@ivanwong.info>

	* schemas/Makefile.am: Convert .schemas to .reg if host_os ==
	win32 and we are not cross-compiling.

	* src/application.c (gnm_app_history_add):
	* src/libgnumeric.c (gnm_shutdown):
	* src/print-info.c:
	* src/dialogs/dialog-function-select.c
	(dialog_function_write_recent_func):
	* src/dialogs/dialog-preferences.c:
	* src/tools/auto-correct.c: adopt to the modified
	gnumeric-gconf's api.

	* src/tools/Makefile.am:
	* src/tools/gconf-schemas-to-win32-reg.c: New. The name
	explains itself.

	* src/gnumeric-gconf-priv.h:
	* src/gnumeric-gconf.[ch]: Introduce the concept of a
	"node". Implement the win32 backend.

Morten Welinder's avatar
Morten Welinder committed
1090 1091
2005-04-08  Morten Welinder  <terra@gnome.org>

1092 1093 1094
	* src/mathfunc.c (pfuncinverter): Improve in the special case
	where one of the interval endpoints is 0.

1095 1096 1097 1098
	* src/xml-sax-write.c (gnm_xml_file_save): Untangle the
	do-we-compress logic and make it work.  Fixes #173030.
	* src/xml-io.c (gnumeric_xml_write_workbook): Ditto.

Morten Welinder's avatar
Morten Welinder committed
1099 1100 1101
	* src/xml-sax-write.c (xml_write_cell_and_position): Fix crash.
	* src/xml-io.c (xml_write_cell_and_position): Ditto.

1102 1103 1104 1105 1106
2005-04-04  Morten Welinder  <terra@gnome.org>

	* src/stf-export.c (stf_export_cell): Introduce "auto" mode and do
	something sensible with dates and times.  (Fixes #128936)

1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117
2005-04-04  Stepan Kasal  <kasal@ucw.cz>

	s/INCLUDES/AM_CPPFLAGS/  "automake -Wall" has told me this.

	* src/Makefile.am (non-intermediate): New dummy rule; see
		http://bugzilla.gnome.org/show_bug.cgi?id=172211 and
		http://bugzilla.gnome.org/show_bug.cgi?id=172212
	(.list.c, .list.h): Remove $(GLIB_GENMARSHAL); it didn't work
	  anyway, the prerequisities of an implicit rule are ignored.
	* Makefile.am: Use $(POFILES_FULL), not GNU-specific $(wildcard...).
	* configure.in (GLIB_GENMARSHAL): Full path is not needed.
Stepan Kasal's avatar
Stepan Kasal committed
1118
	(POFILES_FULL): New AC_SUBSTed variable, contains full paths to
1119 1120 1121 1122 1123
	  po/*.po files.
	(perl): Fix a typo, and a few cosmetic changes.
	(AC_OUTPUT): Remove plugins/perl/*.
	* plugins/perl/*: Removed.

1124 1125 1126 1127
2005-04-04  Morten Welinder  <terra@gnome.org>

	* src/stf-export.c: Derive from GsfOutputCsv.

Jody Goldberg's avatar
Jody Goldberg committed
1128 1129 1130 1131
2005-04-04  Jody Goldberg <jody@gnome.org>

	* src/xml-sax-write.c (gnm_cellregion_to_xml) : add a namespace decl

1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144
2005-04-04  Jody Goldberg <jody@gnome.org>

	* src/xml-sax-read.c : moved into the core from a plugin
	* src/xml-sax-write.c : ditto.
	(gnm_cellregion_to_xml) : new.

	* src/xml-io.c (xml_cellregion_write) : delete the DOM based version.
	(xml_init) : register the sax in/out routines

2005-04-04  Jody Goldberg <jody@gnome.org>

	* src/gui-clipboard.c (cellregion_to_string) : remove offset.

1145 1146 1147 1148
2005-04-02  Morten Welinder  <terra@gnome.org>

	* configure.in (perl): Fix perl checks.  (I hope.)

1149 1150 1151 1152 1153
2005-04-02  Jean Brefort  <jean.brefort@normalesup.org>

	* src/style.c: (style_init), (style_shutdown): removed calls to 
	number_format_init/shutdown (moved to goffice).

1154 1155
2005-04-01  Steve Murphy  <murf@e-tools.com>

1156
	* configure.in: Added "rw" to ALL_LINGUAS.
1157

1158 1159 1160 1161 1162
2005-04-01  Morten Welinder  <terra@gnome.org>

	* src/stf.c (csv_tsv_probe): In the content phase, decode to UTF-8
	before testing.  (Fixes #167191.)

1163 1164 1165 1166 1167
2005-04-01  Jon K Hellan  <hellan@acm.org>

	* src/gnm-so-filled.c (gnm_so_polygon_write_xml_dom) 
	(gnm_so_polygon_write_xml_sax): Fix warnings.

1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211
2005-04-01  Jon K Hellan  <hellan@acm.org>

	* src/workbook-control-gui.c (wbcg_sheet_add): Make the
	GNUMERIC_SHEET target GTK_TARGET_SAME_APP. 
	(cb_wbcg_drag_data_received): Added source_widget parameter.

	* src/sheet-object.c (sheet_object_rubber_band_directly): Always
	return FALSE.

	* src/gnumeric-pane.c (drag_types_in, drag_types_out):
	New. Supported drag targets.
	(cb_pane_drag_data_received): Pass source widget to
	scg_drag_data_received. 
	(cb_gnm_pane_drag_data_get): New. drag-data-get callback.
	(cb_gnm_pane_drag_motion): New. drag-motion callback.
	(cb_gnm_pane_drag_leave): New. drag-leave callback.
	(gnm_pane_drag_dest_init): New. Factor out of gnm_pane_init and
	Connect drag-data-get, drag-motion and drag-leave callbacks. 
	(gnm_pane_init): Use it.
	(gnm_pane_objects_drag): New. Factored out of gnm_pane_object_move.
	(gnm_pane_object_move): Use it.
	(cb_test_so_imageable): New. Check if object is imageable.
	(gnm_pane_drag_begin): New. Start gtk drag.
	(cb_control_point_event): Use it.

	* src/sheet-control-gui.c (scg_paste_cellregion): New. Paste
	a cellregion.
	(scg_drag_receive_cellregion): New. Receive a dropped cellregion.
	(scg_drag_receive_uri_list): New. Receive a dropped uri list.
	(scg_drag_receive_same_scg): New. Receive a drop from same scg.
	(scg_drag_receive_same_proc_other_scg): New. Receive a drop from
	another scg in same process.
	(scg_drag_receive_same_process): New. Receive a drop from this
	gnumeric process.
	(scg_drag_data_received): Added source_widget parameter. Handling
	of each target moved to a separate function. Added support for gnumeric
	gtk clipboard format. Added support for process internal dnd which
	shortcuts the selection.
	(scg_drag_send_image): New. Send an image over the dnd selection.
	(scg_drag_send_clipboard_objects): New. Send selected objects over
	the dnd selection. Gnumeric gtk clipboard format is used.
	(scg_drag_data_get): New. Send selected objects over the dnd
	selection in requested format.

Morten Welinder's avatar
Morten Welinder committed
1212 1213
2005-04-01  Morten Welinder  <terra@gnome.org>

Morten Welinder's avatar
Morten Welinder committed
1214
	* src/stf-export.c: Gut.  Use GsfOutputCsv.  (Fixes #126513.)
Morten Welinder's avatar
Morten Welinder committed
1215

1216 1217
2005-03-31  Morten Welinder  <terra@gnome.org>

1218 1219 1220
	* src/wbc-gtk.c (regenerate_window_menu): Clean up and allow more
	windows in the menu.

1221 1222 1223
	* src/search.c (gnm_search_replace_class_init): Make scope a
	property too.

1224 1225 1226
	* src/commands.c (cmd_set_text): Improve undo description.  Fixes
	#171637.

1227
	* src/workbook-view.c (wbv_save_to_uri): Don't set the error if we
Morten Welinder's avatar
Morten Welinder committed
1228 1229
	already have one.  Together with libgsf and goffice changes, this
	fixes #168581.
1230

1231 1232 1233 1234 1235 1236
2005-03-31  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=87528
	* src/commands.c (cmd_paste_copy) : When not transposing and pasting
	  into a single cell, be more flexible and allow full cols/rows.

1237 1238 1239 1240 1241
2005-03-31  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=87477
	* src/commands.c (cmd_paste_copy) : Use a nice simple tiling approach.

1242 1243
2005-03-30  Morten Welinder  <terra@gnome.org>

1244 1245 1246 1247 1248 1249 1250
	* src/search.c (search_collect_cells): Drop sheet argument.  We
	already have it.  All callers changed.

	* src/commands.c (cmd_search_replace_do): Drop unused sheet and
	workbook arguments.  All callers changed.
	(cmd_search_replace): Drop sheet argument.  All	callers changed.

1251 1252
	* src/search.c: Adapt to goffice changes.  (Aka make it an object
	and cut most of it.)
1253
	(gnm_search_replace_class_init): Define a pile of properties.
1254

Jody Goldberg's avatar
Jody Goldberg committed
1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289
2005-03-29  Jody Goldberg <jody@gnome.org>

	* src/func.c (tokenized_help_new) : warning suppression.

	* src/expr.c (gnm_expr_is_array) : new.

2005-03-29  Jody Goldberg <jody@gnome.org>

	* src/xml-io.c (xml_write_cell_and_position) : Take a value and
	  expression directly rather than a Cell to allow re-use between the
	  new clipboard data structure GnmCellCopy and GnmCell.

	* src/gui-clipboard.c (text_to_cell_region) : store data directly.
	(cellregion_to_string) : moved from clipboard.c and tweaked to support
	  the new data structure.
	(x_clipboard_get_cb) : no need for a pango context, we ignore variable
	  width formats when exporting.

	* src/sheet-style.c (style_list_get_style) : Use col & rol vs CellPos.

	* src/clipboard.c : Simplify GnmCellCopy and remove the ancient bogus
	  notion of keeping a copy of a full cell.
	(contents_as_expr) : renamed from cell_get_contents_as_expr, and
	  changed to take the expr and val directly.
	(apply_paste_oper_to_values) : deleted and merged into.
	(paste_cell_with_operation) : here.
	(gnm_cell_copy_new) : new.
	(paste_cell) : add some const.
	(clipboard_paste_region) : const and adjust to the changes.
	  We can test for pasting content here rather than per-cell.
	(cb_clipboard_prepend_cell) : use gnm_cell_copy_new.
	(cellregion_unref) : adjust to data structure change.
	(cellregion_to_string) : moved into gui-clipboard.c.  It's not really
	  gui specific but that is the only thing that uses it for now.

1290 1291 1292 1293
2005-03-29  Jon K Hellan  <hellan@acm.org>

	* src/xml-io.c (xml_cellregion_read): Silence warning.

1294 1295 1296 1297 1298
2005-03-29  Morten Welinder  <terra@gnome.org>

	* src/parse-util.c (col_name_internal): Handle nagative column
	numbers a bit saner.

Stepan Kasal's avatar
Stepan Kasal committed
1299 1300 1301 1302
2005-03-29  Stepan Kasal  <kasal@ucw.cz>

	* configure.in (--with-perl): Mention bug #171957.

1303 1304
2005-03-28  Jon K Hellan  <hellan@acm.org>

1305 1306 1307
	* src/gui-clipboard.c (image_write): Look harder for selected
	imageable objects.

1308 1309 1310 1311 1312
	* src/item-grid.c (drag_start): Remove.
	(item_grid_button_press): Don't call drag_start.

	* src/xml-io.c (xml_cellregion_read): Make param 'buffer' const.

Morten Welinder's avatar
Morten Welinder committed
1313 1314 1315 1316 1317 1318 1319 1320 1321
2005-03-28  Morten Welinder  <terra@gnome.org>

	* src/workbook-view.c (wb_view_auto_expr_precision): New function.

	* src/workbook-control-gui.c (cb_auto_expr_precision_toggled): New
	function.
	(cb_select_auto_expr): Add a check item to control whether maximum
	precision is used.

1322 1323 1324 1325 1326 1327 1328 1329 1330
2005-03-28  Jon K Hellan  <hellan@acm.org>

	* src/clipboard.[ch]: (clipboard_copy_obj): New. Returns a cell
	region with copies of objects in list. Factored out of
	gnm_app_clipboard_cut_copy_obj.

	* src/application.c (gnm_app_clipboard_cut_copy_obj): Use
	clipboard_copy_obj. 

1331 1332
2005-03-28  Morten Welinder  <terra@gnome.org>

1333 1334
	* src/workbook-view.c (wb_view_auto_expr_recalc): Take format from
	auto-format.
1335
	(wb_view_auto_expr_recalc): Plug leak.
1336

1337 1338 1339
	* src/xml-io.c: Don't include <goffice/utils/go-locale.h> which
	just went away and wasn't needed anyway.

1340 1341 1342
	* src/*.c src/*/*.c plugins/*/*.c: Use canonical object property
	names.

1343 1344 1345 1346 1347 1348
2005-03-24  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=171503
	* src/gnumeric-gconf.c (gnm_gconf_set_printer_config) : take control
	  of the string.

1349 1350 1351 1352 1353
2005-03-24  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/style-border.c (style_border_hash): use GPOINTER_TO_UINT
	  rather than just casting.

1354 1355 1356 1357
2005-03-24  Jon K Hellan  <hellan@acm.org>

	* src/gui-clipboard.c (x_clipboard_get_cb): Plug leak.

Morten Welinder's avatar
Morten Welinder committed
1358 1359
2005-03-24  Morten Welinder  <terra@gnome.org>

1360 1361 1362 1363
	* src/mathfunc.c (tdistexp): Take a log_p flag.  Improve accuracy
	a tiny bit, mostly in the log case.
	(binApprox): Move logs earlier and improve log case's accuracy.

Morten Welinder's avatar
Morten Welinder committed
1364 1365 1366 1367 1368
	* src/application.c (gnm_app_get_pixbuf): Use non-zero size.

	* src/print.c (print_hf_element): If we have no format, don't
	print anything.

1369 1370 1371 1372 1373 1374
2005-03-23  Morten Welinder  <terra@gnome.org>

	* src/numbers.h: For long double support, include sunmath.c if we
	have it.
	* configure.in: Check for sunmath.h

1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385
2005-03-23  Jon K Hellan  <hellan@acm.org>

	* src/sheet-object-graph.c (sheet_object_graph_write_image): 
	New. Implements SheetObjectImageable. Extracted from
	sog_cb_save_as. 
	(sog_cb_save_as): Use sheet_object_write_image.
	(sog_imageable_init): SheetObjectImageable gobject voodoo.

	* src/application.c (gnm_app_clipboard_cut_copy_obj): Save sheet
	object points dimensions as object data.

1386 1387
2005-03-23  Morten Welinder  <terra@gnome.org>

1388 1389 1390 1391
	* src/io-context-gtk.c (icg_processing_file): Fix for Win32.
	* src/main-application.c (warn_about_ancient_gnumerics): Fix for
	Win32.

1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405
	* src/workbook-view.c (wb_view_sendto): Use g_mkdir, not mkdir.
	(cb_cleanup_sendto): Use g_unlink and g_rmdir, not unlink and
	rmdir.

	* src/mathfunc.c (random_01): Use g_open, not open.

	* src/main-application.c (warn_about_ancient_gnumerics): use
	g_stat, not stat.

	* src/func.c (function_dump_defs): Use g_fopen, not fopen.

	* src/file-autoft.c (category_list_get_from_dir_list): Use
	g_file_test, not stat.

Stepan Kasal's avatar
Stepan Kasal committed
1406 1407 1408 1409 1410
2005-03-23  Stepan Kasal  <kasal@ucw.cz>

	* configure.in (HAVE_LIBZ): Don't define it, noone uses it, since
	  zlib is mandatory.

1411 1412
2005-03-22  Morten Welinder  <terra@gnome.org>

Stepan Kasal's avatar
Stepan Kasal committed
1413 1414 1415
	* templates/autoformat/Makefile.am (install-data-local): Don't use
	${var#pat} and ${var%pat}; it's POSIX feature, but it doesn't work
	with Solaris' /bin/sh.
1416

1417 1418 1419
2005-03-22  Morten Welinder  <terra@gnome.org>

	* src/workbook-control-gui.c (wbcg_update_action_sensitivity): Set
1420 1421 1422 1423
	editability of sheet tabs too.  Fixes #170958.
	(sheet_menu_label_run): If we have only one sheet, keep "Remove"
	in the menu, but make it inactive.  Disable everything when we
	have a guru.  Use an enum, not a define for bit fields.
1424

Stepan Kasal's avatar
Stepan Kasal committed
1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437
2005-03-22  Stepan Kasal  <kasal@ucw.cz>

	* autogen.sh: REQUIRED_AUTOCONF_VERSION=2.54  We already required
	  that indirectly, by asking for Automake >= 1.7.2.
	* configure.in: AC_PREREQ(2.54)
	  - don't default to --without-gtk even if the reqs are not met;
	  - fail if someone tries --with-python=/path;
	  - when searching for $PYTHON, try python2.4 and such; 
	  - don't generate stamp.h; the issue is solved by Automake 1.7.2;
	    see info '(autoconf)Automatic Remaking' for details.
	* stamp.h.in: Nuke.
	* .cvsignore: Remove stamp.h and stamp-h.in.

1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448
2005-03-21  Morten Welinder  <terra@gnome.org>

	* src/workbook.c (workbook_dispose): Simplify using
	workbook_set_saveinfo.  Move destruction of local functions to
	here.
	(workbook_finalize): From here.
	(workbook_sheet_name_strip_number): Fix docs; handle overflow;
	return unsigned value.
	(workbook_sheet_get_free_name): Adapt to changes in
	workbook_sheet_name_strip_number.

1449 1450 1451 1452 1453 1454 1455 1456 1457
2005-03-21  Stepan Kasal  <kasal@ucw.cz>

	* autogen.sh: Remove the unfortunate TRANSL_ONLY; fix the explanation
	  why we need our own copy of po/Makefile.in.in; use a nicer code to
	  generate po-functions/POTFILES.*.
	* README: Fix the Debian package name for pango, remove the intltool
	  requirement.
	* gnumeric.spec.in: Update the dependencies.

1458 1459 1460 1461
2005-03-17  Jon K Hellan  <hellan@acm.org>

	* src/gui-clipboard.c (x_claim_clipboard): Check for content == NULL.

Morten Welinder's avatar
Morten Welinder committed
1462 1463 1464 1465
2005-03-17  Morten Welinder  <terra@gnome.org>

	* src/xml-io.c (maybe_convert): Use go_guess_encoding.

Stepan Kasal's avatar
Stepan Kasal committed
1466 1467 1468 1469 1470
2005-03-17  Stepan Kasal  <kasal@ucw.cz>

	* autogen.sh: Use egrep, not awk; there is a system which distributes
	  a very broken version of it.  Thanks to Morten for noting this.

1471 1472
2005-03-16  Morten Welinder  <terra@gnome.org>

1473 1474 1475
	* src/xml-io.c (maybe_convert): Explicitly try ISO-8859-1 if
	locale fails.

Morten Welinder's avatar
Morten Welinder committed
1476 1477 1478 1479 1480 1481 1482 1483 1484 1485
	* src/workbook-control.c (wb_control_update_title): Handle NULL
	basename.

	* src/wbc-gtk.c (regenerate_window_menu): Ignore workbooks where
	we don't get a valid basename.

	* src/workbook-priv.h (struct Workbook): Remove .basename.

	* src/workbook.c (workbook_get_basename): Delete, it's unused.

1486 1487
	* src/parse-util.c (row_parse): Fix parsing problem.  [#170465]

1488 1489 1490 1491 1492 1493
2005-03-13  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=169830
	* src/gnumeric-pane.c (gnm_pane_init) : init the zoom.
	(gnumeric_pane_header_init) : ditto.

1494 1495 1496
2005-03-16  Stepan Kasal  <kasal@ucw.cz>

	* autogen.sh: require intltool >= 0.29; fix IFS handling;
1497 1498 1499
	  create po*/Makefile.in.in and po-functions/POTFILES.* ---
	  and if the traslators don't want anything but these files, they
	  can just run "TRANSL_ONLY=1 ./autogen.sh".
1500 1501 1502
	* acinclude.m4: Nuked, it shouldn't be needed.
	* Makefile.am (ACLOCAL_AMFLAGS): Remove.
	* configure.in: Do AC_SUBST(ACLOCAL_AMFLAGS, $ACLOCAL_FLAGS);
1503 1504 1505 1506 1507 1508
	  don't show --with-guile in the help, don't configure
	  directories plugins/gb/ and plugins/guile/.
	* plugins/Makefile.am (SUBDIRS): Simplify the conditional
	  assignments; omit subdirs gb and guile.
	* plugins/gb/Makefile.am, plugins/guile/Makefile.am: Add a text to
	  the top, warning about POTFILES.skip.
1509 1510 1511 1512 1513 1514 1515
	* src/pixmaps/Makefile.am (STRIP_BEGIN, STRIP_END, STRIP_DUMMY):
	  Remove these, I see no need for them; the cosmetic advantage
	  can be achieved with one echo.
	* configure.in (STRIP_BEGIN, STRIP_END, STRIP_DUMMY): Don't detect.

	In many files, fix the typo contraint --> constraint.

Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
1516 1517 1518 1519 1520 1521 1522
2005-03-15  Jon K Hellan  <hellan@acm.org>

	* src/gui-clipboard.c (image_write): New. Write an object as image
	to the clipboard.
	(x_clipboard_get_cb): Analyze clipboard content and advertise
	image formats when appropriate.

1523 1524
2005-03-15  Morten Welinder  <terra@gnome.org>

1525 1526 1527
	* src/search.h (struct SearchFilterResult): Don't store cell and
	comment.

1528 1529 1530 1531 1532 1533 1534
	* src/workbook.c (workbook_sheet_detach): Emit sheet_deleted
	signal here.
	(workbook_sheet_delete): Not here.
	(workbook_dispose): New function, extracted from
	workbook_finalize.
	(workbook_class_init): Install ->dispose.

1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550
2005-03-15  Jon K Hellan  <hellan@acm.org>

	* src/sheet-object-image.c (sheet_object_image_write_image):
	New. Implements SheetObjectImageable. Extracted from
	soi_cb_save_as. 
	(soi_cb_save_as): Use sheet_object_write_image.
	(soi_imageable_init): SheetObjectImageable gobject voodoo.

	* src/sheet-object.[ch] (sheet_object_imageable_get_type): New. For
	the SheetObjectImageable interface.
	(sheet_object_write_image): New. Method of SheetObjectImageable.

	* src/sheet-object-impl.h: Add _SheetObjectImageableIface

	* src/gnumeric.h: Add SheetObjectImageableIface

1551 1552
2005-03-14  Morten Welinder  <terra@gnome.org>

1553 1554 1555 1556 1557 1558 1559
	* src/sheet.c (sheet_finalize): New function, split out from
	sheet_destroy.
	(sheet_destroy): Just unref objects we hold refs for, i.e., no
	longer finalize.  All callers changed to unref sheet also.
	(gnm_sheet_class_init): Install sheet_finalize.  Define
	detached_from_workbook signal.

1560 1561 1562
	* src/workbook-control-gui.c (wbcg_validation_msg): Fix arg order
	of go_gtk_dialog_run call.

1563 1564 1565
	* src/gui-file.c (gui_file_save_as): Don't force local-only file
	chooser.

1566 1567 1568 1569 1570 1571 1572
2005-03-12  Jon K Hellan  <hellan@acm.org>

	* src/wbcg-actions.c: Add <Ctrl>+P accelerator for print.

	* src/gui-clipboard.c (table_content_received): Paste selection
	with only objects, no cells.

1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584
2005-03-10  Morten Welinder  <terra@gnome.org>

	* src/print-cell.c (print_cell): Pretend to have zoom=100%.

	* src/sheet-control-gui.h (scg_get_style_font): Delete.  Expand
	into all callers.

	* src/rendered-value.c (rendered_value_new,
	rendered_value_render): Take zoom as a parameter.  All callers
	changed.
	(calc_indent): Take zoom instead of sheet as parameter.

1585 1586 1587 1588 1589
2005-03-11  Jon K Hellan  <hellan@acm.org>

	* src/gnumeric-pane.c (gnm_pane_init): Add drag action
	GDK_ACTION_MOVE. Needed for drag receive from konqueror.

1590 1591 1592 1593 1594 1595 1596 1597 1598 1599
2005-03-11  Jon K Hellan  <hellan@acm.org>

	* src/gui-clipboard.c (text_content_received): New. Split out of
	complex_content_received.
	(image_content_received): New. Receive image data.
	(table_content_received): Renamed from complex_content_received
	and split.
	(x_targets_received): Renamed from x_clipboard_received.
	(x_request_clipboard): Use gtk_clipboard_request_targets-

1600 1601 1602 1603 1604 1605 1606 1607
2005-03-10  Jon K Hellan  <hellan@acm.org>

	* src/sheet-control-gui.c (scg_image_create): New. The parts which
	are common to scg_paste_image and scg_drag_receive_img_data.
	(scg_paste_image): New. Create an image at natural size and place
	it  at position given by range.
	(scg_drag_receive_img_data): Move parts to scg_image_create.

1608 1609 1610 1611 1612
2005-03-09  Morten Welinder  <terra@gnome.org>

	* configure.in (with-long-double): ride on top of libgoffice's
	stuff.  That kills all the ugly stuff here.

1613 1614 1615 1616
2005-03-07  Jon K Hellan  <hellan@acm.org>

	* src/sheet-control-gui.c (scg_drag_data_received): Check for NULL.

1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633
2005-03-07  Jon K Hellan  <hellan@acm.org>

	* src/workbook-control-gui.c (cb_wbcg_drag_data_received):
	Delegate text/uri-list to scg_drag_data_received.

	* src/sheet-control-gui.c (scg_drag_receive_img_data): New. Receive
	dragged image data.
	* src/sheet-control-gui.c (scg_drag_receive_img_uri): New. Receive
	dragged image uri.
	(scg_drag_receive_spreadsheet): New. Receive dragged spreadsheet
	uri.
	(scg_drag_data_received): New. Receive drag data.

	* src/gnumeric-pane.c (cb_pane_drag_data_received): New. Receive
	drag data.
	(gnm_pane_init): Register as drag destination.

Morten Welinder's avatar
Morten Welinder committed
1634 1635
2005-03-07  Morten Welinder  <terra@gnome.org>

1636
	* configure.in: We no longer need the "finite" hackery.
1637

Morten Welinder's avatar
Morten Welinder committed
1638 1639
	* src/mathfunc.c (mathfunc_init): Use goffice's nan etc.

Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
1640 1641 1642 1643 1644 1645
2005-03-04  Jon K Hellan  <hellan@acm.org>

	* src/ssindex.c (main): Plugin api renamed.

	* src/ssconvert.c (main): Ditto.

1646 1647 1648 1649 1650
2005-03-04  Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>

	* src/sheet-control-gui.c (apply_move): don't get rtl flag from 
	gcanvas, since it can be not fully initialized.
	
1651 1652 1653 1654 1655
2005-03-03  Jon K Hellan  <hellan@acm.org>

	* src/session.c (interaction_function): Deiconify toplevel before
	displaying save/cancel dialog.

1656 1657 1658 1659 1660 1661 1662
2005-03-03  Morten Welinder  <terra@gnome.org>

	* src/item-cursor.c (item_cursor_target_region_ok): Fix
	go_gtk_query_yes_no arg order.
	* src/gui-file.c (check_multiple_sheet_support_if_needed): Ditto.
	(gui_file_save_as): Ditto.

1663 1664 1665 1666
2005-03-02  Morten Welinder  <terra@gnome.org>

	* configure.in (gnumeric_gtk_reqs): Get rid of GnomeCanvas.

1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682
2005-03-01  Jody Goldberg <jody@gnome.org>

	* (all plugins) :
	    s/GNUMERIC_MODULE_PLUGIN_INFO_DECL/
	    GOFFICE_MODULE_PLUGIN_INFO_DECL(GNUMERIC_VERSION)/

	* configure.in : Add the libgoffice depend and remove the
	  src/cut-n-paste/goffice dirs
	remove test for gnome_print_pango_create_layout.
	    pango_layout_set_ellipsize,
	    pango_context_set_matrix,
	    pango_context_get_font_map

	* src/Makefile.am : drop the built in libgoffice and pcre libraries
	  we pull them externally now.

Morten Welinder's avatar
Morten Welinder committed
1683 1684 1685 1686 1687 1688
2005-03-01  Morten Welinder  <terra@gnome.org>

	* src/gui-util.c (gnumeric_glade_group_value): Constify.
	* src/mstyle.c (mstyle_names): Constify.
	* src/summary.c (summary_item_name): Constify.

1689 1690 1691 1692 1693 1694 1695 1696 1697
2005-02-28  Morten Welinder  <terra@gnome.org>

	* src/rendered-value.c (rendered_value_render): For numbers, map
	'-' to U2212 which has same width as "+".

	* src/gnm-format.h: Define a bunch of unicode characters by name.
	* src/parser.y (yylex): Use these.
	* src/cell-draw.c (cell_calc_layout): Ditto.

Morten Welinder's avatar
Morten Welinder committed
1698 1699
2005-02-25  Morten Welinder  <terra@gnome.org>

1700 1701 1702
	* src/main-application.c (main): Properly get rid of wbcgs when
	using --quit.

1703 1704 1705 1706 1707
	* src/workbook-control-gui.c (wbcg_create_status_area): Keep a ref
	for ->auto_expr_label in case the idle handler for updating it
	triggers at an inconvenient time.
	(wbcg_finalize): Unref.

Morten Welinder's avatar
Morten Welinder committed
1708 1709
	* src/main-application.c (main): Fix leak.

Morten Welinder's avatar
Morten Welinder committed
1710 1711
	* src/gnumeric-gconf.c (gnm_conf_shutdown): Fix crash with --quit.

1712 1713
2005-02-24  Morten Welinder  <terra@gnome.org>

1714 1715 1716
	* src/gui-file.c (gui_file_save_as): Fix arg order for
	go_url_check_extension.

1717 1718 1719
	* src/wbcg-actions.c: Mark action arrays const now that 142334 has
	been fixed.  Assume GTK_STOCK_ABOUT.

1720 1721 1722 1723 1724 1725
2005-02-23  Jon K Hellan  <hellan@acm.org>

	* src/workbook-control-gui.c (cb_sheet_label_drag_data_received, 
	cb_sheet_label_drag_leave, cb_sheet_label_drag_motion): Don't
	crash or complain if drag source is in a different process.

1726 1727 1728 1729 1730 1731 1732 1733
2005-02-22  Stepan Kasal  <kasal@ucw.cz>

	* configure.in: Fix creation of po-functions/POTFILES.
	* src/Makefile.am: Fix declarations for generated sources.
	* src/cut-n-paste-code/goffice/utils/Makefile.am: Likewise.
	* plugins/corba/Makefile.am: Likewise.
	* idl/Makefile.am: Likewise.

1734 1735 1736 1737 1738
2005-02-18  Morten Welinder  <terra@gnome.org>

	* src/stf-parse.c (count_character): Ignore completely empty
	lines.  They aren't telling us anything about separators.

1739 1740 1741 1742 1743
2005-02-17  Jody Goldberg <jody@gnome.org>

	* src/func.c (cb_generate_po) : more validation in preparation for
	  regenerating the help and po.

Jody Goldberg's avatar
Jody Goldberg committed
1744 1745 1746 1747 1748 1749 1750 1751
2005-02-16  Jody Goldberg <jody@gnome.org>

	* src/libgnumeric.c (gnm_pre_parse_init) : set the path for the new
	  gnumeric-functions message catalog

	* src/gnumeric-gconf.c : Add an ifdef to silence the gconf warnings
	* src/io-context.[ch], src/io-context-priv.h : move into goffice/app

1752 1753
2005-02-15  Morten Welinder  <terra@gnome.org>

Morten Welinder's avatar
Morten Welinder committed
1754 1755
	* src/main-application.c: Typo.  [#167495]

1756 1757 1758 1759
	* src/gui-file.c (do_save_as): Expand into lone caller.  Destroy
	dialog right after we're done with it, so there user doesn't get
	to press Save while we save.

1760 1761 1762 1763 1764 1765
2005-02-14  Stepan Kasal  <kasal@ucw.cz>

	Don't use #include <src/xyz.h>, as `-I $(top_srcdir)' is not
	always in the flags; none of these headers is duplicate in the
	tree, so we can safely omit the dirname.

1766 1767 1768 1769 1770 1771 1772 1773
2005-02-14  Stepan Kasal  <kasal@ucw.cz>

	* src/solver.h: Define most of the structures even if !ENABLE_SOLVER.
	* src/xml-io.c (xml_read_solver, xml_write_solver): Compile these two
	  functions even if !ENABLE_SOLVER, so that we don't cripple the
	  files we open and save; the only thing we really cannot do is to
	  to compute the text presentation of the constraints.

1774 1775 1776 1777 1778
2005-02-12  Jon K Hellan  <hellan@acm.org>

	* src/stf-parse.c (stf_parse_sheet): Don't crash if parsing
	doesn't return lines.

1779 1780 1781 1782 1783 1784 1785 1786
2005-02-12  Jody Goldberg <jody@gnome.org>

	* configure.in : move function docs into a distinct message catalog
	* */*.c : modify all function docs to start using the new format.
	* src/func.c (gnm_func_load_stub) : adjust to new GnmFuncHelp type
	(gnm_func_add) : ditto
	(tokenized_help_new) : ditto

1787 1788 1789 1790 1791 1792 1793 1794
2005-02-10  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=165982
	* src/gnm-plugin.c (gnm_plugins_init) : Use G_SEARCHPATH_SEPARATOR in
	  place of hard coding ':' to be more portable.
	* src/dialogs/dialog-plugin-manager.c (pm_gui_load_directory_page) :
	  ditto.

1795 1796 1797 1798 1799 1800 1801 1802 1803 1804
2005-02-09  Jody Goldberg <jody@gnome.org>

	* src/workbook-control-gui.c (wbcg_sheet_add) : don't create a control
	  for a hidden sheet.

2005-02-09  Jody Goldberg <jody@gnome.org>

	For david@arabidopsis.info (David J Craigon):
	* src/ssconvert.c : Add -I flag to specify importer

Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
1805 1806 1807 1808
2005-02-09  Jon K Hellan  <hellan@acm.org>

	* src/Makefile.am (GNUMERIC_BASE): Remove error-info.c.

1809 1810 1811 1812 1813
2005-02-09  Stepan Kasal  <kasal@ucw.cz>

	* src/error-info.h: Nuke, we are using <goffice/app/error-info.h>.
	* src/Makefile.am: Remove it.

1814 1815 1816 1817 1818
2005-02-09  Stepan Kasal  <kasal@ucw.cz>

	* configure.in (TPUT_CMD, marker_ok, marker_fail, marker_no): Nuke.
	(BIG_CHECKING): New m4 macro, used to emphasize some of the checks.

1819 1820 1821 1822
2005-02-08  Jody Goldberg <jody@gnome.org>

	* configure.in : Post release bump

Jody Goldberg's avatar
Jody Goldberg committed
1823 1824 1825 1826
2005-02-08  Jody Goldberg <jody@gnome.org>

	* Release 1.5.0

Jody Goldberg's avatar
Jody Goldberg committed
1827 1828 1829 1830
2005-02-08  Jody Goldberg <jody@gnome.org>

	* src/print-info.c (print_hf_same) : add some protection

1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842
2005-02-06  Jean Brefort  <jean.brefort@normalesup.org>

	* src/sheet-object-widget.c: (cb_adjustment_value_changed): avoid
	recalculation on update, fixes #166085. 
	(sheet_widget_adjustment_init_full),
	(cb_adjustment_config_ok_clicked),
	(sheet_widget_adjustment_write_xml_sax),
	(sheet_widget_adjustment_write_xml_dom),
	(sheet_widget_adjustment_read_xml_dom),
	(sheet_widget_adjustment_set_details): make constant and consistent
	scrollbar and slider max values, fixes #165173.

1843 1844 1845 1846
2005-02-05  Morten Welinder  <terra@gnome.org>

	* src/style.c (gnm_font_find_closest_from_weight_slant): Delete.

1847 1848 1849 1850 1851
2005-02-05  Morten Welinder  <terra@gnome.org>

	* src/print.c: Avoid going PangoFontDescription -> GnomeFont ->
	PangoFontDescription.

1852 1853
2005-02-04  Morten Welinder  <terra@gnome.org>

1854 1855 1856 1857
	* src/item-bar.c (item_bar_calc_size): Measure height of letters
	not logical line height.  Use more pango and less magic.  This
	might kill #162600.

1858 1859 1860
	* src/print.c (print_hf_element): Remove old #ifdef HAVE_foo.
	* src/cell-draw.c (cell_draw): Ditto.

1861 1862 1863 1864 1865 1866
	* src/print-cell.c: Eliminate old printing code.

	* src/style.c (style_font_new_simple): No need for setting
	->gnome_print_font any more.
	(style_font_unref): And no need to unref.

1867 1868 1869 1870
	* src/rendered-value.c (rendered_value_recontext): Copy font
	description too now that pango supports it.  Eliminate old #ifdef
	HAVE_foo.

1871 1872 1873 1874
	* src/mathfunc.c (gnumeric_fake_floor, gnumeric_fake_ceil): When
	adding epsilon, make sure that is <0.5.
	(gnumeric_fake_round, gnumeric_fake_trunc): Simplify in terms of
	gnumeric_fake_floor.
Morten Welinder's avatar
Morten Welinder committed
1875
	Fixes #166188.
1876

1877 1878 1879 1880
2005-02-03  Morten Welinder  <terra@gnome.org>

	* src/dependent.c: eliminate code predating micro hashes.

1881 1882
2005-02-03  Morten Welinder  <terra@gnome.org>

Morten Welinder's avatar
Morten Welinder committed
1883
	* src/dependent.c (micro_hash_resize): Correctly handle	#elems<=1.
1884 1885
	(unlink_range_dep): Plug leak.  [#159581]

1886 1887 1888 1889 1890
2005-02-02  Morten Welinder  <terra@gnome.org>

	* src/format.c (fmt_general_float): Consistently use upper case
	"E" for general format when exponential notation is needed.

1891 1892 1893 1894 1895
2005-02-02  Jean Brefort  <jean.brefort@normalesup.org>

	* src/graph.c: (gnm_go_data_matrix_get_value): duplicate value before
	releasing (#166051)

Jody Goldberg's avatar
Jody Goldberg committed
1896 1897 1898 1899
2005-02-01  Jody Goldberg <jody@gnome.org>

	* gnumeric.xsd : Add entries for validation and hyperlinks

1900 1901
2005-02-01  Morten Welinder  <terra@gnome.org>

1902 1903 1904 1905
	* src/stf-parse.c (stf_parse_csv_is_separator): Handle
	end-of-buffer correctly in the single-character case.
	[Fixes #165617]

1906 1907
	* src/commands.c (cmd_ins_del_colrow): Survive if the current
	clipboard does not hold a range (but holds a sheet object).
1908
	[Fixes #165873]
1909

1910 1911 1912 1913 1914
2005-01-27  Morten Welinder  <terra@gnome.org>

	* src/complete-sheet.c (complete_sheet_search_iteration): Rework
	broken search strategy.

1915 1916 1917 1918 1919 1920
2005-01-27  Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>

	* src/gnumeric-canvas.c (gnm_canvas_key_mode_object): delta is 
	1.0 / FooCanvas::pixels_per_unit for correct behaviour when zoom is !=
	100 %

1921 1922 1923 1924 1925 1926 1927 1928 1929 1930
2005-01-26  Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>

	* src/gnumeric-canvas.c (gnm_canvas_key_mode_object): don't invert
	move in rtl mode.
	* src/sheet-control-gui.c (snap_pos_to_grid): use correct SHEET_MAX
	depending on what to snap to grid.
	(snap_to_grid): handle rtl case, where GNUMERIC_CANVAS_FACTOR_X is
	0 in world coordinates. World coordinates are negative in rtl mode.
	(apply_move): positive delta means going downward in cell numbers.

1931 1932 1933 1934 1935
2005-01-25  Morten Welinder  <terra@gnome.org>

	* configure.in (gnumeric_gnome_reqs): Upgrade requirements to
	something recent.

1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951
2005-01-25  Stepan Kasal  <kasal@ucw.cz>

	AC_PATH_PROG can be tricky: if the user sets the variable to
	something which doesn't look like a full path, autoconf proceeds
	with the test as if the variable were not set; no warning is issued
	(at least for autoconf versions <= 2.59).
	AC_CHECK_PROG is much more transparent: if the variable is nonempty,
	no test is executed.  Let's use it where possible.

	* configure.in (GCONFTOOL): Don't publish the variable, because
	  AM_GCONF_SOURCE_2, which is used after the check, has
	  ``gconftool-2'' hardwired anyway; clear the variable before use.
	  Call AC_CHECK_PROG instead of AC_PATH_PROG.
	(GLIB_GENMARSHAL): Explain why full path is needed.
	(GDK_PIXBUF_CSOURCE): Call AC_CHECK_PROG instead of AC_PATH_PROG.

1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966
2005-01-25  Stepan Kasal  <kasal@ucw.cz>

	* configure.in: work on --with-perl; this partially fixes
		http://bugzilla.gnome.org/show_bug.cgi?id=158029

	  In AC_CHECK_LIB(perl,...) change the third parameter to `:'
	  so that it is nonempty and -lperl is not added to LIBS; this fixes
		http://bugzilla.gnome.org/show_bug.cgi?id=158379

	  A cosmetic change: Don't use `[ ]' as an empty argument of a macro,
	  it may confuse m4; use `[]' instead.

	  Another cosmetic change: the word for ``case'' doesn't need any
	  quoting nor prefix.

1967 1968 1969 1970 1971 1972
2005-01-25  Stepan Kasal  <kasal@ucw.cz>

	* configure.in: Initialize win32=no, in case someone has the variable
	  in the environment.
	  Fix the help string for --enable-ssindex.

1973 1974 1975 1976 1977
2005-01-24  Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>

	http://bugzilla.gnome.org/show_bug.cgi?id=164455
	* src/sheet-object-graph.c (sog_cb_save_as): fix svg size.

1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994
2005-01-24  Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>

	* src/gnumeric-canvas.c (gnm_canvas_key_mode_object): pass shift state
	to scg_objects_nudge.
	* src/gnumeric-pane.c (gnm_pane_object_move): alter real move values
	with feedback from scg_object_drags. With snap to grid real move can
	be different than what asked.
	(cb_slide_handler): update call to gnm_pane_object_move.
	(cb_control_point_event): update call to scg_object_drag. 
	Pass shift state to gnm_pane_object_move.
	* src/sheet-control-gui.c (snap_pos_to_grid): new.
	(snap_to_grid): new.
	(apply_move): new.
	(drag_object): new.
	(drag_selected_objects): use drag_object.
	(scg_objects_drag): drag primary object first.

1995 1996 1997 1998 1999 2000
2005-01-22  J.H.M. Dassen (Ray) <jdassen@debian.org>

	http://bugs.debian.org/291265
	* src/file.c (gnm_file_saver_save) : Produce an error when no proper
	UTF-8 filename was produced.

2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111
2005-01-20  Jody Goldberg <jody@gnome.org>

	* src/xml-io.c (xml_sheet_write) : store the rtl flag
	(xml_sheet_read) : read the rtl flag

	* src/workbook-control-gui.c (cb_notebook_switch_page) : set the
	  direction on page change
	(show_gui) : setting it here too.
	(set_dir) : new.
	(wbcg_set_direction) : new

	* src/wbcg-actions.c (cb_direction) : A quick and simple direction
	  setting action.  We need a better icon, and improved state.

	* src/style-border.c (style_border_hmargins) : lots of finicky
	  -1*offset style changes for rtl.

	* src/sheet.c (gnm_sheet_class_init) : Add some as yet unused get/set
	  property routines.
	(gnm_sheet_init) : new to init the direction based on the locale.  Use
	  a gtk routine for now.  There's a bug open to have that moved to
	  glib.
	(sheet_set_direction) : new.

	* src/sheet-view.c (sv_init_sc) : init the direction.
	(sv_direction_changed) : new.

	* src/sheet-object-cell-comment.c (comment_view_set_bounds) : fold the
	  old comment_get_points into here and invert things in RTL mode.

	* src/sheet-control-gui.c (scg_redraw_headers) : col coordinates are
	  negative for rtl mode.
	(scg_resize) : rework for rtl
	(scg_set_zoom_factor) : ditto.
	(bar_set_left_col) : ditto.
	(bar_set_top_row) : ditto.
	(gnm_canvas_set_top_left) : ditto.
	(calc_obj_place) : ditto.  Clarify which coordinate system we're in.
	(scg_direction_changed) : new virtual.
	(scg_scale_changed) :  renamed from scg_set_zoom_factor.

	* src/print.c (print_sheet_objects) : handle rtl. (needs testing)
	(print_page_cells) : simple rtl handling

	* src/mstyle.c : Add a text_dir element that defaults to CONTEXT right
	  now.  This is unused until it is better understood, but it is read
	  and written from xls.  We need to add xml support.

	* src/item-grid.c (item_grid_draw_merged_range) : handle rtl
	(item_grid_draw) : ditto.
	* src/print-cell.c (print_merged_range) : ditto
	(print_cell_range) : ditto.

	* src/item-edit.c (ie_layout) : swap directions in RTL mode.  We still
	  need more work here to honour the alignment better while editing.

	* src/item-cursor.c
	(item_cursor_request_redraw) : delete, we can use foo_canvas_item_request_redraw
	(item_cursor_update) : handle rtl
	(item_cursor_draw) : ditto
	(item_cursor_bound_set) : add some safety to avoid drawing before the
	  position is set, or if it is set to something invalid

	* src/item-bar.c (item_bar_draw) : major rework to handle RTL mode.
	  - swap the the direction for the cells and the outlines
	(is_pointer_on_division) : handle rtl and clarify which coordinate
	  system the various inputs and results use.
	(ib_set_cursor) : simplify
	(outline_button_press) : RTL flips some coordinates.
	(item_bar_event) : ditto

	* src/gnumeric-simple-canvas.c (gnm_simple_canvas_x_w2c) : doh! handle
	  zoom

	* src/gnumeric-pane.c (gnumeric_pane_header_init) : handle rtl
	(gnm_pane_init) : ditto.
	(gnm_pane_colrow_resize_start) : ditto.
	(gnm_pane_colrow_resize_move) : ditto.
	(cb_slide_handler) : ditto.

	* src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet) : Swap the
	  direction of arrow keys in rtl mode.
	(gnm_canvas_key_mode_object) : ditto
	(gnm_canvas_size_allocate) : always recompute visible range.  In RTL
	  mode we want to have things aligned on the left edge whose coord
	  moves.
	(gnm_canvas_find_col) : handle the rtl negation of world coords
	(gnm_canvas_redraw_range) : ditto
	(gcanvas_sliding_callback) : ditto.
	(gnm_canvas_handle_motion) : ditto.
	  NOTE : work around a bug in gtk's use of X.  When dragging past the
	  right edge of the sheet in rtl mode we are operating at the edge of
	  a 32k wide window and the event coords get larger than can be held
	  in a signed short.  As a result we get world coords of -65535 or so.
	  KLUDGE KLUDGE KLUDGE
	    with our current limit of 256 columns it is unlikely that we'll
	    hit -65535 (at appropriate zoom) as a valid coord (it would
	    require all cols to be 256 pixels wide.  it is not impossible, but
	    at least unlikely.  So we put in a kludge here to catch the screw
	    up and remap it.   This is not pretty,  at large zooms this is not
	    far fetched.
	(gnm_canvas_compute_visible_region) : things are more complicated for
	  rtl mode.

	* src/commands.c : Add undo for the rtl vs ltr mode

	* src/cellspan.c (cell_calc_span) : in rtl mode swap the meaning of
	  horizontal alignment.

	* src/GNOME_Gnumeric-gtk.xml.in : Add the rtl toggle action

Jody Goldberg's avatar
Jody Goldberg committed
2112 2113 2114 2115
2005-01-20  Jody Goldberg <jody@gnome.org>

	* configure.in : post branching bump

2116 2117 2118 2119 2120 2121 2122 2123
2005-01-19  Morten Welinder  <terra@gnome.org>

	* src/style.c (style_font_new_simple): Only create
	gnome_print_fonts for old printing code.

	* src/print-cell.c (using_old_printing_code): New public function
	extracted from print_cell.

2124 2125 2126 2127 2128
2005-01-17  Jody Goldberg <jody@gnome.org>

	* configure.in : post release version bump
	  If everything is smooth we'll branch on Wed

Jody Goldberg's avatar
Jody Goldberg committed
2129 2130 2131 2132
2005-01-17  Jody Goldberg <jody@gnome.org>

	* Release 1.4.2

Jody Goldberg's avatar
Jody Goldberg committed
2133 2134 2135 2136 2137 2138
2005-01-16  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=161404
	* xmldocs.make : sync doc installation dir with where the code expects
	  it to live

2139 2140 2141 2142 2143 2144 2145
2005-01-16  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=158692
	* src/preview-grid.c (pg_get_row_offset) : don't return SHEET_MAX_ROWS
	  if h =0.
	(pg_get_col_offset) : ditto.

2146 2147 2148 2149 2150 2151
2005-01-16  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=162631
	* src/gnumeric-pane.c (set_acetate_coords) : handle the race condition
	  for the rubber band directly case.

2152 2153 2154 2155 2156 2157 2158 2159 2160 2161
2005-01-15  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=162631
	* src/sheet-object.c (sheet_object_new_view) : return the new view, it
	  may actually be useful.

	* src/sheet-control-gui.c (cb_collect_objects_to_commit) : we actually
	  need to create the view here if it does not exist, otherwise we lose
	  the size

2162 2163 2164 2165 2166 2167 2168 2169
2005-01-13  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=162631
	* src/sheet-control-gui.c (cb_collect_objects_to_commit) : more
	  safety.

	* src/sheet-object.c (sheet_object_view_set_bounds) : be safer.

2170 2171 2172 2173 2174
2005-01-15  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=161547
	* configure.in : Make the python test more robust

2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185
2005-01-14  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=163438
	* src/format.c (format_compile) : notice fmts that request a fill
	(style_format_new_XL) : init the new is_var_width flag

	* src/rendered-value.c (rendered_value_render) : there are formats
	  other than General that have variable widths.  Are measurement of
	  col width and characters sucks.   We really need to do the fills at
	  a higher level where we have font metrics.

2186 2187 2188 2189 2190 2191
2005-01-14  Jody Goldberg <jody@gnome.org>

	http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=290388
	* src/sheet-object-cell-comment.c (comment_get_points) : This will
	  need work for RTL, but we do need to compensate for the zoom.

2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209
2005-01-14  Jody Goldberg <jody@gnome.org>

	* src/gnumeric-pane.c (cb_control_point_event) : fix double click
	  handling to not start a drag when the editor is gone

2005-01-13  Jody Goldberg <jody@gnome.org>

	http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=288157
	* src/colrow.c (colrow_set_sizes) : we need to rerender variable width
	  content when resizing all cols at the same time, just like we do for
	  smaller sections

2005-01-13  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=161782
	* templates/autoformat/Makefile.am : applied patch to use non
	  bash-specific variable substitution.

2210 2211 2212 2213 2214
2005-01-13  Morten Welinder  <terra@gnome.org>

	* src/style.c (style_font_new_simple): Don't ref and unref the
	context.

2215 2216 2217 2218 2219
2005-01-13  Jean Brefort  <jean.brefort@normalesup.org>

	* src/graph.c: (gnm_go_data_matrix_load_values): don't write data outside of
	allocated matrix. Fixes #163626.

2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248
2005-01-12  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=163223
	* src/style.c (style_font_string_width) : take a layout directly.
	(calc_font_width) : ditto.
	(style_font_new_simple) : keep the PangoFontMetrics and PangoLayout
	  here rather than as data members with no real purpose.  It should
	  make it easier to remove the scaling in here.
	NOTE : remove the prescaling of the font size.  It did not belong
	  here.  We use a scale attribute while measuring.  Eventually we can
	  split the calculation of metrics out and remove the ugly scale/zoom
	  param entirely.
	(style_font_unref) : we got rid of some data members.

	* src/style-font.h : A new header to make cleaning up the definition
	  of GnmFont easier.

	* src/mstyle.c (mstyle_get_pango_attrs) : Add a scale attribute
	  wrapper to scale all of the font sizes

2005-01-12  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=163198
	* src/item-edit.c (get_top_left) : new function to get the top left
	  point based on the vertical alignment.
	(item_edit_draw) : the code was taken from here.
	(item_edit_event) : and used here to give pango_layout_xy_to_index a
	  reasonable coordinate.

2249 2250 2251 2252 2253 2254 2255
2005-01-12  Jean Brefort  <jean.brefort@normalesup.org>

	* src/gui-file.c: (gui_get_image_save_info): test if file exists after
	adding extension.
	(gui_file_save_as): don't exit when file exists and
	user do not want to overwrite. Back to the file chooser instead.
	
2256 2257 2258 2259
2005-01-12  Jody Goldberg <jody@gnome.org>

	* src/wbcg-actions.c (cb_help_docs) : minor warning suppression

2260 2261 2262 2263 2264 2265 2266
2005-01-11  Morten Welinder  <terra@gnome.org>

	* src/workbook-edit.c (gnm_pango_attr_list_splice): New function
	doing what pango_attr_list_splice should have done, i.e., simply
	splice.
	(cb_entry_insert_text): Use gnm_pango_attr_list_splice.

2267 2268 2269 2270 2271
2005-01-10  Morten Welinder  <terra@gnome.org>

	* src/workbook-edit.c (wbcg_edit_finish): Copy the resulting
	markup as editing callbacks will otherwise destroy it.

2272 2273 2274 2275 2276 2277 2278
2005-01-10  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=163408
	* src/commands.c (cmd_ins_del_colrow_redo) : We only need to redo
	  things for cuts, not copies (Although that feels a bit odd).
	  Just un-ant things for now.

2279 2280 2281 2282 2283 2284 2285
2005-01-09  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=163407
	* src/commands.c (cmd_format_undo) : doh! resize only if we needed a
	  resize when the style was applied, not based on the properties of
	  the format we are restoring.

2286 2287 2288 2289 2290 2291 2292 2293
2005-01-09  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=162923
	* src/expr.c (gnm_expr_eval) : minor thinko, array result from a
	  function in a non-scalar context return the first element, not
	  #VALUE!.  I broke this when tweaking the implicit iteration by
	  forgetting that value_intersection handled that for me.

2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308
2005-01-09  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=163452
	* src/sheet-control-gui.c (scg_mode_clear) : handle being called
	  during destruction

2005-01-05  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=162888
	* src/clipboard.c (cb_dup_objects) : sheet_object_dup can fail, be
	  careful
	(paste_object) : ditto.
	* src/application.c (gnm_app_clipboard_cut_copy_obj) : ditto
	* src/gnumeric-pane.c (gnm_pane_object_start_resize) : ditto

Morten Welinder's avatar
Morten Welinder committed
2309 2310 2311 2312 2313
2005-01-06  Morten Welinder  <terra@gnome.org>

	* src/mathfunc.c (gnumeric_fake_floor, gnumeric_fake_ceil): Fix
	negative case.

2314 2315 2316 2317 2318 2319
2005-01-05  Morten Welinder  <terra@gnome.org>

	* src/rangefunc.c (range_sum): Just sum.  Don't try to be overly
	smart.
	(range_sumsq): Ditto.

Jody Goldberg's avatar
Jody Goldberg committed
2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339
2005-01-05  Jody Goldberg <jody@gnome.org>

	* src/gnumeric-pane.c (cb_sheet_object_widget_canvas_event) : handle
	  double click

	* src/sheet-object-widget.c (sheet_object_widget_class_init) : widgets
	  render quickly rubber band directly
	(sheet_widget_slider_create_widget) : do not draw the value

2004-12-31  Jody Goldberg <jody@gnome.org>

	* src/gnumeric-pane.c (set_acetate_coords) : don't crash if we have
	  not created a view yet.

2004-12-31  Jody Goldberg <jody@gnome.org>

	* src/gnumeric-pane.c (gnm_pane_object_start_resize) : watch press
	  events too.
	(cb_control_point_event) : launch an editor for double clicks

2340 2341
2005-01-04  Morten Welinder  <terra@gnome.org>

2342 2343 2344 2345 2346 2347
	* src/format.c (fmt_general_float): Use GNUM_FORMAT_G.  The days
	of glib <1.2.9 are over.
	(fmt_general_int): Ditto.

	* src/numbers.h (GNUM_FORMAT_G): Add.

2348
	http://bugzilla.gnome.org/show_bug.cgi?id=162865
2349 2350 2351
	* src/wbcg-actions.c: Fix Help->Contents and Edit->Clear->Contents
	accelerators.

Morten Welinder's avatar
Morten Welinder committed
2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362