[gnome-system-monitor] Make sorting work as before



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]