Commit Graph

922 Commits

Author SHA1 Message Date
996f1063f9 don't do the CURSOR_FIRST checks if cursor is NULL [43523]
2003-06-13  Mike Kestner  <mkestner@ximian.com>

	* e-tree.c (et_search_search): don't do the CURSOR_FIRST
	checks if cursor is NULL [43523]

2003-06-13  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_get_cell_background_color): update to
	an alt row color more consistent with gtktreeview. [44610]

svn path=/trunk/; revision=21440
2003-06-13 22:27:03 +00:00
a37e4f4213 guard against NULL strings don't add disabled column titles to the store.
2003-06-12  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (generate_layout): guard against NULL strings
	* e-table-config.c (create_global_store): don't add disabled
	column titles to the store. [44258]
	* e-tree-table-adapter.c (e_t_t_a_node_set_expanded): don't
	warn if we're trying to collapse a node that's not visible.
	* e-tree.c (et_connect_to_etta): don't connect to row_inserted
	and row_deleted. [43893]

svn path=/trunk/; revision=21424
2003-06-12 13:35:46 +00:00
0701e570aa bump libtool version for api addition new, utf8 in/out
2003-05-28  Mike Kestner  <mkestner@ximian.com>

	* configure.in : bump libtool version for api addition
	* gal/util/e-util.c (e_utf8_strftime): new, utf8 in/out
	(e_utf8_strftime_fix_am_pm): new, utf8 in/out

2003-05-28  Mike Kestner  <mkestner@ximian.com>

	* e-cell-date.c (ecd_get_text): use e_utf8_strftime_fix_am_pm
	and remove locale to utf8 conversion at end.  [43485]

svn path=/trunk/; revision=21343
2003-05-28 21:32:52 +00:00
3c4aef5b41 to really fix 42952 use e_table_item_get_cell_geometry. Also a couple
2003-05-20  Ettore Perazzoli  <ettore@ximian.com>

	* e-tree.c (tree_canvas_size_allocate): to really fix 42952
	use e_table_item_get_cell_geometry.  Also a couple valgrind
	and g_warning fixes related to this change from Mike.

svn path=/trunk/; revision=21303
2003-05-21 16:02:59 +00:00
fcb80018c0 revert a broken CLEAN_FILES change. [42478]
2003-05-19  Mike Kestner  <mkestner@ximian.com>

	* Makefile.am : revert a broken CLEAN_FILES change. [42478]

2003-05-19  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (build_layout): don't call any line breaking
	or justification code if the width <= 0 since it's pointless
	and apparently pango likes to crash when you do. [43199]

svn path=/trunk/; revision=21260
2003-05-19 18:37:12 +00:00
d09737dec4 block the signal that got us here until we're done to stop an infinite
2003-05-16  Mike Kestner  <mkestner@ximian.com>

	* gal-view-collection.c (view_changed): block the signal
	that got us here until we're done to stop an infinite
	recursion.  Fixes 43153.

2003-05-16  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (invisible_finalize): kill
	(ect_stop_editing): destroy the invisible, not weak_unref
	(e_cell_text_view_get_invisible): don't weak_ref the invisible
	since we own its ref.

2003-05-16  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_event): fix a couple timer checks
	* e-tree-table-adapter.c (update_node): Traverse POST order
	so that the parent nodes are at the head of the prepended list.
	Don't restore expanded state to nodes that aren't in the tree
	any longer.  Hopefully fixes #42856.

svn path=/trunk/; revision=21229
2003-05-16 21:58:33 +00:00
b47a4aa4ee (tree_canvas_size_allocate): Call
tree_canvas_reflow_idle() before deciding whether to move the
adjustment, not afterwards.  [#42952]

svn path=/trunk/; revision=21197
2003-05-15 20:58:15 +00:00
6cdf75996f use weak refs not datasets. (e_tree_dispose): weak_unref the context.
2003-05-14  Mike Kestner  <mkestner@ximian.com>

	* e-tree-c (context_connect): use weak refs not datasets.
	(e_tree_dispose): weak_unref the context.
	Hopefully fixes 42617.

svn path=/trunk/; revision=21195
2003-05-15 18:33:47 +00:00
6e8895d6e8 gross hack to work around a post dispose event emission by
2003-05-13  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_event): gross hack to work around a
	post dispose event emission by gtk2.0/canvas2.0 [#42622]

svn path=/trunk/; revision=21174
2003-05-14 17:56:50 +00:00
b08b55549a add null check for paths (find_prev_in_range): add null check for paths
2003-05-09  Mike Kestner  <mkestner@ximian.com>

	* e-tree.c (find_next_in_range): add null check for paths
	(find_prev_in_range): add null check for paths

svn path=/trunk/; revision=21143
2003-05-09 21:39:56 +00:00
4d31188934 don't return on col == -1. update the adjustment to center the cursor.
2003-05-09  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_cursor_change): don't return on col == -1.
	* e-tree.c (tree_canvas_size_allocate): update the adjustment
	to center the cursor.
	(hover_timeout): remove unused variable to fix warning

svn path=/trunk/; revision=21142
2003-05-09 17:14:17 +00:00
c7431a19ae add missing model_changed (etta_proxy_node_inserted): add missing
2003-05-06  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (insert_node): add missing model_changed
	(etta_proxy_node_inserted): add missing model_changed
	(etta_proxy_node_removed): add missing model_changed

svn path=/trunk/; revision=21116
2003-05-06 18:19:15 +00:00
7f56d73b7c Use correct macro for int->pointer
2003-05-05  Jeremy Katz  <katzj@redhat.com>

	* e-table-config.c (setup_fields): Use correct macro for int->pointer

svn path=/trunk/; revision=21111
2003-05-06 04:57:48 +00:00
cfd486fdd8 return the instantiated object. [bug #42156]
2003-05-01  Mike Kestner  <mkestner@ximian.com>

	* gal/e-text/e-completion-callbacks.c (e_completion_callbacks_new):
	return the instantiated object. [bug #42156]

2003-05-01  Mike Kestner  <mkestner@ximian.com>

	* e-cell-combo.c (e_cell_combo_selection_changed): new
	(e_cell_combo_init): connect to selection_changed on popup_list
	(e_cell_combo_do_popup): block selection_changed while popping up
	[bug #40996]

svn path=/trunk/; revision=21042
2003-05-01 18:21:35 +00:00
16bfd2b973 remove gratuitous ref
2003-05-01  JP Rosevear  <jpr@ximian.com>

	* e-table.c (et_real_construct): remove gratuitous ref

svn path=/trunk/; revision=21041
2003-05-01 18:02:17 +00:00
c84abc0e0c don't use unicode ellipsis so that we don't break on broken font setups.
2003-04-29  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (build_layout): don't use unicode ellipsis so
	that we don't break on broken font setups.

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

	* e-cell-text.c (generate_layout): don't set width on the layout
	during edit

svn path=/trunk/; revision=21012
2003-04-29 18:27:04 +00:00
5283d07d81 don't do wrapping during edit
2003-04-28  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (build_layout): don't do wrapping during edit

svn path=/trunk/; revision=20995
2003-04-28 21:03:35 +00:00
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