aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-12-15 03:02:13 +0800
committerChris Lahey <clahey@src.gnome.org>2000-12-15 03:02:13 +0800
commitfeea74a8a7cbfe1b9d96212c6380f724750ad9e1 (patch)
treeee2d6be303840e8d9fec217629a41fde2daad449 /widgets/table/e-table.c
parent40013b42006e21aabe6dfd9451548fc2621bbe1f (diff)
downloadgsoc2013-evolution-feea74a8a7cbfe1b9d96212c6380f724750ad9e1.tar
gsoc2013-evolution-feea74a8a7cbfe1b9d96212c6380f724750ad9e1.tar.gz
gsoc2013-evolution-feea74a8a7cbfe1b9d96212c6380f724750ad9e1.tar.bz2
gsoc2013-evolution-feea74a8a7cbfe1b9d96212c6380f724750ad9e1.tar.lz
gsoc2013-evolution-feea74a8a7cbfe1b9d96212c6380f724750ad9e1.tar.xz
gsoc2013-evolution-feea74a8a7cbfe1b9d96212c6380f724750ad9e1.tar.zst
gsoc2013-evolution-feea74a8a7cbfe1b9d96212c6380f724750ad9e1.zip
Removed the set cursor and get cursor methods from ETableGroup.
2000-12-14 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 set cursor and get cursor methods from ETableGroup. * e-table.c (e_table_get_cursor_row, e_table_set_cursor_row): Changed this to use the ETableSelection directly instead of going through the grouping structure. This seems to fix a bug in evolution's folder list for some people. svn path=/trunk/; revision=7018
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r--widgets/table/e-table.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index dbf301994b..12a23bfdd7 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -1203,9 +1203,9 @@ e_table_set_cursor_row (ETable *e_table, int row)
g_return_if_fail(E_IS_TABLE(e_table));
g_return_if_fail(row >= 0);
- row = e_table_sorter_model_to_sorted(e_table->sorter, row);
- if (row != -1)
- e_table_group_set_cursor_row(e_table->group, row);
+ gtk_object_set(GTK_OBJECT(e_table->selection),
+ "cursor_row", row,
+ NULL);
}
int
@@ -1215,8 +1215,9 @@ e_table_get_cursor_row (ETable *e_table)
g_return_val_if_fail(e_table != NULL, -1);
g_return_val_if_fail(E_IS_TABLE(e_table), -1);
- row = e_table_group_get_cursor_row(e_table->group);
- row = e_table_sorter_sorted_to_model(e_table->sorter, row);
+ gtk_object_get(GTK_OBJECT(e_table->selection),
+ "cursor_row", &row,
+ NULL);
return row;
}