diff options
author | Carl Hetherington <carl@carlh.net> | 2009-08-24 20:26:34 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-08-24 20:26:34 +0000 |
commit | df71243d6c18e5ae54706b51a6cbe770476ab419 (patch) | |
tree | 6dd88e5506ff5335e291770a1d4f99473ac5ee83 /gtk2_ardour/keyboard.h | |
parent | 29fea7b61d2779532957e709d2d7ecf2b440d415 (diff) |
Alter snap modifier so that it turns the grid on when it's off as well as vice-versa.
git-svn-id: svn://localhost/ardour2/branches/3.0@5584 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/keyboard.h')
-rw-r--r-- | gtk2_ardour/keyboard.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/keyboard.h b/gtk2_ardour/keyboard.h index 2905299334..cff45b11f2 100644 --- a/gtk2_ardour/keyboard.h +++ b/gtk2_ardour/keyboard.h @@ -90,6 +90,11 @@ class Keyboard : public sigc::trackable, PBD::Stateful static bool no_modifiers_active (guint state); static void set_snap_modifier (guint); + + /** @return Modifier mask to temporarily toggle grid setting; with this modifier + * - magnetic or normal grid should become no grid and + * - no grid should become normal grid + */ static ModifierMask snap_modifier () { return ModifierMask (snap_mod); } static guint edit_button() { return edit_but; } |