2005-09-14 [paul] 1.9.14cvs26
[claws.git] / src / undo.h
index 007519a559f364786fef3ac1625b6ad2bd511703..dd00ca15f9dd1d87d750a9e6b9e41a5b7354c968 100644 (file)
@@ -23,7 +23,7 @@
 #define __UNDO_H__
 
 #include <glib.h>
-#include <gtk/gtkwidget.h>
+#include <gtk/gtktextview.h>
 #include <gtk/gtkitemfactory.h>
 
 typedef enum 
@@ -31,7 +31,7 @@ typedef enum
        UNDO_ACTION_INSERT,
        UNDO_ACTION_DELETE,
        UNDO_ACTION_REPLACE_INSERT,
-       UNDO_ACTION_REPLACE_DELETE,
+       UNDO_ACTION_REPLACE_DELETE
 } UndoAction;
 
 typedef enum 
@@ -39,7 +39,7 @@ typedef enum
        UNDO_STATE_TRUE,
        UNDO_STATE_FALSE,
        UNDO_STATE_UNCHANGED,
-       UNDO_STATE_REFRESH,
+       UNDO_STATE_REFRESH
 } UndoState;
 
 typedef struct _UndoMain UndoMain;
@@ -51,7 +51,7 @@ typedef void (*UndoChangeStateFunc)   (UndoMain       *undostruct,
 
 struct _UndoMain 
 {
-       GtkWidget *text;
+       GtkTextView *textview;
 
        GList *undo;
        GList *redo;
@@ -74,5 +74,7 @@ void undo_set_change_state_func       (UndoMain               *undostruct,
 
 void undo_undo                 (UndoMain               *undostruct); 
 void undo_redo                 (UndoMain               *undostruct); 
+void undo_block                        (UndoMain               *undostruct);
+void undo_unblock              (UndoMain               *undostruct);
 
 #endif /* __UNDO_H__ */