summaryrefslogtreecommitdiffstats
path: root/src/document-undo.cpp
diff options
context:
space:
mode:
authorJon Phillips <jon@fabricatorz.com>2006-08-25 07:03:19 +0000
committerkidproto <kidproto@users.sourceforge.net>2006-08-25 07:03:19 +0000
commit5d6f51f32ca2356b0d6155015457a83e60b314e8 (patch)
tree835131f8041d12103ea82dc6b23917443f61cd42 /src/document-undo.cpp
parentI peeled back my changes because of some deep error. (diff)
downloadinkscape-5d6f51f32ca2356b0d6155015457a83e60b314e8.tar.gz
inkscape-5d6f51f32ca2356b0d6155015457a83e60b314e8.zip
peeled back the gboolean code as it hit on some complexity theory principles...
need to rethink and incrementally change gbooleans to bools (bzr r1637)
Diffstat (limited to 'src/document-undo.cpp')
-rw-r--r--src/document-undo.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/document-undo.cpp b/src/document-undo.cpp
index 226183bda..09bb4e857 100644
--- a/src/document-undo.cpp
+++ b/src/document-undo.cpp
@@ -75,13 +75,13 @@
* Since undo sensitivity needs to be nested, setting undo sensitivity
* should be done like this:
*\verbatim
- bool saved = sp_document_get_undo_sensitive(document);
+ gboolean saved = sp_document_get_undo_sensitive(document);
sp_document_set_undo_sensitive(document, FALSE);
... do stuff ...
sp_document_set_undo_sensitive(document, saved); \endverbatim
*/
void
-sp_document_set_undo_sensitive (SPDocument *doc, bool sensitive)
+sp_document_set_undo_sensitive (SPDocument *doc, gboolean sensitive)
{
g_assert (doc != NULL);
g_assert (doc->priv != NULL);
@@ -101,7 +101,7 @@ sp_document_set_undo_sensitive (SPDocument *doc, bool sensitive)
doc->priv->sensitive = !!sensitive;
}
-bool sp_document_get_undo_sensitive(SPDocument const *document) {
+gboolean sp_document_get_undo_sensitive(SPDocument const *document) {
g_assert(document != NULL);
g_assert(document->priv != NULL);
@@ -200,13 +200,13 @@ void finish_incomplete_transaction(SPDocument &doc) {
}
-bool
+gboolean
sp_document_undo (SPDocument *doc)
{
using Inkscape::Debug::EventTracker;
using Inkscape::Debug::SimpleEvent;
- bool ret;
+ gboolean ret;
EventTracker<SimpleEvent<Inkscape::Debug::Event::DOCUMENT> > tracker("undo");
@@ -244,13 +244,13 @@ sp_document_undo (SPDocument *doc)
return ret;
}
-bool
+gboolean
sp_document_redo (SPDocument *doc)
{
using Inkscape::Debug::EventTracker;
using Inkscape::Debug::SimpleEvent;
- bool ret;
+ gboolean ret;
EventTracker<SimpleEvent<Inkscape::Debug::Event::DOCUMENT> > tracker("redo");