diff options
| author | Jon Phillips <jon@fabricatorz.com> | 2006-08-23 07:08:06 +0000 |
|---|---|---|
| committer | kidproto <kidproto@users.sourceforge.net> | 2006-08-23 07:08:06 +0000 |
| commit | 10880dbfba9afd5a963f5bb36fe9a3707c1c35a1 (patch) | |
| tree | 7a73cfffbb81131a0dfb9c6d799325e363615e8a /src/document-undo.cpp | |
| parent | Updated his name and copyright info... (diff) | |
| download | inkscape-10880dbfba9afd5a963f5bb36fe9a3707c1c35a1.tar.gz inkscape-10880dbfba9afd5a963f5bb36fe9a3707c1c35a1.zip | |
Ok, committed msgloan's patch to convert gbooleans to bools thus completing
one major janitorial task we identified....
(bzr r1633)
Diffstat (limited to '')
| -rw-r--r-- | src/document-undo.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/document-undo.cpp b/src/document-undo.cpp index 09bb4e857..226183bda 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 - gboolean saved = sp_document_get_undo_sensitive(document); + bool 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, gboolean sensitive) +sp_document_set_undo_sensitive (SPDocument *doc, bool sensitive) { g_assert (doc != NULL); g_assert (doc->priv != NULL); @@ -101,7 +101,7 @@ sp_document_set_undo_sensitive (SPDocument *doc, gboolean sensitive) doc->priv->sensitive = !!sensitive; } -gboolean sp_document_get_undo_sensitive(SPDocument const *document) { +bool 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) { } -gboolean +bool sp_document_undo (SPDocument *doc) { using Inkscape::Debug::EventTracker; using Inkscape::Debug::SimpleEvent; - gboolean ret; + bool ret; EventTracker<SimpleEvent<Inkscape::Debug::Event::DOCUMENT> > tracker("undo"); @@ -244,13 +244,13 @@ sp_document_undo (SPDocument *doc) return ret; } -gboolean +bool sp_document_redo (SPDocument *doc) { using Inkscape::Debug::EventTracker; using Inkscape::Debug::SimpleEvent; - gboolean ret; + bool ret; EventTracker<SimpleEvent<Inkscape::Debug::Event::DOCUMENT> > tracker("redo"); |
