aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-02-24 15:56:02 +0800
committerChris Lahey <clahey@src.gnome.org>2000-02-24 15:56:02 +0800
commit71c2274c7a0a99096ca05d63c9bf41cc6eb3295b (patch)
treee560a08a0ceee1e6308b9d6dbebdbfd09f323b85
parent7699b8996aa2d9ae3fea0e94981637c98e89a273 (diff)
downloadgsoc2013-evolution-71c2274c7a0a99096ca05d63c9bf41cc6eb3295b.tar
gsoc2013-evolution-71c2274c7a0a99096ca05d63c9bf41cc6eb3295b.tar.gz
gsoc2013-evolution-71c2274c7a0a99096ca05d63c9bf41cc6eb3295b.tar.bz2
gsoc2013-evolution-71c2274c7a0a99096ca05d63c9bf41cc6eb3295b.tar.lz
gsoc2013-evolution-71c2274c7a0a99096ca05d63c9bf41cc6eb3295b.tar.xz
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
-rw-r--r--widgets/e-table/ChangeLog4
-rw-r--r--widgets/e-table/e-table-item.c10
-rw-r--r--widgets/table/e-table-item.c10
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