summaryrefslogtreecommitdiff
path: root/grc/gui/NotebookPage.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/gui/NotebookPage.py')
-rw-r--r--grc/gui/NotebookPage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/gui/NotebookPage.py b/grc/gui/NotebookPage.py
index 757dcbc0f8..4745035aff 100644
--- a/grc/gui/NotebookPage.py
+++ b/grc/gui/NotebookPage.py
@@ -49,7 +49,7 @@ class NotebookPage(Gtk.HBox):
self.saved = True
# import the file
- initial_state = flow_graph.get_parent().parse_flow_graph(file_path)
+ initial_state = flow_graph.parent_platform.parse_flow_graph(file_path)
flow_graph.import_data(initial_state)
self.state_cache = StateCache(initial_state)
@@ -97,7 +97,7 @@ class NotebookPage(Gtk.HBox):
Returns:
generator
"""
- platform = self.flow_graph.get_parent()
+ platform = self.flow_graph.parent_platform
return platform.Generator(self.flow_graph, self.file_path)
def _handle_button(self, button):