diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-02 15:38:17 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-02 15:38:17 +0000 |
commit | b2d08a44b423ce9349b482e4c55ab613729c5d7d (patch) | |
tree | 1260a18e0687d76f749c61fc3a6a8fe82aa73842 /gtk2_ardour/editor_rulers.cc | |
parent | 03f6001f4a47d7095f148aa193042c9d0656bc56 (diff) |
now in gtk2_ardour: replace all instances of prop->value() == "yes" with string_is_affirmative (prop->value()) to avoid XML property SNAFUs
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5721 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_rulers.cc')
-rw-r--r-- | gtk2_ardour/editor_rulers.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gtk2_ardour/editor_rulers.cc b/gtk2_ardour/editor_rulers.cc index dd33f48a7e..b96e3b912e 100644 --- a/gtk2_ardour/editor_rulers.cc +++ b/gtk2_ardour/editor_rulers.cc @@ -528,56 +528,56 @@ Editor::restore_ruler_visibility () if (node) { if ((prop = node->property ("smpte")) != 0) { - if (prop->value() == "yes") { + if (string_is_affirmative (prop->value())) { ruler_timecode_action->set_active (true); } else { ruler_timecode_action->set_active (false); } } if ((prop = node->property ("bbt")) != 0) { - if (prop->value() == "yes") { + if (string_is_affirmative (prop->value())) { ruler_bbt_action->set_active (true); } else { ruler_bbt_action->set_active (false); } } if ((prop = node->property ("frames")) != 0) { - if (prop->value() == "yes") { + if (string_is_affirmative (prop->value())) { ruler_samples_action->set_active (true); } else { ruler_samples_action->set_active (false); } } if ((prop = node->property ("minsec")) != 0) { - if (prop->value() == "yes") { + if (string_is_affirmative (prop->value())) { ruler_minsec_action->set_active (true); } else { ruler_minsec_action->set_active (false); } } if ((prop = node->property ("tempo")) != 0) { - if (prop->value() == "yes") { + if (string_is_affirmative (prop->value())) { ruler_tempo_action->set_active (true); } else { ruler_tempo_action->set_active (false); } } if ((prop = node->property ("meter")) != 0) { - if (prop->value() == "yes") { + if (string_is_affirmative (prop->value())) { ruler_meter_action->set_active (true); } else { ruler_meter_action->set_active (false); } } if ((prop = node->property ("marker")) != 0) { - if (prop->value() == "yes") { + if (string_is_affirmative (prop->value())) { ruler_marker_action->set_active (true); } else { ruler_marker_action->set_active (false); } } if ((prop = node->property ("rangemarker")) != 0) { - if (prop->value() == "yes") { + if (string_is_affirmative (prop->value())) { ruler_range_action->set_active (true); } else { ruler_range_action->set_active (false); @@ -585,7 +585,7 @@ Editor::restore_ruler_visibility () } if ((prop = node->property ("transportmarker")) != 0) { - if (prop->value() == "yes") { + if (string_is_affirmative (prop->value())) { ruler_loop_punch_action->set_active (true); } else { ruler_loop_punch_action->set_active (false); @@ -593,7 +593,7 @@ Editor::restore_ruler_visibility () } if ((prop = node->property ("cdmarker")) != 0) { - if (prop->value() == "yes") { + if (string_is_affirmative (prop->value())) { ruler_cd_marker_action->set_active (true); } else { ruler_cd_marker_action->set_active (false); |