summaryrefslogtreecommitdiff
path: root/src/selection.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-11-08 16:22:08 -0300
committerPerberos <[email protected]>2011-11-08 16:22:08 -0300
commitf45852ab2a7126f354079499fc8b03976c0eab27 (patch)
tree885c32d804d3c970c5da41a5527882e8a956b42d /src/selection.h
downloadmate-system-monitor-f45852ab2a7126f354079499fc8b03976c0eab27.tar.bz2
mate-system-monitor-f45852ab2a7126f354079499fc8b03976c0eab27.tar.xz
initial
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 */