summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-18 22:02:14 +0100
committerinfirit <[email protected]>2014-12-18 22:02:14 +0100
commitc133c2c81935f77ac35d341e2cb5378222b2ea55 (patch)
tree37b37bc6e250df281134b004fe6f309763e0548c /src/util.h
parent89a5256bf2b7292e0fcbd6c7fb0d5a3901271645 (diff)
downloadmate-system-monitor-c133c2c81935f77ac35d341e2cb5378222b2ea55.tar.bz2
mate-system-monitor-c133c2c81935f77ac35d341e2cb5378222b2ea55.tar.xz
Add custom sort method for numerical columns with descending sort first
Taken from GSM commit: b439f813ceaf6ce6e82cd490c734c67aeb1f2028 From: Robert Roth <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=557122
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 8d044ce..22a9a14 100644
--- a/src/util.h
+++ b/src/util.h
@@ -104,6 +104,8 @@ namespace procman
gpointer user_data);
gint priority_compare_func(GtkTreeModel* model, GtkTreeIter* first,
GtkTreeIter* second, gpointer user_data);
+ gint number_compare_func(GtkTreeModel* model, GtkTreeIter* first,
+ GtkTreeIter* second, gpointer user_data);
template<typename T>