Commit Graph

120 Commits

Author SHA1 Message Date
529a87dfe5 add underline_column field.
2003-03-18  Chris Toshok  <toshok@ximian.com>

	* e-cell-text.h: add underline_column field.

	* e-cell-date.c: add underline_column to the comment.

	* e-cell-size.c: add underline_column to the comment.

	* e-cell-text.c (build_layout): handle underline column.
	(ect_show_tooltip): same.
	(ect_set_property): same.
	(ect_get_property): same.
	(e_cell_text_class_init): same.
	(e_cell_text_init): same.
	(e_cell_text_new): add underline_column to the comment.

svn path=/trunk/; revision=20347
2003-03-18 20:49:59 +00:00
0def5bcb84 make sure the row >= 0 before calling value_at to calc "strikeout".
2003-02-17  Chris Toshok  <toshok@ximian.com>

	* e-cell-text.c (build_layout): make sure the row >= 0 before
	calling value_at to calc "strikeout".

svn path=/trunk/; revision=19926
2003-02-17 21:47:52 +00:00
7adf0fe63f edit->tep isn't a GtkObject anymore.
2002-12-16  Chris Toshok  <toshok@ximian.com>

	* e-cell-text.c (_get_tep): edit->tep isn't a GtkObject anymore.

svn path=/trunk/; revision=19144
2002-12-17 06:25:18 +00:00
0bbe38655b GObject port work.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* e-cell-checkbox.[ch]: GObject port work.

	* e-cell-combo.[ch]: same.

	* e-cell-date.[ch]: same.

	* e-cell-float.[ch]: same.

	* e-cell-number.[ch]: same.

	* e-cell-pixbuf.[ch]: same.

	* e-cell-popup.[ch]: same.

	* e-cell-progress.[ch]: same.

	* e-cell-size.[ch]: same.

	* e-cell-spin-button.[ch]: same.

	* e-cell-text.[ch]: same.

	* e-cell-toggle.[ch]: same.

	* e-cell-tree.[ch]: same.

	* e-cell-vbox.[ch]: same.

	* e-cell.[ch]: same.

	* e-table-col.c: same.

	* e-table-column.c: same.

	* e-table-config-field.[ch]: same.

	* e-table-config.c: same.

	* e-table-config.glade: same.

	* e-table-field-chooser-dialog.[ch]: same.

	* e-table-field-chooser-item.[ch]: same.

	* e-table-field-chooser.[ch]: same.

	* e-table-group-container.[ch]: same.

	* e-table-group-leaf.[ch]: same.

	* e-table-group.[ch]: same.

	* e-table-header-item.[ch]: same.

	* e-table-header-utils.[ch]: same.

	* e-table-header.c: same.

	* e-table-item.[ch]: same.

	* e-table-scrolled.[ch]: same.

	* e-table-utils.c: same.

	* e-table.[ch]: same.

	* e-tree-memory-callbacks.h: same.

	* e-tree-scrolled.[ch]: same.

	* e-tree-sorted-variable.c: same.

	* e-tree.[ch]: same.

	* test-check.c: same.

	* test-cols.c: same.

	* test-table.c: same.

svn path=/trunk/; revision=18801
2002-11-17 00:02:53 +00:00
33d137c42e Replace gtk_object_(un)?ref() with g_object_(un)?ref(). Likewise.
* gal/e-table/e-cell-popup.c: Replace gtk_object_(un)?ref() with
g_object_(un)?ref().
* gal/e-table/e-cell-text.c: Likewise.
* gal/e-table/e-cell-tree.c: Likewise.
* gal/e-table/e-cell-vbox.c: Likewise.
* gal/e-table/e-table-click-to-add.c: Likewise.
* gal/e-table/e-table-config-field.c: Likewise.
* gal/e-table/e-table-field-chooser-dialog.c: Likewise.
* gal/e-table/e-table-field-chooser-item.c: Likewise.
* gal/e-table/e-table-field-chooser.c: Likewise.
* gal/e-table/e-table-group-container.c: Likewise.
* gal/e-table/e-table-item.c: Likewise.
* gal/e-table/e-table-without.c: Likewise.

svn path=/trunk/; revision=18702
2002-11-11 19:09:23 +00:00
4256558b9c remove ref/unref G_OBJECT masks ditto ditto ditto ditto ditto ditto ditto
2002-11-05  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c : remove ref/unref G_OBJECT masks
	* e-table-extras.c : ditto
	* e-table-header-item.c : ditto
	* e-table-item.c : ditto
	* e-table-memory-store.c : ditto
	* e-table-one.c : ditto
	* e-tree-sorted.c : ditto
	* e-tree-table-adapter.c : ditto
	* e-tree.c : ditto

svn path=/trunk/; revision=18572
2002-11-05 23:34:32 +00:00
613453b109 merging the gal-2 branch back to the trunk.
merging the gal-2 branch back to the trunk.

svn path=/trunk/; revision=18471
2002-10-31 21:30:57 +00:00
4f5d8637a1 Reenable tooltips if the GAL_DO_TOOLTIPS environment variable is set.
2002-06-04  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_event): Reenable tooltips if the
	GAL_DO_TOOLTIPS environment variable is set.

svn path=/trunk/; revision=17097
2002-06-04 05:36:58 +00:00
ccc7bafebe Get the font from the style again when the style changes. (init): Checks
2002-06-03  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-text.c (ect_style_set): Get the font from the style again
	when the style changes.
	(init): Checks for the environment variable GAL_ELLIPSIS and uses
	that instead of ... if it is set.

	* e-table-click-to-add.c (finish_editing): e_table_item_leave_edit
	before committing.
	(etcta_event): Added a missing break; here.

	* e-table-item.c (eti_style_set): On style set, free the height
	cache, request a reflow and a redraw, and call
	eti_idle_maybe_show_cursor.
	(e_table_item_compute_location): Don't call eti_get_height here,
	just use the cached value.

	* e-tree.c, e-tree.h (e_tree_get_table_adapter): Added this simple
	accessor function.

svn path=/trunk/; revision=17088
2002-06-03 21:54:37 +00:00
b036c8392d Ansification patch from danw.
2002-04-25  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-checkbox.c, e-cell-combo.c, e-cell-date.c,
	e-cell-float.c, e-cell-number.c, e-cell-pixbuf.c, e-cell-popup.c,
	e-cell-size.c, e-cell-spin-button.c, e-cell-text.c,
	e-cell-toggle.c, e-cell-tree.c, e-cell.c, e-cell.h,
	e-table-click-to-add.c, e-table-col.c,
	e-table-column-specification.c, e-table-config-field.c,
	e-table-config.c, e-table-extras.c,
	e-table-field-chooser-dialog.c, e-table-field-chooser-item.c,
	e-table-field-chooser.c, e-table-group-container.c,
	e-table-group-leaf.c, e-table-group.c, e-table-header-item.c,
	e-table-header.c, e-table-item.c, e-table-memory-callbacks.c,
	e-table-model.c, e-table-scrolled.c, e-table-selection-model.c,
	e-table-sort-info.c, e-table-sorted-variable.c, e-table-sorted.c,
	e-table-sorter.c, e-table-specification.c, e-table-state.c,
	e-table-subset-variable.c, e-table-subset.c, e-table-without.c,
	e-table.c, e-table.h, e-tree-scrolled.c, e-tree-selection-model.c,
	e-tree-sorted-variable.c, e-tree-sorted.c, e-tree-table-adapter.c,
	e-tree.c: Ansification patch from danw.

svn path=/trunk/; revision=16586
2002-04-25 19:56:41 +00:00
eafda9ba48 Implemented capitalization keybindings.
2002-03-14  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-text.c: Implemented capitalization keybindings.

	* e-tree.c (item_key_press): Added parentheses to the default case
	here.

svn path=/trunk/; revision=16168
2002-03-14 21:50:06 +00:00
2819f70ff2 *** empty log message ***
svn path=/trunk/; revision=15588
2002-02-07 10:05:45 +00:00
a10b9d3aa1 Implement max_width_by_row.
2002-01-21  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-text.c: Implement max_width_by_row.

	* e-cell-tree.c: Use max_width_by_row in max_width function.

	* e-cell.c, e-cell.h (e_cell_max_width_by_row): Added this new
	method to ECell.

svn path=/trunk/; revision=15418
2002-01-21 17:55:16 +00:00
1d68f8289f New functions for saving selection state and such.
2002-01-15  Christopher James Lahey  <clahey@ximian.com>

	* e-cell.c, e-cell.h (e_cell_save_state, e_cell_load_state,
	e_cell_free_state): New functions for saving selection state and
	such.

	* e-cell-text.c (ect_save_state): Implemented the new state
	functions.

	* e-table-item.c, e-table-item.h: Use the new cell state functions
	when focusing in or out.  Fixes Ximian bug #14968.

svn path=/trunk/; revision=15335
2002-01-15 22:33:13 +00:00
78406c4d1c Merging changes:
2001-12-12  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-text.c (ect_stop_editing): Change to not editing before
	committing values.  Then commit the values.

svn path=/trunk/; revision=15104
2001-12-17 07:54:10 +00:00
c54af29c07 Removed erroneous comment about needing to handle selection better.
2001-10-28  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-text.c: Removed erroneous comment about needing to handle
	selection better.

svn path=/trunk/; revision=14272
2001-10-28 04:46:38 +00:00
c3e3a85f28 Changed the license announcement at the top of these files.
2001-10-26  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-checkbox.c, e-cell-checkbox.h, e-cell-combo.c,
	e-cell-combo.h, e-cell-date.c, e-cell-date.h, e-cell-number.c,
	e-cell-number.h, e-cell-pixbuf.c, e-cell-pixbuf.h, e-cell-popup.c,
	e-cell-popup.h, e-cell-size.c, e-cell-size.h,
	e-cell-spin-button.c, e-cell-spin-button.h, e-cell-string.c,
	e-cell-text.c, e-cell-text.h, e-cell-toggle.c, e-cell-toggle.h,
	e-cell-tree.c, e-cell-tree.h, e-cell.c, e-cell.h,
	e-table-click-to-add.c, e-table-click-to-add.h, e-table-col-dnd.h,
	e-table-col.c, e-table-col.h, e-table-column-specification.c,
	e-table-column-specification.h, e-table-column.c,
	e-table-config-field.c, e-table-config-field.h, e-table-config.c,
	e-table-config.h, e-table-defines.h, e-table-example-1.c,
	e-table-example-2.c, e-table-extras.c, e-table-extras.h,
	e-table-field-chooser-dialog.c, e-table-field-chooser-dialog.h,
	e-table-field-chooser-item.c, e-table-field-chooser-item.h,
	e-table-field-chooser.c, e-table-field-chooser.h,
	e-table-group-container.c, e-table-group-container.h,
	e-table-group-leaf.c, e-table-group-leaf.h, e-table-group.c,
	e-table-group.h, e-table-header-item.c, e-table-header-item.h,
	e-table-header-utils.c, e-table-header-utils.h, e-table-header.c,
	e-table-header.h, e-table-item.c, e-table-item.h,
	e-table-memory-callbacks.c, e-table-memory-callbacks.h,
	e-table-memory.c, e-table-memory.h, e-table-model.c,
	e-table-model.h, e-table-one.c, e-table-one.h, e-table-scrolled.c,
	e-table-scrolled.h, e-table-selection-model.c,
	e-table-selection-model.h, e-table-simple.c, e-table-simple.h,
	e-table-size-test.c, e-table-sort-info.c, e-table-sort-info.h,
	e-table-sorted-variable.c, e-table-sorted-variable.h,
	e-table-sorted.c, e-table-sorted.h, e-table-sorter.c,
	e-table-sorter.h, e-table-sorting-utils.c,
	e-table-sorting-utils.h, e-table-specification.c,
	e-table-specification.h, e-table-state.c, e-table-state.h,
	e-table-subset-variable.c, e-table-subset-variable.h,
	e-table-subset.c, e-table-subset.h, e-table-tooltip.h,
	e-table-tree.h, e-table-utils.c, e-table-utils.h,
	e-table-without.c, e-table-without.h, e-table.c, e-table.h,
	e-tree-memory-callbacks.c, e-tree-memory-callbacks.h,
	e-tree-memory.c, e-tree-memory.h, e-tree-model.c, e-tree-model.h,
	e-tree-scrolled.c, e-tree-scrolled.h, e-tree-selection-model.c,
	e-tree-selection-model.h, e-tree-simple.c, e-tree-simple.h,
	e-tree-sorted-variable.c, e-tree-sorted-variable.h,
	e-tree-sorted.c, e-tree-sorted.h, e-tree-table-adapter.c,
	e-tree-table-adapter.h, e-tree.c, e-tree.h, table-test.c,
	table-test.h, test-check.c, test-cols.c, test-table.c: Changed the
	license announcement at the top of these files.

	* e-cell-string.c: Removed unused file.

svn path=/trunk/; revision=14154
2001-10-26 18:25:47 +00:00
f1172ec0fd Added #include "gal/widgets/e-unicode.h".
2001-10-24  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-combo.c: Added #include "gal/widgets/e-unicode.h".

	* e-cell-text.c: Added lots of deactivated debugging printfs here.
	(ect_event): Fixed the flags check here.  Set edit->actions to 0
	before calling e_text_event_processor_handle_event.

	* e-table-item.c, e-table-item.h: Use eti_grab and eti_ungrab all
	over the place.  Added lots and lots of deactivated debugging
	printfs here.
	(eti_grab, eti_ungrab): New functions to encapsulate grabbing and
	ungrabbing the cursor and to allow for recursive grabs
	(refcounting style.)

	* e-table.c: Added deactivated debugging printfs here.
	(et_canvas_root_event): Attach to the event handler on the root
	canvas item instead of the canvas itself when making the ETable
	leave editing state.  Fixes Ximian bug #9737.

svn path=/trunk/; revision=14072
2001-10-24 22:41:13 +00:00
b89da79e8c added set_value() class method, which sets the model value based on the
2001-10-22  Damon Chaplin  <damon@ximian.com>

	* e-cell-text.[hc]: added set_value() class method, which sets the
	model value based on the text. In ECellText itself it assumes the model
	value is a char* and passes the text directly. Subclasses may parse
	the text into some other datatype.
	Also made the calls the e_cell_text_get_text(), e_cell_text_free_text()
	and e_cell_text_set_value() public, since we need them in ECellCombo.

	* e-cell-combo.c (e_cell_combo_select_matching_item):
	(e_cell_combo_update_cell): use e_cell_text_get_text()/free_text()/
	set_value() so it can handle subclasses of ECellText as the child.

svn path=/trunk/; revision=13901
2001-10-22 22:33:20 +00:00
484c8193e1 Implement these functions as pass through to the child cell.
2001-10-10  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-popup.c (ecp_get_bg_color), e-cell-tree.c
	(ect_get_bg_color): Implement these functions as pass through to
	the child cell.

	* e-cell-text.c, e-cell-text.h (ect_get_bg_color): Implemented
	this using a bg_color_column which can be set through the argument
	of the same string.

	* e-cell.c, e-cell.h (e_cell_get_bg_color): Added this function to
	allow background color to change by cell.

	* e-table-item.c (eti_get_cell_background_color): Call
	e_cell_get_bg_color to allow background color to change by cell.

svn path=/trunk/; revision=13566
2001-10-10 20:44:25 +00:00
9a92cc103a Adapted height method to deal with a row of -1.
2001-10-05  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-text, e-cell-pixbuf: Adapted height method to deal with a
	row of -1.

	* e-table-group-container.c, e-table-group-container.h,
	e-table-group-leaf.c, e-table-group-leaf.h, e-table-item.c,
	e-table-item.h, e-table.c, e-table.h, e-tree.c: Added
	"uniform_row_height" argument.

svn path=/trunk/; revision=13440
2001-10-05 13:27:03 +00:00
109c8d5aa6 Properly ref the font we pass in as an ARG_FONT_E. (_do_tooltip): Removed
2001-07-25  Jon Trowbridge  <trow@ximian.com>

	* gal/e-text/e-text.c (e_text_set_arg): Properly ref the font we
	pass in as an ARG_FONT_E.
	(_do_tooltip): Removed some crack.  We no longer have to manually
	ref the font. The ref-counting now happens inside the set_arg
	function, as it should.
	(e_text_destroy): Set text->font to NULL after unrefing it.

2001-07-25  Jon Trowbridge  <trow@ximian.com>

        * e-cell-text.c (ect_unrealize): Set text_view->font to NULL
        after we unref it.

svn path=/trunk/; revision=11393
2001-07-25 07:27:04 +00:00
4bb33b390b Call e_table_item_leave_edit here.
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-text.c (ect_cancel_edit): Call e_table_item_leave_edit
	here.

svn path=/trunk/; revision=10805
2001-07-05 14:50:57 +00:00
f02973aaf4 Try to deal with bad utf8. (_get_position): Try to deal with bad utf8.
2001-05-14  Jon Trowbridge  <trow@ximian.com>

        * e-cell-text.c (_get_position_from_xy): Try to deal with bad
        utf8.
        (_get_position): Try to deal with bad utf8.
        (number_of_lines): Try to deal with bad utf8.
        (split_into_lines): Try to deal with bad utf8.

svn path=/trunk/; revision=9791
2001-05-14 17:12:34 +00:00
3bbace7795 remove UNICODE_CFLAGS
* Makefile.am (INCLUDES): remove UNICODE_CFLAGS

	* e-cell-text.c: Remove <unicode.h> include, use gunicode functions

svn path=/trunk/; revision=9513
2001-04-23 18:54:05 +00:00
62e82291e8 Propagate the event after sending it to the base EText.
2001-04-16  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c (tooltip_event): Propagate the event after
	sending it to the base EText.

svn path=/trunk/; revision=9379
2001-04-16 16:20:52 +00:00
bf3357b91e Set the background color to the specified tooltip->background. Set the
2001-04-15  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-text.c (ect_show_tooltip): Set the background color to
	the specified tooltip->background.  Set the foreground color to
	the specified tooltip->foreground.

	* e-table-item.c (eti_get_cell_background_color,
	eti_get_cell_foreground_color): Added these functions.
	(eti_draw, _do_tooltip): Use these new functions.

	* e-table-tooltip.h: Added foreground and background colors to
	this structure.

	* e-tree.c, e-tree.h (e_tree_get_tooltip): Added this function.

svn path=/trunk/; revision=9338
2001-04-16 02:12:44 +00:00
55b44f1c46 Added /* #defines */ at the top. Fixed ALTERNATE_COLORS to be an #ifdef
2001-04-15  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c: Added /* #defines */ at the top.  Fixed
	ALTERNATE_COLORS to be an #ifdef instead of an #if.

	* e-cell-text.c (ect_show_tooltip): Set "strikeout" argument on
	created tooltip.

svn path=/trunk/; revision=9328
2001-04-15 16:52:41 +00:00
9e995f6b8e Use e_canvas_hide_tooltip and e_canvas_popup_tooltip.
2001-04-15  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-text.c (tooltip_event): Use e_canvas_hide_tooltip and
	e_canvas_popup_tooltip.

	* e-table-item.c: Cleaned this up.  Removed some #if 0 and
	replaced others with #ifdefs.

	* e-table-tooltip.h: Removed some unnecessary fields.

svn path=/trunk/; revision=9326
2001-04-15 16:20:02 +00:00
61353c59dc Set "bold" argument on created tooltip. Adjusted position of displayed
2001-04-15  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-text.c (ect_show_tooltip): Set "bold" argument on created
	tooltip.  Adjusted position of displayed tooltip.

	* e-cell-tree.c (offset_of_node): Changed it so that this function
	handles knowing whether on not to indent non expandable first
	level nodes.  This makes things more consistent.

	* e-table-item.c (eti_realize): Cleaned up the ETableItem code to
	properly hide tooltips when going off the screen.

	* e-table-tooltip.h: Added a visibility_count field to ETableTooltip.

svn path=/trunk/; revision=9320
2001-04-15 13:03:26 +00:00
08940ce6f6 Fix headers. Ditto. Ditto. Ditto. Ditto. Ditto. Ditto. Ditto. Ditto.
2001-04-04  Kjartan Maraas  <kmaraas@gnome.org>

	* e-cell-date.c: Fix headers.
	* e-cell-number.c: Ditto.
	* e-cell-pixbuf.[ch]: Ditto.
	* e-cell-size.c: Ditto.
	* e-cell-text.c: Ditto.
	* e-cell-tree.c: Ditto.
	* e-table-click-to-add.[ch]: Ditto.
	* e-table-column-specification.h: Ditto.
	* e-table-config-field.c: Ditto.
	* e-table-config.[ch]: Ditto.
	* e-table-example-2.c: Ditto.
	* e-table-field-chooser-dialog.[ch]: Ditto.
	* e-table-field-chooser-item.c: Ditto.
	* e-table-field-chooser.h: Ditto.
	* e-table-group-container.c: Ditto.
	* e-table-item.c: Ditto
	* e-table-memory.c: Ditto.
	* e-table-selection-model.c: Ditto.
	* e-table-sorter.c: Ditto.
	* e-table-subset-variable.c: Ditto.
	* e-table.c: Ditto.
	* e-tree-memory.c: Ditto.
	* e-tree-model.c: Ditto.
	* e-tree-selection-model.[ch]: Ditto.
	* e-tree-sorted-variable.c: Ditto.
	* e-tree-sorted.c: Ditto.
	* e-tree-table-adapter.c: Ditto.
	* e-tree.[ch]: Same here.

svn path=/trunk/; revision=9164
2001-04-04 05:24:34 +00:00
44882da7a7 Typo fix; call e_cell_unrealize(), not e_cell_realize().
2001-04-02  Federico Mena Quintero  <federico@ximian.com>

	* e-cell-popup.c (ecp_unrealize): Typo fix; call
	e_cell_unrealize(), not e_cell_realize().

	* e-cell-text.c (ect_event): Removed fallback "else", from "if
	(edit_display)"since our planned return value is already zero and
	we do need to unbuild_current_cell() instead of returning
	immediately.

	* e-table-state.c (etst_destroy): Free the expansions field.

	* e-table.c (e_table_set_state_object): Do not ref the header
	since we just created it!

svn path=/trunk/; revision=9123
2001-04-03 05:34:27 +00:00
e4affa9382 Made this not create the new font until realize instead of at new_view
2001-03-23  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-text.c: Made this not create the new font until realize
	instead of at new_view time.

	* e-table-item.c: Don't request heights or do other things that
	you aren't allowed to do before realization unless you're
	realized.

svn path=/trunk/; revision=8915
2001-03-23 06:46:46 +00:00
49ba8c5c71 added "editable" Arg, to stop the user from editing the text. The user can
2001-03-04  Damon Chaplin  <damon@ximian.com>

	* e-cell-text.c: added "editable" Arg, to stop the user from editing
	the text. The user can still select the text, though. The "editable"
	Arg is useful for ECellCombo where we want the user to select an item
	in the popup but not edit the field itself.

	* e-cell-combo.c: updated to select the matcing item before it pops up
	the list.

svn path=/trunk/; revision=8544
2001-03-04 23:45:29 +00:00
58eeaa0977 Changed the version number to 0.5.99.1.
2001-02-19  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Changed the version number to 0.5.99.1.

	* gal/Makefile.am (libgal_la_LIBADD): Change the directories for
	e-table-text-model.lo, e-text-event-processor.lo, and
	e-text-event-processor-emacs-like.lo.  Reordered the e-text
	directory to be after the e-table directory in build order.

	* gal/e-text/Makefile.am: Removed
	e-text-event-processor-emacs-like.c,
	e-text-event-processor-emacs-like.h,
	e-text-event-processor-types.h, e-text-event-processor.c, and
	e-text-event-processor.h.  Added e-table-text-model.c and
	e-table-text-model.h.

	* gal/e-text/e-table-text-model.c: Changed the signature of these
	mehtods to match the changed signature in ETextModel.

	* gal/e-text/e-text-event-processor-emacs-like.c,
	gal/e-text/e-text-event-processor-emacs-like.h,
	gal/e-text/e-text-event-processor-types.h,
	gal/e-text/e-text-event-processor.c,
	gal/e-text/e-text-event-processor.h: Moved these to gal/util/.

	* gal/e-text/e-text.c, gal/e-text/e-text.h: Changed the includes
	to match the moved files.

	* gal/util/Makefile.am: Added e-text-event-processor-emacs-like.c,
	e-text-event-processor-emacs-like.h,
	e-text-event-processor-types.h, e-text-event-processor.c, and
	e-text-event-processor.h.

	* gal/util/e-text-event-processor-emacs-like.h,
	gal/util/e-text-event-processor.h: Changed the includes to match
	the moved files.

2001-02-19  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am: Removed e-table-text-model.c and
	e-table-text-model.h.

	* e-table-text-model.c, e-table-text-model.h: Moved these to
	gal/e-text/.

	* e-cell-text.c: Changed the include line for
	e-text-event-processor.h and e-text-event-processor-emacs-like.h.

svn path=/trunk/; revision=8298
2001-02-20 03:25:48 +00:00
91e979816f Fix memory leak: Unref some stuff if we're not showing the tooltip.
svn path=/trunk/; revision=7667
2001-01-20 16:31:08 +00:00
f914742fe7 Added e-cell-date.c, e-cell-date.h, e-cell-size.c, and e-cell-size.h.
2001-01-15  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am: Added e-cell-date.c, e-cell-date.h, e-cell-size.c,
	and e-cell-size.h.

	* e-cell-date.c, e-cell-date.h: New cell to implement displaying a
	date.

	* e-cell-size.c, e-cell-size.h: New cell to implement displaying a
	file size.

	* e-cell-text.c, e-cell-text.h: Got rid of the filter arguments.
	Replaced them with the ability to subclass ECellText and override
	the get_text method.  Added free_text to override if your get_text
	implementation returns allocated memory.

	* e-table-extras.c (ete_init): Added "size" and "date" cells to
	the default ETableExtras.

svn path=/trunk/; revision=7523
2001-01-16 01:52:27 +00:00
baffaa5769 Step 2
svn path=/trunk/; revision=7521
2001-01-15 23:33:00 +00:00
ac063e3d36 Rename from Helix Code -> Ximian
svn path=/trunk/; revision=7520
2001-01-15 23:32:09 +00:00
e0572a2471 Changed the filter function back to being args to be more consistent with
2001-01-12  Christopher James Lahey  <clahey@helixcode.com>

	* e-cell-text.h, e-cell-text.h: Changed the filter function back
	to being args to be more consistent with the rest of the object.

svn path=/trunk/; revision=7465
2001-01-12 22:46:05 +00:00
e779159c4b New function. Tells whether a key should begin editing. (ect_event,
2001-01-12  Miguel de Icaza  <miguel@ximian.com>

	* e-cell-text.c (key_begins_editing): New function.  Tells whether
	a key should begin editing.
	(ect_event, GDK_KEY_PRESS/RELEASE): check whether we should start
	editing.

svn path=/trunk/; revision=7445
2001-01-12 08:16:35 +00:00
0db9dfca79 Implement new function API. Remove Gtk arguments for this. (ect_height):
2001-01-12  Miguel de Icaza  <miguel@ximian.com>

	* e-cell-text.c (e_cell_text_set_filter): Implement new function
	API.  Remove Gtk arguments for this.
	(ect_height): Pass all the extra information Dan requested.
	(ect_print): Pass all the extra information Dan requested.
	(build_current_cell): ditto.

svn path=/trunk/; revision=7444
2001-01-12 07:53:15 +00:00
db2b02492d Removed a bunch of unused code.
2000-12-27  Christopher James Lahey  <clahey@helixcode.com>

	* e-cell-text.c (ect_draw, ect_event): Removed a bunch of unused
	code.

svn path=/trunk/; revision=7179
2000-12-27 04:36:27 +00:00
e2ba388ffd draw_background=FALSE
svn path=/trunk/; revision=7170
2000-12-25 19:45:02 +00:00
fd9186c407 call set_style and use the appropriate style for the text to determine if
2000-12-14  Chris Toshok  <toshok@helixcode.com>

	* e-cell-text.c (ect_show_tooltip): call set_style and use the
	appropriate style for the text to determine if the tooltip should
	be shown.

svn path=/trunk/; revision=7016
2000-12-14 18:24:25 +00:00
d8619d03cd Changed the background color of the tooltips to light gray.
2000-12-13  Christopher James Lahey  <clahey@helixcode.com>

	* e-cell-text.c (ect_show_tooltip): Changed the background color
	of the tooltips to light gray.

	* e-table-item.c (eti_event): Changed the tooltip timeout to 100
	milliseconds.

svn path=/trunk/; revision=6988
2000-12-14 01:54:37 +00:00
ea469b6fc7 Made selected rows ignore their color specification.
2000-12-11  Christopher James Lahey  <clahey@helixcode.com>

	* e-cell-text.c (ect_draw): Made selected rows ignore their color
	specification.

svn path=/trunk/; revision=6935
2000-12-12 02:47:42 +00:00
e0eba8f34f Split the lines in this cell before testing whether we're to the right of
2000-12-09  Christopher James Lahey  <clahey@helixcode.com>

	* e-cell-text.c (_blink_scroll_timeout): Split the lines in this
	cell before testing whether we're to the right of the right edge
	of the text data (since that test uses the split lines.)

svn path=/trunk/; revision=6892
2000-12-09 23:46:51 +00:00
09244eaf9e cell should be edit cast to a CurrentCell, not data cast to a CurrentCell.
2000-12-09  Christopher James Lahey  <clahey@helixcode.com>

	* e-cell-text.c (_blink_scroll_timeout): cell should be edit cast
	to a CurrentCell, not data cast to a CurrentCell.  Fixed this.

svn path=/trunk/; revision=6890
2000-12-09 23:27:45 +00:00
3018f79188 Added the actions parameter to ect_event. Added an actions field to
2000-12-09  Christopher James Lahey  <clahey@helixcode.com>

	* e-cell-text.c: Added the actions parameter to ect_event.  Added
	an actions field to CellEdit.  Handle CellEdit properly in the
	ect_event function to do grabbing and ungrabbing when
	appropriate.  Set the actions field in CellEdit when appropriate
	in e_cell_text_view_command.

	* e-cell-toggle.c, e-cell-tree.c, e-cell.c, e-cell.h: Added a
	ECellActions enum, a ECellActions actions parameter to
	e_cell_event and added the actions parameter to all the handlers
	of the event method including having ECellTree pass it on to its
	child cell.

	* e-table-header-item.c: Use the NULL cursor instead of the
	E_CURSORS_ARROW cursor.

	* e-table-item.c, e-table-item.h: Added grabbed_row and
	grabbed_col fields to ETableItem (-1 on either means ungrabbed.)
	Pay attention to them in the find_cell function.  Handle the
	actions parameter of e_cell_event and grab or ungrab the pointer
	to a given cell if requested.  This is done using the new function
	eti_e_cell_event (which is internal to e-table-item.c,) instead of
	the old e_cell_event function call.  Fake an ungrabbed table when
	calling find_cell from within the compute_location method.

svn path=/trunk/; revision=6889
2000-12-09 22:20:52 +00:00