Commit Graph

599 Commits

Author SHA1 Message Date
2f2b112aec Made these functions return -1 if the x and y aren't over any cell at all.
2001-07-12  Christopher James Lahey  <clahey@ximian.com>

	* e-tree.c (e_tree_get_cell_at): Made these functions return -1 if
	the x and y aren't over any cell at all.

svn path=/trunk/; revision=11077
2001-07-13 02:52:33 +00:00
4da3e76c2c Ignore set_expanded if the node is the root and root_visible is FALSE.
2001-07-12  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-table-adapter.c (e_tree_table_adapter_node_set_expanded):
	Ignore set_expanded if the node is the root and root_visible is
	FALSE.

	* e-tree.c (item_key_press): Don't call set_expanded on NULL
	paths.

svn path=/trunk/; revision=11061
2001-07-12 20:44:02 +00:00
7b9622f8e0 Created this function for key presses that move in some way other than
2001-07-11  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h
	(e_selection_model_select_as_key_press): Created this function for
	key presses that move in some way other than just to the next or
	previous row.
	(e_selection_model_key_press): Use
	e_selection_model_select_as_key_press for handling home and end
	here.

svn path=/trunk/; revision=10993
2001-07-11 10:30:51 +00:00
0a71e607b1 Made the amount to scroll by smaller here.
2001-07-11  Christopher James Lahey  <clahey@ximian.com>

	* e-table.c (group_key_press), e-tree.c (item_key_press): Made the
	amount to scroll by smaller here.

svn path=/trunk/; revision=10992
2001-07-11 10:17:52 +00:00
73a6f3a7fa Use e_selection_model_do_something directly for page up and page down
2001-07-11  Christopher James Lahey  <clahey@ximian.com>

	* e-table.c (group_key_press), e-tree.c (item_key_press): Use
	e_selection_model_do_something directly for page up and page down
	instead of emulating a key press.

svn path=/trunk/; revision=10990
2001-07-11 09:05:09 +00:00
205145dd1b Changed the title of this dialog. Fixes bug #2656.
2001-07-08  Christopher James Lahey  <clahey@ximian.com>

	* e-table-field-chooser-dialog.c
	(e_table_field_chooser_dialog_init): Changed the title of this
	dialog.  Fixes bug #2656.

svn path=/trunk/; revision=10897
2001-07-08 23:16:25 +00:00
200f214299 Added checks for if row is outside of the appropriate range.
2001-07-06  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-table-adapter.c (e_tree_table_adapter_node_at_row): Added
	checks for if row is outside of the appropriate range.

svn path=/trunk/; revision=10878
2001-07-07 03:26:39 +00:00
c9da559b50 Set new_value = value here to fix a warning.
2001-07-06  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-spin-button.c (e_cell_spin_button_step_float): Set
	new_value = value here to fix a warning.

svn path=/trunk/; revision=10877
2001-07-07 02:54:36 +00:00
7cc506979e Added a "state" argument to allow you to get the state out of the config
2001-07-06  Christopher James Lahey  <clahey@ximian.com>

	* e-table-config.c (config_get_arg): Added a "state" argument to
	allow you to get the state out of the config object.

svn path=/trunk/; revision=10875
2001-07-07 02:53:21 +00:00
b0be7c3db2 Added checks that row and col are >= 0.
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* e-tree.c (e_tree_get_cell_geometry): Added checks that row and
	col are >= 0.

svn path=/trunk/; revision=10809
2001-07-05 16:38:59 +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
7c1e139f0f Made it so that the drop marker can show up when dragging a new column to
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* e-table-header-item.c (ethi_drag_motion): Made it so that the
	drop marker can show up when dragging a new column to the leftmost
	position of the table header item.

svn path=/trunk/; revision=10801
2001-07-05 14:10:56 +00:00
d5227888f9 Bumped the version number of gal to 0.8.99.8.
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped the version number of gal to 0.8.99.8.

From gal/e-table/ChangeLog:

2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* e-table-one.c (one_is_cell_editable): Ask for the editability of
	row -1 instead of column 0 as we were before.

svn path=/trunk/; revision=10799
2001-07-05 13:24:20 +00:00
6d4840cae8 Changed the variable names here to make it clear that these are view model
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c, e-table-item.h (find_cell): Changed the variable
	names here to make it clear that these are view model and row.
	(eti_event): Added click_count to make it so that if we get two
	clicks in different rows we don't send a double click event.
	(eti_event, view_to_model_row): Set row_guess in a few extra
	places.

svn path=/trunk/; revision=10791
2001-07-05 10:42:36 +00:00
dcb01da05a Make a whole bunch of control keys not start the ETableItem editing.
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_event): Make a whole bunch of control keys
	not start the ETableItem editing.

svn path=/trunk/; revision=10789
2001-07-05 08:41:56 +00:00
b530eb4307 Make sure start_row and end_row are within the number of rows in the
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (e_table_item_row_diff): Make sure start_row and
	end_row are within the number of rows in the table.

svn path=/trunk/; revision=10788
2001-07-05 07:05:51 +00:00
e509ad72df Handle an error in construction a little bit better here.
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* e-tree.c (e_tree_new, e_tree_new_from_spec_file): Handle an
	error in construction a little bit better here.
	(e_tree_get_cursor): Check for row == -1 here.

svn path=/trunk/; revision=10787
2001-07-05 06:42:56 +00:00
0c39016124 Only free the root here if it's non-NULL.
2001-07-02  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-sorted.c (ets_destroy): Only free the root here if it's
	non-NULL.

svn path=/trunk/; revision=10726
2001-07-03 04:03:16 +00:00
ae067f4ed9 Made the remove this column menu item greyed out if it's the last column.
2001-07-02  Christopher James Lahey  <clahey@ximian.com>

	* e-table-header-item.c (ethi_header_context_menu): Made the
	remove this column menu item greyed out if it's the last column.

svn path=/trunk/; revision=10725
2001-07-03 03:50:27 +00:00
4799dbbf3b Don't send the double click signal if there's no row selected.
2001-07-02  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_event): Don't send the double click signal
	if there's no row selected.

svn path=/trunk/; revision=10712
2001-07-03 02:18:56 +00:00
c5dd7f1185 Calculate the popup position using window coordinates instead of world
2001-07-02  Richard Hult  <rhult@codefactory.se>

	* e-cell-combo.c (e_cell_combo_get_popup_pos): Calculate the popup
	position using window coordinates instead of world coordinates.
	This fixes bug #2613 in ximian's bugzilla, combo box pops up with
	offset if the table is scrolled.

svn path=/trunk/; revision=10671
2001-07-02 08:40:24 +00:00
a7d41cc36e send signals even if the row/col is -1. (et_drag_drop): same.
2001-06-28  Chris Toshok  <toshok@ximian.com>

	* e-table.c (et_drag_motion): send signals even if the row/col is
	-1.
	(et_drag_drop): same.

	* e-tree.c (et_drag_motion): same.
	(et_drag_drop): same.

svn path=/trunk/; revision=10584
2001-06-29 03:09:48 +00:00
6fa46ef11d Bump version number due to incompatible changes in ETree.
2001-06-27  Peter Williams  <peterw@ximian.com>

        * configure.in: Bump version number due to incompatible changes
        in ETree.


gal/e-table:

2001-06-27  Peter Williams  <peterw@ximian.com>

        * e-tree-selection-model.c (e_tree_selection_model_add_to_selection): New function,
        heavily based on select_single_row.

        * e-tree-selection-model.h: Added prototype;

        * e-tree.c (e_tree_get_model): New accessor function.
        (e_tree_get_selection_model): Same.
        (e_tree_selected_count, e_tree_select_all, e_tree_invert_select): Removed. With
        the accessors these become pointless.

        * e-tree.h: Prototype the functions above. Remove a few functions that
        don't make sense anymore.

svn path=/trunk/; revision=10543
2001-06-27 21:11:34 +00:00
36fcd68e24 send the value to e_table_model_set_value_at as a string as in
2001-06-20  Mikael Hallendal  <micke@codefactory.se>

	* e-cell-spin-button.c
	(e_cell_spin_button_step): send the value to
	e_table_model_set_value_at as a string as in e_cell_number.
	(e_cell_spin_button_step_float): send the value to
	e_table_model_set_value_at as a string as in e_cell_number_float.

svn path=/trunk/; revision=10336
2001-06-20 15:56:15 +00:00
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