diff options
author | Li Yuan <li.yuan@sun.com> | 2005-12-06 13:18:51 +0800 |
---|---|---|
committer | Li Yuan <liyuan@src.gnome.org> | 2005-12-06 13:18:51 +0800 |
commit | 94a8222e180c526cadf6df4f5cf3c040904e6083 (patch) | |
tree | 226845f603e7d7260b8481863c359db674811cd1 /widgets/table | |
parent | 19eadae036b5f14425e9e8d9d37e2a2c6eec0f51 (diff) | |
download | gsoc2013-evolution-94a8222e180c526cadf6df4f5cf3c040904e6083.tar.gz gsoc2013-evolution-94a8222e180c526cadf6df4f5cf3c040904e6083.tar.zst gsoc2013-evolution-94a8222e180c526cadf6df4f5cf3c040904e6083.zip |
Fixes bug #322776. When focus come into e-tree, it is possible that the
2005-12-06 Li Yuan <li.yuan@sun.com>
* e-tree.c: (table_canvas_focus_event_cb):
Fixes bug #322776.
When focus come into e-tree, it is possible that the focused_item
is not NULL and there is no focused item in e-tree. So test
e_selection_model_cursor_row also.
svn path=/trunk/; revision=30724
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/ChangeLog | 8 | ||||
-rw-r--r-- | widgets/table/e-tree.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog index 5062808b55..58b7b19302 100644 --- a/widgets/table/ChangeLog +++ b/widgets/table/ChangeLog @@ -1,3 +1,11 @@ +2005-12-06 Li Yuan <li.yuan@sun.com> + + * e-tree.c: (table_canvas_focus_event_cb): + Fixes bug #322776. + When focus come into e-tree, it is possible that the focused_item + is not NULL and there is no focused item in e-tree. So test + e_selection_model_cursor_row also. + 2005-10-14 Kaushal Kumar <kakumar@novell.com> * table/e-table-group-container.c diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index 65abb65cce..dc72272dac 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -1051,7 +1051,7 @@ table_canvas_focus_event_cb (GtkWidget *widget, GdkEventFocus *event, gpointer d canvas = GNOME_CANVAS (widget); tree = E_TREE (data); - if (!canvas->focused_item) { + if (!canvas->focused_item || (e_selection_model_cursor_row (tree->priv->selection) == -1)) { e_table_item_set_cursor (E_TABLE_ITEM (tree->priv->item), 0, 0); gnome_canvas_item_grab_focus (tree->priv->item); } |