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/extension | |
| 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 'src/extension')
| -rw-r--r-- | src/extension/init.cpp | 4 | ||||
| -rw-r--r-- | src/extension/input.cpp | 2 | ||||
| -rw-r--r-- | src/extension/internal/ps.cpp | 2 | ||||
| -rw-r--r-- | src/extension/internal/svg.cpp | 4 | ||||
| -rw-r--r-- | src/extension/internal/win32.cpp | 6 | ||||
| -rw-r--r-- | src/extension/internal/win32.h | 2 | ||||
| -rw-r--r-- | src/extension/system.cpp | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/src/extension/init.cpp b/src/extension/init.cpp index 756fff964..e52600f8a 100644 --- a/src/extension/init.cpp +++ b/src/extension/init.cpp @@ -53,7 +53,7 @@ #include "prefs-utils.h" #include "io/sys.h" -extern gboolean inkscape_app_use_gui( Inkscape::Application const *app ); +extern bool inkscape_app_use_gui( Inkscape::Application const *app ); namespace Inkscape { namespace Extension { @@ -81,7 +81,7 @@ update_pref(gchar const *pref_path, gchar const *pref_attr, { gchar const *pref = prefs_get_string_attribute(pref_path,pref_attr); /* - gboolean missing=TRUE; + bool missing=TRUE; for (GSList *list = extension_family; list; list = g_slist_next(list)) { g_assert( list->data ); diff --git a/src/extension/input.cpp b/src/extension/input.cpp index 68eb31e7b..aaa3f1415 100644 --- a/src/extension/input.cpp +++ b/src/extension/input.cpp @@ -165,7 +165,7 @@ Input::open (const gchar *uri) if (doc != NULL) { Inkscape::XML::Node * repr = sp_document_repr_root(doc); - gboolean saved = sp_document_get_undo_sensitive(doc); + bool saved = sp_document_get_undo_sensitive(doc); sp_document_set_undo_sensitive (doc, FALSE); repr->setAttribute("inkscape:output_extension", output_extension); sp_document_set_undo_sensitive (doc, saved); diff --git a/src/extension/internal/ps.cpp b/src/extension/internal/ps.cpp index 01387ca19..b4a3f8904 100644 --- a/src/extension/internal/ps.cpp +++ b/src/extension/internal/ps.cpp @@ -221,7 +221,7 @@ PrintPS::setup(Inkscape::Extension::Print * mod) unsigned int PrintPS::begin(Inkscape::Extension::Print *mod, SPDocument *doc) { - gboolean epsexport = false; + bool epsexport = false; _latin1_encoded_fonts.clear(); _newlatin1font_proc_defined = false; diff --git a/src/extension/internal/svg.cpp b/src/extension/internal/svg.cpp index ab9c59830..55ba10ff9 100644 --- a/src/extension/internal/svg.cpp +++ b/src/extension/internal/svg.cpp @@ -198,7 +198,7 @@ Svg::save (Inkscape::Extension::Output *mod, SPDocument *doc, const gchar *uri) gchar *save_path = g_path_get_dirname (uri); - gboolean const spns = (!mod->get_id() + bool const spns = (!mod->get_id() || !strcmp (mod->get_id(), SP_MODULE_KEY_OUTPUT_SVG_INKSCAPE) || !strcmp (mod->get_id(), SP_MODULE_KEY_OUTPUT_SVGZ_INKSCAPE)); @@ -214,7 +214,7 @@ Svg::save (Inkscape::Extension::Output *mod, SPDocument *doc, const gchar *uri) Inkscape::IO::fixupHrefs( doc, save_path, spns ); - gboolean const s = sp_repr_save_file (sp_repr_document (repr), uri, SP_SVG_NS_URI); + bool const s = sp_repr_save_file (sp_repr_document (repr), uri, SP_SVG_NS_URI); if (s == FALSE) { throw Inkscape::Extension::Output::save_failed(); } diff --git a/src/extension/internal/win32.cpp b/src/extension/internal/win32.cpp index 51dbd3a00..1ea51f6b9 100644 --- a/src/extension/internal/win32.cpp +++ b/src/extension/internal/win32.cpp @@ -97,11 +97,11 @@ my_timer (HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime) /* Platform detection */ -gboolean +bool PrintWin32::is_os_wide() { - static gboolean initialized = FALSE; - static gboolean is_wide = FALSE; + static bool initialized = FALSE; + static bool is_wide = FALSE; static OSVERSIONINFOA osver; if ( !initialized ) diff --git a/src/extension/internal/win32.h b/src/extension/internal/win32.h index d46b5b2fb..96b68f075 100644 --- a/src/extension/internal/win32.h +++ b/src/extension/internal/win32.h @@ -60,7 +60,7 @@ public: static void init (void); /* Platform detection */ - static gboolean is_os_wide(); + static bool is_os_wide(); /* Print functions */ virtual unsigned int setup (Inkscape::Extension::Print * module); diff --git a/src/extension/system.cpp b/src/extension/system.cpp index 41d6e7513..482d6c5ea 100644 --- a/src/extension/system.cpp +++ b/src/extension/system.cpp @@ -104,7 +104,7 @@ open(Extension *key, gchar const *filename) /* This kinda overkill as most of these are already set, but I want to make sure for this release -- TJG */ Inkscape::XML::Node *repr = sp_document_repr_root(doc); - gboolean saved = sp_document_get_undo_sensitive(doc); + bool saved = sp_document_get_undo_sensitive(doc); sp_document_set_undo_sensitive(doc, FALSE); repr->setAttribute("sodipodi:modified", NULL); sp_document_set_undo_sensitive(doc, saved); |
