Made it so that on realize we grab focus if we have the cursor, since

2002-06-05  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_realize): Made it so that on realize we grab
	focus if we have the cursor, since otherwise, we'll change our
	selection on focus in.

svn path=/trunk/; revision=17115
This commit is contained in:
Christopher James Lahey
2002-06-05 13:51:24 +00:00
committed by Chris Lahey
parent 54cdc8236b
commit efb514d63c

View File

@ -1665,6 +1665,17 @@ eti_realize (GnomeCanvasItem *item)
free_height_cache(eti);
if (item->canvas->focused_item == NULL) {
int row;
row = e_selection_model_cursor_row (E_SELECTION_MODEL (eti->selection));
row = model_to_view_row(eti, row);
if (row != -1) {
e_canvas_item_grab_focus (item, FALSE);
eti_show_cursor (eti, 0);
eti_check_cursor_bounds (eti);
}
}
eti->needs_compute_height = 1;
eti->needs_compute_width = 1;
e_canvas_item_request_reflow (GNOME_CANVAS_ITEM (eti));