Commit Graph

551 Commits

Author SHA1 Message Date
270a8bdda8 Submit a signal even if there are no extras.
2001-04-19  Christopher James Lahey  <clahey@ximian.com>

	* e-table-header.c (eth_calc_widths): Submit a signal even if
	there are no extras.

	* e-table-item.c (eti_request_column_width): Don't compute widths
	if our cells aren't realized yet.

	* e-tree.c: Call e_table_header_update_horizontal whenever our
	data changes.

svn path=/trunk/; revision=9465
2001-04-20 02:00:23 +00:00
40e3cd8538 Turned off information expanders (tooltips) in ETable by default. Turn
2001-04-19  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c: Turned off information expanders (tooltips) in
	ETable by default.  Turn them back on with the environment
	variable GAL_DO_TOOLTIPS.

svn path=/trunk/; revision=9462
2001-04-19 23:37:00 +00:00
d9dc354180 Free some things that weren't getting freed.
* e-table.c (et_destroy): Free some things that weren't getting
        freed.

        * e-tree.c (et_destroy): Free some things that weren't getting
        freed.
        (e_tree_set_state_object): Don't ref the return value of
        e_table_state_to_header.

svn path=/trunk/; revision=9448
2001-04-18 17:53:14 +00:00
2c9c9695d6 Turned on tooltips and alternating colors.
2001-04-16  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c: Turned on tooltips and alternating colors.

svn path=/trunk/; revision=9393
2001-04-16 22:40:52 +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
99e9e1ab55 Fix a crash here.
2001-04-16  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-sorted.c (ets_sort_idle): Fix a crash here.

svn path=/trunk/; revision=9374
2001-04-16 13:37:53 +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
1e4ac4feb6 Cleaned this up. Removed some #if 0 and replaced others with #ifdefs.
2001-04-15  Christopher James Lahey  <clahey@ximian.com>

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

svn path=/trunk/; revision=9321
2001-04-15 13:07:49 +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
cc23e4d8b4 Added widget/e-hsv-utils.lo.
2001-04-14  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am: Added widget/e-hsv-utils.lo.

	* gal/widgets/Makefile.am: Added e-hsv-utils.c and e-hsv-utils.h.

	* gal/widgets/e-hsv-utils.c, gal/widgets/e-hsv-utils.h: Moved from
	gal/e-table/e-table-hsv-utils.c and
	gal/e-table/e-table-hsv-utils.h.  Handle modifying hue saturation
	and value of colors.

2001-04-13  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-selection-model.c
	(e_selection_model_do_something): Always emit the cursor changed
	signal.  Even if it's changed to the same row/column.

svn path=/trunk/; revision=9318
2001-04-15 00:45:10 +00:00
daea2fb545 Fix memory leak
* e-table-header.c (eth_destroy): Fix memory leak

svn path=/trunk/; revision=9301
2001-04-13 20:16:39 +00:00
869c3b5824 New cell for floats.
2001-04-13  Mikael Hallendal  <micke@codefactory.se>

	* e-cell-float.[ch]: New cell for floats.

	* e-cell-spin-button.[ch]: New cell for spin-button.

	* Makefile.am:
	- Added e-cell-spin-button.[ch]
	- Added e-cell-float.[ch]

svn path=/trunk/; revision=9294
2001-04-13 01:56:49 +00:00
0f85f30ab1 Upped the version number to 0.6.99.0. Upped the so number to 6.
2001-04-12  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Upped the version number to 0.6.99.0.  Upped the
	so number to 6.

	* docs/etablexml.txt: Made some updates here.

	* tests/test-tree-1.c, tests/test-tree-3.c: Added NULL, NULL to
	the call to e_tree_memory_callbacks_new.

From gal/e-table/ChangeLog:

2001-04-12  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_cursor_change): Only move the screen to show
	the cursor if there are no changes pending.  Updated the commented
	out code for alternating colors a bit.

	* e-table-model.c, e-table-model.h: Added
	e_table_model_has_change_pending.

	* e-tree-memory-callbacks.c, e-tree-memory-callbacks.h: Added
	has_get_node_by_id and get_node_by_id.

	* e-tree-model.c, e-tree-model.h: Added
	e_tree_model_has_get_node_by_id and e_tree_model_get_node_by_id.
	Added e_tree_model_has_change_pending.

	* e-tree-selection-model.c: Handle the selection and cursor
	properly across the tree changing.

	* e-tree-sorted.c: Implemented has_get_node_by_id and
	get_node_by_id, and has_changes_pending.

	* e-tree-table-adapter.c: Implemented has_changes_pending.  Fixed
	an array underflow.

svn path=/trunk/; revision=9289
2001-04-13 00:40:49 +00:00
fa14a7fa47 Return TRUE for left and right arrows.
2001-04-11  Christopher James Lahey  <clahey@ximian.com>

	* e-tree.c (item_key_press): Return TRUE for left and right
	arrows.

svn path=/trunk/; revision=9234
2001-04-11 12:05:14 +00:00
6905c1b233 Put debugging stuff in d().
2001-04-10  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c: Put debugging stuff in d().

svn path=/trunk/; revision=9220
2001-04-11 02:13:05 +00:00
6cf1a4d151 #include "gal/widgets/e-unicode.h".
2001-04-10  Christopher James Lahey  <clahey@ximian.com>

	* e-table.c: #include "gal/widgets/e-unicode.h".

svn path=/trunk/; revision=9218
2001-04-10 23:34:59 +00:00
0b90b0b1e8 i18n fixes.
i18n fixes.

2001-04-10  Gediminas Paulauskas <menesis@delfi.lt>

	* gal/widgets/e-unicode.c (e_utf8_*_*_string): if (!string) return NULL;
	to avoid crashes in strlen(NULL). TODO: need g_strlen which does that.

2001-04-10  Gediminas Paulauskas <menesis@delfi.lt>

	* e-table.c (et_real_construct): convert click_to_add_message locale->utf8.

svn path=/trunk/; revision=9214
2001-04-10 20:55:52 +00:00
f37767da8e Changed resizeable to resizable in ETableCol for consistency.
2001-04-09  Christopher James Lahey  <clahey@ximian.com>

	* e-table-col.c, e-table-col.h, e-table-header-item.c,
	e-table-header.c, e-table-item.c: Changed resizeable to resizable
	in ETableCol for consistency.

	* e-tree-selection-model.c (etsm_row_of_node): Return -1 here if
	the path isn't found.
	(etsm_sorted_node_changed): If cursor_row is -1, make cursor_col
	-1 as well.

svn path=/trunk/; revision=9211
2001-04-10 03:22:33 +00:00
d51041f0e1 add "break;" to otherwise-empty "default:" cases to make them ANSI.
* e-cell-tree.c (ect_event): add "break;" to otherwise-empty
        "default:" cases to make them ANSI.

svn path=/trunk/; revision=9199
2001-04-07 16:04:15 +00:00
c77e63e2cc Some small header cleanups & fixes, and fix to translate all popup menus
(woohoo!):

2001-04-05  Gediminas Paulauskas <menesis@delfi.lt>

	* gal/widgets/e-popup-menu.c: Copied gnome_app_helper_gettext function
	here, and use it for translating menu names (they are passed from app as
	well as from gal in arrays with N_(), and domains differ).

svn path=/trunk/; revision=9190
2001-04-05 00:26:43 +00:00
314ca1477c Call cursor_activated as well.
2001-04-04  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-selection-model.c (e_tree_selection_model_change_cursor):
	Call cursor_activated as well.

svn path=/trunk/; revision=9176
2001-04-04 13:24:01 +00:00
48200fbd57 Fixed headers.
2001-04-04  Christopher James Lahey  <clahey@ximian.com>

	* e-table-config.c, e-table-item.c, e-table-memory.c,
	e-table-sort-info.c, e-table-specification.c, e-tree-sorted.c:
	Fixed headers.

	* e-table-config.c, e-table-specification.c: Replaced strcasecmp
	with g_strcasecmp.

svn path=/trunk/; revision=9174
2001-04-04 12:13:38 +00:00
ac19d5492f Made this work properly for models with 0 rows in the tree table adapter.
2001-04-04  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-selection-model.c: Made this work properly for models
	with 0 rows in the tree table adapter.

svn path=/trunk/; revision=9173
2001-04-04 10:59:44 +00:00
061419e7f2 Added this function.
2001-04-04  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-selection-model.c, e-tree-selection-model.h
	(e_tree_selection_model_change_cursor): Added this function.

	* e-tree.c (e_tree_set_cursor): Screwed up moving the cursor a
	small bit when I changed this to be faster before.  Fixed it.

svn path=/trunk/; revision=9171
2001-04-04 10:17:37 +00:00
115406e1e2 Make it so you can switch checking around the last access on and off for
2001-04-04  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-sorted.c: Make it so you can switch checking around the
	last access on and off for tuning purposes.

	* e-tree-table-adapter.c: Apparently, ETreeTableAdapter is much
	faster if the value_at function doesn't change the last_access
	variable.

svn path=/trunk/; revision=9170
2001-04-04 09:06:01 +00:00
91f381352f Added e_tree_selection_model_select_single_path and made selection_start
2001-04-04  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-selection-model.c, e-tree-selection-model.h: Added
	e_tree_selection_model_select_single_path and made selection_start
	be the path as it should be instead of the row.

	* e-tree-sorted.c: Added a last_access variable to speed up
	access.

	* e-tree-table-adapter.c: Made checking last_access look at the 10
	values before and after the listed value to look for the value
	requested.

	* e-tree.c: Call e_tree_selection_model_select_single_path if
	E_TREE_USE_TREE_SELECTION.

svn path=/trunk/; revision=9169
2001-04-04 08:37:14 +00:00
ca0d8034c2 Fixed this to not call the callback with a row of -1.
2001-04-04  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-selection-model.c (etsm_row_foreach_cb): Fixed this to
	not call the callback with a row of -1.

svn path=/trunk/; revision=9167
2001-04-04 07:16:12 +00:00
941a6c67a7 Turn on E_TREE_USE_TREE_SELECTION.
2001-04-04  Christopher James Lahey  <clahey@ximian.com>

	* e-tree.h (E_TREE_USE_TREE_SELECTION): Turn on
	E_TREE_USE_TREE_SELECTION.

svn path=/trunk/; revision=9165
2001-04-04 06:59:05 +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
d678d0b7b2 Fixed an off by one error.
2001-04-03  Richard Hult  <rhult@codefactory.se>

	* e-tree-table-adapter.c (etta_proxy_node_inserted): Fixed an off
	by one error.

svn path=/trunk/; revision=9157
2001-04-04 00:29:51 +00:00
71452a5477 Add argument to get the table adapter. (et_set_arg): Add arguments for
2001-04-03  Richard Hult  <rhult@codefactory.se>

	* e-tree.c (et_get_arg): Add argument to get the table adapter.
	(et_set_arg): Add arguments for setting drawing of the grid and
	focus.

	* e-tree-model.c, e-tree-model.h (e_tree_model_node_traverse):
	Fill in missing implementation.
	(e_tree_model_node_traverse_preorder): Likewise, but preorder
	traversal.

svn path=/trunk/; revision=9156
2001-04-04 00:20:16 +00:00
2a49ef6020 forgot last time
svn path=/trunk/; revision=9131
2001-04-03 16:47:12 +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
164f34f40d Don't draw the button if it's less than 1 pixel wide.
2001-04-03  Christopher James Lahey  <clahey@ximian.com>

	* e-table-header-item.c (ethi_draw): Don't draw the button if it's
	less than 1 pixel wide.

	* e-tree-table-adapter.c (etta_proxy_node_inserted): Fixed a small
	array overrun (wasn't causing problems, but it's best to be
	correct.)

svn path=/trunk/; revision=9120
2001-04-03 04:44:25 +00:00
36da6b3f5e Ahem, the ETableItem argument is now "selection_model", not
2001-04-02  Federico Mena Quintero  <federico@ximian.com>

	* e-table-click-to-add.c (finish_editing): Ahem, the ETableItem
	argument is now "selection_model", not "table_selection_model".

svn path=/trunk/; revision=9108
2001-04-02 21:53:01 +00:00
8678349a4a Removed glade.h files -- xml-i18n-tools generates them itself.
Updated glade files not to save strings.
Updated Makefiles.


...nad my translation

svn path=/trunk/; revision=9094
2001-04-02 05:02:42 +00:00
9fc545eb95 No one responds on IRC, explained everything in bugzilla and these changelogs.
2001-04-01  Gediminas Paulauskas <menesis@delfi.lt>

	* gal-define-views-dialog.c, gal-view-new-dialog.c: replaced
	glade_xml_new with glade_xml_new_with_domain. fixes #2030

2001-04-01  Gediminas Paulauskas <menesis@delfi.lt>

	* e-table-config.c, e-table-field-chooser.c: replaced
	glade_xml_new with glade_xml_new_with_domain.

2001-04-01  Gediminas Paulauskas <menesis@delfi.lt>

	* gal/widgets/e-categories.c: replaced
	glade_xml_new with glade_xml_new_with_domain.
	* gal/widgets/e-popup-menu.c: call gettext on every menu item. Works
	only on popup menus of gal, not evolution (different domain).
	wrapped every category name in N_() and call _() where appriopriate,
	fixes #2029, but #2013 appears.

svn path=/trunk/; revision=9091
2001-04-02 01:18:22 +00:00
a33ff2cef4 Monitor the sorted model and send selection and cursor changed signals.
2001-04-01  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-selection-model.c: Monitor the sorted model and send
	selection and cursor changed signals.

svn path=/trunk/; revision=9090
2001-04-01 23:31:54 +00:00
428f1353ce Made this traverse the source model instead of the sorted model since the
2001-04-01  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-selection-model.c (etsm_foreach_all_recurse,
	etsm_foreach_recurse, e_tree_selection_model_foreach): Made this
	traverse the source model instead of the sorted model since the
	selection model is in the order of the source model.

svn path=/trunk/; revision=9089
2001-04-01 23:03:27 +00:00
7e13452f20 Fixed some bugs with the privitization of ETreeSelectionModel.
2001-04-01  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-selection-model.c: Fixed some bugs with the privitization
	of ETreeSelectionModel.

	* e-tree.c: One more required change to make it work with
	E_TREE_USE_TREE_SELECTION on.

svn path=/trunk/; revision=9084
2001-04-01 11:33:03 +00:00
3de1d627a1 Added e-tree-selection-model.c. (libetableinclude_HEADERS): Added
2001-04-01  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am (libetable_la_SOURCES): Added
	e-tree-selection-model.c.
	(libetableinclude_HEADERS): Added e-tree-selection-model.h.

	* e-tree.c, e-tree.h: Added code to use ETreeSelectionModel if the
	string E_TREE_USE_TREE_SELECTION is defined.

svn path=/trunk/; revision=9082
2001-04-01 11:20:55 +00:00
57f877305c Initialize all necessary fields here.
2001-03-31  Christopher James Lahey  <clahey@ximian.com>

	* e-tree.c (e_tree_init): Initialize all necessary fields here.

svn path=/trunk/; revision=9081
2001-03-31 23:25:03 +00:00
1bc755bcd9 Roll back another part of the change.
2001-03-31  Christopher James Lahey  <clahey@ximian.com>

	* e-tree.c (et_real_construct): Roll back another part of the
	change.

svn path=/trunk/; revision=9080
2001-03-31 22:22:58 +00:00
f7e9c117f8 Accidently committed this with using the tree selection model turned on.
2001-03-31  Christopher James Lahey  <clahey@ximian.com>

	* e-tree.c, e-tree.h: Accidently committed this with using the
	tree selection model turned on.  Rolled back this change.

svn path=/trunk/; revision=9076
2001-03-31 20:26:01 +00:00
2e9fe25b8e Include <gal/util/e-util.h> here.
2001-03-31  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-scrolled.c: Include <gal/util/e-util.h> here.

	* e-tree-selection-model.c, e-tree-selection-model.h: Privatized
	this class.  Cleaned this up a bit.  Added handlers for signals
	from the model.

	* e-tree.c, e-tree.h: Privatized this class.

svn path=/trunk/; revision=9075
2001-03-31 20:23:20 +00:00
48e35cdf4c Set orig_position properly on inserted nodes.
2001-03-31  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-sorted.c (ets_proxy_node_inserted): Set orig_position
	properly on inserted nodes.

svn path=/trunk/; revision=9074
2001-03-31 20:10:30 +00:00
153eecb0b2 Made e_tree_selection_model_foreach work. (etsm_select_all): Made
2001-03-31  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-selection-model.c (etsm_foreach_all_recurse): Made
	e_tree_selection_model_foreach work.
	(etsm_select_all): Made etsm_select_all work.
	(update_parents): Fixed a crash.

svn path=/trunk/; revision=9073
2001-03-31 15:08:36 +00:00
60d3d3a0a3 Removed this since it's out of date. Replaced by tests/test-table-1.c.
2001-03-31  Christopher James Lahey  <clahey@ximian.com>

	* e-table-example-1.c: Removed this since it's out of date.
	Replaced by tests/test-table-1.c.

svn path=/trunk/; revision=9072
2001-03-31 12:02:59 +00:00