aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ximian.com>2002-09-24 15:13:15 +0800
committerMike Kestner <mkestner@src.gnome.org>2002-09-24 15:13:15 +0800
commit87f9823068608040e7e73f9407797986a0f72ba1 (patch)
tree942a76839ff03366473a28e87122567a559b4f37 /shell
parent22c6cebf6b5e10754c209e6052173967d4092142 (diff)
downloadgsoc2013-evolution-87f9823068608040e7e73f9407797986a0f72ba1.tar.gz
gsoc2013-evolution-87f9823068608040e7e73f9407797986a0f72ba1.tar.zst
gsoc2013-evolution-87f9823068608040e7e73f9407797986a0f72ba1.zip
use the new e_tree_set_search_column function instead of my lameass sort
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. svn path=/trunk/; revision=18194
Diffstat (limited to 'shell')
-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