diff options
| author | Jon Phillips <jon@fabricatorz.com> | 2006-08-25 07:03:19 +0000 |
|---|---|---|
| committer | kidproto <kidproto@users.sourceforge.net> | 2006-08-25 07:03:19 +0000 |
| commit | 5d6f51f32ca2356b0d6155015457a83e60b314e8 (patch) | |
| tree | 835131f8041d12103ea82dc6b23917443f61cd42 /src/sp-namedview.cpp | |
| parent | I peeled back my changes because of some deep error. (diff) | |
| download | inkscape-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/sp-namedview.cpp')
| -rw-r--r-- | src/sp-namedview.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/sp-namedview.cpp b/src/sp-namedview.cpp index 3757dcf7f..f3dea40c7 100644 --- a/src/sp-namedview.cpp +++ b/src/sp-namedview.cpp @@ -57,9 +57,9 @@ static void sp_namedview_setup_guides(SPNamedView * nv); static void sp_namedview_setup_grid(SPNamedView * nv); static void sp_namedview_setup_grid_item(SPNamedView * nv, SPCanvasItem * item); -static bool sp_str_to_bool(const gchar *str); -static bool sp_nv_read_length(const gchar *str, guint base, gdouble *val, const SPUnit **unit); -static bool sp_nv_read_opacity(const gchar *str, guint32 *color); +static gboolean sp_str_to_bool(const gchar *str); +static gboolean sp_nv_read_length(const gchar *str, guint base, gdouble *val, const SPUnit **unit); +static gboolean sp_nv_read_opacity(const gchar *str, guint32 *color); static SPObjectGroupClass * parent_class; @@ -687,7 +687,7 @@ void sp_namedview_document_from_window(SPDesktop *desktop) NR::Rect const r = desktop->get_display_area(); // saving window geometry is not undoable - bool saved = sp_document_get_undo_sensitive(sp_desktop_document(desktop)); + gboolean saved = sp_document_get_undo_sensitive(sp_desktop_document(desktop)); sp_document_set_undo_sensitive(sp_desktop_document(desktop), FALSE); sp_repr_set_svg_double(view, "inkscape:zoom", desktop->current_zoom()); @@ -734,7 +734,7 @@ void SPNamedView::hide(SPDesktop const *desktop) gridviews = g_slist_remove(gridviews, l->data); } -void SPNamedView::activateGuides(gpointer desktop, bool active) +void SPNamedView::activateGuides(gpointer desktop, gboolean active) { g_assert(desktop != NULL); g_assert(g_slist_find(views, desktop)); @@ -771,7 +771,7 @@ void sp_namedview_toggle_guides(SPDocument *doc, Inkscape::XML::Node *repr) v = !v; } - bool saved = sp_document_get_undo_sensitive(doc); + gboolean saved = sp_document_get_undo_sensitive(doc); sp_document_set_undo_sensitive(doc, FALSE); sp_repr_set_boolean(repr, "showguides", v); @@ -786,7 +786,7 @@ void sp_namedview_toggle_grid(SPDocument *doc, Inkscape::XML::Node *repr) sp_repr_get_boolean(repr, "showgrid", &v); v = !v; - bool saved = sp_document_get_undo_sensitive(doc); + gboolean saved = sp_document_get_undo_sensitive(doc); sp_document_set_undo_sensitive(doc, FALSE); sp_repr_set_boolean(repr, "showgrid", v); @@ -840,7 +840,7 @@ GSList const *SPNamedView::getViewList() const /* This should be moved somewhere */ -static bool sp_str_to_bool(const gchar *str) +static gboolean sp_str_to_bool(const gchar *str) { if (str) { if (!g_strcasecmp(str, "true") || @@ -856,7 +856,7 @@ static bool sp_str_to_bool(const gchar *str) /* fixme: Collect all these length parsing methods and think common sane API */ -static bool sp_nv_read_length(const gchar *str, guint base, gdouble *val, const SPUnit **unit) +static gboolean sp_nv_read_length(const gchar *str, guint base, gdouble *val, const SPUnit **unit) { if (!str) { return FALSE; @@ -906,7 +906,7 @@ static bool sp_nv_read_length(const gchar *str, guint base, gdouble *val, const return FALSE; } -static bool sp_nv_read_opacity(const gchar *str, guint32 *color) +static gboolean sp_nv_read_opacity(const gchar *str, guint32 *color) { if (!str) { return FALSE; |
