summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-03-31 01:11:48 +0000
committerCarl Hetherington <carl@carlh.net>2010-03-31 01:11:48 +0000
commitd1624f9ed2c5197e7302904ab69996ba897b9ce8 (patch)
tree567fdd80081efac1cae9b092bdc7c989fe027336 /gtk2_ardour/editor.cc
parentf7a943403485c63032362c8f29cdc4abb43e18b4 (diff)
Take away the Remove option from the region list, and add Show to re-show hidden regions.
git-svn-id: svn://localhost/ardour2/branches/3.0@6814 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r--gtk2_ardour/editor.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index efec451e63..730b6e0fab 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -5008,9 +5008,9 @@ Editor::hide_a_region (boost::shared_ptr<Region> r)
}
void
-Editor::remove_a_region (boost::shared_ptr<Region> r)
+Editor::show_a_region (boost::shared_ptr<Region> r)
{
- // _session->remove_region_from_region_list (r);
+ r->set_hidden (false);
}
void
@@ -5026,6 +5026,12 @@ Editor::hide_region_from_region_list ()
}
void
+Editor::show_region_in_region_list ()
+{
+ _regions->selection_mapover (sigc::mem_fun (*this, &Editor::show_a_region));
+}
+
+void
Editor::start_step_editing ()
{
step_edit_connection = Glib::signal_timeout().connect (sigc::mem_fun (*this, &Editor::check_step_edit), 20);