aboutsummaryrefslogtreecommitdiffstats
path: root/filter/rule-editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'filter/rule-editor.h')
-rw-r--r--filter/rule-editor.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/filter/rule-editor.h b/filter/rule-editor.h
index b981a61b65..f054023c87 100644
--- a/filter/rule-editor.h
+++ b/filter/rule-editor.h
@@ -30,6 +30,7 @@
typedef struct _RuleEditor RuleEditor;
typedef struct _RuleEditorClass RuleEditorClass;
+typedef struct _RuleEditorUndo RuleEditorUndo;
struct _RuleEditor {
GnomeDialog parent;
@@ -43,6 +44,9 @@ struct _RuleEditor {
char *source;
+ struct _RuleEditorUndo *undo_log; /* cancel/undo log */
+ unsigned int undo_active:1; /* we're performing undo */
+
struct _RuleEditorPrivate *priv;
};
@@ -58,6 +62,22 @@ struct _RuleEditorClass {
/* signals */
};
+enum {
+ RULE_EDITOR_LOG_EDIT,
+ RULE_EDITOR_LOG_ADD,
+ RULE_EDITOR_LOG_REMOVE,
+ RULE_EDITOR_LOG_RANK,
+};
+
+struct _RuleEditorUndo {
+ struct _RuleEditorUndo *next;
+
+ unsigned int type;
+ struct _FilterRule *rule;
+ int rank;
+ int newrank;
+};
+
struct _GladeXML;
struct _RuleContext;