summaryrefslogtreecommitdiff
path: root/src/procdialogs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/procdialogs.cpp')
-rw-r--r--src/procdialogs.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/procdialogs.cpp b/src/procdialogs.cpp
index 449679d..d129bd9 100644
--- a/src/procdialogs.cpp
+++ b/src/procdialogs.cpp
@@ -34,6 +34,7 @@
#include "settings-keys.h"
#include "procman_matesu.h"
#include "procman_gksu.h"
+#include "cgroups.h"
static GtkWidget *renice_dialog = NULL;
static GtkWidget *prefs_dialog = NULL;
@@ -470,11 +471,16 @@ create_field_page(GtkWidget *tree, const char* text)
GtkTreeIter iter;
const gchar *title;
gboolean visible;
+ gint column_id;
title = gtk_tree_view_column_get_title (column);
if (!title)
title = _("Icon");
+ column_id = gtk_tree_view_column_get_sort_column_id(column);
+ if ((column_id == COL_CGROUP) && (!cgroups_enabled()))
+ continue;
+
visible = gtk_tree_view_column_get_visible (column);
gtk_list_store_append (model, &iter);