[gnome-system-monitor] Make sorting work as before
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Make sorting work as before
- Date: Fri, 2 Aug 2013 10:13:00 +0000 (UTC)
commit 0e9c809f984b84e012dcb30272290afe6eef9dc8
Author: Stefano Facchini <stefano facchini gmail com>
Date: Fri Aug 2 11:59:31 2013 +0200
Make sorting work as before
Custom sorting functions need to apply to the GtkTreeModelSort now
src/proctable.cpp | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/proctable.cpp b/src/proctable.cpp
index 535f4bf..ba5205e 100644
--- a/src/proctable.cpp
+++ b/src/proctable.cpp
@@ -531,14 +531,15 @@ proctable_new (ProcmanApp * const app)
case COL_CPU:
case COL_CPU_TIME:
case COL_START_TIME:
- gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(model), i,
- procman::number_compare_func, GUINT_TO_POINTER(i),
- NULL);
+ gtk_tree_sortable_set_sort_func (GTK_TREE_SORTABLE (model_sort), i,
+ procman::number_compare_func,
+ GUINT_TO_POINTER (i),
+ NULL);
break;
case COL_PRIORITY:
- gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(model), i,
- procman::priority_compare_func,
- GUINT_TO_POINTER(COL_NICE), NULL);
+ gtk_tree_sortable_set_sort_func (GTK_TREE_SORTABLE (model_sort), i,
+ procman::priority_compare_func,
+ GUINT_TO_POINTER (COL_NICE), NULL);
break;
default:
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]