summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-18 21:30:25 +0100
committerinfirit <[email protected]>2014-12-18 21:31:13 +0100
commit6034caada16eab3b07e090c0f2b29a1a3dd9d105 (patch)
tree8d7d47e968444258975bdd887821f7694241451d /src/util.h
parentad78931540508c4f3d52d938852c47086ce7b03f (diff)
downloadmate-system-monitor-6034caada16eab3b07e090c0f2b29a1a3dd9d105.tar.bz2
mate-system-monitor-6034caada16eab3b07e090c0f2b29a1a3dd9d105.tar.xz
Priority column to the process table to show user-friendly nice values
Taken from GSM commit: 6fcbf5aaa65d63dd751c812c3ac05a937b50450d From: Robert Roth <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=131802
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 6e989a9..8d044ce 100644
--- a/src/util.h
+++ b/src/util.h
@@ -99,6 +99,12 @@ namespace procman
void status_cell_data_func(GtkTreeViewColumn *col, GtkCellRenderer *renderer,
GtkTreeModel *model, GtkTreeIter *iter,
gpointer user_data);
+ void priority_cell_data_func(GtkTreeViewColumn *col, GtkCellRenderer *renderer,
+ GtkTreeModel *model, GtkTreeIter *iter,
+ gpointer user_data);
+ gint priority_compare_func(GtkTreeModel* model, GtkTreeIter* first,
+ GtkTreeIter* second, gpointer user_data);
+
template<typename T>
void poison(T &t, char c)
@@ -141,6 +147,8 @@ namespace procman
gchar* format_size(guint64 size, guint64 max = 0, bool want_bits = false);
+ gchar* get_nice_level (gint nice);
+
std::string format_rate(guint64 rate, guint64 max_rate = 0, bool want_bits = false);
std::string format_network(guint64 rate, guint64 max_rate = 0);