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.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/document-undo.h b/src/document-undo.h
index 9be260fa2..afd595ed8 100644
--- a/src/document-undo.h
+++ b/src/document-undo.h
@@ -1,6 +1,7 @@
#ifndef SEEN_SP_DOCUMENT_UNDO_H
#define SEEN_SP_DOCUMENT_UNDO_H
+typedef struct _GtkObject GtkObject;
namespace Inkscape {
@@ -15,10 +16,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);