summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/GraphEditorPanel.m
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@cs.ox.ac.uk>2012-12-12 12:43:18 +0000
committerAlex Merry <alex.merry@cs.ox.ac.uk>2012-12-12 12:43:18 +0000
commitad869704e6dd52315bff174070e570727e7e8d98 (patch)
tree7cf7c5f7505dcea20fa6d5b80e70c8685d7f2a27 /tikzit/src/gtk/GraphEditorPanel.m
parent24c26ce52aa95e4dddfaceb23025a0438ed34350 (diff)
Allow the graph widget to grab focus
Diffstat (limited to 'tikzit/src/gtk/GraphEditorPanel.m')
-rw-r--r--tikzit/src/gtk/GraphEditorPanel.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/tikzit/src/gtk/GraphEditorPanel.m b/tikzit/src/gtk/GraphEditorPanel.m
index 922322e..542dba1 100644
--- a/tikzit/src/gtk/GraphEditorPanel.m
+++ b/tikzit/src/gtk/GraphEditorPanel.m
@@ -45,7 +45,7 @@
surface = [[WidgetSurface alloc] init];
[surface setDefaultScale:50.0f];
[surface setKeepCentered:YES];
- [surface setGrabsFocusOnClick:YES];
+ [surface setCanFocus:YES];
renderer = [[GraphRenderer alloc] initWithSurface:surface document:document];
inputHandler = [[GraphInputHandler alloc] initForPanel:self];