Commit Graph

905 Commits

Author SHA1 Message Date
1f8aee1ac6 use unicode ellipsis char for breaking lines. Use g_utf8_find_prev_char
2003-04-21  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (build_layout): use unicode ellipsis char for
	breaking lines. Use g_utf8_find_prev_char and check for failure
	so that we don't tight loop for small cells that can't display
	any chars.

svn path=/trunk/; revision=20924
2003-04-22 18:54:55 +00:00
1eba3d38e0 use e_tree_table_adapter_node_get_next to determine how to draw sibling
2003-04-21  Mike Kestner  <mkestner@ximian.com>

	* e-cell-tree.c (ect_draw): use e_tree_table_adapter_node_get_next
	to determine how to draw sibling lines.
	(ect_print): ditto
	* e-tree-table-adapter.c (e_t_t_a_node_get_next): new

svn path=/trunk/; revision=20902
2003-04-21 14:18:58 +00:00
6c7b3b17ed [ fixes evolution bug #40464 ] use G_SIGNAL_TYPE_STATIC_SCOPE for the
2003-04-19  Chris Toshok  <toshok@ximian.com>

	[ fixes evolution bug #40464 ]
	* e-table.c (e_table_class_init): use G_SIGNAL_TYPE_STATIC_SCOPE
	for the GtkSelectionData args of table_drag_data_get and
	table_drag_data_received.

svn path=/trunk/; revision=20900
2003-04-20 22:08:00 +00:00
474763899f if the layout splits into more than one line, shorten it to a single line
2003-04-18  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (build_layout): if the layout splits into more
	than one line, shorten it to a single line with elipses.
	(generate_layout): don't ref NULL layouts
	(ect_enter_edit): use g_new0 for the CellEdit
	(get_position_from_xy): use generate_layout since edit->layout
	isn't necessarily set here.

svn path=/trunk/; revision=20892
2003-04-18 19:51:01 +00:00
0407034071 add guarding for row indexing (Bug# 41497)
2003-04-17  JP Rosevear  <jpr@ximian.com>

	* e-table-subset.c : add guarding for row indexing (Bug# 41497)

svn path=/trunk/; revision=20891
2003-04-18 19:45:27 +00:00
faf92fde20 set width and alignment of layout. (generate_layout): set width on
2003-04-16  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (build_layout): set width and alignment of layout.
	(generate_layout): set width on existing layout and pass new width
	param to build_layout.
	(ect_draw): pass width to generate_layout
	(ect_height): pass width to generate_layout
	(ect_enter_edit): pass width to generate_layout
	(ect_max_width): pass width to generate_layout
	(ect_max_width_by_row): pass width to generate_layout
	(ect_show_tooltip): pass width to generate_layout
	(e_cell_text_view_command): pass width to generate_layout

svn path=/trunk/; revision=20870
2003-04-16 21:40:56 +00:00
f5ab5764e7 Don't unref the layout that was passed in. (e_table_header_draw_button):
2003-04-15  Hans Petter Jansson  <hpj@ximian.com>

	* e-table-header-utils.c (e_table_draw_elided_string): Don't unref
	the layout that was passed in.
	(e_table_header_draw_button): Always unref the layout when we're
	done with it.

	* e-tree-table-adapter.c (e_tree_table_adapter_load_expanded_state):
	Free the id when we're done with it.

svn path=/trunk/; revision=20853
2003-04-15 21:34:31 +00:00
327954a4ec free data here since we don't have source in finalize
2003-04-11  JP Rosevear  <jpr@ximian.com>

	* e-table-one.c (one_dispose): free data here since we don't have
	source in finalize

svn path=/trunk/; revision=20817
2003-04-11 15:13:38 +00:00
43b39edf09 add response ids to buttons
2003-04-08  Mike Kestner  <mkestner@ximian.com>

	* e-table-config-no-group.glade : add response ids to buttons

svn path=/trunk/; revision=20770
2003-04-08 21:10:14 +00:00
122470e9be remove e-font.[ch], test-e-font, and test-font-loading. kill
2003-04-08  Mike Kestner  <mkestner@ximian.com>

	* gal/widgets/Makefile.am : remove e-font.[ch], test-e-font,
	and test-font-loading.
	* gal/widgets/e-unicode.[ch] (e_utf8_from_gtk_string): kill
	(e_utf8_from_gtk_string_sized): kill
	(e_utf8_to_gtk_string): kill
	(e_utf8_to_gtk_string_sized): kill
	(e_utf8_gtk_menu_item_new_with_label): kill
	(e_utf8_gtk_clist_set_text): kill
	(e_utf8_gtk_clist_append): kill
	* e-categories-master-list-option-menu.c (ecmlom_ecml_changed):
	don't use e_utf8_to_gtk_string.
	* e-categories-master-list-combo (ecmlc_ecml_changed):
	don't use e_utf8_to_gtk_string.

2003-04-08  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c : break e-font dependency

svn path=/trunk/; revision=20766
2003-04-08 19:48:41 +00:00
fe0bc3328d swap button order swap button order
2003-04-08  Mike Kestner  <mkestner@ximian.com>

	* e-table-config.glade : swap button order
	* e-table-config-no-group.glade : swap button order

svn path=/trunk/; revision=20761
2003-04-08 16:08:22 +00:00
65922aa0c6 remove debugging g_print calls fix length_threshold prop range fix
2003-04-08  Mike Kestner  <mkestner@ximian.com>

	* e-cell-popup.c : remove debugging g_print calls
	* e-table-group-container.c : fix length_threshold prop range
	* e-table-group-leaf.c : fix length_threshold prop range
	* e-table-item.c : fix length_threshold prop range

svn path=/trunk/; revision=20750
2003-04-08 14:36:55 +00:00
427a404501 guard against root == NULL. Bug #39491.
2003-04-04  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (etta_sort_info_changed): guard against
	root == NULL.  Bug #39491.

svn path=/trunk/; revision=20668
2003-04-04 16:16:35 +00:00
60ffd0653e (e_tree_class_init): Add a G_SIGNAL_TYPE_STATIC_SCOPE
for the GTK_TYPE_SELECTION_DATA arg.

svn path=/trunk/; revision=20650
2003-04-02 23:34:36 +00:00
0a0e1f2f03 restore expanded state of node and all children. Fixes Ximian bug #40393.
2003-04-02  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (update_node): restore expanded
	state of node and all children. Fixes Ximian bug #40393.
	(check_expanded): new traverser function

svn path=/trunk/; revision=20642
2003-04-02 16:18:15 +00:00
fb5893bb04 if killing the root node, set it to NULL in the priv data. Bug #39441.
2003-03-31  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (kill_gnode): if killing the root
	node, set it to NULL in the priv data. Bug #39441.

svn path=/trunk/; revision=20607
2003-04-01 05:03:46 +00:00
0e01b294fa properly parse nodes that include whitespace. bug #39896
2003-03-24  Mike Kestner  <mkestner@ximian.com>

	* e-table-sort-info.c (e_table_sort_info_load_from_node):
	properly parse nodes that include whitespace. bug #39896

svn path=/trunk/; revision=20486
2003-03-24 19:12:18 +00:00
6ebc3ad9d9 don't call delete_node on the root node since generate_tree already does
2003-03-24  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (update_node): don't call delete_node
	on the root node since generate_tree already does that. Thanks
	to Antonio Xu <antonio.xu@sun.com> for identifying the cause of
	the bug and providing a candidate patch. Bug #38320.

svn path=/trunk/; revision=20481
2003-03-24 15:34:33 +00:00
8b67c6478d fix UMR.
2003-03-23  Chris Toshok  <toshok@ximian.com>

	* e-table.c (do_drag_motion): fix UMR.

svn path=/trunk/; revision=20469
2003-03-23 09:57:10 +00:00
529a87dfe5 add underline_column field.
2003-03-18  Chris Toshok  <toshok@ximian.com>

	* e-cell-text.h: add underline_column field.

	* e-cell-date.c: add underline_column to the comment.

	* e-cell-size.c: add underline_column to the comment.

	* e-cell-text.c (build_layout): handle underline column.
	(ect_show_tooltip): same.
	(ect_set_property): same.
	(ect_get_property): same.
	(e_cell_text_class_init): same.
	(e_cell_text_init): same.
	(e_cell_text_new): add underline_column to the comment.

svn path=/trunk/; revision=20347
2003-03-18 20:49:59 +00:00
bc9697c7d2 add cursor_idle_id.
2003-03-18  Chris Toshok  <toshok@ximian.com>

	* e-table-item.h (ETableItem): add cursor_idle_id.

	* e-table-item.c (eti_idle_maybe_show_cursor): save off the
	cursor_idle_id.
	(eti_idle_show_cursor_cb): reset the cursor_idle_id to 0.
	(eti_dispose): remove the cursor_idle_id.  Fixes a crash in the
	evolution select-names dialog.

svn path=/trunk/; revision=20346
2003-03-18 20:49:31 +00:00
b57393ab7c add cursor_idle_id.
2003-03-18  Chris Toshok  <toshok@ximian.com>

	* e-table-item.h (ETableItem): add cursor_idle_id.

	* e-table-item.c (eti_idle_maybe_show_cursor): save off the
	cursor_idle_id.
	(eti_idle_show_cursor_cb): reset the cursor_idle_id to 0.
	(eti_dispose): remove the cursor_idle_id.  Fixes a crash in the
	evolution select-names dialog.

svn path=/trunk/; revision=20344
2003-03-18 20:29:49 +00:00
ede2b62efc mimic Gtk's sort arrows (ethi_start_drag): mimic Gtk's sort arrows
2003-03-18  Mike Kestner  <mkestner@ximian.com>

	* e-table-header-item.c (ethi_draw): mimic Gtk's sort arrows
	(ethi_start_drag): mimic Gtk's sort arrows

svn path=/trunk/; revision=20340
2003-03-18 17:33:02 +00:00
251ffc55ad null start_path (etsm_invert_selection): null start_path
2003-03-18  Mike Kestner  <mkestner@ximian.com>

	* e-tree-selection-model.c (select_single_path): null start_path
	(etsm_invert_selection): null start_path
	(etsm_toggle_single_row): null start_path
	(etsm_real_move_selection_end): start at start_path, not cursor
	(etsm_set_selection_end): set start_path
	(e_tree_selection_model_init): null start_path

svn path=/trunk/; revision=20337
2003-03-18 16:38:30 +00:00
cb382f6c30 save and restore expanded state so parents don't collapse when children
2003-03-14  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (update_node): save and restore expanded
	state so parents don't collapse when children are added to them.
	(e_tree_table_adapter_node_is_expanded): guard against null nodes.

svn path=/trunk/; revision=20303
2003-03-14 23:38:34 +00:00
5c97b1f792 fix a couple ==TRUE uses pointed out by Morten Welinder <terra@diku.dk>.
2003-03-05  Mike Kestner  <mkestner@ximian.com>

	* e-tree-model.c : fix a couple ==TRUE uses pointed out by
	Morten Welinder <terra@diku.dk>.

svn path=/trunk/; revision=20169
2003-03-05 15:21:09 +00:00
63aef14c02 i18n fix
2003-03-04  Dmitry Mastrukov  <dmitry@taurussoft.org>

	* gal/widgets/e-unicode.c : i18n fix

2003-03-04  Dmitry Mastrukov  <dmitry@taurussoft.org>

	* e-cell-date.c (ecd_get_text): i18n fix
	* e-table.c (et_real_construct): i18n fix
	* e-table-config.c (create_global_store): i18n fix
	* e-table-utils.c (et_col_spec_to_col): i18n fix

2003-03-04  Mike Kestner  <mkestner@ximian.com>

	* e-tree-selection-model.c : some cursor fixes

svn path=/trunk/; revision=20156
2003-03-04 22:09:44 +00:00
e366ce662a rewrite to store selected paths in a hashtable instead of a tree. lose the
2003-03-04  Mike Kestner  <mkestner@ximian.com>

	* e-tree-selection-model.c : rewrite to store selected paths in a
	hashtable instead of a tree.
	* e-tree-table-adapter.c : lose the hacky orig_position api since
	etsm doesn't need it anymore.

svn path=/trunk/; revision=20136
2003-03-04 06:53:46 +00:00
2ee1eb9078 Add style_set to update list properly (et_canvas_realize): Remove this as
2003-02-26  Rodney Dawes  <dobey@ximian.com>

	* e-tree.c (et_canvas_style_set): Add style_set to update list properly
	(et_canvas_realize): Remove this as it's no longer needed with support
	for the style_set implementation

svn path=/trunk/; revision=20108
2003-02-28 18:43:30 +00:00
dd2a35e673 remove alloc-based transform (et_drag_data_received): ditto
2003-02-28  Mike Kestner  <mkestner@ximian.com>

	* e-table.c (et_drag_motion): remove alloc-based transform
	(et_drag_data_received): ditto
	(et_drag_drop): ditto
	(do_drag_motion): ditto

svn path=/trunk/; revision=20100
2003-02-28 17:09:42 +00:00
f37fdf7f9b remove alloc-based transform (et_drag_data_received): ditto
2003-02-28  Mike Kestner  <mkestner@ximian.com>

	* e-tree.c (et_drag_motion): remove alloc-based transform
	(et_drag_data_received): ditto
	(et_drag_drop): ditto
	(et_hover_timeout): ditto
	(do_drag_motion): ditto

svn path=/trunk/; revision=20099
2003-02-28 17:01:34 +00:00
4508cf787c fix overzealous g_asserts to avoid crashes when eti->rows is already
2003-02-20  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_table_model_rows_deleted): fix overzealous
	g_asserts to avoid crashes when eti->rows is already updated.

svn path=/trunk/; revision=19982
2003-02-20 21:52:15 +00:00
4a0d26411c kill (etsm_find_node_unless_equals): use new etta_orig_position
2003-02-20  Mike Kestner  <mkestner@ximian.com>

	* e-tree-selection-model.c (etsm_orig_position): kill
	(etsm_find_node_unless_equals): use new etta_orig_position
	(update_parents): use new etta_orig_position
	(etsm_recurse_is_path_selected): use new etta_orig_position
	* e-tree-table-adapter.c (e_tree_table_adapter_orig_position): new
	(resort_node): populate orig_pos, fix sorting_map bound bug
	(create_gnode): initialize orig_pos
	(delete_node): call resort_node so orig_pos gets updated
	(insert_node): always call resort_node let it decide whether to sort

svn path=/trunk/; revision=19975
2003-02-20 19:15:14 +00:00
ebb7a2c191 set remap_needed
2003-02-18  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (move_map_elements): set remap_needed

svn path=/trunk/; revision=19930
2003-02-18 17:32:47 +00:00
0def5bcb84 make sure the row >= 0 before calling value_at to calc "strikeout".
2003-02-17  Chris Toshok  <toshok@ximian.com>

	* e-cell-text.c (build_layout): make sure the row >= 0 before
	calling value_at to calc "strikeout".

svn path=/trunk/; revision=19926
2003-02-17 21:47:52 +00:00
8be77ed0d8 make things compile on an alpha. passing NULL to a var_arg not portable.
2003-02-17  Jody Goldberg <jody@gnome.org>

	* gal/e-table/e-table-group.c (e_table_group_construct) : make things
	  compile on an alpha.  passing NULL to a var_arg not portable.
	  This seems like a better approach.

svn path=/trunk/; revision=19924
2003-02-17 19:23:16 +00:00
6f8b2d31d9 return after the e_table_model_no_change call.
2003-02-17  Chris Toshok  <toshok@ximian.com>

	* e-tree-table-adapter.c (etta_proxy_node_data_changed): return
	after the e_table_model_no_change call.
	(etta_proxy_node_col_changed): same.

svn path=/trunk/; revision=19923
2003-02-17 09:17:19 +00:00
afac6edb53 guard for null paths if save_id lookup fails.
2003-02-13  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (*_load_expanded_state): guard for
	null paths if save_id lookup fails.

svn path=/trunk/; revision=19904
2003-02-13 19:16:56 +00:00
b88c27e9b2 don't transform based on allocation position. Position isn't absolute now.
2003-02-13  Mike Kestner  <mkestner@ximian.com>

	* e-table-header-item.c (ethi_drag_motion): don't transform
	based on allocation position. Position isn't absolute now.

svn path=/trunk/; revision=19902
2003-02-13 18:02:52 +00:00
9901ae486e kill a double unref on the pango_layout.
2003-02-13  Mike Kestner  <mkestner@ximian.com>

	* e-table-header-utils.c (e_table_header_draw_button): kill
	a double unref on the pango_layout.

svn path=/trunk/; revision=19900
2003-02-13 16:07:38 +00:00
a371f7b3fc Request a reflow on realization, so size and placement will be correct
2003-02-12  Hans Petter Jansson  <hpj@ximian.com>

	* e-table-click-to-add.c (etcta_realize): Request a reflow on
	realization, so size and placement will be correct initially.

svn path=/trunk/; revision=19899
2003-02-12 23:36:21 +00:00
1ebf9b6fd1 handle reverse searches (find_prev_in_range): reverse search impl
2003-02-12  Mike Kestner  <mkestner@ximian.com>

	* e-tree.c (e_tree_find_next): handle reverse searches
	(find_prev_in_range): reverse search impl
	(et_real_construct): kill warnings

svn path=/trunk/; revision=19897
2003-02-12 20:26:15 +00:00
ad82875fbf work around broken models that insert children before parents. bad models.
2003-02-12  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (insert_node): work around broken models
	that insert children before parents.  bad models.
	(e_tree_table_adapter_load_expanded_state): don't update_node
	(e_tree_table_adapter_node_set_expanded): recursively expand
	parent if the node is not visible yet.
	(e_tree_table_adapter_set_sort_info): don't resort empty trees

svn path=/trunk/; revision=19894
2003-02-12 18:02:32 +00:00
33841eb730 rewrite to use etta (find_next_in_range): helper func to search a range of
2003-02-10  Mike Kestner  <mkestner@ximian.com>

	* e-tree.c (e_tree_find_next): rewrite to use etta
	(find_next_in_range): helper func to search a range of rows
	(find_next_callback): kill

svn path=/trunk/; revision=19875
2003-02-10 18:04:25 +00:00
40e78f6df8 Unmarked some strings which are unsuitable for translation
svn path=/trunk/; revision=19857
2003-02-09 09:57:18 +00:00
8e5ed06cc1 index bound bug (insert_children): prepend/reverse for now
2003-02-06  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (resort_node): index bound bug
	(insert_children): prepend/reverse for now
	(generate_tree): resize old map to zero before filling it again
	(insert_node): fix assumption that root parent node has an index

svn path=/trunk/; revision=19828
2003-02-06 20:35:51 +00:00
749c7626eb use the parent path to find the parent node rather than the row, which is
2003-02-06  Not Zed  <NotZed@Ximian.com>

        * e-tree-table-adapter.c (delete_node): use the parent path to
        find the parent node rather than the row, which is not valid for
        the root node, which still needs its visible child count updated.

svn path=/trunk/; revision=19797
2003-02-06 02:17:14 +00:00
b0f27fa8d7 Replace deprecated glade_gnome_init() call with glade_init().
* e-table-config.c (config_class_init): Replace deprecated
	glade_gnome_init() call with glade_init().

	* e-table-field-chooser.c (e_table_field_chooser_class_init):
	Likewise.

svn path=/trunk/; revision=19759
2003-02-05 18:02:17 +00:00
3fd6662401 make GAL_LIBS use -lgal-2.0 remove extraneous GTK_LIBS reference update to
2003-02-03  Mike Kestner  <mkestner@ximian.com>

	* configure.in : make GAL_LIBS use -lgal-2.0
	* gal/Makefile.am : remove extraneous GTK_LIBS reference
	* tests/test-tree-3.c : update to new etta API

gal/e-table/ChangeLog
2003-02-03  Mike Kestner  <mkestner@ximian.com>

	* e-tree-selection-model.c : remove e-tree-sorted usage
	* e-tree-table-adapter.* : rewrite to perform sorting
	* e-tree.c : remove e-tree-sorted usage

svn path=/trunk/; revision=19755
2003-02-05 06:03:05 +00:00
9a00cb7215 replaced e scroll frame with gtk scrolled window
svn path=/trunk/; revision=19735
2003-02-04 19:01:48 +00:00