From 71c2274c7a0a99096ca05d63c9bf41cc6eb3295b Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 24 Feb 2000 07:56:02 +0000 Subject: Made changing focus work. 2000-02-24 Christopher James Lahey * e-table-item.c: Made changing focus work. svn path=/trunk/; revision=1916 --- widgets/e-table/ChangeLog | 4 ++++ widgets/e-table/e-table-item.c | 10 +++++----- widgets/table/e-table-item.c | 10 +++++----- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog index 5ed89f05ef..b231b5cee1 100644 --- a/widgets/e-table/ChangeLog +++ b/widgets/e-table/ChangeLog @@ -1,3 +1,7 @@ +2000-02-24 Christopher James Lahey + + * e-table-item.c: Made changing focus work. + 2000-02-24 Christopher James Lahey * e-table-subset-variable.c, e-table-subset-variable.h: A new diff --git a/widgets/e-table/e-table-item.c b/widgets/e-table/e-table-item.c index d8ecdf1404..6c1dd1d07f 100644 --- a/widgets/e-table/e-table-item.c +++ b/widgets/e-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 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 -- cgit