diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-02-24 15:56:02 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-02-24 15:56:02 +0800 |
commit | 71c2274c7a0a99096ca05d63c9bf41cc6eb3295b (patch) | |
tree | e560a08a0ceee1e6308b9d6dbebdbfd09f323b85 /widgets/table | |
parent | 7699b8996aa2d9ae3fea0e94981637c98e89a273 (diff) | |
download | gsoc2013-evolution-71c2274c7a0a99096ca05d63c9bf41cc6eb3295b.tar.gz gsoc2013-evolution-71c2274c7a0a99096ca05d63c9bf41cc6eb3295b.tar.zst gsoc2013-evolution-71c2274c7a0a99096ca05d63c9bf41cc6eb3295b.zip |
Made changing focus work.
2000-02-24 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Made changing focus work.
svn path=/trunk/; revision=1916
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-table-item.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index d8ecdf1404..6c1dd1d07f 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -1190,6 +1190,11 @@ e_table_item_focus (ETableItem *eti, int col, int row) g_return_if_fail (eti != NULL); g_return_if_fail (E_IS_TABLE_ITEM (eti)); + /* + * make sure we have the Gtk Focus + */ + gnome_canvas_item_grab_focus (GNOME_CANVAS_ITEM (eti)); + if (eti->focused_col != -1) e_table_item_unfocus (eti); @@ -1197,11 +1202,6 @@ e_table_item_focus (ETableItem *eti, int col, int row) eti->focused_row = row; eti_request_region_redraw (eti, col, row, col, row, FOCUSED_BORDER); - - /* - * make sure we have the Gtk Focus - */ - gnome_canvas_item_grab_focus (GNOME_CANVAS_ITEM (eti)); } void |