summaryrefslogtreecommitdiff
path: root/src/selection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/selection.h')
-rw-r--r--src/selection.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/selection.h b/src/selection.h
new file mode 100644
index 0000000..1dd3470
--- /dev/null
+++ b/src/selection.h
@@ -0,0 +1,21 @@
+#ifndef H_MATE_SYSTEM_MONITOR_SELECTION_H_1183113337
+#define H_MATE_SYSTEM_MONITOR_SELECTION_H_1183113337
+
+#include <sys/types.h>
+#include <gtk/gtk.h>
+#include <vector>
+
+namespace procman
+{
+ class SelectionMemento
+ {
+ std::vector<pid_t> pids;
+ static void add_to_selected(GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer data);
+
+ public:
+ void save(GtkWidget* tree);
+ void restore(GtkWidget* tree);
+ };
+}
+
+#endif /* H_MATE_SYSTEM_MONITOR_SELECTION_H_1183113337 */