diff options
-rw-r--r-- | widgets/e-table/ChangeLog | 4 | ||||
-rw-r--r-- | widgets/e-table/e-table-item.c | 10 | ||||
-rw-r--r-- | 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,5 +1,9 @@ 2000-02-24 Christopher James Lahey <clahey@helixcode.com> + * e-table-item.c: Made changing focus work. + +2000-02-24 Christopher James Lahey <clahey@helixcode.com> + * e-table-subset-variable.c, e-table-subset-variable.h: A new model which is a subset, but you can add and remove rows. 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 |