/* When the region menu is opened, we setup the actions so that they look right
in the menu.
*/
- sensitize_the_right_region_actions (true, false);
+ sensitize_the_right_region_actions (false);
_last_region_menu_was_main = false;
menu->signal_hide().connect (sigc::bind (sigc::mem_fun (*this, &Editor::sensitize_all_region_actions), true));
void region_selection_changed ();
sigc::connection editor_regions_selection_changed_connection;
void sensitize_all_region_actions (bool);
- void sensitize_the_right_region_actions (bool from_context_menu, bool from_outside_canvas);
+ void sensitize_the_right_region_actions (bool because_canvas_crossing);
bool _all_region_actions_sensitized;
/** Flag to block region action handlers from doing what they normally do;
* I tried Gtk::Action::block_activate() but this doesn't work (ie it doesn't
if (ev->detail == GDK_NOTIFY_NONLINEAR ||
ev->detail == GDK_NOTIFY_NONLINEAR_VIRTUAL) {
/* context menu or something similar */
- sensitize_the_right_region_actions (true, false);
+ sensitize_the_right_region_actions (false);
} else {
- sensitize_the_right_region_actions (false, true);
+ sensitize_the_right_region_actions (true);
}
}
if (ev->detail == GDK_NOTIFY_NONLINEAR ||
ev->detail == GDK_NOTIFY_NONLINEAR_VIRTUAL) {
/* context menu or something similar */
- sensitize_the_right_region_actions (true, false);
+ sensitize_the_right_region_actions (false);
} else {
- sensitize_the_right_region_actions (false, true);
+ sensitize_the_right_region_actions (true);
}
}
* Editor::{entered,left}_track_canvas() for details there.
*/
void
-Editor::sensitize_the_right_region_actions (bool from_context_menu, bool from_canvas_crossing)
+Editor::sensitize_the_right_region_actions (bool because_canvas_crossing)
{
bool have_selection = false;
bool have_entered = false;
* here depends on the context in which we are called
*/
- if (from_canvas_crossing) {
+ if (because_canvas_crossing) {
if (!within_track_canvas && _edit_point == EditAtMouse) {
have_edit_point = false;
} else {
rs.insert (rs.end(), at_edit_point.begin(), at_edit_point.end());
}
}
- } else if (from_context_menu) {
- /* we have a context click event */
}
}
_regions->block_change_connection (false);
editor_regions_selection_changed_connection.block(false);
- sensitize_the_right_region_actions (false, false);
+ sensitize_the_right_region_actions (false);
/* propagate into backend */