diff options
Diffstat (limited to 'src/selection.h')
-rw-r--r-- | src/selection.h | 21 |
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 */ |