aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/e-storage-set-view.c15
2 files changed, 6 insertions, 14 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 873fd58506..6290eb625f 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-24 Mike Kestner <mkestner@ximian.com>
+
+ * e-storage-set-view.c (e_storage_set_enable_search): use the new
+ e_tree_set_search_column function instead of my lameass sort hack.
+
2002-09-23 Ettore Perazzoli <ettore@ximian.com>
* e-shell.c (e_shell_construct): Oops, no @shell argument to
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c
index 66e1a17b09..7d0dab8141 100644
--- a/shell/e-storage-set-view.c
+++ b/shell/e-storage-set-view.c
@@ -2352,9 +2352,6 @@ void
e_storage_set_view_enable_search (EStorageSetView *storage_set_view,
gboolean enable)
{
- ETableState *state;
- ETableSortColumn col;
-
g_return_if_fail (storage_set_view != NULL);
g_return_if_fail (E_IS_STORAGE_SET_VIEW (storage_set_view));
@@ -2364,17 +2361,7 @@ e_storage_set_view_enable_search (EStorageSetView *storage_set_view,
return;
storage_set_view->priv->search_enabled = enable;
-
- state = e_tree_get_state_object (E_TREE (storage_set_view));
-
- if (enable) {
- col.column = 0;
- col.ascending = TRUE;
- e_table_sort_info_sorting_set_nth (state->sort_info, 0, col);
- } else
- e_table_sort_info_sorting_truncate (state->sort_info, 0);
-
- e_tree_set_state_object (E_TREE (storage_set_view), state);
+ e_tree_set_search_column (E_TREE (storage_set_view), enable ? 0 : -1);
}
void