summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/CreateEdgeTool.m
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@cs.ox.ac.uk>2012-12-13 17:19:56 +0000
committerAlex Merry <alex.merry@cs.ox.ac.uk>2012-12-13 17:19:56 +0000
commit05ce879e69da6aca5982bf95c2f055d4baecea5b (patch)
treeda1d0f63c1d9d60f11aea81f73fdc1074562db5e /tikzit/src/gtk/CreateEdgeTool.m
parent4ee50a8cf2b592c2ac98a45da63bde6466a9ee9f (diff)
Use the correct style manager for creation tools
Diffstat (limited to 'tikzit/src/gtk/CreateEdgeTool.m')
-rw-r--r--tikzit/src/gtk/CreateEdgeTool.m7
1 files changed, 2 insertions, 5 deletions
diff --git a/tikzit/src/gtk/CreateEdgeTool.m b/tikzit/src/gtk/CreateEdgeTool.m
index f420b80..b51e729 100644
--- a/tikzit/src/gtk/CreateEdgeTool.m
+++ b/tikzit/src/gtk/CreateEdgeTool.m
@@ -32,16 +32,13 @@
@synthesize styleManager;
@synthesize configurationWidget=configWidget;
-+ (id) tool {
- return [[[self alloc] init] autorelease];
-}
-
+ (id) toolWithStyleManager:(StyleManager*)sm {
return [[[self alloc] initWithStyleManager:sm] autorelease];
}
- (id) init {
- return [self initWithStyleManager:[StyleManager manager]];
+ [self release];
+ return nil;
}
- (id) initWithStyleManager:(StyleManager*)sm {