Commit Graph

425 Commits

Author SHA1 Message Date
4404cde3fc Made the cursor move when rows are inserted or deleted. If in single mode
2001-01-21  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-selection-model.c: Made the cursor move when rows are
	inserted or deleted.  If in single mode and the selected row gets
	removed, move it up.

svn path=/trunk/; revision=7691
2001-01-22 01:48:54 +00:00
7d1cbbaa10 Made this conform to the new prototype for e_popup_menu_run.
2001-01-21  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-header-item.c (ethi_header_context_menu): Made this
	conform to the new prototype for e_popup_menu_run.

	* e-table-item.c, e-table-item.h: Documented.
	(e_table_item_is_row_selected): Removed this function.
	(eti_draw): Changed this so that if the ETableItem is in
	cursor-mode="row", the cursor is draw all the way across the row.
	(eti_cursor_move_up, eti_cursor_move_down): Commented these out
	since they're no longer used.
	(_do_tooltip, eti_event): Commented out tooltips.
	(eti_event): Made it so that we call the key_press function in the
	%ETableSelectionModel on each key press.

	* e-table-selection-model.c, e-table-selection-model.h:
	Documented.  Added a function e_table_selection_model_key_press
	that does whatever behavior is correct for the user having pressed
	the given key.  Changed the behavior of this to better match
	windows (use selection-mode="browse").

	* e-table-specification.c, e-table-specification.h: Added a
	draw_focus variable.

	* e-table.c: Decide whether to draw the focus based on the
	ETableSpecification.  Removed the argument for setting whether to
	draw the focus.

svn path=/trunk/; revision=7673
2001-01-21 05:46:49 +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
337910e031 Do most of the work to get Grouping working, by reusing massive ammounts
Do most of the work to get Grouping working, by reusing massive
ammounts of code from the sorting pieces.

2001-01-19  Miguel de Icaza  <miguel@gnu.org>

	* e-table-config.c (group_entry_changed, group_ascending_toggled):
	New methods.
	(configure_group_dialog): New function, sets up the group GUI.
	(e_table_config_construct): Populate column names here and use in
	configure_group_dialog and configure_sort_dialog

	(sort_entry_changed, sort_ascending_toggled): renamed from
	entry_changed, ascending_toggled.

svn path=/trunk/; revision=7637
2001-01-19 06:39:31 +00:00
a35fff26e8 Keep track of the valid column names (not used right now).
2001-01-18  Miguel de Icaza  <miguel@gnu.org>

	* e-table-config.c (configure_sort_dialog): Keep track of the
	valid column names (not used right now).
	(config_destroy): release column names
	(entry_changed): Handle invalid input to mean "Next entry is
	grayed out".

	* e-table-header-item.c (ethi_popup_customize_view): Hook up to
	the "apply" signal on the dialog box to apply the changes.
	(apply_changes): New function to apply the changes from the
	ETableConfig object.

	* e-table-sort-info.c (e_table_sort_info_load_from_node): Notify
	of sort info changes.

	* e-table-header-item.c: Swapped the way arrows were done, so that
	they actually match the sorting that its expected.

	* e-table.c: Added inline documentation for a few methods.

	* e-table-config.h: Dropped ::spec, and temp_spec, we always use
	::source_spec, as we never modify this variable.

svn path=/trunk/; revision=7633
2001-01-19 04:48:04 +00:00
12347daf56 Disconnect from the etss->source's signals *before* we unref it.
2001-01-18  Federico Mena Quintero  <federico@ximian.com>

	* e-table-subset.c (etss_destroy): Disconnect from the
	etss->source's signals *before* we unref it.

	* e-table-group-container.c (e_table_group_apply_to_leafs): Ref()
	and unref() around the callback to protect ourselves from being
	unrefed in the middle of iterating through the nodes.

svn path=/trunk/; revision=7621
2001-01-18 16:42:33 +00:00
cca1d258d3 New function. (update_sort_config_dialog): Massive update to this
2001-01-18  Miguel de Icaza  <miguel@gnu.org>

	* e-table-config.c (find_model_column_by_name): New function.
	(update_sort_config_dialog): Massive update to this function, it
	is almost complete now, it just needs a few cosmetic touchups.
	(config_sort_config_show): Get the main interaction working as
	well.
	(config_group_info_update): Beautify.
	(entry_changed): Do all the magic for the GUI for entries.
	(ascending_toggled): Implement callback.
	(configure_sort_dialog): Do also descending.
	(configure_sort_dialog): Hook up changed/toggled.

	* e-table-config.h: Put all the configuration stuff for sorting
	into its own structure to pass around funny functions.

svn path=/trunk/; revision=7617
2001-01-18 06:47:07 +00:00
7d2dc658f8 Removed #inclusion of e-table-config-field.h.
2001-01-17  Dave Camp  <dave@ximian.com>

	* e-table-config.c: Removed #inclusion of e-table-config-field.h.

svn path=/trunk/; revision=7568
2001-01-17 09:30:56 +00:00
02c4a82a7f This fixes translations of library messages compared to application
This fixes translations of library messages compared to application messages.

2001-01-17  Miguel de Icaza  <miguel@gnu.org>

	* po/POTFILES.in: update.

	* gal/widgets/color-palette.c: use e-i18n.h

	* gal/util/e-i18n.h: Avoid inclussion of the GNOME i18n file as we
	provide our own.

2001-01-17  Miguel de Icaza  <miguel@gnu.org>

	* e-table-header-item.c: Use e-i18n.h here.

	* e-table.c (et_col_spec_to_col): Use gettext here.
	(et_real_construct): Use gettext too.
	(et_col_spec_to_col): Use gettext here.

	* e-cell-date.c: Use e-i18n.h here.

	* e-table-config.c (config_sort_info_update): Simplify column
	grabbing code and drop item layout code.
	(config_group_info_update): ditto.

	* e-table-config.c: Get correct translation setup working.

2001-01-17  Miguel de Icaza  <miguel@gnu.org>

	* e-group-bar.c: Use e-i18n.h

svn path=/trunk/; revision=7565
2001-01-17 07:59:19 +00:00
8063555853 Simplify column grabbing code and drop item layout code.
2001-01-17  Miguel de Icaza  <miguel@gnu.org>

	* e-table-config.c (config_sort_info_update): Simplify column
	grabbing code and drop item layout code.
	(config_group_info_update): ditto.

	* e-table-config.c: Get correct translation setup working.

svn path=/trunk/; revision=7564
2001-01-17 07:41:23 +00:00
d645d1f236 Load frames.
2001-01-16  Miguel de Icaza  <miguel@gnu.org>

	* e-table-config.c (configure_sort_dialog): Load frames.

	* Kill e-table-config-field.c

	* e-table-specification.c (e_table_specification_save_to_file):
	Specify version to xmlNewDoc.

	* e-table-state.c (e_table_state_save_to_string): Specify version
	to xmlNewDoc.

	* e-table-config.c (config_destroy): Destroy the copies.  Unref
	the originals.
	(e_table_config_construct): Duplicate values of configuration
	here.
	(configure_sort_dialog): New function that populates the sort gtk
	combo boxes.

	* e-table.c (et_col_spec_to_col): Fixup use of title here.  Do the
	actual translation here.

	* e-table-column-specification.c: Remove title_, it is now called
	title.  Translation needs to take place elsewhere, not here

	* e-table-specification.c (e_table_specification_duplicate): Add
	preconditions here.
	(e_table_specification_save_to_node): ditto.
	(e_table_specification_save_to_string): ditto.
	(e_table_specification_save_to_file): ditto.

	* e-table-state.c (e_table_state_duplicate): Implement.

	* e-table-config.glade (dialog_sort): Change drop down menus to
	use GtkComboText widgets.

	* e-table-config.c (configure_dialog): New function, used to set
	up dialogs.

svn path=/trunk/; revision=7563
2001-01-17 06:56:04 +00:00
c1c5688c54 Added a bit of documentation. (config_sort_config_show,
2001-01-16  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-config.c: Added a bit of documentation.
	(config_sort_config_show, config_group_config_show):
	gnome_dialog_set_parent on the config->dialog_toplevel instead of
	the config.

	* e-table-specification: Pass "1.0" instead of NULL to xmlNewDoc
	here.

	* e-table-state.c, e-table-state.h: Pass "1.0" instead of NULL to
	xmlNewDoc here.  Make sure that sort_info is never NULL if this
	object exists.  Added ETableStateDuplicate.

svn path=/trunk/; revision=7542
2001-01-16 20:45:56 +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
feccdbccfb Document all entry points. (e_table_specification_save_to_file): Change
2001-01-15  Miguel de Icaza  <miguel@gnu.org>

	* e-table-specification.c: Document all entry points.
	(e_table_specification_save_to_file): Change prototype to return
	the number of bytes written.
	(e_table_specification_duplicate):
	Implement a function to duplicate nodes.
	(e_table_specification_save_to_node): Implement missing function.
	(e_table_specification_save_to_file): Enable.
	(e_table_specification_save_to_string): Enable.
	(e_table_specification_load_from_node): Just load the normal
	version of the click-to-add-message version, let other code
	translate it.
	(e_table_specification_load_from_string): Alter prototype to
	return success code.

	* e-table-specification.h: Do not store the translated version,
	store the plain version, so we can restore this later during the
	saving routines.

	* e-table.c (et_real_construct): Translate click to add message here.


	* e-table-header-item.c: Destroy config object if we are
	destroyed.

svn path=/trunk/; revision=7518
2001-01-15 23:25:42 +00:00
c152134378 Make output pretier by using newlines when there is a lot of information
2001-01-15  Miguel de Icaza  <miguel@ximian.com>

	* e-table-config.c (config_fields_info_update): Make output
	pretier by using newlines when there is a lot of information to
	display.
	(config_group_info_update): ditto.
	(config_sort_info_update): ditto.

svn path=/trunk/; revision=7517
2001-01-15 23:21:40 +00:00
8da5139f16 Make output pretier by using newlines when there is a lot of information
2001-01-15  Miguel de Icaza  <miguel@ximian.com>

	* e-table-config.c (config_fields_info_update): Make output
	pretier by using newlines when there is a lot of information to
	display.
	(config_group_info_update): ditto.
	(config_sort_info_update): ditto.

svn path=/trunk/; revision=7497
2001-01-15 07:57:36 +00:00
cff9059380 Work on the ETableConfigurator. Pick up where Chris left.
Work on the ETableConfigurator.  Pick up where Chris left.

A lot more changes to come in the short future.

2001-01-15  Miguel de Icaza  <miguel@ximian.com>

	* e-table-config.c (config_group_info_update): Simplify
	signature.
	(config_sort_info_update): Simplify signature.
	(config_fields_info_update): Implement.
	(e_table_config_construct): Hook up field change spec.

	* e-table-header-item.c (config_destroyed): Add new utility
	function.

	* e-table-config.c (config_group_info_update): Simpify routine by
	using g_string.  Show a message if there is no grouping.

	* e-table-config.c: Made e-table-config dialog be a
	GnomePropertyBox.

	* e-table-header-item.c (ethi_popup_customize_view): Use the new
	api.

	* e-table-config.c (config_sort_info_update): Simplify this
	routine.  Fix bug that was not showing "unsorted" state.
	(setup_gui): Load XML user interface here.
	(config_init): Use Glade instead of manually coded user interface.
	(e_table_config_raise): New api call.

2001-01-14  Miguel de Icaza  <miguel@ximian.com>

	* e-table-config.h: Change parent to be a GtkObject from
	GnomeDialog.

svn path=/trunk/; revision=7495
2001-01-15 07:34:27 +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
3312aa44d8 Close #758 2001-01-12 Miguel de Icaza <miguel@ximian.com>
* e-table-header-item.c (ethi_change_sort_state): Moved the
	sort-on-click logic to its own function.

svn path=/trunk/; revision=7438
2001-01-12 06:36:46 +00:00
b6dfb325fb *** empty log message ***
svn path=/trunk/; revision=7437
2001-01-12 06:10:15 +00:00
36c2e49513 Added selection_mode argument.
2001-01-11  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-selection-model.c, e-table-selection-model.h: Added
	selection_mode argument.

	* e-table-specification.c, e-table-specification.h: Added a
	selection_mode field that is set based on the selection-mode
	attribute in the ETableSpecification element.

	* e-table.c (et_real_construct): Set the selection model's
	selection mode based on the ETableSpecification.

svn path=/trunk/; revision=7427
2001-01-12 03:57:32 +00:00
a082bd6021 Made this the same size as an ETableItem with all text items. Made the
2001-01-10  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-click-to-add.c: Made this the same size as an ETableItem
	with all text items.  Made the background color white.  These need
	to be made themeable.

svn path=/trunk/; revision=7370
2001-01-10 20:45:18 +00:00
a1ca83afd9 Added expansions field and loading and saving of that field.
2001-01-10  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-state.c, e-table-state.h: Added expansions field and
	loading and saving of that field.

	* e-table.c: Load and save expansion data.

svn path=/trunk/; revision=7366
2001-01-10 18:15:13 +00:00
8f1d09360b Unfinished sorted variable model for ETree.
2001-01-10  Christopher James Lahey  <clahey@helixcode.com>

	* e-tree-sorted-variable.c, e-tree-sorted-variable.h: Unfinished
	sorted variable model for ETree.

svn path=/trunk/; revision=7355
2001-01-10 05:25:21 +00:00
c5f64863e3 Fixed sorting. needs_sorting was getting set to 0 when sorted happens, but
2001-01-06  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-sorter.c, e-table-sorter.h (ets_sort): Fixed sorting.
	needs_sorting was getting set to 0 when sorted happens, but
	needs_sorting tells you whether or not the sorter is sorted or
	not, not whether the sorting has happened.  Documented the
	needs_sorting variable.

svn path=/trunk/; revision=7281
2001-01-06 05:31:13 +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
72dfe1e514 Set draw_background to FALSE.
2000-12-25  Miguel de Icaza  <miguel@helixcode.com>

	* e-cell-text.c (ect_show_tooltip): Set draw_background to FALSE.

	* e-table-group-container.c (etgc_add): ditto.

	* e-table-click-to-add.c (etcta_realize): ditto.
	(e_table_click_to_add_commit): ditto.

svn path=/trunk/; revision=7165
2000-12-25 08:36:04 +00:00
bb0585fe60 add api docs.
2000-12-24  Chris Toshok  <toshok@helixcode.com>

	* e-cell-tree.c: add api docs.

	* e-tree-simple.c: add api docs.

svn path=/trunk/; revision=7161
2000-12-25 04:51:03 +00:00
51284ee84a Destroy text and pixbuf if they exist whether or not is_pixbuf is set.
2000-12-23  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-col.c, e-table-col.h (etc_destroy): Destroy text and
	pixbuf if they exist whether or not is_pixbuf is set.
	(e_table_col_new_with_pixbuf): Make new_with_pixbuf take a title
	argument which is for when you can't display pixmaps.

	* e-table-column-specification.c
	(e_table_column_specification_load_from_node): Don't translate the
	pixbuf string attribute.

	* e-table-sort-info.c, e-table-sort-info.h
	(e_table_sort_info_load_from_node): Added a state_version
	parameter to the load_from_node function.  This lets the loader
	specify which version of ETableState is being processed.  If it's
	less than .05, use the old nested version.  If it's greater, use
	the new flat version.
	(e_table_sort_info_save_to_node): Changed this to store a list of
	group and leaf nodes instead of nesting the group nodes and leaf
	nodes one inside the other.  This is much easier to understand and
	requires less typing when creating a new ETableSpecification's
	initial ETableState.

	* e-table-state.c: Changed the state-version parameter to 0.1.
	(e_table_state_load_from_node): Use
	e_xml_get_double_prop_by_name_with_default so that we can specify
	a state-version default of 0.1 for people writing ETableStates by
	hand.  Pass the state-version to e_table_sort_info_load_from_node.

	* e-table.c (et_col_spec_to_col): Pass the title from the
	ETableColumnSpecification to the ETableCol even if it's a pixbuf
	column.

svn path=/trunk/; revision=7138
2000-12-23 05:55:20 +00:00
dcd4f31223 Set the minimum width of newly created children.
2000-12-19  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-group-container.c (etgc_add): Set the minimum width of
	newly created children.
	(e_table_group_container_construct): Use function
	e_table_header_get_column_by_col_idx instead of
	e_table_header_get_column since we're passing in a col_idx.

	* e-table-header.c, e-table-header.h: New function
	e_table_header_get_column_by_col_idx which searches for a column
	in the ETableHeader with a certain model column (col_idx).

	* e-table-sorted-variable.c (etsv_compare),
	(etsv_sort), e-table-sorter.c (ets_sort): Use function
	e_table_header_get_column_by_col_idx instead of
	e_table_header_get_column since we're passing in a col_idx.

svn path=/trunk/; revision=7079
2000-12-19 15:58:24 +00:00
feea74a8a7 Removed the set cursor and get cursor methods from ETableGroup.
2000-12-14  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-group-container.c, e-table-group-leaf.c,
	e-table-group.c, e-table-group.h: Removed the set cursor and get
	cursor methods from ETableGroup.

	* e-table.c (e_table_get_cursor_row, e_table_set_cursor_row):
	Changed this to use the ETableSelection directly instead of going
	through the grouping structure.  This seems to fix a bug in
	evolution's folder list for some people.

svn path=/trunk/; revision=7018
2000-12-14 19:02:13 +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
f368ce16ae Commented out an unused variable to fix a warning.
2000-12-14  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-item.c (eti_realize): Commented out an unused variable
	to fix a warning.

svn path=/trunk/; revision=7014
2000-12-14 17:54:19 +00:00
a918af2dc3 Added eti_visibility_notify. Didn't get it to work properly, so it's #if
2000-12-13  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-item.c (eti_realize): Added eti_visibility_notify.
	Didn't get it to work properly, so it's #if 0ed out.

svn path=/trunk/; revision=6991
2000-12-14 03:07:28 +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
565e65690d remove the silly logic - we pop up a tooltip regardless of where the mouse
2000-12-13  Chris Toshok  <toshok@helixcode.com>

	* e-cell-tree.c (ect_show_tooltip): remove the silly logic - we
	pop up a tooltip regardless of where the mouse cursor hovers.
	just make sure it appears in the right place.
	(ect_event): reverse the change we make to the event after passing
	it to our subcell.  this fixes the problem of the tree reacting
	twice to events (once with flags == 0, and once with flags ==
	E_CELL_EDITING).

	* e-table-item.c (eti_event): destroy the tooltip window on a
	motion event.  this can (and does) happen when we get a tooltip on
	a tree cell and the cursor isn't over the area where the tooltip
	pops up.

svn path=/trunk/; revision=6979
2000-12-13 23:32:24 +00:00
a000f7480b New function to calculate the extra pixels per column header.
2000-12-13  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-header-utils.c, e-table-header-utils.h
	(e_table_header_width_extras): New function to calculate the extra
	pixels per column header.

	* e-table-header.c, e-table-header.h: Added a "width_extras"
	argument which is used to calculate the correct minimum widths for
	each column header after adding padding.

	* e-table-item.c (_do_tooltip): Destroy the old tooltip window
	when creating the new one.
	(eti_event): Destroy the old tooltip window if the person presses
	a key.  Don't handle the tab key.

	* e-table.c (et_state_to_header): Set the ETableHeader's
	width_extras argument.

svn path=/trunk/; revision=6978
2000-12-13 22:34:36 +00:00
f42cf43320 only return TRUE in the BUTTON_PRESS case if the node was expandable.
2000-12-13  Chris Toshok  <toshok@helixcode.com>

	* e-cell-tree.c (ect_event): only return TRUE in the BUTTON_PRESS
	case if the node was expandable.

svn path=/trunk/; revision=6977
2000-12-13 22:29:21 +00:00
180fb4ee8e cut&paste from e-table-sorted-variable.c and massage names a bit to make
2000-12-13  Chris Toshok  <toshok@helixcode.com>

	* e-table-sorter.c (qsort_callback_complex),
	(ets_sort_build_subset), (ets_sort_subset),
	(ets_sort_free_subset), (sort_groups_compare),
	(ets_sort_by_group): cut&paste from e-table-sorted-variable.c and
	massage names a bit to make sort group sorting work.
	(ets_sort): if the ETableModel has sort groups, sort using the
	sort group.

svn path=/trunk/; revision=6975
2000-12-13 22:10:26 +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
1443cce12e Emit double_click signal with the model column, not the view column.
* e-table-item.c (eti_event): Emit double_click signal with the
	model column, not the view column.

svn path=/trunk/; revision=6909
2000-12-11 16:59:53 +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
9cf73d61eb Unref the object instead of destroying it.
2000-12-09  Federico Mena Quintero  <federico@helixcode.com>

	* e-table-sorted.c (e_table_sorted_new): Unref the object instead
	of destroying it.

	* e-table-sorted-variable.c (e_table_sorted_variable_new): Likewise.

	* e-table-subset.c (e_table_subset_new): Likewise.

	* e-table-subset-variable.c (e_table_subset_variable_new): Likewise.

svn path=/trunk/; revision=6888
2000-12-09 20:04:18 +00:00