summaryrefslogtreecommitdiff
path: root/tikzit/src/common/Graph.m
diff options
context:
space:
mode:
authorrandomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-01-10 15:40:11 +0000
committerrandomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-01-10 15:40:11 +0000
commit87294b7ebc03156f223052ca2a6c70463df568f0 (patch)
tree7200a2cb348b18c8d255931058ffab260f4225c3 /tikzit/src/common/Graph.m
parentc372b719b84a320f6fb7cab6dc0d1ab94beacd78 (diff)
GTK: Edge style support
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@375 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'tikzit/src/common/Graph.m')
-rw-r--r--tikzit/src/common/Graph.m19
1 files changed, 15 insertions, 4 deletions
diff --git a/tikzit/src/common/Graph.m b/tikzit/src/common/Graph.m
index 62774f5..4250f7f 100644
--- a/tikzit/src/common/Graph.m
+++ b/tikzit/src/common/Graph.m
@@ -425,15 +425,26 @@
[[ch nodeRef] setPropertiesFromNode:[ch nwNode]];
break;
case NodesPropertyChange:
- en = [[ch nwNodeTable] keyEnumerator];
- Node *key;
- while ((key = [en nextObject])) {
- [key setPropertiesFromNode:[[ch nwNodeTable] objectForKey:key]];
+ {
+ en = [[ch nwNodeTable] keyEnumerator];
+ Node *key;
+ while ((key = [en nextObject])) {
+ [key setPropertiesFromNode:[[ch nwNodeTable] objectForKey:key]];
+ }
}
break;
case EdgePropertyChange:
[[ch edgeRef] setPropertiesFromEdge:[ch nwEdge]];
break;
+ case EdgesPropertyChange:
+ {
+ en = [[ch nwEdgeTable] keyEnumerator];
+ Edge *key;
+ while ((key = [en nextObject])) {
+ [key setPropertiesFromEdge:[[ch nwEdgeTable] objectForKey:key]];
+ }
+ }
+ break;
case NodesShift:
en = [[ch affectedNodes] objectEnumerator];
NSPoint newLoc;