diff options
Diffstat (limited to 'tikzit/src/gtk/GraphEditorPanel.m')
-rw-r--r-- | tikzit/src/gtk/GraphEditorPanel.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tikzit/src/gtk/GraphEditorPanel.m b/tikzit/src/gtk/GraphEditorPanel.m index fc50afc..c87e53e 100644 --- a/tikzit/src/gtk/GraphEditorPanel.m +++ b/tikzit/src/gtk/GraphEditorPanel.m @@ -39,6 +39,9 @@ @end @implementation GraphEditorPanel + +@synthesize previewHandler; + - (id) init { return [self initWithDocument:nil]; } @@ -194,7 +197,7 @@ - (void) keyReleased:(unsigned int)keyVal withMask:(InputMask)mask { if (keyVal == GDK_KEY_space && !mask) { - [app previewDocument:[panel document]]; + [[panel previewHandler] showPreview]; } if (![app activateToolForKey:keyVal withMask:mask]) { id<Tool> tool = [panel activeTool]; |