Activate track-header context menu items with RBM
Popup menu should handle the button that was used to show the popup menu.
This commit is contained in:
parent
d66b70f3a2
commit
db97db2513
|
@ -544,7 +544,7 @@ TimeAxisView::controls_ebox_button_release (GdkEventButton* ev)
|
|||
break;
|
||||
|
||||
case 3:
|
||||
popup_display_menu (ev->time);
|
||||
popup_display_menu (3, ev->time);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -767,14 +767,14 @@ TimeAxisView::conditionally_add_to_selection ()
|
|||
}
|
||||
|
||||
void
|
||||
TimeAxisView::popup_display_menu (guint32 when)
|
||||
TimeAxisView::popup_display_menu (int button, guint32 when)
|
||||
{
|
||||
conditionally_add_to_selection ();
|
||||
|
||||
build_display_menu ();
|
||||
|
||||
if (!display_menu->items().empty()) {
|
||||
display_menu->popup (1, when);
|
||||
display_menu->popup (button, when);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -285,12 +285,6 @@ protected:
|
|||
virtual bool controls_ebox_motion (GdkEventMotion*);
|
||||
virtual bool controls_ebox_leave (GdkEventCrossing*);
|
||||
|
||||
/** Display the standard LHS control menu at when.
|
||||
*
|
||||
* @param when the popup activation time
|
||||
*/
|
||||
virtual void popup_display_menu (guint32 when);
|
||||
|
||||
/** Build the standard LHS control menu.
|
||||
* Subclasses should extend this method to add their own menu options.
|
||||
*/
|
||||
|
@ -336,6 +330,8 @@ private:
|
|||
|
||||
void compute_heights ();
|
||||
bool maybe_set_cursor (int y);
|
||||
void popup_display_menu (int button, guint32 when);
|
||||
|
||||
|
||||
}; /* class TimeAxisView */
|
||||
|
||||
|
|
Loading…
Reference in New Issue