summaryrefslogtreecommitdiff
path: root/gtk2_ardour/rc_option_editor.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-03-10 11:37:01 +0000
committerCarl Hetherington <carl@carlh.net>2012-03-10 11:37:01 +0000
commitf6ee63591d928ff63cca81864faa2e80f7d3277c (patch)
treed11f457555ad96579ee9331563d2f768729f60ba /gtk2_ardour/rc_option_editor.cc
parentec1e3a1f6069421e769231ed524727919f99e4f7 (diff)
Patch from colinf to allow the number of recent sessions to
be configured (#2207). git-svn-id: svn://localhost/ardour2/branches/3.0@11641 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/rc_option_editor.cc')
-rw-r--r--gtk2_ardour/rc_option_editor.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc
index c5952f0b64..ee0a9828a0 100644
--- a/gtk2_ardour/rc_option_editor.cc
+++ b/gtk2_ardour/rc_option_editor.cc
@@ -919,6 +919,15 @@ RCOptionEditor::RCOptionEditor ()
sigc::mem_fun (*_rc_config, &RCConfiguration::set_default_session_parent_dir)
));
+ add_option (_("Misc"),
+ new SpinOption<uint32_t> (
+ "max-recent-sessions",
+ _("Maximum number of recent sessions"),
+ sigc::mem_fun (*_rc_config, &RCConfiguration::get_max_recent_sessions),
+ sigc::mem_fun (*_rc_config, &RCConfiguration::set_max_recent_sessions),
+ 0, 1000, 1, 20
+ ));
+
add_option (_("Misc"), new OptionEditorHeading (_("Click")));
add_option (_("Misc"), new ClickOptions (_rc_config, this));