Commit Graph

575 Commits

Author SHA1 Message Date
a99162af68 Remove row row + i instead of row i. (et_table_rows_inserted): Insert row
2001-05-25  Christopher James Lahey  <clahey@ximian.com>

	* e-table.c (et_table_rows_deleted): Remove row row + i instead of
	row i.
	(et_table_rows_inserted): Insert row row + i instead of row row.

svn path=/trunk/; revision=10003
2001-05-25 21:31:10 +00:00
9e14fe9c69 Remove row i instead of row row. Destroy et->group when you get the
2001-05-25  Christopher James Lahey  <clahey@ximian.com>

	* e-table.c (et_table_rows_deleted): Remove row i instead of row
	row.  Destroy et->group when you get the changed or
	sort_info_changed signal instead of in the idle handler.

svn path=/trunk/; revision=10002
2001-05-25 20:57:04 +00:00
562a10c291 #include <string.h> Same here. Kills warnings on newer gcc.
2001-05-25  Kjartan Maraas  <kmaraas@gnome.org>

	* e-table-specification.c: #include <string.h>
	* e-table-state.c: Same here. Kills warnings on newer gcc.

svn path=/trunk/; revision=9970
2001-05-24 22:06:47 +00:00
c28a61bf26 format similar to nautilus
2001-05-24  jacob berkman  <jacob@ximian.com>

	* e-cell-size.c (ecd_get_text): format similar to nautilus

2001-05-23  jacob berkman  <jacob@ximian.com>

	* e-table-group-container.c: internationalize the grouping text
	string

svn path=/trunk/; revision=9966
2001-05-24 18:58:04 +00:00
c5ed45567e allow NULL pixbufs, and draw with crappy alpha
2001-05-22  jacob berkman  <jacob@ximian.com>

	* e-cell-pixbuf.c: allow NULL pixbufs, and draw with crappy alpha

svn path=/trunk/; revision=9939
2001-05-22 23:28:28 +00:00
f384952f1b Made this faster in some cases.
2001-05-22  Christopher James Lahey  <clahey@ximian.com>

	* e-table-sorted.c (ets_proxy_model_rows_deleted): Made this
	faster in some cases.

svn path=/trunk/; revision=9937
2001-05-22 20:22:36 +00:00
bc885bb22e The double_click signal on the table item now emits the model row instead
2001-05-22  Christopher James Lahey  <clahey@ximian.com>

	* e-table-group-leaf.c (etgl_double_click): The double_click
	signal on the table item now emits the model row instead of the
	view row so don't do the view to model conversion here.

svn path=/trunk/; revision=9924
2001-05-22 17:25:36 +00:00
d8e1a022df a similar change to below, which makes it actually work for the case where
2001-05-22  jacob berkman  <jacob@ximian.com>

	* e-table-sorted.c (ets_proxy_model_rows_deleted): a similar
	change to below, which makes it actually work for the case where
	count != 1

svn path=/trunk/; revision=9923
2001-05-22 15:39:24 +00:00
de5615cd99 increment row each time through the loop so we don't get @count copies of
2001-05-21  Chris Toshok  <toshok@ximian.com>

	* e-table-sorted.c (ets_proxy_model_rows_inserted): increment row
	each time through the loop so we don't get @count copies of @row.

svn path=/trunk/; revision=9912
2001-05-21 23:28:16 +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
8b6b6f01bf Make a key press stop the tooltip timeout.
2001-05-11  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_event): Make a key press stop the tooltip
	timeout.

	* e-table-state.c (e_table_state_load_from_node): Make the default
	expansion be one so that if the user doesn't specify any
	expansions they get a uniform expansion.

svn path=/trunk/; revision=9769
2001-05-11 20:07:14 +00:00
d6c788a6b0 Show the date for dates in the future.
2001-05-09  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-date.c (ecd_get_text): Show the date for dates in the
	future.

	* e-tree-memory.c, e-tree-memory.h
	(e_tree_memory_set_node_destroy_func): New function which gets
	called on the data for every node removed from the tree.

svn path=/trunk/; revision=9733
2001-05-09 20:11:01 +00:00
91d293f6f4 (Fix bug #53111: Portability fixes for HP's ANSI compiler.)
2001-04-29  Jason Leach  <jasonleach@usa.net>

	(Fix bug #53111: Portability fixes for HP's ANSI compiler.)

	* e-table-header-item.c (ethi_popup_sort_ascending): Changes for
	initializing a struct for picky compiler.
	(ethi_popup_sort_descending): Ditto.
	(ethi_change_sort_state): Ditto.

	* e-cell.c (e_cell_realize): Fix trying to return a value for a
	void function.
	(e_cell_show_tooltip): Here too.

	* e-table-subset.c (etss_set_value_at): Another fix for trying to
	return something instead of void.

svn path=/trunk/; revision=9695
2001-05-07 20:30:53 +00:00
85a74e8277 write what was converted to console, this function does not work always.
2001-05-07  Gediminas Paulauskas <menesis@delfi.lt>

	* gal/widgets/e-unicode.c (e_utf8_to_gtk_string_sized):
	write what was converted to console, this function does not work
	always.
	(e_utf8_gtk_editable_get_chars),
	(e_utf8_gtk_menu_item_new_with_label): removed some unneeded checks.
	(e_xml_get_translated_utf8_string_prop_by_name): if i.e. "title"
	was found, do not convert it to utf8 -- it already is. do this
	only on "_title".

	* gal/e-table/e-table-header-item.c: fix warning.

svn path=/trunk/; revision=9692
2001-05-07 17:26:06 +00:00
0ec25e9430 Added a read only argument "model" to ETable.
2001-04-29  Christopher James Lahey  <clahey@ximian.com>

	* e-table.c: Added a read only argument "model" to ETable.

svn path=/trunk/; revision=9624
2001-04-29 11:15:22 +00:00
2d3c06b3a4 (Make the alternating row colors a option in ETableSpecification instead
2001-04-28  Jason Leach  <jasonleach@usa.net>

	(Make the alternating row colors a option in ETableSpecification
	instead of a compiled in #define)

	* e-table-specification.c (e_table_specification_load_from_node):
	Read in the "alternating-row-colors=bool" option for
	ETableSpecifications.  Default value is true so unless it is
	specified to be false, row colors will alternate.
	(e_table_specification_save_to_node): Save the alternating row
	color options here.

	* e-table.c (et_build_groups): Pass down the alternating row
	colors through to the ETableGroup.

	* e-table-group-container.[ch]: Handle the new alternating row
	colors
	option here, passing it to ETableItem.

	* e-table-group-leaf.[ch]: Here too.

	* e-table-item.c (eti_get_cell_background_color): Got rid of the
	#define ALTERNATE_COLORS, replaced with truth check for
	ETableItem::alternating_row_colors.

	* e-tree.c: Make ETree recognize alternating row color options as
	well.

svn path=/trunk/; revision=9622
2001-04-29 01:14:50 +00:00
f0f1bd1f90 Add the header height to the returned y location here so that things will
2001-04-25  Christopher James Lahey  <clahey@ximian.com>

	* e-table.c (e_table_get_cell_geometry): Add the header height to
	the returned y location here so that things will be lined up
	correctly.

svn path=/trunk/; revision=9563
2001-04-25 16:25:25 +00:00
c6f76217ea Made this return -1 instead of -2 for not found if the root is not
2001-04-25  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-table-adapter.c (e_tree_table_adapter_row_of_node): Made
	this return -1 instead of -2 for not found if the root is not
	visible.

	* e-tree-selection-model.c (etsm_row_foreach_cb): Made this accept
	any negative number as not found instead of just -1.

svn path=/trunk/; revision=9562
2001-04-25 16:10:17 +00:00
e420ccde44 One-line fix (missing a 'break' at the end of the ARG_SELECTION_MODEL
2001-04-25  Jason Leach  <jasonleach@usa.net>

	* e-table-group-leaf.c (etgl_set_arg): One-line fix (missing a
	'break' at the end of the ARG_SELECTION_MODEL case).

svn path=/trunk/; revision=9561
2001-04-25 15:53:51 +00:00
e37b58efec Documented this function properly.
2001-04-23  Christopher James Lahey  <clahey@ximian.com>

	* e-table.c (e_table_get_cell_geometry): Documented this function
	properly.

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

svn path=/trunk/; revision=9533
2001-04-24 02:23:47 +00:00
44c7d23144 Added get_cell_geometry method.
2001-04-23  Christopher James Lahey  <clahey@ximian.com>

	* e-table-group-container.c, e-table-group-leaf.c,
	e-table-group.c, e-table-group-.h: Added get_cell_geometry method.

	* e-table-item.c, e-table-item.h: Added
	e_table_item_get_cell_geometry.

	* e-table.c, e-table.h: Added e_table_get_cell_geometry.

svn path=/trunk/; revision=9532
2001-04-24 01:30:48 +00:00
2a0b181422 Made it so that if a message is from the last 8 hours, it only prints the
2001-04-23  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-date.c (ecd_get_text): Made it so that if a message is
	from the last 8 hours, it only prints the time, not the date.

svn path=/trunk/; revision=9519
2001-04-23 20:23:47 +00:00
c4f279f480 Make pixbuf columns show their title if there is space.
2001-04-23  Christopher James Lahey  <clahey@ximian.com>

	* e-table-header-utils.c (e_table_header_draw_button): Make pixbuf
	columns show their title if there is space.

svn path=/trunk/; revision=9517
2001-04-23 20:18:35 +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
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