aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-group-leaf.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-21 11:07:30 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-21 11:07:30 +0800
commitc62863d0877fd19c90ba8a15d4438611599b0979 (patch)
treed2668eab8bcb699aa1bcb547c17075c5226bdcfe /widgets/e-table/e-table-group-leaf.c
parent798b2b01e6ecdbaea70860ca357b5c3eb5ecddfb (diff)
downloadgsoc2013-evolution-c62863d0877fd19c90ba8a15d4438611599b0979.tar.gz
gsoc2013-evolution-c62863d0877fd19c90ba8a15d4438611599b0979.tar.zst
gsoc2013-evolution-c62863d0877fd19c90ba8a15d4438611599b0979.zip
Removed the unfocus method since that's handled by the canvas itself now.
2000-06-20 Christopher James Lahey <clahey@helixcode.com> * e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-group.h: Removed the unfocus method since that's handled by the canvas itself now. * e-table-item.c, e-table-item.h: Finished adapting ETableItem to use the canvas selection/cursor system. Selection and cursor now use row numbers associated with the source model instead of the sorted model (if the model they are given is an ETableSubset.) This has no effect on the interface, except that unfocus was removed and e_table_item_focus was renamed to e_table_item_set_cursor. svn path=/trunk/; revision=3660
Diffstat (limited to 'widgets/e-table/e-table-group-leaf.c')
-rw-r--r--widgets/e-table/e-table-group-leaf.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/widgets/e-table/e-table-group-leaf.c b/widgets/e-table/e-table-group-leaf.c
index 0845f93695..ea3400ceb9 100644
--- a/widgets/e-table/e-table-group-leaf.c
+++ b/widgets/e-table/e-table-group-leaf.c
@@ -207,9 +207,9 @@ etgl_set_focus (ETableGroup *etg, EFocus direction, gint view_col)
{
ETableGroupLeaf *etgl = E_TABLE_GROUP_LEAF (etg);
if (direction == E_FOCUS_END) {
- e_table_item_focus (etgl->item, view_col, e_table_model_row_count(E_TABLE_MODEL(etgl->subset)) - 1);
+ e_table_item_set_cursor (etgl->item, view_col, e_table_model_row_count(E_TABLE_MODEL(etgl->subset)) - 1);
} else {
- e_table_item_focus (etgl->item, view_col, 0);
+ e_table_item_set_cursor (etgl->item, view_col, 0);
}
}
@@ -217,7 +217,9 @@ static void
etgl_select_row (ETableGroup *etg, gint row)
{
ETableGroupLeaf *etgl = E_TABLE_GROUP_LEAF (etg);
- e_table_item_focus(etgl->item, 0, row);
+ gnome_canvas_item_set(GTK_OBJECT(etgl->item),
+ "cursor_row", row,
+ NULL);
}
static int
@@ -231,13 +233,6 @@ etgl_get_selected_view_row (ETableGroup *etg)
return row;
}
-static void
-etgl_unfocus (ETableGroup *etg)
-{
- ETableGroupLeaf *etgl = E_TABLE_GROUP_LEAF (etg);
- e_table_item_unfocus (etgl->item);
-}
-
static gint
etgl_get_focus_column (ETableGroup *etg)
{
@@ -360,7 +355,6 @@ etgl_class_init (GtkObjectClass *object_class)
e_group_class->row_count = etgl_row_count;
e_group_class->set_focus = etgl_set_focus;
e_group_class->select_row = etgl_select_row;
- e_group_class->unfocus = etgl_unfocus;
e_group_class->get_selected_view_row = etgl_get_selected_view_row;
e_group_class->get_focus_column = etgl_get_focus_column;
e_group_class->get_printable = etgl_get_printable;