13
0

Popup the standard route group menu even when you don't right-click on a tab.

git-svn-id: svn://localhost/ardour2/branches/3.0@5251 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-06-22 23:17:46 +00:00
parent 7d64d08fab
commit 9c7e23bad9
2 changed files with 4 additions and 6 deletions

View File

@ -64,11 +64,8 @@ GroupTabs::on_button_press_event (GdkEventButton* ev)
Tab* prev;
Tab* next;
Tab* t = click_to_tab (p, &prev, &next);
if (t == 0) {
return false;
}
if (ev->button == 1) {
if (ev->button == 1 && t) {
_dragging = t;
_drag_moved = false;
@ -87,7 +84,8 @@ GroupTabs::on_button_press_event (GdkEventButton* ev)
} else if (ev->button == 3) {
get_menu(t->group)->popup (ev->button, ev->time);
RouteGroup* g = t ? t->group : 0;
get_menu(g)->popup (ev->button, ev->time);
}

View File

@ -76,7 +76,7 @@ private:
/** @return Size of the widget along the primary axis */
virtual double extent () const = 0;
/** @param g Route group.
/** @param g Route group, or 0.
* @return Menu to be popped up on right-click over the given route group.
*/
virtual Gtk::Menu* get_menu (ARDOUR::RouteGroup* g) = 0;