summaryrefslogtreecommitdiff
path: root/src/proctable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/proctable.cpp')
-rw-r--r--src/proctable.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/proctable.cpp b/src/proctable.cpp
index b9b0a75..faab2b0 100644
--- a/src/proctable.cpp
+++ b/src/proctable.cpp
@@ -71,6 +71,14 @@ ProcInfo* ProcInfo::find(pid_t pid)
return (it == ProcInfo::all.end() ? NULL : it->second);
}
+void
+get_last_selected (GtkTreeModel *model, GtkTreePath *path,
+ GtkTreeIter *iter, gpointer data)
+{
+ ProcInfo **info = static_cast<ProcInfo**>(data);
+
+ gtk_tree_model_get (model, iter, COL_POINTER, info, -1);
+}
static void
cb_columns_changed(GtkTreeView *treeview, gpointer user_data)