diff options
author | Seth Hitefield <sdhitefield@gmail.com> | 2016-08-11 14:24:00 -0400 |
---|---|---|
committer | Seth Hitefield <sdhitefield@gmail.com> | 2016-09-23 16:18:09 -0400 |
commit | 03af90b98904b636b6fca75c3a4837391e3c03e2 (patch) | |
tree | 4946b1b0f168d0c84e6fed40940c2e2ed38e791d /grc/gui/ActionHandler.py | |
parent | 59f88d3cc03ed0f0c01433252f0d607330c23321 (diff) |
grc: refactor: Moved the notebook and console into separate classes.
Diffstat (limited to 'grc/gui/ActionHandler.py')
-rw-r--r-- | grc/gui/ActionHandler.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py index 0d7a900e80..7898146dcc 100644 --- a/grc/gui/ActionHandler.py +++ b/grc/gui/ActionHandler.py @@ -398,16 +398,16 @@ class ActionHandler(Gtk.Application): action.save_to_preferences() elif action == Actions.TOGGLE_SCROLL_LOCK: active = action.get_active() - main.text_display.scroll_lock = active + main.console.text_display.scroll_lock = active if active: - main.text_display.scroll_to_end() + main.console.text_display.scroll_to_end() action.save_to_preferences() elif action == Actions.CLEAR_CONSOLE: - main.text_display.clear() + main.console.text_display.clear() elif action == Actions.SAVE_CONSOLE: file_path = FileDialogs.SaveConsole(main, page.file_path).run() if file_path is not None: - main.text_display.save(file_path) + main.console.text_display.save(file_path) elif action == Actions.TOGGLE_HIDE_DISABLED_BLOCKS: Actions.NOTHING_SELECT() elif action == Actions.TOGGLE_AUTO_HIDE_PORT_LABELS: |