Commit Graph

536 Commits

Author SHA1 Message Date
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
40dff98947 New implementation based on a tree instead of a hash table.
2001-03-31  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-selection-model.c, e-tree-selection-model.h: New
	implementation based on a tree instead of a hash table.

	* e-tree-sorted.c, e-tree-sorted.h: Added
	e_tree_sorted_num_children.

svn path=/trunk/; revision=9070
2001-03-31 11:41:34 +00:00
08f78aa8de Fixed little bug, add adjustments.
2001-03-31  Tambet Ingo  <tambet@ximian.com>

	* e-table-scrolled.c (e_table_scrolled_new_from_spec_file): Fixed
	little bug, add adjustments.

svn path=/trunk/; revision=9068
2001-03-31 09:17:37 +00:00
b2815aa189 Fixed removing the last child of a node.
2001-03-30  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-table-adapter.c (etta_proxy_node_removed): Fixed removing
	the last child of a node.

svn path=/trunk/; revision=9051
2001-03-30 20:14:28 +00:00
0a8549d792 removed #include <gal/e-table/e-tree-selection-model.h>
2001-03-30  Radek Doulik  <rodo@ximian.com>

	* e-tree.h: removed #include
	<gal/e-table/e-tree-selection-model.h>

svn path=/trunk/; revision=9044
2001-03-30 14:46:00 +00:00
90ed53edb0 Made these use GTK_TYPE_GDK_EVENT whenever sending an event through the
2001-03-30  Christopher James Lahey  <clahey@ximian.com>

	* e-table-group.c, e-table-header-item.c, e-table-item.c,
	e-table.c, e-tree.c: Made these use GTK_TYPE_GDK_EVENT whenever
	sending an event through the signal system instead of
	GTK_TYPE_POINTER.

	* e-table.c, e-tree.c (set_header_canvas_width): Check that none
	of the variables we're going to need are NULL before executing
	this function.

svn path=/trunk/; revision=9042
2001-03-30 10:30:28 +00:00
0e347fdbe1 Changed the signal "table_selection_model" to just be "selection_model"
2001-03-30  Christopher James Lahey  <clahey@ximian.com>

	* 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-tree.c: Changed the signal
	"table_selection_model" to just be "selection_model" everywhere
	and made it be ESelectionModels instead of ETableSelectionModels
	for generality.

	* e-table-item.c (eti_event): Make right arrow and left arrow
	accessible as events that can be caught.

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

svn path=/trunk/; revision=9041
2001-03-30 08:52:04 +00:00
491523b07c Updated to set the width of the header canvas to be equal to the width of
2001-03-29  Christopher James Lahey  <clahey@ximian.com>

	* e-table.c, e-tree.c, e-tree.h: Updated to set the width of the
	header canvas to be equal to the width of the table canvas to
	avoid infinite loops.  Added left arrow and right arrow as tree
	collapse and expand bindings.

svn path=/trunk/; revision=9035
2001-03-30 01:27:38 +00:00
60e3214780 New class implementing a tree model. Not finished yet or in use, but I
2001-03-27  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-selection-model.c, e-tree-selection-model.h: New class
	implementing a tree model.  Not finished yet or in use, but I
	wanted to get it checked in.

svn path=/trunk/; revision=8987
2001-03-28 02:50:25 +00:00
7443055a53 Updated these to match the new e_tree_model_node_removed signal.
2001-03-26  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-memory.c, e-tree-table-adapter.c: Updated these to match
	the new e_tree_model_node_removed signal.

	* e-tree-model.c, e-tree-model.h: Added an old_position parameter
	to the node_removed signal so that it would be completely
	deterministic.

	* e-tree-sorted.c: Changed this so that paths keep track of their
	original position.  This makes sorting much faster.

svn path=/trunk/; revision=8953
2001-03-26 19:51:05 +00:00
a6cc0bd7a2 un Mar 25 22:31:19 2001 George Lebl <jirka@5z.com>
* e-tree.c (e_tree_class_init):  Fix gtk_signal_new arguments, INT
	  and POINTER were switched causing my alpha to go nuts.

svn path=/trunk/; revision=8935
2001-03-26 06:38:57 +00:00
7680855427 ref the sort_info taken from the state object. Ditto. Fixes the last ETree
* e-table.c (et_real_construct): ref the sort_info taken from the
	state object.
	* e-tree.c (et_real_construct): Ditto. Fixes the last ETree
	crash-on-exit bug for me.

svn path=/trunk/; revision=8929
2001-03-25 16:55:03 +00:00
1190e292f4 Added e-selection-model-array.lo.
2001-03-25  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am (libgal_la_LIBADD): Added
	e-selection-model-array.lo.

	* gal/widgets/Makefile.am: Added e-selection-model-array.c and
	e-selection-model-array.h.

	* gal/widgets/e-selection-model-array.c,
	gal/widgets/e-selection-model-array.h: New class that implements
	the details of ESelectionModel.  ESelectionModel has been
	refactored to just be a this virtual class.  ESelectionModelArray
	is the original implementation of ESelectionModel.  This is what
	most people will want to use or derive from.

	* gal/widgets/e-selection-model-simple.c,
	gal/widgets/e-selection-model-simple.h: Made the parent class of
	this be ESelectionModelArray instead of ESelectionModel.  Changed
	some function names to match this change.

	* gal/widgets/e-selection-model.c,
	gal/widgets/e-selection-model.h: Refactored most of the
	implementation of this class into ESelectionModelArray.  Now just
	a thin virtual class.

From gal/e-table/ChangeLog:

2001-03-25  Christopher James Lahey  <clahey@ximian.com>

	* e-table-selection-model.c, e-table-selection-model.h: Made the
	parent object of this be ESelectionModelArray instead of
	ESelectionModel due to their refactoring.  Changed the commented
	out code for saving the selection a bit.

svn path=/trunk/; revision=8924
2001-03-25 08:17:15 +00:00
2ed07fe856 Added '=' and '-' as tree node expand and collapse
2001-03-25  Christopher James Lahey  <clahey@ximian.com>

	* e-tree.c (item_key_press): Added '=' and '-' as tree node expand
	and collapse

svn path=/trunk/; revision=8923
2001-03-25 08:10:23 +00:00
8664825c58 Properly remove old items from the ETableExtras if they are replaced by
2001-03-23  Christopher James Lahey  <clahey@ximian.com>

	* e-table-extras.c: Properly remove old items from the
	ETableExtras if they are replaced by new objects.

svn path=/trunk/; revision=8919
2001-03-23 22:17:20 +00:00
2829dd55fd Made this only up the insert_count if it actually had to do any non
2001-03-23  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-sorted.c (reposition_path): Made this only up the
	insert_count if it actually had to do any non constant work to
	reposition the path.

svn path=/trunk/; revision=8918
2001-03-23 21:44:32 +00:00