From c29471373b4780d64b86d5cda07506dbaf1c7fbe Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 7 Mar 2022 05:54:27 +0100 Subject: [PATCH] Expose show-grid-rulers ui preference --- gtk2_ardour/rc_option_editor.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index d257d673a8..dfa032c6b8 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -3338,6 +3338,15 @@ These settings will only take effect after %1 is restarted.\n\ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_grid_follows_internal) )); + add_option (_("Editor/Snap"), + new BoolOption ( + "show-grid-rulers", + _("Grid mode selection may change ruler visibility"), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_show_grids_ruler), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_show_grids_ruler) + )); + + // TODO toggle sensitivity of rulers-follow-grid when show-grid-rulers changes add_option (_("Editor/Snap"), new BoolOption ( "rulers-follow-grid",