move string_is_affirmative() into libpbd

git-svn-id: svn://localhost/ardour2/branches/3.0@11936 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-04-12 11:45:40 +00:00
parent 81a76cc0fd
commit d6051c9953
11 changed files with 54 additions and 27 deletions

View file

@ -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
}