diff options
author | jblum | 2009-05-14 21:18:28 +0000 |
---|---|---|
committer | jblum | 2009-05-14 21:18:28 +0000 |
commit | 65446f553650a464fabf2bc4edf66a044e67b338 (patch) | |
tree | 705fc594b264cdf01549ee7f386ecaf967bf84e5 /grc/src/gui/ActionHandler.py | |
parent | 30e9c0d1d47f1e4200afd6abf955271609dbbdc3 (diff) | |
download | gnuradio-65446f553650a464fabf2bc4edf66a044e67b338.tar.gz gnuradio-65446f553650a464fabf2bc4edf66a044e67b338.tar.bz2 gnuradio-65446f553650a464fabf2bc4edf66a044e67b338.zip |
Create one drawing area per flowgraph/notebook page.
Previously, there was one global drawing area, and empty notebook pages.
This has the advantage of saving the scroll position though mutiple scroll windows,
rendering the flow graph only when the notebook page is realized,
and proper use + appearance of the gtk notebook
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11030 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src/gui/ActionHandler.py')
-rw-r--r-- | grc/src/gui/ActionHandler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/src/gui/ActionHandler.py b/grc/src/gui/ActionHandler.py index f5f349d4a..06e998b31 100644 --- a/grc/src/gui/ActionHandler.py +++ b/grc/src/gui/ActionHandler.py @@ -61,7 +61,7 @@ class ActionHandler: self.main_window.connect('key-press-event', self._handle_key_press) self.get_page = self.main_window.get_page self.get_flow_graph = self.main_window.get_flow_graph - self.get_focus_flag = self.main_window.drawing_area.get_focus_flag + self.get_focus_flag = self.main_window.get_focus_flag #setup the messages Messages.register_messenger(self.main_window.add_report_line) Messages.send_init() @@ -170,8 +170,8 @@ class ActionHandler: # Cut/Copy/Paste ################################################## elif state == Actions.BLOCK_CUT: - self.handle_states(BLOCK_COPY) - self.handle_states(ELEMENT_DELETE) + self.handle_states(Actions.BLOCK_COPY) + self.handle_states(Actions.ELEMENT_DELETE) elif state == Actions.BLOCK_COPY: self.clipboard = self.get_flow_graph().copy_to_clipboard() elif state == Actions.BLOCK_PASTE: |