From 36a1242bc96b3afee539421ec2c38d9934dd5095 Mon Sep 17 00:00:00 2001 From: "Michael G. Sloan" Date: Sat, 26 Aug 2006 01:31:22 +0000 Subject: gboolean -> bool conversion commit 1. Modifies code to do with getting the undo system to ignore actions, as well as SVG/XML save/load. Shouldn't cause problems though. (bzr r1639) --- src/document.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/document.cpp') diff --git a/src/document.cpp b/src/document.cpp index 20bbeb73e..f403f3aad 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -308,7 +308,7 @@ sp_document_create(Inkscape::XML::Document *rdoc, inkscape_ref(); } - sp_document_set_undo_sensitive(document, TRUE); + sp_document_set_undo_sensitive(document, true); // reset undo key when selection changes, so that same-key actions on different objects are not coalesced if (!Inkscape::NSApplication::Application::getNewGui()) { @@ -549,8 +549,8 @@ void sp_document_set_uri(SPDocument *document, gchar const *uri) // Update saveable repr attributes. Inkscape::XML::Node *repr = sp_document_repr_root(document); // changing uri in the document repr must not be not undoable - gboolean saved = sp_document_get_undo_sensitive(document); - sp_document_set_undo_sensitive(document, FALSE); + bool saved = sp_document_get_undo_sensitive(document); + sp_document_set_undo_sensitive(document, false); if (document->base) repr->setAttribute("sodipodi:docbase", document->base); @@ -767,7 +767,7 @@ SPDocument::_updateDocument() sp_document_setup_viewport (this, &ctx); bool saved = sp_document_get_undo_sensitive(this); - sp_document_set_undo_sensitive(this, FALSE); + sp_document_set_undo_sensitive(this, false); this->root->updateDisplay((SPCtx *)&ctx, 0); -- cgit v1.2.3