diff options
author | Seth Hitefield <sdhitefield@gmail.com> | 2015-06-10 16:04:51 -0400 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2015-06-11 09:40:24 +0200 |
commit | 91dd2fce59ba81d4dc22b9dcdc909211cafe9f5f (patch) | |
tree | 51b237a53e69e1c1a06648866b6c1bfae6993cc7 /grc/gui/Actions.py | |
parent | 80272df0bd29c02e7d677062431ba0ae4e07ed60 (diff) |
grc: Added ability to bypass blocks (Suggested by Chris Headley).
Only for blocks that have a single source and sink of the same type.
Feature can be disabled per block using the 'disable_bypass' flag in the block definition.
Diffstat (limited to 'grc/gui/Actions.py')
-rw-r--r-- | grc/gui/Actions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/grc/gui/Actions.py b/grc/gui/Actions.py index b2b3a76386..a028a33a11 100644 --- a/grc/gui/Actions.py +++ b/grc/gui/Actions.py @@ -247,6 +247,12 @@ BLOCK_DISABLE = Action( stock_id=gtk.STOCK_DISCONNECT, keypresses=(gtk.keysyms.d, NO_MODS_MASK), ) +BLOCK_BYPASS = Action( + label='_Bypass', + tooltip='Bypass the selected block', + stock_id=gtk.STOCK_MEDIA_FORWARD, + keypresses=(gtk.keysyms.b, NO_MODS_MASK), +) TOGGLE_SNAP_TO_GRID = ToggleAction( label='_Snap to grid', tooltip='Snap blocks to a grid for an easier connection alignment', |