diff options
author | Carl Hetherington <carl@carlh.net> | 2011-02-17 18:53:31 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-02-17 18:53:31 +0000 |
commit | 0d61f205ab4432480dc0e12787774f1d859f2dbf (patch) | |
tree | 2f7814390661bd344d53651f466e9941bfa2e94e /gtk2_ardour/option_editor.cc | |
parent | 94297c70e1644e5868eb834586ab173e7eaf2b33 (diff) |
Bring up the click tab of the RC options window when right-clicking on the click button (#3783).
git-svn-id: svn://localhost/ardour2/branches/3.0@8889 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r-- | gtk2_ardour/option_editor.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index 46e10d00b2..040146876b 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -302,3 +302,20 @@ OptionEditor::add_option (std::string const & pn, OptionEditorComponent* o) o->add_to_page (p); o->set_state_from_config (); } + +void +OptionEditor::set_current_page (string const & p) +{ + int i = 0; + while (i < _notebook.get_n_pages ()) { + if (_notebook.get_tab_label_text (*_notebook.get_nth_page (i)) == p) { + _notebook.set_current_page (i); + return; + } + + ++i; + } +} + + + |