summaryrefslogtreecommitdiffstats
path: root/src/document-undo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/document-undo.h')
-rw-r--r--src/document-undo.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/document-undo.h b/src/document-undo.h
index 9be260fa2..7ff45c269 100644
--- a/src/document-undo.h
+++ b/src/document-undo.h
@@ -1,9 +1,14 @@
#ifndef SEEN_SP_DOCUMENT_UNDO_H
#define SEEN_SP_DOCUMENT_UNDO_H
+typedef struct _GtkObject GtkObject;
+
+class SPDesktop;
namespace Inkscape {
+class Application;
+
class DocumentUndo
{
public:
@@ -15,10 +20,10 @@ public:
* Since undo sensitivity needs to be nested, setting undo sensitivity
* should be done like this:
*\verbatim
- bool saved = sp_document_get_undo_sensitive(document);
- sp_document_set_undo_sensitive(document, false);
+ bool saved = DocumentUndo::getUndoSensitive(document);
+ DocumentUndo::setUndoSensitive(document, false);
... do stuff ...
- sp_document_set_undo_sensitive(document, saved); \endverbatim
+ DocumentUndo::setUndoSensitive(document, saved); \endverbatim
*/
static void setUndoSensitive(SPDocument *doc, bool sensitive);