diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-12 11:45:40 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-12 11:45:40 +0000 |
commit | d6051c9953ea8778399ad72fc91c334c242d25e0 (patch) | |
tree | 34c9725486c0c7b9242c8b645aa2e4290218273a /gtk2_ardour | |
parent | 81a76cc0fdf569e96697c4cea58debb74d6e5545 (diff) |
move string_is_affirmative() into libpbd
git-svn-id: svn://localhost/ardour2/branches/3.0@11936 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/axis_view.cc | 5 | ||||
-rwxr-xr-x | gtk2_ardour/window_proxy.cc | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gtk2_ardour/axis_view.cc b/gtk2_ardour/axis_view.cc index 5e0a50fdf7..43763abcc3 100644 --- a/gtk2_ardour/axis_view.cc +++ b/gtk2_ardour/axis_view.cc @@ -26,6 +26,7 @@ #include <list> #include "pbd/error.h" +#include "pbd/convert.h" #include <gtkmm2ext/utils.h> #include <gtkmm2ext/selector.h> @@ -74,14 +75,14 @@ bool AxisView::marked_for_display () const { string const v = gui_property ("visible"); - return (v == "" || string_is_affirmative (v)); + return (v == "" || PBD::string_is_affirmative (v)); } bool AxisView::set_marked_for_display (bool yn) { string const v = gui_property ("visible"); - if (v == "" || yn != string_is_affirmative (v)) { + if (v == "" || yn != PBD::string_is_affirmative (v)) { set_gui_property ("visible", yn); return true; // things changed } diff --git a/gtk2_ardour/window_proxy.cc b/gtk2_ardour/window_proxy.cc index ff525eb392..99da166af0 100755 --- a/gtk2_ardour/window_proxy.cc +++ b/gtk2_ardour/window_proxy.cc @@ -19,6 +19,9 @@ #include <gtkmm/window.h> #include "window_proxy.h" + +#include "pbd/convert.h" + #include "i18n.h" using namespace std; @@ -57,7 +60,7 @@ WindowProxyBase::WindowProxyBase (string const & name, XMLNode const * node) XMLProperty* prop; if ((prop = (*i)->property (X_("visible"))) != 0) { - _visible = string_is_affirmative (prop->value ()); + _visible = PBD::string_is_affirmative (prop->value ()); } if ((prop = (*i)->property (X_("x-off"))) != 0) { |