summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/GraphEditorPanel.m
diff options
context:
space:
mode:
authorAlex Merry <dev@randomguy3.me.uk>2013-04-09 19:48:02 +0100
committerAlex Merry <dev@randomguy3.me.uk>2013-05-07 09:36:54 +0100
commiteb55df536af97d65365f920f7e35e6534a24056c (patch)
treea1791f0c2f9b37f58224726d7309613223c1e6fb /tikzit/src/gtk/GraphEditorPanel.m
parenta707ec228ff39d0df26d78f715561952d2f8c0b9 (diff)
GTK+: One preview window per main window
Each document window has its own preview window, allowing multiple ones to be open at once.
Diffstat (limited to 'tikzit/src/gtk/GraphEditorPanel.m')
-rw-r--r--tikzit/src/gtk/GraphEditorPanel.m5
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];