summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_strip.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-04-16 19:31:57 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-04-16 19:31:57 +0000
commit7c3367c5439328ea89d7dc9495ba480982e41708 (patch)
treea0507d2f8d26ba7cdccf0691101180587892c4e5 /gtk2_ardour/mixer_strip.cc
parent5ddedeec73e3b05b2800d0176c1330eff9b9070c (diff)
put mixer strip track name button context menu back on button3 ONLY, and make button1 press revert the display to the track if it was displaying a send
git-svn-id: svn://localhost/ardour2/branches/3.0@6918 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r--gtk2_ardour/mixer_strip.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc
index 9ff7696ecd..d21602894b 100644
--- a/gtk2_ardour/mixer_strip.cc
+++ b/gtk2_ardour/mixer_strip.cc
@@ -1401,17 +1401,21 @@ MixerStrip::build_route_ops_menu ()
items.push_back (MenuElem (_("Remove"), sigc::mem_fun(*this, &RouteUI::remove_this_route)));
}
-gint
+gboolean
MixerStrip::name_button_button_press (GdkEventButton* ev)
{
- if (ev->button == 1 || ev->button == 3) {
+ if (ev->button == 3) {
list_route_operations ();
/* do not allow rename if the track is record-enabled */
rename_menu_item->set_sensitive (!_route->record_enabled());
route_ops_menu->popup (1, ev->time);
- }
- return FALSE;
+
+ } else if (ev->button == 1) {
+ revert_to_default_display ();
+ }
+
+ return false;
}
void